ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* columnset issues
@ 2020-01-19 22:38 Henning Hraban Ramm
  2020-01-19 22:40 ` Henning Hraban Ramm
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Henning Hraban Ramm @ 2020-01-19 22:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-01-27 22:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-19 22:38 columnset issues Henning Hraban Ramm
2020-01-19 22:40 ` Henning Hraban Ramm
2020-01-20  6:54 ` another columnset issue (solved) Henning Hraban Ramm
2020-01-26 12:07 ` columnset issues Henning Hraban Ramm
2020-01-27  9:31   ` Henning Hraban Ramm
2020-01-27 19:28     ` Wolfgang Schuster
2020-01-27 22:22       ` Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).