Re: [NTG-context] Hyphenation of composed words

2010-04-18 Thread Thomas Floeren
Marco <> wrote on Friday, April 16, 2010 4:46 PM:

> Hi,
> 
> I've yet another hyphenation problem. I cannot get proper hyphenation
> in 
> composed words. Take this MWE:
> 
> \setuplayout [width=1.5cm]
> \starttext
> 
> composed-word\par % not hyphenated, as expected
> composed||word\par% wrong: hyphenated, but an en-dash is used,
>   % not a hyphen, so [sign=wide] seems to be the default
> composed|-|word\blank % wrong: hyphenated, but the hyphen is at the
>   start of % the next line
> 
> \setuphyphenmark [sign=normal]% For hyphenation a hyphen is used,
>   % not an endash
> composed-word\par % not hyphenated, as expected
> composed||word\par% wrong: hyphen is at the start of the next line
> composed|-|word   % wrong: hyphen is at the start of the next line
> \blank[2*line]
> 
> \setbreakpoints [compound]% my workaround
> composed-word\par % correct hyphenation behaviour with hyphen
> 
> \stoptext
> 
> I hope with the comments the problem is clear. At first the default
> value for »sign« is wrong. It has to be »normal«. But with »normal« I
> cannot get the 
> hyphen at the end of the line, instead it always appeares at the
> beginning of 
> the next line.
> 

At the moment I use \def\compoundhyphen{-} instead of \setuphyphenmark.
It seems to work (mkii).

Thomas




> The workaround works but has the disadvantage that everything is
> hyphenated, everywhere. I prevent this at the moment by using bars:
>> not-a-composed-word|
> 
> Thanks in advance
> Marco
> 
> 
> ___
> If your question is of interest to others as well, please add an
> entry to the Wiki! 
> 
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
> http://www.pragma-ade.nl / http://tex.aanhet.net 
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] (no subject)

2010-04-18 Thread Tom
The following example computes page numbers correctly, places the correct
entries into the TOC, and produces the desired page headers on the first
pages of chapters. However, there are some things it doesn't do properly:

1. It puts headers on blank pages at the ends of chapters even after I
inserted the code that takes care of that problem.

2. It seems to ignore some commands or wait until the next chapter to
implement them. An example is the header on page vi. It's supposed to read
viContents

3. It seems that commands in the \startsectionenvironment  frontmatter block
are ignored or overridden by commands that are for the body part. That is
why I have so many setup commands ib the \starttext section.



