* \blank[] doesn't work when nothing precedes it
@ 2020-11-05 12:26 Sylvain Hubert
2020-11-05 12:53 ` Tomas Hala
2020-11-05 13:20 ` mf
0 siblings, 2 replies; 5+ messages in thread
From: Sylvain Hubert @ 2020-11-05 12:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 468 bytes --]
Dear List,
I'm trying to put the document title at around .25\paperheight by inserting
a \blank:
\setuplayout[topspace=0cm, header=0cm, height=\paperheight]
\starttext \blank[.25\paperheight] foo \stoptext
But the "foo" still appears at the very top.
Does anyone know why it behaves like that, or whether there is a more
authentic way to put the first word at .25\paperwidth than inserting a tiny
invisible space before the \blank?
Thanks!
Best,
Sylvain
[-- Attachment #1.2: Type: text/html, Size: 682 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \blank[] doesn't work when nothing precedes it
2020-11-05 12:26 \blank[] doesn't work when nothing precedes it Sylvain Hubert
@ 2020-11-05 12:53 ` Tomas Hala
2020-11-05 13:25 ` Sylvain Hubert
2020-11-05 13:20 ` mf
1 sibling, 1 reply; 5+ messages in thread
From: Tomas Hala @ 2020-11-05 12:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Sylvain,
on my computer (TL2020) I am not able to compile \blank with any command
defining the dimension (2\paperheight, 0.25\paperheight, .25\paperheight).
I do not know why...
But if I use another dimension, eg. 5*big or 20cc, it works with \dontleavehmode:
\starttext
\dontleavehmode
\blank[5*big]
%\blank[20cc]
foo
\stoptext
Maybe it will help you.
The best,
Tomáš
Thu, Nov 05, 2020 ve 01:26:02PM +0100 Sylvain Hubert napsal(a):
# Dear List,
# I'm trying to put the document title at around .25\paperheight by
# inserting a \blank:
# \setuplayout[topspace=0cm, header=0cm, height=\paperheight]
# \starttext \blank[.25\paperheight] foo \stoptext
# But the "foo" still appears at the very top.
# Does anyone know why it behaves like that, or whether there is a more
# authentic way to put the first word at .25\paperwidth than inserting a
# tiny invisible space before the \blank?
# Thanks!
# Best,
# Sylvain
# ___________________________________________________________________________________
# 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
# ___________________________________________________________________________________
___________________________________________________________________________________
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] 5+ messages in thread
* Re: \blank[] doesn't work when nothing precedes it
2020-11-05 12:53 ` Tomas Hala
@ 2020-11-05 13:25 ` Sylvain Hubert
0 siblings, 0 replies; 5+ messages in thread
From: Sylvain Hubert @ 2020-11-05 13:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2297 bytes --]
Hi Thomas,
Thanks for sharing the trick, it did help me!
Sylvain
On Thu, 5 Nov 2020 at 13:55, Tomas Hala <tomas.hala@mendelu.cz> wrote:
> Hi Sylvain,
>
> on my computer (TL2020) I am not able to compile \blank with any command
> defining the dimension (2\paperheight, 0.25\paperheight, .25\paperheight).
> I do not know why...
>
> But if I use another dimension, eg. 5*big or 20cc, it works with
> \dontleavehmode:
>
> \starttext
> \dontleavehmode
> \blank[5*big]
> %\blank[20cc]
> foo
> \stoptext
>
> Maybe it will help you.
>
> The best,
>
> Tomáš
>
>
> Thu, Nov 05, 2020 ve 01:26:02PM +0100 Sylvain Hubert napsal(a):
> # Dear List,
> # I'm trying to put the document title at around .25\paperheight by
> # inserting a \blank:
> # \setuplayout[topspace=0cm, header=0cm, height=\paperheight]
> # \starttext \blank[.25\paperheight] foo \stoptext
> # But the "foo" still appears at the very top.
> # Does anyone know why it behaves like that, or whether there is a more
> # authentic way to put the first word at .25\paperwidth than inserting a
> # tiny invisible space before the \blank?
> # Thanks!
> # Best,
> # Sylvain
>
> #
> ___________________________________________________________________________________
> # 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
> #
> ___________________________________________________________________________________
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 3706 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \blank[] doesn't work when nothing precedes it
2020-11-05 12:26 \blank[] doesn't work when nothing precedes it Sylvain Hubert
2020-11-05 12:53 ` Tomas Hala
@ 2020-11-05 13:20 ` mf
2020-11-05 13:27 ` Sylvain Hubert
1 sibling, 1 reply; 5+ messages in thread
From: mf @ 2020-11-05 13:20 UTC (permalink / raw)
To: ntg-context
Il 05/11/20 13:26, Sylvain Hubert ha scritto:
> Dear List,
>
> I'm trying to put the document title at around .25\paperheight by
> inserting a \blank:
>
> \setuplayout[topspace=0cm, header=0cm, height=\paperheight]
> \starttext \blank[.25\paperheight] foo \stoptext
>
\blank[.25\paperheight,force]
A blank at the top of a page is ignored, because usually you use a blank
as a separator, that is useless at the top of a page, because the page
break is enough to separate two texts.
Sometimes you need a blank on top anyway, i.e. at the start of a chapter.
In that case use "force".
Massi
___________________________________________________________________________________
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] 5+ messages in thread
* Re: \blank[] doesn't work when nothing precedes it
2020-11-05 13:20 ` mf
@ 2020-11-05 13:27 ` Sylvain Hubert
0 siblings, 0 replies; 5+ messages in thread
From: Sylvain Hubert @ 2020-11-05 13:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 459 bytes --]
On Thu, 5 Nov 2020 at 14:21, mf <massifr@fastwebnet.it> wrote:
> \blank[.25\paperheight,force]
>
> A blank at the top of a page is ignored, because usually you use a blank
> as a separator, that is useless at the top of a page, because the page
> break is enough to separate two texts.
>
> Sometimes you need a blank on top anyway, i.e. at the start of a chapter.
> In that case use "force".
>
Thanks Massi, this is exactly what I was looking for.
Sylvain
[-- Attachment #1.2: Type: text/html, Size: 824 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-11-05 13:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-05 12:26 \blank[] doesn't work when nothing precedes it Sylvain Hubert
2020-11-05 12:53 ` Tomas Hala
2020-11-05 13:25 ` Sylvain Hubert
2020-11-05 13:20 ` mf
2020-11-05 13:27 ` Sylvain Hubert
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).