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

2015-04-26 Thread 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.

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
___

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

2015-04-26 Thread Pablo Rodriguez
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
___

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

2015-04-26 Thread Wolfgang Schuster

 Am 26.04.2015 um 20:09 schrieb Pablo Rodriguez oi...@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
___

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

2015-04-26 Thread Thomas A. Schmitz

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
___

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

2015-04-26 Thread Pablo Rodriguez
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
___
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
___