\blank[force, halfline] at top page issue
Dear list, I think this issue has been already reported (or a similar one http://www.mail-archive.com/ntg-context@ntg.nl/msg77729.html) but not resolved. It seems that if \blank[force, etc … is first in page there is additional spacing due to topskip. I’ve checked that this unwanted spacing disappears if topskip is set to 0, but I doubt it’s really good idea to mess up with this low level TeX setting (or is it good idea ?). Moreover browsing the spac-ver.* files I noticed the existence of a no_topskip mechanism which I guess would allow to remove (in lua code) the topskip glue node but there is no way to enable this from \blank command or at least could not figure it out. Is there an easy way to enable this no topskip feature ? Alternative I found is to use a \vbox etc… but wondered if there were some simpler way using \blank. Thanks, Best regards Joseph Canedo MWE : \setuplayout[grid=both] % not really needed \showgrid \starttext \blank[force, halfline] HalfLine \blank[halfline] Text \stoptext
Hi Marcus, Thanks for the tip, somewhat better in terms of alignment to the grid (but there is now larger space before exactly 1 line in excess). Unfortunately if the \blank[force, halfine, depth] is not first in page the vertical alignment is now wrong, and I do not know if a given \blank will be first or not in the page. Best regards Joseph Canedo De : Marcus Vinicius Mesquita Envoyé le :vendredi 30 septembre 2016 23:08 À : mailing list for ConTeXt users Objet :Re: [NTG-context] \blank[force, halfline] at top page issue Try \blank[force,halfline,depth]
Tried the following putting a \vbox before the \blank. There is probably better solution for this. \setuplayout[grid=both] \showgrid \starttext \endgraf\vbox to \lineheight{}\blank[samepage, -halfline] HalfLine \blank[halfline] Text \page Text \endgraf\vbox to \lineheight{}\blank[samepage, -halfline] HalfLine \blank[halfline] Text \stoptext De : Marcus Vinicius Mesquita Envoyé le :vendredi 30 septembre 2016 23:08 À : mailing list for ConTeXt users Objet :Re: [NTG-context] \blank[force, halfline] at top page issue Try \blank[force,halfline,depth]
participants (2)
-
josephcanedo@gmail.com
-
Marcus Vinicius Mesquita