[NTG-context] Getting ONE, TWO... for chapters

jbf roma83537 at gmail.com
Sat Jan 1 22:27:20 CET 2022


I knew it had to be simple! Just couldn't get the right combinations.

Feliz Año Nuevo para ti también, y muchas gracias,

Julian

On 2/1/22 7:56 am, Jairo A. del Rio wrote:
>
>
> El sáb, 1 ene 2022 a la(s) 15:37, jbf via ntg-context 
> (ntg-context at ntg.nl <mailto:ntg-context at ntg.nl>) escribió:
>
>     Am typesetting a book that has 'STUDY ONE', 'STUDY TWO' etc. in
>     place of
>     CHAPTER ONE, etc. I have no difficulty getting 'STUDY' with
>     \setuplabeltext[chapter=STUDY~], and I can achieve 'STUDY One'
>     with the
>     key conversion=Words in \setuphead[chapter].
>
>     My question: how do I get ONE instead of One.
>
>     I tried conversion=WORDS (or WORD), but that is not recognised and
>     the
>     output then becomes STUDY 1, which I don't want.
>
>     I also tried playing with
>     \definestructureconversionset[myconversion][
>     ,A,] then adding the numberconversionset=myconversion to \setuphead.
>
>     There must be a simple way to achieve the desire result, and to be
>     honest I'm wondering why WORD does not work? Any thoughts?
>
>
> Like this?
>
> \setuplabeltext[chapter={Study~,}]
> \setuphead[chapter][conversion=words,numberstyle=\WORDS]
> \starttext
> \startchapter[title=Feliz año nuevo!]
> \input{tufte}
> \stopchapter
> \stoptext
>
> I hope it helps. Happy new year!
>
> Jairo
>
>     Julian
>
>     ___________________________________________________________________________________
>     If your question is of interest to others as well, please add an
>     entry to the Wiki!
>
>     maillist : ntg-context at ntg.nl <mailto:ntg-context at ntg.nl> /
>     http://www.ntg.nl/mailman/listinfo/ntg-context
>     <http://www.ntg.nl/mailman/listinfo/ntg-context>
>     webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl> /
>     http://context.aanhet.net <http://context.aanhet.net>
>     archive  : https://bitbucket.org/phg/context-mirror/commits/
>     <https://bitbucket.org/phg/context-mirror/commits/>
>     wiki     : http://contextgarden.net <http://contextgarden.net>
>     ___________________________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220102/7b8bc4bf/attachment.htm>


More information about the ntg-context mailing list