%figure on left - chapter number and title on right
\def\MyChapterCommandM#1#2% #1 is number, #2 is text
   {\startfiguretext[left]{none}
 {\externalfigure[cow][width=.2\textwidth]}
 {\framed[frame=off,align=middle,width=broad]
 {\switchtobodyfont[15pt] #1\\\blank[small] #2}}
\stopfiguretext}

%no figure on left - chapter number and title on right
\def\MyFrontMatterCommandM#1#2% #1 is number, #2 is text
 {\framed[frame=off,align=middle,width=broad]
 {\switchtobodyfont[15pt] #1\\\blank[small] #2}}

%eliminate headers on blank page at end of chapter
\definepagebreak[mychapterpagebreak][yes,header,next]

%put pagenumber on bottom of first page of chapter
\definetext[chapter][footer][pagenumber]
\setuphead[chapter][header=high,footer=chapter,page=right]
\setuppagenumbering[location=]


\startsectionblockenvironment[frontpart]

\definehead[mycontenttitle][chapter]
\setuphead[mycontenttitle]
 [command=\MyFrontMatterCommandM, number=no,textstyle=\ss\bf,
header=empty,footer=empty,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in
\placeinitial  %comment out this line to eliminate drop capitals
] 

\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setupheadertexts
[chapter][pagenumber][pagenumber][Content Example]

\setuphead[chapter][page=mychapterpagebreak]

\setuphead[chapter]
 [command=\MyChapterCommandM,textstyle=\ss\bf,  
  header=empty,footer=empty,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in
\placeinitial  %comment out this line to eliminate drop capitals
] 

\stopsectionblockenvironment

\startsectionblockenvironment[appendix]

\setupsectionblock[appendix][page=appendicespagebreak] 

\stopsectionblockenvironment

\starttext 

\startfrontmatter

\setuppagenumbering[state=start,alternative=doublesided,conversion=romannume
rals]

Some random text to occupy front matter pages.
\blank[medium]
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\page[right]


%\starthiding
\setuphead[title]
 [command=\MyFrontMatterCommandM, number=no,textstyle=\ss\bf,
header=empty,footer=pagenumber,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in
\placeinitial  %comment out this line to eliminate drop capitals
] 
\setupheadertexts
[Contents][pagenumber][pagenumber][Contents]

\title{Content}

%\stophiding

%\mycontenttitle{Content}  %displays Contents but drops the TOC

\placecontent[alternative=c]

\blank[medium]
Random text added to push TOC onto a second page to test page headers.
\blank[medium]

\input knuth
\input knuth
\input knuth
\input knuth

\setupheadertexts
[chapter][pagenumber][pagenumber][Content Example]

\setuphead[chapter]
 [command=\MyFrontMatterCommandM, number=no,textstyle=\ss\bf,
header=empty,footer=pagenumber,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in
\placeinitial  %comment out this line to eliminate drop capitals
] 

\chapter{Preface}
\input knuth
\page[right]

%switch from lower case Roman numberals to Arabic numbers
\setuppagenumbering[state=start,alternative=doublesided,conversion=numbers]
\setuppagenumber[state=start,number=1]

\setuphead[chapter]
 [command=\MyChapterCommandM,textstyle=\ss\bf,
  header=empty,footer=pagenumber,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in
 \placeinitial  %comment out this line to eliminate drop capitals
] 

\chapter{Introduction}
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth

\stopfrontmatter

\startbodymatter

\chapter{Chapter One}
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth

\chapter{Chapter Two}
\input knuth
\stopbodymatter

\startappendices

\page[stop]

\stopappendices

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl

Re: [NTG-context] Documentation for \completecontent

2010-04-18 Thread Wolfgang Werners-Lucchini
> Follows is an example of a document that illustrates 1, above:
> 
> \starttext 
> \startfrontmatter
> 
> \completecontent[alternative=c]
> 
> \setuppagenumbering[state=start,alternative=doublesided,conversion=r
> omannume
> rals]
> 
> \chapter{Preface}
> \input knuth
> 
> \chapter{Introduction}
> \input knuth
> 
> \setuppagenumbering[state=start,alternative=doublesided,conversion=n
> umbers]
> \setuppagenumber[state=start,number=1]
> 
> \stopfrontmatter
> 
> \startbodymatter
> 
> \chapter{Chapter One}
> \input knuth
> 
> \chapter{Chapter Two}
> \input knuth
> \stopbodymatter
> 
> \startappendices
> 
> \page[stop]
> 
> \stopappendices
> 
> \stoptext

This example doesn't produce roman numerals with

ConTeXt  ver: 2010.04.16 00:11 MKIV  fmt: 2010.4.16  int: 
english/english

With mkii they are ok.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [ppchtex] \normalifx: Undefined control sequence

2010-04-18 Thread Hans Hagen

On 17-4-2010 11:10, Denis Bitouzé wrote:

Hello,

thanks to contributors of this list I was able to use ppchtex with
LaTeX when I encountered a "\writestatus: Undefined control sequence"
problem:

http://www.ntg.nl/pipermail/ntg-context/2009/044672.html

Everything went well (though I have a little use of ppchtex) but, as I
tried it some days ago, I was facing another trouble pointed out by the
following MCE:

\listfiles{}
\documentclass{article}
\usepackage{etex,m-pictex,m-ch-en}
\begin{document}
\startchemical
\chemical{2H_2,PLUS,O_2,GIVES,2H_2O}
\stopchemical
\end{document}

The error is:

! Undefined control sequence.
\dodogetgroupargument ->\normalifx


can you check if your ppchtex.noc file has

\input supp-mis.mkii \let\writestatus\undefined
\input syst-gen.mkii
\input syst-fnt.mkii

i.e loads the mkii files?

i font, get the cont-tmf.zip file from our website and unzip it in your 
tex tree (and run mktexlsr afterwards)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] xml count() failing

2010-04-18 Thread Hans Hagen

On 17-4-2010 9:40, Hans van der Meer wrote:

The xml-count() function does not result in 0 when none of the node
sought is absent.

In \writestatus{}{<\xmlfilter{#1}{/img/count()}>}
 correctly returns:  : <1>

But in  one would expect the result to be zero but instead
an error occurs:  : <>

This is a nuisance because a simple \ifcase .. \or ... \else ... \fi now
fails.
! Missing number, treated as zero.

\relax
\@@su:xml:case:frontfigure .../img/count()}\relax
\ifcase
Can this be remedied?


puzzles me as i return 0 in case of nil .. small example needed


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Structuring topics

2010-04-18 Thread Wolfgang Schuster

Am 18.04.10 21:36, schrieb Vyatcheslav Yatskovsky:

Hello,

Pardon me for another small question.

I want to structure my document into topics, surrounded by start/stop, 
numbered and with caption.


I discovered that enumerations do numbering, but don't allow caption 
to pass, and descriptions allow captions, but don't numerate.


Is there a middle of these? )


%\defineenumeration
%[topic]
%[text=Topic,

title=yes,
titleleft=,
titleright=,

%inbetween=\blank,
%after=\blank]

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Structuring topics

2010-04-18 Thread Vyatcheslav Yatskovsky

Hello,

Pardon me for another small question.

I want to structure my document into topics, surrounded by start/stop, 
numbered and with caption.


I discovered that enumerations do numbering, but don't allow caption to 
pass, and descriptions allow captions, but don't numerate.


Is there a middle of these? )


%\defineenumeration
%[topic]
%[text=Topic,
%inbetween=\blank,
%after=\blank]

\definedescription
[topic]
[location=top,
text=Topic ,
inbetween=\blank,
after=\blank]

\starttext

\starttopic{The name of the topic}
bla
\stoptopic

\starttopic
bla-bla
\stoptopic

\stoptext


Regards,
Vyatcheslav
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] A question about \define vs. \def

2010-04-18 Thread Wolfgang Schuster

Am 18.04.10 21:12, schrieb Vyatcheslav Yatskovsky:

Hello,

Patrick posed a good question on wiki at

http://wiki.contextgarden.net/Reference/en/define

"is there any bonus when I use \define instead of \def?"

1. \define checks if the command you try to create already exists,
   if this is the case no new command is created but you get a message
   on the terminal

2. you can give the number of arguments as a number (e.g. \define[2]\...{})
   while \def expects them with the hash (e.g. \def\...#1#2{...})

3. depending on your style you can avoid one '%' at the end of the first 
line


   \def\...#1#2%
 {...}

   vs.

   \define[2]\...
 {...}

4. a disadvantage is that you can't create commands with optional arguments,
   Hans showed a different which made this possible in mkiv but it made it
   in the official version of \define

5. the wiki page mentions you can create \long macros with \define but
   this isn't the case in mkiv because each macro is no \long

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] A question about \define vs. \def

2010-04-18 Thread Vyatcheslav Yatskovsky

Hello,

Patrick posed a good question on wiki at

http://wiki.contextgarden.net/Reference/en/define

"is there any bonus when I use \define instead of \def?"

Regards,
Vyatcheslav
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] fullpage module

