Hi again.

I use columnsets and wanted to setup my section titles to have one blank line 
before and none after them.
If I use before={\blank[line]}, I sometimes don’t get that blank line.
If I use \blank in my section command, I get it always, but also if the section 
starts on top of a column.
How can I reliably get one blank line before a section title, but not on the 
top of a column?

That’s the original problem.

The MWE also shows:
– There’s irregular space at the top of columns, esp. on the first page.
– Sometimes the multi-line section title is moved into the previous paragraph.
These issues get fixed with grid=yes.

The original problem is also fixed in the MWE if I enable grid mode, there are 
just sometimes two blank lines instead of one. In my actual project I get one 
or zero lines. Couldn’t reproduce that in a MWE.


\usemodule[visual]
\setuppapersize[A5]
\showframe[text]
\definecolor[fakerulecolor][gray]

%\setuplayout[grid=yes]
%\showgrid

\define[2]\MySection{\vbox{%
\definecolor[fakerulecolor][blue]
%\blank[line,max]%
{\strut #2}\par
}}

\setuphead[section][
  command=\MySection,
  before={\blank[line]},
  %before=,
  after=,
  style=\tf,
]

\definecolumnset[Two][n=2]

\starttext
%
\startcolumnset[Two]
\dorecurse{10}{
\section{\fakewords{3}{15}}
\fakewords{10}{50}\par
\fakewords{10}{50}\par
\fakewords{10}{50}\par
}
\stopcolumnset

\stoptext

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to