Hi all, what is the magic option in \setuplist to put a word before the chapter's number like Chapter 1 First chapter instead of 1 First chapter ? Many thanks -- Diego Depaoli
Dear Diego,
Try
\def\chaplistcom#1{Chapter~#1}
\setuplist[chapter][
numbercommand=\chaplistcom,
]
Best regards, Mikael
On Fri, Sep 26, 2008 at 1:14 PM, Diego Depaoli
Hi all, what is the magic option in \setuplist to put a word before the chapter's number like Chapter 1 First chapter instead of 1 First chapter ?
Many thanks -- Diego Depaoli ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Diego Depaoli wrote:
2008/9/26 Mikael Persson
: Dear Diego,
Try
\def\chaplistcom#1{Chapter~#1} \setuplist[chapter][ numbercommand=\chaplistcom, ] It works, many thanks. Why this simple option it isn't 'hardcoded'?
well, because i don't like to see that label always (actually never use it) but you can do \setuplabeltext [en] [chapter=Chapter~] % or any other language and then you don't need the numbercommand trick Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
2008/9/26 Hans Hagen
well, because i don't like to see that label always (actually never use it) but you can do I approached TeX trying to solve this nightmare. I write often legal documents with weird sectioning/numbering/naming. \defineenumeration helps, but sometime it's not enough.
Regards -- Diego Depaoli
Am 26.09.2008 um 13:21 schrieb Mikael Persson:
Dear Diego,
Try
\def\chaplistcom#1{Chapter~#1} \setuplist[chapter][ numbercommand=\chaplistcom, ]
\setuplabeltext[en][chapter=Chapter~] \setuplist[chapter][numbercommand=\groupedcommand{\labeltext{chapter}} {},width=2.5cm] Wolfgang
On Sun, Sep 28, 2008 at 11:54 PM, Diego Depaoli
2008/9/27 Wolfgang Schuster
: \setuplabeltext[en][chapter=Chapter~]
\setuplist[chapter][numbercommand=\groupedcommand{\labeltext{chapter}} {},width=2.5cm]
Simply perfect!!! A lot of thanks
Another solution: \setuplabeltext[en][chapter=Chapter~] \setuplist[chapter][label=yes,width=2.5cm] Wolfgang
Am 26.09.2008 um 13:14 schrieb Diego Depaoli:
Hi all, what is the magic option in \setuplist to put a word before the chapter's number like Chapter 1 First chapter instead of 1 First chapter ?
\setuplabeltext[chapter=Chapter ] or \setuplabeltext[en][chapter=Chapter ] Regards, Wolfgang
participants (4)
-
Diego Depaoli
-
Hans Hagen
-
Mikael Persson
-
Wolfgang Schuster