[NTG-context] adding extra space before section blocks in the TOC

Wolfgang Schuster schuster.wolfgang at gmail.com
Sun Apr 26 20:16:50 CEST 2015


> Am 26.04.2015 um 20:09 schrieb Pablo Rodriguez <oinos at gmx.es>:
> 
> Dear list,
> 
> I have the following sample:
> 
>    \starttext
>        \completecontent
>        \startfrontmatter
>            \chapter{Foreword}
>            \chapter{Introduction}
>        \stopfrontmatter
>        \startbodymatter
>            \chapter{First Chapter}
>            \chapter{Second Chapter}
>            \chapter{Third Chapter}
>        \stopbodymatter
>        \startbackmatter
>            \chapter{Conclusions}
>            \chapter{Notes}
>        \stopbackmatter
>        \startappendices
>            \chapter{Appendix One}
>            \chapter{Appendix Two}
>        \stopappendices
>    \stoptext
> 
> How could I add some extra space in the TOC before each section block?
> 
> I mean, a visual separation before “First Chapter”, “Conclusions” and
> “Appendix One” in \completecontent.

\startsectionblockenvironment[bodypart]
    \writebetweenlist[chapter]{\blank[2*line]}
\stopsectionblockenvironment

\startsectionblockenvironment[appendix]
    \writebetweenlist[chapter]{\blank[2*line]}
\stopsectionblockenvironment

Wolfgang


More information about the ntg-context mailing list