Hi! I have two question about table of contents. 1) is it possible to have the toc at the end of the document. I tried to place \placecontent or \completecontent at the end and it didn't work; I only managed to have the toc at the beginning of the document. 2) If I define my own header (like in ConTeXt an excursion: 5. Headers) and so, for example, replacing \section by \myheader, which has a section level, the table of content is empty! If the information is in another document, please give me a pointer, thanks! Alain
Hello!
On Sun, Mar 21, 2010 at 11:18 AM, Alain Delmotte
2) If I define my own header (like in ConTeXt an excursion: 5. Headers) and so, for example, replacing \section by \myheader, which has a section level, the table of content is empty!
I have a working system like that in several of my docs (all similar, though) - but if I recall correctly (won't have access to the files until tomorrow), it only works in ConTeXt MkII, which is one of the main reasons that I still use that version for almost all of my work. If you put %engine=pdftex in the beginning of the file in question and then run ConTeXt (check that it really uses MkII for that run), does the TOC appear? Mari (one of these days I'll get around to installing working ConTeXt on my home computer(s), too...)
Am 21.03.10 10:18, schrieb Alain Delmotte:
Hi!
I have two question about table of contents.
1) is it possible to have the toc at the end of the document. I tried to place \placecontent or \completecontent at the end and it didn't work; I only managed to have the toc at the beginning of the document.
2) If I define my own header (like in ConTeXt an excursion: 5. Headers) and so, for example, replacing \section by \myheader, which has a section level, the table of content is empty!
If the information is in another document, please give me a pointer, thanks! Mark 2:
\definehead[mysection][section] \setuphead[mysection][coupling=section] \starttext \chapter{One} \section{One.One} \mysection{One.Two} \completecontent[criterium=all] \stoptext Mark 4: \definehead[mysection][section] \starttext \chapter{One} \section{One.One} \mysection{One.Two} \title{Contents} \placelist[chapter,section,mysection][criterium=all] \stoptext Wolfgang
Hi! Thanks Mario and Wolfgang. The \placelist command solved both problems. Alain Wolfgang Schuster a écrit :
Am 21.03.10 10:18, schrieb Alain Delmotte:
Hi!
I have two question about table of contents.
1) is it possible to have the toc at the end of the document. I tried to place \placecontent or \completecontent at the end and it didn't work; I only managed to have the toc at the beginning of the document.
2) If I define my own header (like in ConTeXt an excursion: 5. Headers) and so, for example, replacing \section by \myheader, which has a section level, the table of content is empty!
If the information is in another document, please give me a pointer, thanks! Mark 2:
\definehead[mysection][section]
\setuphead[mysection][coupling=section]
\starttext
\chapter{One}
\section{One.One}
\mysection{One.Two}
\completecontent[criterium=all]
\stoptext
Mark 4:
\definehead[mysection][section]
\starttext
\chapter{One}
\section{One.One}
\mysection{One.Two}
\title{Contents}
\placelist[chapter,section,mysection][criterium=all]
\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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (4)
-
Alain Delmotte
-
Alain Delmotte
-
Mari Voipio
-
Wolfgang Schuster