ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* stay on grid in double column
@ 2008-08-13 15:44 Jelle Huisman
  2008-08-14 11:03 ` Jelle Huisman
  0 siblings, 1 reply; 5+ messages in thread
From: Jelle Huisman @ 2008-08-13 15:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I have text with a small intro section in a double column environment. 
The main text is set on a grid and the intro text is slightly off-grid 
with a \vskip -2pt before and a \vskip 2pt after the intro. As this 
sample shows this works fine, until the intro text is broken over two 
columns. In that case the last part of the intro starts on grid (in the 
second column) and the main text is moved off-grid and does not longer 
register with the main text in the first column :( [see example code].
Is there is way to detect and prevent this (automatically)? Can ConTeXt 
remember that it is setting some text \vskip-ped, while it is breaking 
the current paragraph over columns? (Basically I want to keep all the 
B's on the grid and all the A's \vskipped.)

Thanks, Jelle

% sample code
\definecolumnset[doublecolumn][n=2]
\setupcolumnset[doublecolumn][2][distance=5mm]
\setupbodyfont[12pt]
\setupinterlinespace[line=11pt]
\setuplayout[grid=yes]
\showgrid
\starttext
\startcolumnset[doublecolumn]
\ss \subject{Header}
\dorecurse{2}{\vskip -2pt This text is vskipped. A \dorecurse{40}{ aa 
aa} \vskip 2pt % intro text
This text should stay on the grid. B \dorecurse{270}{ bb bb}} % main 
text should stay on grid
\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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-08-14 20:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-13 15:44 stay on grid in double column Jelle Huisman
2008-08-14 11:03 ` Jelle Huisman
2008-08-14 15:57   ` Taco Hoekwater
2008-08-14 20:30   ` Hans Hagen
2008-08-14 20:54     ` Jelle Huisman

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).