[NTG-context] \completecontent affects text height

Wolfgang Schuster schuster.wolfgang at gmail.com
Tue Feb 18 23:36:53 CET 2014


Am 18.02.2014 um 22:20 schrieb Thangalin <thangalin at gmail.com>:

> Hi,
> 
> First question:
> 
> 1. Save http://pastebin.com/raw.php?i=8DQNCcvC as setup.tex
> 2. Save http://pastebin.com/raw.php?i=KgcxCxGB as garlic.tex
> 3. Run: context garlic.tex
> 4. View page 3 of the PDF ( http://i.imgur.com/VLwssnl.png )
> 5. Edit garlic.tex.
> 6. Remove \completecontent
> 7. Run: context garlic.tex
> 8. View page 3 of the PDF ( http://i.imgur.com/HVAoavQ.png )
> 
> The Table of Contents affects the column height in the body. The
> available height for the text body should be independent of
> \completecontent. The total height should be as shown in the second
> example, with or without the ToC.
> 
> How can this be resolved?

Change

  \setuphead[chapter,section,subsection][header=none]

to

  \setuphead[chapter,section,subsection][header=high]


> Second question:
> 
> How would you remove the white space above each subsection title so
> that the title is aligned to the top of its column?

Play with the grid key for mixed columns, e.g. grid=strut removes the space before the heading.


BTW: The context version of your \IngredientMeasure command can be written as:

  \define[1]\IngredientMeasure
    {\doifsomething{#1}{#1}}

Wolfgang


More information about the ntg-context mailing list