* Unusual TOC
@ 2008-06-16 18:45 Maurício
2008-06-17 9:28 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Maurício @ 2008-06-16 18:45 UTC (permalink / raw)
To: ntg-context
Hi,
I'm typesetting a book where prose and verse alternate in
chapters, i.e., you have one chapter of prose, one of verse, one
of prose etc.
I would like to generate a TOC for that book, but chapters have no
name or numbers. I was told by the author that the usual thing to
do is to take the first few words of each chapter and use those in
the index.
I know how to do that using a few small tricks, but I would like
to know if there's a standard way to do that. Are you aware of
any?
Thanks,
Maurício
___________________________________________________________________________________
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] 2+ messages in thread
* Re: Unusual TOC
2008-06-16 18:45 Unusual TOC Maurício
@ 2008-06-17 9:28 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2008-06-17 9:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Jun 16, 2008 at 8:45 PM, Maurício <briqueabraque@yahoo.com> wrote:
> Hi,
>
> I'm typesetting a book where prose and verse alternate in
> chapters, i.e., you have one chapter of prose, one of verse, one
> of prose etc.
>
> I would like to generate a TOC for that book, but chapters have no
> name or numbers. I was told by the author that the usual thing to
> do is to take the first few words of each chapter and use those in
> the index.
>
> I know how to do that using a few small tricks, but I would like
> to know if there's a standard way to do that. Are you aware of
> any?
\defineselector[title][max=2,n=2]
\setuplist
[chapter]
[width=0pt]
\setuphead
[chapter]
[number=no,
incrementnumber=list]
\starttext
\start
\setupselector[title][n=1]
\completecontent
\stop
\chapter{\select{title}{Short header}{Long header version}}
\chapter{\select{title}{Another header}{Another long version for the text}}
\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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-17 9:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-16 18:45 Unusual TOC Maurício
2008-06-17 9:28 ` Wolfgang Schuster
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).