* 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
* Re: stay on grid in double column
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
0 siblings, 2 replies; 5+ messages in thread
From: Jelle Huisman @ 2008-08-14 11:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
Jelle Huisman wrote:
> 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.)
Should I conclude that this is not possible?
Jelle
___________________________________________________________________________________
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
* Re: stay on grid in double column
2008-08-14 11:03 ` Jelle Huisman
@ 2008-08-14 15:57 ` Taco Hoekwater
2008-08-14 20:30 ` Hans Hagen
1 sibling, 0 replies; 5+ messages in thread
From: Taco Hoekwater @ 2008-08-14 15:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
Jelle Huisman wrote:
>> the current paragraph over columns? (Basically I want to keep all the
>> B's on the grid and all the A's \vskipped.)
>
> Should I conclude that this is not possible?
My first (and second) answer would indeed be "not possible".
Best wishes,
Taco
___________________________________________________________________________________
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
* Re: stay on grid in double column
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
1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2008-08-14 20:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
Jelle Huisman wrote:
> Jelle Huisman wrote:
>> 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.)
>
> Should I conclude that this is not possible?
ok, you suffered enough ... so, this is for your eyes only because
otherwise i get complaints about a non documented feature:
\synchronizegrid (we needed it once in a project; it worked ok there but
was never tested being that which is why it's still on cont-new)
\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
\synchronizegrid
This text should stay on the grid. B \dorecurse{270}{ bb bb}} % main
text should stay on grid
\stopcolumnset
\stoptext
the thing with grids is that one can make things work for most cases but
normally doc are always more tricky
in mkiv i will add some more advanced grid support (i did some
experiments last year .. no time now to finish that)
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
* Re: stay on grid in double column
2008-08-14 20:30 ` Hans Hagen
@ 2008-08-14 20:54 ` Jelle Huisman
0 siblings, 0 replies; 5+ messages in thread
From: Jelle Huisman @ 2008-08-14 20:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hans Hagen wrote:
> ok, you suffered enough ... so, this is for your eyes only because
> otherwise i get complaints about a non documented feature:
> \synchronizegrid (we needed it once in a project; it worked ok there but
> was never tested being that which is why it's still on cont-new)
>
(...)
> the thing with grids is that one can make things work for most cases but
> normally doc are always more tricky
OK, thank you Hans, this does (almost) what I need and that is enough
(in this case.)
Jelle
___________________________________________________________________________________
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).