ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: tolerance and whitespace settings inside a TEXpage
Date: Thu, 20 Sep 2012 15:50:11 +0200	[thread overview]
Message-ID: <73F3666C-8AF9-44B8-8A3C-2C43567A5B2E@gmail.com> (raw)
In-Reply-To: <20120920115603.7602f60f@homerow>


Am 20.09.2012 um 11:56 schrieb Marco Patzer <homerow@lavabit.com>:

> Hi,
> 
> inside a TEXpage the tolerance and the whitespace settings are not
> applied. The whitespace can be set in a setup and the tolerance can
> be set directly with \spaceskip, but that seems a bit hackish.
> 
> Is that intended and is there a cleaner solution? Example:
> 
> \setuplayout   [width=8cm]
> \setupbodyfont [mono]
> \startsetups [myset]
>  \setupwhitespace [big]
>  \setuptolerance  [space]
> \stopsetups
> \setups{myset}
> 
> \starttext
>  \startTEXpage [setups=myset]
>    %% \spaceskip .5em plus .25em minus .25em
>    \input knuth
>  \stopTEXpage
> 
>  \input knuth
> \stoptext


The problem here is that your setups are used but the value from the align
key overwrite them which can’t be changed. One solution is to put \texsetup{myset}
after \startTEXpage but this has to be done for each page, the better solution is
to misuse the command key to flush the setups content.

\setuplayout   [width=8cm]
\setupbodyfont [mono]

\startsetups [myset]

  \setupwhitespace [big]
  \setuptolerance  [space]

\stopsetups

\setupfittingpage[TEXpage][command=\texsetup{myset}]

\starttext

\startTEXpage
\input knuth
\stopTEXpage

\input knuth

\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
___________________________________________________________________________________


      reply	other threads:[~2012-09-20 13:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-20  9:56 Marco Patzer
2012-09-20 13:50 ` Wolfgang Schuster [this message]

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=73F3666C-8AF9-44B8-8A3C-2C43567A5B2E@gmail.com \
    --to=wolfgang.schuster@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).