2010-04-18 Thread Vyatcheslav Yatskovsky

Hello

Wolfgand, why your fullpage module is not a part of standard Context 
distribution yet?


It is extremely useful!

Regards,
Vyatcheslav
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Documentation for \completecontent

2010-04-18 Thread Tom Benjey
Whoops! I misstated what is happening. I confused myself. Item 2 is the
problem. The TOC and book order are correct. It's just that the introduction
can't have the same fancy header as the chapters without placing that same
header on the TOC, etc.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Documentation for \completecontent

2010-04-18 Thread Wolfgang Schuster

Am 18.04.10 19:42, schrieb Tom:

http://wiki.contextgarden.net/Category:Reference/en includes no references
for \completecontent or \placecontent. "Context the Manual" discusses the
commands a bit but does not define them. Given that \completecontent is
listed in group 2 of the Top Ten Context commands that a beginner might
focus his or her attention on in the introduction to "Context the Manual,"
one might expect a bit more documentation of the command.

I have two problems related to the table of contents that I can't resolve
from my understanding of the documentation:
   

- http://wiki.contextgarden.net/Reference/en/definecombinedlist
- http://wiki.contextgarden.net/Reference/en/completecombinedlist
- http://wiki.contextgarden.net/Reference/en/setupcombinedlist

