* Formatting TOC
@ 2008-09-26 11:14 Diego Depaoli
2008-09-26 11:21 ` Mikael Persson
2008-09-26 11:37 ` Wolfgang Schuster
0 siblings, 2 replies; 10+ messages in thread
From: Diego Depaoli @ 2008-09-26 11:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Formatting TOC
2008-09-26 11:14 Formatting TOC Diego Depaoli
@ 2008-09-26 11:21 ` Mikael Persson
2008-09-26 11:49 ` Diego Depaoli
2008-09-27 7:03 ` Wolfgang Schuster
2008-09-26 11:37 ` Wolfgang Schuster
1 sibling, 2 replies; 10+ messages in thread
From: Mikael Persson @ 2008-09-26 11:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
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 <trebestie@gmail.com> wrote:
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Formatting TOC
2008-09-26 11:14 Formatting TOC Diego Depaoli
2008-09-26 11:21 ` Mikael Persson
@ 2008-09-26 11:37 ` Wolfgang Schuster
1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2008-09-26 11:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Formatting TOC
2008-09-26 11:21 ` Mikael Persson
@ 2008-09-26 11:49 ` Diego Depaoli
2008-09-26 12:43 ` Hans Hagen
2008-09-27 7:03 ` Wolfgang Schuster
1 sibling, 1 reply; 10+ messages in thread
From: Diego Depaoli @ 2008-09-26 11:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
2008/9/26 Mikael Persson <mickep@gmail.com>:
> Dear Diego,
>
> Try
>
> \def\chaplistcom#1{Chapter~#1}
> \setuplist[chapter][
> numbercommand=\chaplistcom,
> ]
It works, many thanks.
Why this simple option it isn't 'hardcoded'?
--
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Formatting TOC
2008-09-26 11:49 ` Diego Depaoli
@ 2008-09-26 12:43 ` Hans Hagen
2008-09-26 15:00 ` Diego Depaoli
0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2008-09-26 12:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
Diego Depaoli wrote:
> 2008/9/26 Mikael Persson <mickep@gmail.com>:
>> 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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Formatting TOC
2008-09-26 12:43 ` Hans Hagen
@ 2008-09-26 15:00 ` Diego Depaoli
0 siblings, 0 replies; 10+ messages in thread
From: Diego Depaoli @ 2008-09-26 15:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
2008/9/26 Hans Hagen <pragma@wxs.nl>:
> 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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Formatting TOC
2008-09-26 11:21 ` Mikael Persson
2008-09-26 11:49 ` Diego Depaoli
@ 2008-09-27 7:03 ` Wolfgang Schuster
2008-09-28 21:54 ` Diego Depaoli
1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2008-09-27 7:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Formatting TOC
2008-09-27 7:03 ` Wolfgang Schuster
@ 2008-09-28 21:54 ` Diego Depaoli
2008-10-10 10:02 ` Wolfgang Schuster
0 siblings, 1 reply; 10+ messages in thread
From: Diego Depaoli @ 2008-09-28 21:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
2008/9/27 Wolfgang Schuster <schuster.wolfgang@googlemail.com>:
>
> \setuplabeltext[en][chapter=Chapter~]
>
> \setuplist[chapter][numbercommand=\groupedcommand{\labeltext{chapter}}
> {},width=2.5cm]
Simply perfect!!!
A lot of 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Formatting TOC
2008-09-28 21:54 ` Diego Depaoli
@ 2008-10-10 10:02 ` Wolfgang Schuster
0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2008-10-10 10:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, Sep 28, 2008 at 11:54 PM, Diego Depaoli <trebestie@gmail.com> wrote:
> 2008/9/27 Wolfgang Schuster <schuster.wolfgang@googlemail.com>:
>>
>> \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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Formatting TOC
@ 2015-08-03 9:22 robheus
0 siblings, 0 replies; 10+ messages in thread
From: robheus @ 2015-08-03 9:22 UTC (permalink / raw)
To: ntg-context
Hello list,
I need some adjustments to my TOC and chapter titles.
1. The title and the title of every chapter need to be indented (leaving
enough room
2. The title of part does not need to be indented, but uses two
consecutive lines, preceded and followed with a blank line, as follows
DEEL <part number>
<part title>
3. Chapter entries are on consecutive lines, except that between the
first and second, and before the last chapter entry there is a blank
line.
(I use "\setuplist[chapter][before=]" and tried to use
"\writebetweenlist[content]{\blank}" at the specified locations to get
blank lines there, but this didn't work)
4. The part number needs to be capital roman numbers, and titles of
chapters are preceded with the capital roman part number.
(The option "conversion=Romannumerals" in "\setuphead[part]" doesn't
seem to work)
5. There are 2 parts, part 1 with 5 chapters, part 2 with 4 chapters.
Chapter numbering of part 1 only starts with 0 instead of 1.
(I use currently the "ownnumber" option of \startchapter for all
chapters of part 1, but is there a more simple or elegant option for
this, just setting the chapter number 0 directly after part 1 starts or
so?)
Greetings,
Rob
The code I use now, is below:
\setupheadtext[content=INHOUDSOPGAVE] % Kop boven de inhoudsopgave
\setuphead[title][align=flushleft]
\definecombinedlist[content][part,chapter] % welke structuur-elementen
in de inhoudsopgave komen
\setupcombinedlist[content][level=2, alternative=b]
\setuphead[part][placehead=no,bodypartlabel=Deel,conversion=Romannumerals]
\setuphead[chapter][page=right,indentnext=yes,align={nothyphenated},style=\bf,after={\blank[2cm]},sectionsegments=part:chapter]
\setuphead[section][style=\bf,indentnext=yes,sectionsegments=chapter:section,align={nothyphenated}]
\setuphead[subject][indentnext=yes,style=\tf]
\define[3]\PartListEntry{
\vbox{DEEL #1\crlf #2}
}
\setuplist[part][state=start,headnumber=no,pagenumber=no,alternative=command,command=\PartListEntry]
\setuplist[chapter][before=]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-08-03 9:22 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-26 11:14 Formatting TOC Diego Depaoli
2008-09-26 11:21 ` Mikael Persson
2008-09-26 11:49 ` Diego Depaoli
2008-09-26 12:43 ` Hans Hagen
2008-09-26 15:00 ` Diego Depaoli
2008-09-27 7:03 ` Wolfgang Schuster
2008-09-28 21:54 ` Diego Depaoli
2008-10-10 10:02 ` Wolfgang Schuster
2008-09-26 11:37 ` Wolfgang Schuster
2015-08-03 9:22 robheus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).