adding extra space before section blocks in the TOC
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. Many thanks for your help, Pablo -- http://www.ousia.tk
Am 26.04.2015 um 20:09 schrieb Pablo Rodriguez
: 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
On 04/26/2015 08:16 PM, Wolfgang Schuster wrote:
Am 26.04.2015 um 20:09 schrieb Pablo Rodriguez: [...] 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
Many thanks for your reply, Wolfgang. Sorry, but I must confess that I totally overlooked your message. This is a cleaner solution. Especially when compiling XML sources with environments. Many thanks for your help, Pablo -- http://www.ousia.tk
On 04/26/2015 08:09 PM, Pablo Rodriguez wrote:
How could I add some extra space in the TOC before each section block?
You're looking for this command: http://wiki.contextgarden.net/Command/writebetweenlist So something like \writebetweenlist [chapter] {{\blank[2*line]}} Thomas
On 04/26/2015 08:22 PM, Thomas A. Schmitz wrote:
On 04/26/2015 08:09 PM, Pablo Rodriguez wrote:
How could I add some extra space in the TOC before each section block?
You're looking for this command:
http://wiki.contextgarden.net/Command/writebetweenlist
So something like
\writebetweenlist [chapter] {{\blank[2*line]}}
Many thanks for your reply, Thomas. As you said, this was exactly what I was looking for. Many thanks for your help, Pablo -- http://www.ousia.tk
participants (3)
-
Pablo Rodriguez
-
Thomas A. Schmitz
-
Wolfgang Schuster