* adding extra space before section blocks in the TOC
@ 2015-04-26 18:09 Pablo Rodriguez
2015-04-26 18:16 ` Wolfgang Schuster
2015-04-26 18:22 ` Thomas A. Schmitz
0 siblings, 2 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2015-04-26 18:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: adding extra space before section blocks in the TOC
2015-04-26 18:09 adding extra space before section blocks in the TOC Pablo Rodriguez
@ 2015-04-26 18:16 ` Wolfgang Schuster
2015-04-26 19:36 ` Pablo Rodriguez
2015-04-26 18:22 ` Thomas A. Schmitz
1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2015-04-26 18:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 26.04.2015 um 20:09 schrieb Pablo Rodriguez <oinos@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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: adding extra space before section blocks in the TOC
2015-04-26 18:16 ` Wolfgang Schuster
@ 2015-04-26 19:36 ` Pablo Rodriguez
0 siblings, 0 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2015-04-26 19:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: adding extra space before section blocks in the TOC
2015-04-26 18:09 adding extra space before section blocks in the TOC Pablo Rodriguez
2015-04-26 18:16 ` Wolfgang Schuster
@ 2015-04-26 18:22 ` Thomas A. Schmitz
2015-04-26 19:24 ` Pablo Rodriguez
1 sibling, 1 reply; 5+ messages in thread
From: Thomas A. Schmitz @ 2015-04-26 18:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-04-26 19:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-26 18:09 adding extra space before section blocks in the TOC Pablo Rodriguez
2015-04-26 18:16 ` Wolfgang Schuster
2015-04-26 19:36 ` Pablo Rodriguez
2015-04-26 18:22 ` Thomas A. Schmitz
2015-04-26 19:24 ` Pablo Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).