[NTG-context] Label to delete in the table of contents

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Mon Aug 24 15:12:29 CEST 2020


Fabrice Couvreur schrieb am 23.08.2020 um 16:02:
> Hello,
> For the title of the chapters I use the following command.
>
> \unexpanded\def\HeadTitle#1#2%
>    {\framed
> [frame=off,
>        width=fit,
>        align=flushleft]
>  {\color[darkgray]{\tfxx\cap\bf\labeltext{chapter}}
> \blank#1\blank#2}
>
> When I compile my project, I have the label "Chapitre" above the word 
> "Sommaire" in the table of contents : how to delete it ?

1. Don't apply the command to \title

\setuphead[title][command=]


2. Make the command local to bodypart of your document, this works only 
when you use section blocks (e.g. \startbodymatter)

\startsectionblockenvironment[bodypart]
     \setuphead[chapter][command=\HeadTitle]
\stopsectionblockenvironment


Wolfgang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200824/51965094/attachment.htm>


More information about the ntg-context mailing list