Open main menu

Changes

explain location and label
</cd:parameter>
<cd:parameter name="location">
<cd:paramdoc>If you use {{cmd|writebetweenlist}}, "here" cares for using the current location (page number).</cd:paramdoc>
<cd:constant type="none"></cd:constant>
<cd:constant type="here"></cd:constant>
<cd:parameter name="criterium">
<cd:paramdoc>Default criterium is <cd:iref name="criterium" type="local"/> for a newly defined list. That can cause an empty {{cmd|placelist}}. Criterium <cd:iref name="criterium" type="component"/> is used to establish [http://wiki.contextgarden.net/Table_of_Contents#ToC_.28and_other_lists.29_via_project_structures ToC (and other lists) via project structures].</cd:paramdoc>
<cd:constant default="yes" type="local">list of the current section/chapter</cd:constant>
<cd:constant type="intro"></cd:constant>
<cd:constant type="reference"></cd:constant>
<cd:constant method="range" prefix="cd:sectionblock" type="reference"></cd:constant>
<cd:constant type="all">complete list (e.g. ToC of a whole book)</cd:constant>
<cd:constant method="range" prefix="cd:sectionblock" type="all"></cd:constant>
<cd:constant type="text"></cd:constant>
</cd:parameter>
<cd:parameter name="list">
<cd:paramdoc>Inherit settings from this named list</cd:paramdoc>
<cd:constant type="cd:name"></cd:constant>
</cd:parameter>
</cd:parameter>
<cd:parameter name="label">
<cd:paramdoc>Use an automatical, language dependent label like “chapter” in front of the list entries (see {{cmd|setuplabeltext}}.</cd:paramdoc> <cd:constant type="yes">use label</cd:constant> <cd:constant default="yes" type="no">don’t use a label</cd:constant>
<cd:constant type="none"></cd:constant>
<cd:constant type="cd:name">use your own named label</cd:constant>
</cd:parameter>
<cd:parameter name="starter">
<cd:paramdoc>Gets inserted before the (section) number</cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="stopper">
<cd:paramdoc>Gets inserted after the (section) number</cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="command">
<cd:paramdoc>Replace the rendering of the whole list entry with your own macro (number, text, page no.).</cd:paramdoc>
<cd:constant type="cd:threearguments"></cd:constant>
</cd:parameter>
<cd:parameter name="numbercommand">
<cd:paramdoc>Replace the rendering of the number with your own macro.</cd:paramdoc>
<cd:constant type="cd:oneargument"></cd:constant>
</cd:parameter>
<cd:parameter name="textcommand">
<cd:paramdoc>Replace the rendering of the list entry text with your own macro.</cd:paramdoc>
<cd:constant type="cd:oneargument"></cd:constant>
</cd:parameter>
<cd:parameter name="pagecommand">
<cd:paramdoc>Replace the rendering of the page number with your own macro.</cd:paramdoc>
<cd:constant type="cd:oneargument"></cd:constant>
</cd:parameter>
<cd:parameter list="yes" name="pagenumber">
<cd:paramdoc>Show page number?</cd:paramdoc>
<cd:constant default="yes" type="yes"></cd:constant>
<cd:constant type="no"></cd:constant>
</cd:parameter>
<cd:parameter name="headnumber">
<cd:paramdoc>Show head number?</cd:paramdoc>
<cd:constant default="yes" type="yes"></cd:constant>
<cd:constant type="no"></cd:constant>
</cd:parameter>
<cd:parameter name="before">
<cd:paramdoc>Insert before list.</cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="after">
<cd:paramdoc>Insert after list.</cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="inbetween">
<cd:paramdoc>Insert between list entries.</cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
</cd:parameter>
<cd:parameter name="aligntitle">
<cd:paramdoc>should an unnumbered section will align in the table of contents under the number rather than the title?</cd:paramdoc>
<cd:constant type="yes"></cd:constant>
<cd:constant default="yes" type="no"></cd:constant>
</cd:parameter>
<cd:parameter name="numberalign">
<cd:paramdoc>Alignment of the number</cd:paramdoc>
<cd:constant type="left"></cd:constant>
<cd:constant type="right"></cd:constant>
</cd:parameter>
<cd:parameter name="align">
<cd:paramdoc>Alignment of the text</cd:paramdoc>
<cd:inherit name="setupalign"></cd:inherit>
</cd:parameter>
<cd:parameter name="hang">
<cd:paramdoc>indented text after number?</cd:paramdoc>
<cd:constant default="yes" type="yes"></cd:constant>
<cd:constant type="no"></cd:constant>
</cd:parameter>
<cd:parameter name="left">
<cd:paramdoc>Insert before entry text</cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="right">
<cd:paramdoc>Insert after entry text</cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
</cd:parameter>
<cd:parameter name="style">
<cd:paramdoc>style of the whole entry</cd:paramdoc>
<cd:constant type="cd:style"></cd:constant>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="color">
<cd:paramdoc>color of the whole entry</cd:paramdoc>
<cd:constant type="cd:color"></cd:constant>
</cd:parameter>
<cd:parameter name="numberstyle">
<cd:paramdoc>style of the number</cd:paramdoc>
<cd:constant type="cd:style"></cd:constant>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="numbercolor">
<cd:paramdoc>color of the number</cd:paramdoc>
<cd:constant type="cd:color"></cd:constant>
</cd:parameter>
<cd:parameter name="textstyle">
<cd:paramdoc>style of the entry text</cd:paramdoc>
<cd:constant type="cd:style"></cd:constant>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="textcolor">
<cd:paramdoc>color of the entry text</cd:paramdoc>
<cd:constant type="cd:color"></cd:constant>
</cd:parameter>
<cd:parameter name="pagestyle">
<cd:paramdoc>style of the page number</cd:paramdoc>
<cd:constant type="cd:style"></cd:constant>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="pagecolor">
<cd:paramdoc>color of the page number</cd:paramdoc>
<cd:constant type="cd:color"></cd:constant>
</cd:parameter>
</cd:parameter>
<cd:parameter name="extras">
<cd:paramdoc>Trick to insert stuff into a list, e.g. page breaks</cd:paramdoc>
<cd:constant type="cd:name"></cd:constant>
</cd:parameter>
<cd:parameter name="order">
<cd:paramdoc>Sort entries?</cd:paramdoc>
<cd:constant type="command"></cd:constant>
<cd:constant type="all"></cd:constant>
</cd:parameter>
<cd:parameter name="maxwidth">
<cd:paramdoc>Max. width of the entry text</cd:paramdoc>
<cd:constant type="cd:dimension"></cd:constant>
</cd:parameter>
<cd:parameter name="pageprefix">
<cd:paramdoc>prefix of the page number; see <tt>prefix</tt> in {{cmd|setupcounter}}</cd:paramdoc>
<cd:constant type="yes"></cd:constant>
<cd:constant type="no"></cd:constant>
</cd:parameter>
<cd:parameter name="pagestarter">
<cd:paramdoc>Insert before the page number</cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
<cd:constant method="apply" prefix="cd:processor" type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="pagestopper">
<cd:paramdoc>Insert after the page number</cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
<cd:constant method="apply" prefix="cd:processor" type="cd:command"></cd:constant>
\stoptext
</context>
</cd:example><cd:example title="Use different alternatives for different levels in the same ToC">You can use different alternatives for different levels. <context source="yes">\setuppapersize[A7,landscape]\setuplist[alternative=c]\setuplist[subsection][alternative=d] \starttext \placecontent \hairline \section{Section} \subsection{Subsection} \subsubsection{Subsubsection}\stoptext</context></cd:example><cd:example title="Left-hand page numbers">The following example positions the page number to the left of the list entry title:
<texcode>
<cd:commandref name="definecombinedlist"></cd:commandref>
<cd:commandref name="definelistalternative"></cd:commandref>
<cd:wikipage page="Table of Contents"></cd:wikipage><cd:commandref name="writebetweenlist"></cd:commandref><cd:commandref name="writetolist"></cd:commandref></cd:seealso>
</cd:commandgroup>