Hello, There must be two tables of contents in my document, one in a native language and the other in english. In LaTeX I made new commands \enchapter, \ensection, etc., which I use just after the \chapter or \section command. How do I make such commands in ConTeXt, so that these commands just insert a line into the english table of contents, but do not insert chapter or section in the current page? Thanks, Marius
Am 29.04.10 12:12, schrieb Marius:
Hello,
There must be two tables of contents in my document, one in a native language and the other in english. In LaTeX I made new commands \enchapter, \ensection, etc., which I use just after the \chapter or \section command.
How do I make such commands in ConTeXt, so that these commands just insert a line into the english table of contents, but do not insert chapter or section in the current page?
\mainlanguage[de] \starttext \completecontent %\start\language[en] \start\mainlanguage[en] \completecontent \stop \chapter{\translate[en=Chapter One,de=Kapitel Eins]} \chapter{\translate[en=Chapter Two,de=Kapitel Zwei]} \stoptext Wolfgang
Thank you, Wolfgang for the example. I can't believe this is so simple
in ConTeXt. I added this example to wiki.
http://wiki.contextgarden.net/Table_of_Contents
On Thu, Apr 29, 2010 at 1:19 PM, Wolfgang Schuster
Am 29.04.10 12:12, schrieb Marius:
Hello,
There must be two tables of contents in my document, one in a native language and the other in english. In LaTeX I made new commands \enchapter, \ensection, etc., which I use just after the \chapter or \section command.
How do I make such commands in ConTeXt, so that these commands just insert a line into the english table of contents, but do not insert chapter or section in the current page?
\mainlanguage[de]
\starttext
\completecontent
%\start\language[en] \start\mainlanguage[en] \completecontent \stop
\chapter{\translate[en=Chapter One,de=Kapitel Eins]}
\chapter{\translate[en=Chapter Two,de=Kapitel Zwei]}
\stoptext
Wolfgang
One more question regarding the table of contents. I have looked in the wiki and manuals and can't figure out how to enable entries for \title, \subject, \subsubject ... in the table of contents? Thanks, Marius
Am 29.04.10 22:17, schrieb Marius:
One more question regarding the table of contents. I have looked in the wiki and manuals and can't figure out how to enable entries for \title, \subject, \subsubject ... in the table of contents?
This works in MkII and MkIV: \setuphead[subject][incrementnumber=list] \starttext \title{Contents} \placelist[chapter,section,subject] \chapter{Chapter} \section{Section} \subject{Subject} \stoptext Wolfgang
I redone your example, see attached files.
Is it ok to redefine combined list like I did?
And how to I do that everything that precedes the table of contents
does not appear in the table of contents?
Thanks,
Marius
On Fri, Apr 30, 2010 at 9:55 AM, Wolfgang Schuster
Am 29.04.10 22:17, schrieb Marius:
One more question regarding the table of contents. I have looked in the wiki and manuals and can't figure out how to enable entries for \title, \subject, \subsubject ... in the table of contents?
This works in MkII and MkIV:
\setuphead[subject][incrementnumber=list]
\starttext
\title{Contents}
\placelist[chapter,section,subject]
\chapter{Chapter}
\section{Section}
\subject{Subject}
\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 ___________________________________________________________________________________
Am 30.04.10 10:41, schrieb Marius:
I redone your example, see attached files.
Is it ok to redefine combined list like I did?
And how to I do that everything that precedes the table of contents does not appear in the table of contents?
\setuphead[title][incrementnumber=list] \setuphead[subject][incrementnumber=list] \setuphead[subsubject][incrementnumber=list] \setuphead[subsubsubject][incrementnumber=list] \setuphead[subsubsubsubject][incrementnumber=list] \setupheads[sectionstopper=.] \definecombinedlist [content] [part, chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection, title, subject, subsubject, subsubsubject, subsubsubsubject, subsubsubsubsubject] [criterium=all] \startsectionblockenvironment[frontpart] \setuphead[title,subject,subsubject][incrementnumber=no] \stopsectionblockenvironment \starttext \startfrontmatter \title{This title should not be in the table of contents} \subject{This Subject should not be in the table of contents} \subject{This Subject should not be in the table of contents} \subsubject{This subSubject should not be in the table of contents} \title{This Contents title should not be in the table of contents} \placecontent \stopfrontmatter \startbodymatter \chapter{Chapter} \section{Section} \subject{Subject} \subsubject{subSubject} \subsection{Subject} \section{Section} \section{Section} \stopbodymatter \stoptext Wolfgang
participants (2)
-
Marius
-
Wolfgang Schuster