1. The table of contents is printed out of order in the PDF. It seems that
\completecontent must appear before the preface or foreword if they are to
be listed in the TOC. However, the Chicago Manual of Style calls for them to
be placed before the TOC in the book.
   

\completecontent[criterium=all]

2. The introduction is placed in the frontmatter because placing it in the
bodymatter causes it to be treated as chapter 1. This location results in
the introduction having the same first page header as front matter. That
means that the introduction cannot be given a "fancy" first page similar to
the numbered chapters without giving it to the TOC, etc.
   

\definehead[mycontenttitle][chapter]

\setuphead[mycontenttitle][number=no,...] % fancy setup for the toc header

...

\starttext

\mycontenttitle{Content} % the header for the toc

\placecontent % place the toc *without* a header

...

\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Documentation for \completecontent

2010-04-18 Thread Tom
http://wiki.contextgarden.net/Category:Reference/en includes no references
for \completecontent or \placecontent. "Context the Manual" discusses the
commands a bit but does not define them. Given that \completecontent is
listed in group 2 of the Top Ten Context commands that a beginner might
focus his or her attention on in the introduction to "Context the Manual,"
one might expect a bit more documentation of the command.

I have two problems related to the table of contents that I can't resolve
from my understanding of the documentation:

1. The table of contents is printed out of order in the PDF. It seems that
\completecontent must appear before the preface or foreword if they are to
be listed in the TOC. However, the Chicago Manual of Style calls for them to
be placed before the TOC in the book.

2. The introduction is placed in the frontmatter because placing it in the
bodymatter causes it to be treated as chapter 1. This location results in
the introduction having the same first page header as front matter. That
means that the introduction cannot be given a "fancy" first page similar to
the numbered chapters without giving it to the TOC, etc.

Follows is an example of a document that illustrates 1, above:

\starttext 
\startfrontmatter

\completecontent[alternative=c]

\setuppagenumbering[state=start,alternative=doublesided,conversion=romannume
rals]

\chapter{Preface}
\input knuth

\chapter{Introduction}
\input knuth

\setuppagenumbering[state=start,alternative=doublesided,conversion=numbers]
\setuppagenumber[state=start,number=1]

\stopfrontmatter

\startbodymatter

\chapter{Chapter One}
\input knuth

\chapter{Chapter Two}
\input knuth
\stopbodymatter

\startappendices

\page[stop]

\stopappendices

\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Ligaturing in footnotes.

2010-04-18 Thread Wolfgang Schuster

Am 18.04.10 12:27, schrieb Philipp Gesang:

On 2010-04-18<10:07:35>, Wolfgang Schuster wrote:

Am 17.04.10 12:49, schrieb Philipp Gesang:

After switching to the "smallcaps” font feature set, the surrounding
“default” set is not restored when leaving the group if and only if
the \bgroup was the first token inside the footnote.

(I know lm doesn't offer smcp as font feature but the problem is the
same with the font I'm using.  Try it e.g. on Minion from the acroread
free fonts.)

When you take a closer look you can see kerning is also lost in the first
footnote but when you need smallcaps only for the regular font you can
use typescripts.


Thanks, I'll adapt my typescripts, then.  But shouldn't setting font
features work as well?

I think so, it has also the advantage that you can set italic and boldcaps.

Seems odd that the behaviour that disables
kerning and ligaturing occurs in exactly this particular context.

A nice trick i found in the core (typo-cap.mkiv)

\def\sc{\setfontfeature{smallcaps}} % \addff{smallcaps}?

\definefontfeature [default] [default] [mode=node,onum=yes]
\definefontfeature [smallcaps] [default] [smcp=yes]

\setupenumerations[footnote][before=\char\zerocount\relax]

\setupbodyfont[pagella]

\starttext
\footnote{ \bgroup \sc Test \ -- \egroup Test -- .}
\footnote{ -- \bgroup \sc Test -- \egroup Test -- .}
\footnote{ \bgroup Test -- \egroup Test -- .}
\footnote{ \bgroup \it Test -- \egroup Test -- .}
\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Enumeration

2010-04-18 Thread Wolfgang Schuster

Am 18.04.10 10:53, schrieb Antoine Cailliau:

Ok, I read definition files and I found what I was looking for.

For the archive of the ML:
headstyle, headcolor, titlestyle, titlecolor, titleleft, titleright and text.
   

