Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Here is my Minexample

\mainlanguage   [de]

\definepapersize[MyBook][A5]
\setuppapersize[MyBook][A5]

\usetypescript[times]
\setupbodyfont[times,10pt]
\setupbodyfontenvironment   [default][em=italic] % use italic as em, not slanted

\setuphead[subsection][before={\blank[line]},style=bold] % Kleine subsections, besserer grid
\setuphead[section][after={\blank[line]}]

\setuplayout[grid=yes]

\showgrid
%\setupbackgrounds  [header][text][frame=off,bottomframe=on]

\starttext
Last paragraph Text.....

\section{First section}

\subsection{First Subsection}

\stoptext

Now you see in the grid, that the placement is not optimal. There are three lines before and after the section. It would be better to have f.e. 3 before and 1 after, or 2 before and 1 after or aynthing like that. How to achieve that?

share|improve this question
    
Neither the language, paper size, page background and italic or bold settings are needed to illustrate the empty line problem. Try to construct the example as minimal as possible. –  Marco Nov 1 '12 at 13:01
1  
I was not sure about the paper size, typescript and font size because it determines the number of lines –  Mustafa Nov 1 '12 at 13:15
add comment

1 Answer 1

up vote 4 down vote accepted

The Details manual has detailed explanations about grid typesetting and section head placement on the grid. In your case you need to use the grid=low setting.

\setuplayout
  [grid=yes]

\setuphead
  [section]
  [after=]

\setuphead
  [subsection]
  [before=,
   grid=low]

\showgrid

\starttext

Last paragraph Text.....

\startsection [title=First section]
  \startsubsection[title=First Subsection]
  \stopsubsection
\stopsection

\stoptext

Result:

result

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.