ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \blank[force, halfline] at top page issue
@ 2016-09-29 20:08 josephcanedo
  2016-09-30 21:08 ` Marcus Vinicius Mesquita
  0 siblings, 1 reply; 4+ messages in thread
From: josephcanedo @ 2016-09-29 20:08 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1060 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 3150 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \blank[force, halfline] at top page issue
  2016-09-29 20:08 \blank[force, halfline] at top page issue josephcanedo
@ 2016-09-30 21:08 ` Marcus Vinicius Mesquita
  2016-09-30 21:30   ` josephcanedo
  2016-10-01  9:48   ` josephcanedo
  0 siblings, 2 replies; 4+ messages in thread
From: Marcus Vinicius Mesquita @ 2016-09-30 21:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 34 bytes --]

Try

\blank[force,halfline,depth]

[-- Attachment #1.2: Type: text/html, Size: 100 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \blank[force, halfline] at top page issue
  2016-09-30 21:08 ` Marcus Vinicius Mesquita
@ 2016-09-30 21:30   ` josephcanedo
  2016-10-01  9:48   ` josephcanedo
  1 sibling, 0 replies; 4+ messages in thread
From: josephcanedo @ 2016-09-30 21:30 UTC (permalink / raw)
  To: Marcus Vinicius Mesquita, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 594 bytes --]

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]



[-- Attachment #1.2: Type: text/html, Size: 2879 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \blank[force, halfline] at top page issue
  2016-09-30 21:08 ` Marcus Vinicius Mesquita
  2016-09-30 21:30   ` josephcanedo
@ 2016-10-01  9:48   ` josephcanedo
  1 sibling, 0 replies; 4+ messages in thread
From: josephcanedo @ 2016-10-01  9:48 UTC (permalink / raw)
  To: Marcus Vinicius Mesquita, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 592 bytes --]

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]



[-- Attachment #1.2: Type: text/html, Size: 3047 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2016-10-01  9:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-29 20:08 \blank[force, halfline] at top page issue josephcanedo
2016-09-30 21:08 ` Marcus Vinicius Mesquita
2016-09-30 21:30   ` josephcanedo
2016-10-01  9:48   ` josephcanedo

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