It well help more when you send a minimal example of your setup.

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Ligaturing in footnotes.

2010-04-18 Thread Philipp Gesang
On 2010-04-18 <10:07:35>, Wolfgang Schuster wrote:
> Am 17.04.10 12:49, schrieb Philipp Gesang:
> >After switching to the "smallcaps” font feature set, the surrounding
> >“default” set is not restored when leaving the group if and only if
> >the \bgroup was the first token inside the footnote.
> >
> >(I know lm doesn't offer smcp as font feature but the problem is the
> >same with the font I'm using.  Try it e.g. on Minion from the acroread
> >free fonts.)
> When you take a closer look you can see kerning is also lost in the first
> footnote but when you need smallcaps only for the regular font you can
> use typescripts.

Thanks, I'll adapt my typescripts, then.  But shouldn't setting font
features work as well?  Seems odd that the behaviour that disables
kerning and ligaturing occurs in exactly this particular context.

Philipp

> \definefontfeature [default] [default] [mode=node,onum=yes]
> \definefontfeature [smallcaps] [default] [smcp=yes]
> 
> \starttypescript [serif] [minion]
> \setups[font:fallback:serif]
> \definefontsynonym [Serif] [file:minionpro-regular] [features=default]
> \definefontsynonym [SerifItalic] [file:minionpro-it] [features=default]
> \definefontsynonym [SerifBold] [file:minionpro-bold] [features=default]
> \definefontsynonym [SerifBoldItalic] [file:minionpro-boldit]
> [features=default]
> \definefontsynonym [SerifCaps] [file:minionpro-regular] [features=smallcaps]
> \stoptypescript
> 
> \definetypeface[mainface][rm][serif][minion][default]
> 
> \setupbodyfont[mainface]
> 
> \starttext
> \footnote{ \bgroup \sc Test -- \egroup Test -- .}
> \footnote{ -- \bgroup \sc Test -- \egroup Test -- .}
> \footnote{ \bgroup Test -- \egroup Test -- .}
> \footnote{ \bgroup \it Test -- \egroup Test -- .}
> \stoptext
> 
> Wolfgang
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Enumeration

2010-04-18 Thread Antoine Cailliau
Ok, I read definition files and I found what I was looking for.

For the archive of the ML:
headstyle, headcolor, titlestyle, titlecolor, titleleft, titleright and text.

Cheers,

Antoine

On 18 April 2010 10:36, Antoine Cailliau  wrote:
> Hi,
>
> Thanks a lot, this is exactly what I was looking for.
>
> Is there a way to edit the style of the title, like with caption ? Where
> is it documented (If any) ?
>
> Thanks in advance,
>
> Antoine
>
> On Sun, 2010-04-18 at 09:15 +0200, Wolfgang Schuster wrote:
>> Am 17.04.10 15:27, schrieb Antoine Cailliau:
>> > Hi all,
>> >
>> > I'm working on my thesis and I need a mechanism very similar to float
>> > and its reference/caption facilities except it can't be floating.
>> >
>> > My problem is the following: I've boxes to display corresponding to
>> > operators. They should be numbered (like figure, tables, etc.) and
>> > having a list is a plus and I should be able to do \about[myoperator] to
>> > display the name of the operator.
>> >
>> > I tried to declare a float and it works perfectly, except it is floating
>> > and do not respect the flow I would like to have.
>> >
>> > I tried enumeration but I can't do \about and I really need it.
>> >
>> \setupinteraction[state=start]
>> \defineenumeration[test][title=yes]
>> \starttext
>> text \about[test] text
>> \page
>> \starttest[test]{knuth} \input knuth\par \stoptest
>> \stoptext
>>
>> Wolfgang
>>
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>> ___
> --
> Antoine Cailliau
> www.ac-graphic.net
>
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Enumeration

2010-04-18 Thread Antoine Cailliau
Hi,

Thanks a lot, this is exactly what I was looking for.

Is there a way to edit the style of the title, like with caption ? Where
is it documented (If any) ?

Thanks in advance,

Antoine

