From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: vertical spacing and makeups
Date: Sun, 19 Apr 2015 20:50:53 +0200 [thread overview]
Message-ID: <D831AA70-8487-4872-A3A7-876D5C0BC03E@gmail.com> (raw)
In-Reply-To: <5532A28E.4080404@gmx.es>
> Am 18.04.2015 um 20:29 schrieb Pablo Rodriguez <oinos@gmx.es>:
>
> On 04/18/2015 07:15 PM, Wolfgang Schuster wrote:
>>> Am 18.04.2015 um 18:43 schrieb Pablo Rodriguez:
>>> [...]
>>> The first page shows that \setupwhitespace[big] affects to a single line
>>> in a makeup. Shouldn’t white space be added only between paragraphs? The
>>> second page is right vertically centered. And the third page shows that
>>> the white space isn’t added before the first paragraph in a normal page
>>> (no makeup).
>>>
>>> This is the first issue, isn’t it a bug? Or what am I missing?
>>
>> TeX inserts the \parskip value which is set by \setupwhitespace
>> before your text in the makeup environment. Note that this happens
>> only when you have skip before the text (e.g. with the default top=\vss
>> setting) at the begin of the environment.
>>
>> The following low level example demonstrates this:
>>
>> \setuppapersize[A6]
>>
>> \starttext
>>
>> \dontleavehmode
>> \ruledvbox to 3cm{\hsize=4cm text}
>> \ruledvbox to 3cm{\hsize=4cm\parskip=2ex\relax text}
>>
>> \dontleavehmode
>> \ruledvbox to 3cm{\hsize=4cm\vss text\vss}
>> \ruledvbox to 3cm{\hsize=4cm\parskip=2ex\relax\vss text\vss}
>>
>> \stoptext
>
> Many thanks for your reply, Wolfgang.
>
> So the a workaround would be to use \blank instead of \par or a blank
> line, wouldn’t it be?
You can flush the content of the buffer in a \vbox where you set the
whitespace at the begin of the box.
\def\startSlide
{\grabbufferdata[SlideContent][startSlide][stopSlide]}
\def\stopSlide
{\startmakeup[standard][align=middle]
\vbox\bgroup
\setupwhitespace[big]
\begstrut\getbufferdata[SlideContent]\endstrut
\egroup
\stopmakeup}
\setuppapersize[S8]
%\setupbodyfont[100pt]
\showgrid
\starttext
\startSlide
program
content
\stopSlide
\startSlide
descender
\stopSlide
\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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-04-19 18:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-18 16:43 Pablo Rodriguez
2015-04-18 17:15 ` Wolfgang Schuster
2015-04-18 18:29 ` Pablo Rodriguez
2015-04-19 18:50 ` Wolfgang Schuster [this message]
2015-04-19 21:01 ` Pablo Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D831AA70-8487-4872-A3A7-876D5C0BC03E@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).