ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* tolerance and whitespace settings inside a TEXpage
@ 2012-09-20  9:56 Marco Patzer
  2012-09-20 13:50 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Patzer @ 2012-09-20  9:56 UTC (permalink / raw)
  To: context

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


Marco

___________________________________________________________________________________
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: tolerance and whitespace settings inside a TEXpage
  2012-09-20  9:56 tolerance and whitespace settings inside a TEXpage Marco Patzer
@ 2012-09-20 13:50 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2012-09-20 13:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

end of thread, other threads:[~2012-09-20 13:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-20  9:56 tolerance and whitespace settings inside a TEXpage Marco Patzer
2012-09-20 13:50 ` 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).