[NTG-context] Two coexisting number conversions (in headers and in texts)

2014-05-14 Thread Maggyero
 Try this:
 \setupheadertexts[{\convertnumber{Romannumerals}{\namedheadnumber{chapter}}\quad\getmarking[chapter]}]

Thanks 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] Two coexisting number conversions (in headers and in texts)

2014-05-09 Thread Maggyero
Hello,


How can I achieve this chapter numbering?

— page 1:

I My chapter (header)
-
First My chapter (text)

— page 2:

II My chapter (header)
--
II My chapter (text)


That is to say having every chapter number in roman numeral except the
first one but only in the text (not in the header).

For the moment I can achieve only the chapter numbering for the text but
not for the header:

\define[1]{\myconversion}{\ifcase #1\relax \or First\else
\convertnumber{Romannumerals}{#1}\fi}
\defineconversion[myconversion][\myconversion]
\setuphead[chapter][conversion=myconversion]
\setupheadertexts[{\getmarking[chapternumber]\quad\getmarking[chapter]}]

\starttext
\startchapter[title=My chapter]
\stopchapter
\startchapter[title=My chapter]
\stopchapter
\stoptext


Best regards.
___
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
___