ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* A problem with \blank
@ 2012-10-25 22:46 Marcin Borkowski
  2012-10-26  3:28 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Borkowski @ 2012-10-25 22:46 UTC (permalink / raw)
  To: ConTeXt mailing list

Good evening,

I have something like this in my document:

\startalignment[middle]
  ...
\stopalignment

\startitemize
  ...
\stopitemize

and I want some (more) vertical space in between them.  Adding a
\blank[big] (and even a \blank[big,force]) didn't help.  Interestingly,
\leavevmode\blank[big] did.  What is going on?  What is the "canonical"
way to achieve what I want to have?

Regards,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___________________________________________________________________________________
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] 2+ messages in thread

* Re: A problem with \blank
  2012-10-25 22:46 A problem with \blank Marcin Borkowski
@ 2012-10-26  3:28 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2012-10-26  3:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 26.10.2012 um 00:46 schrieb Marcin Borkowski <mbork@wmi.amu.edu.pl>:

> Good evening,
> 
> I have something like this in my document:
> 
> \startalignment[middle]
>  ...
> \stopalignment
> 
> \startitemize
>  ...
> \stopitemize
> 
> and I want some (more) vertical space in between them.  Adding a
> \blank[big] (and even a \blank[big,force]) didn't help.  Interestingly,
> \leavevmode\blank[big] did.  What is going on?  What is the "canonical"
> way to achieve what I want to have?

Use a bigger value for the \blank because when you have two consecutive
blanks (the one after \stopalignment and the one from \startitemize) the smaller
value is ignored and tex uses only the bigger value.

When you use \dontleavehmode it works because you switch to horizontal mode
but the extra space of the normal line height and not your \blank value, the problem
with this approach is also that you get the parskip before the itemize.

Compare this

\setupwhitespace[4cm]

\starttext \showgrid

\startalignment[middle]
\input knuth
\stopalignment

\dontleavehmode

\startitemize
\startitem \input knuth \stopitem
\stopitemize

\stoptext

with this

\starttext \showgrid

\startalignment[middle]
\input knuth
\stopalignment

\blank[2*big]

\startitemize
\startitem \input knuth \stopitem
\stopitemize

\stoptext

Wolfgang
___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2012-10-26  3:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-25 22:46 A problem with \blank Marcin Borkowski
2012-10-26  3:28 ` Wolfgang Schuster

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