On Sun, 2010-04-18 at 09:15 +0200, Wolfgang Schuster wrote:
> Am 17.04.10 15:27, schrieb Antoine Cailliau:
> > Hi all,
> >
> > I'm working on my thesis and I need a mechanism very similar to float
> > and its reference/caption facilities except it can't be floating.
> >
> > My problem is the following: I've boxes to display corresponding to
> > operators. They should be numbered (like figure, tables, etc.) and
> > having a list is a plus and I should be able to do \about[myoperator] to
> > display the name of the operator.
> >
> > I tried to declare a float and it works perfectly, except it is floating
> > and do not respect the flow I would like to have.
> >
> > I tried enumeration but I can't do \about and I really need it.
> >
> \setupinteraction[state=start]
> \defineenumeration[test][title=yes]
> \starttext
> text \about[test] text
> \page
> \starttest[test]{knuth} \input knuth\par \stoptest
> \stoptext
> 
> Wolfgang
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
-- 
Antoine Cailliau
www.ac-graphic.net

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Ligaturing in footnotes.

2010-04-18 Thread Wolfgang Schuster

Am 17.04.10 12:49, schrieb Philipp Gesang:

Hi again,


footnotes keep me busy:

···8<··
\def\sc{\setfontfeature{smallcaps}}

\definefontfeature [default][default]
  [mode=node,onum=yes,liga=yes]

\definefontfeature [smallcaps][default]
  [mode=node,onum=yes,smcp=yes,liga=yes]

\starttext
\footnote{ \bgroup \sc Test -- \egroup Test -- .} % disables ligaturing
\footnote{ -- \bgroup \sc Test -- \egroup Test -- .} % works fine (!?)
\footnote{ \bgroup Test -- \egroup Test -- .} % works fine
\footnote{ \bgroup \it Test -- \egroup Test -- .} % works fine
\stoptext
···8<··

After switching to the "smallcaps” font feature set, the surrounding
“default” set is not restored when leaving the group if and only if
the \bgroup was the first token inside the footnote.

(I know lm doesn't offer smcp as font feature but the problem is the
same with the font I'm using.  Try it e.g. on Minion from the acroread
free fonts.)
   

When you take a closer look you can see kerning is also lost in the first
footnote but when you need smallcaps only for the regular font you can
use typescripts.

\definefontfeature [default] [default] [mode=node,onum=yes]
\definefontfeature [smallcaps] [default] [smcp=yes]

\starttypescript [serif] [minion]
\setups[font:fallback:serif]
\definefontsynonym [Serif] [file:minionpro-regular] [features=default]
\definefontsynonym [SerifItalic] [file:minionpro-it] [features=default]
\definefontsynonym [SerifBold] [file:minionpro-bold] [features=default]
\definefontsynonym [SerifBoldItalic] [file:minionpro-boldit] 
[features=default]

\definefontsynonym [SerifCaps] [file:minionpro-regular] [features=smallcaps]
\stoptypescript

\definetypeface[mainface][rm][serif][minion][default]

\setupbodyfont[mainface]

\starttext
\footnote{ \bgroup \sc Test -- \egroup Test -- .}
\footnote{ -- \bgroup \sc Test -- \egroup Test -- .}
\footnote{ \bgroup Test -- \egroup Test -- .}
\footnote{ \bgroup \it Test -- \egroup Test -- .}
\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] basic \cite[]

2010-04-18 Thread Wolfgang Schuster

Am 18.04.10 08:31, schrieb Taco Hoekwater:

On the criterium vs. criterion: this bad 'translation' is actually
a keyword left over from the Dutch interface. It has been this
way since 1996 I think. Actually changing it is not an option.
but perhaps an alias could be created. I have also created a
tracker item for that.

As internal command you can't change the name but a synonym
for the users is easy:

\setinterfacevariable{criterium}{criterion}

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Enumeration

2010-04-18 Thread Wolfgang Schuster

Am 17.04.10 15:27, schrieb Antoine Cailliau:

Hi all,

I'm working on my thesis and I need a mechanism very similar to float
and its reference/caption facilities except it can't be floating.

My problem is the following: I've boxes to display corresponding to
operators. They should be numbered (like figure, tables, etc.) and
having a list is a plus and I should be able to do \about[myoperator] to
display the name of the operator.

I tried to declare a float and it works perfectly, except it is floating
and do not respect the flow I would like to have.

I tried enumeration but I can't do \about and I really need it.
   

\setupinteraction[state=start]
\defineenumeration[test][title=yes]
\starttext
text \about[test] text
\page
\starttest[test]{knuth} \input knuth\par \stoptest
\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___