[NTG-context] space between headings

Michelle Weidling weidling at sub.uni-goettingen.de
Fri Oct 11 17:12:29 CEST 2019


Dear Pablo,


I'm not sure if this is the best way to solve it, but you could define
custom headers for this situation that toss the spaces:


 \definehead[modifiedSection][section]
  \setuphead[modifiedSection]
  	[after={\blank[none]}]
 	
 \definehead[modifiedSubsection][subsection]
 \setuphead[modifiedSubsection]
 	[before={\blank[none]}] 	

\showframe\showgrid
\starttext
  \modifiedSection{Section}
  \modifiedSubsection{Subsection}
  A sentence.
  \section{Section}
  Another sentence.
  \subsection{Subsection}
  Even another sentence.
\stoptext


When doing this it's important to modify both the section and the
subsection heading, otherwise the space will still appear.

(This approach feels a bit brute force to me and I'd be happy to see a
more elegant solution.)


Best,
Michelle



Am 10.10.19 um 19:17 schrieb Pablo Rodriguez:
> Dear list,
> 
> I have the following sample:
> 
>     \showframe\showgrid
>     \starttext
>     \section{Section}
>     \subsection{Subsection}
>     A sentence.
>     \section{Section}
>     Another sentence.
>     \subsection{Subsection}
>     Even another sentence.
>     \stoptext
> 
> Is there any way to setup the space after of \section when it is
> followed by another heading?
> 
> I mean, is there no way to decrease the space between two headings?
> 
> 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 at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

-- 
Michelle Weidling
Digital Humanities

Georg-August-Universität Göttingen
Niedersächsische Staats- und Universitätsbibliothek Göttingen
D-37073 Göttingen

Papendiek (Historisches Gebäude, Raum 2.408)
+49 551 39-25842 (Tel.)

weidling at sub.uni-goettingen.de
http://www.sub.uni-goettingen.de



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20191011/db33b5bb/attachment.sig>


More information about the ntg-context mailing list