[NTG-context] question concerning \setupalign \setuptolerance

Christian Prim christian.prim at gmx.ch
Fri Aug 30 17:55:43 CEST 2013


Thanks Wolfgang

I have tested it (on new beta) but the alignment is still wrong in the
tabulate-environment. It's correct in the framedtext-environment, but
tolerance is still missing, so that a line is still too long.

My new questions:
- What about tolerance? Where must I add the keys?
- What about tabulate-environment?

Thanks!
Christian

My new MWE is:

\definefontfeature[default][default][expansion=quality,protrusion=quality]
\usetypescript[palatino]
\setupbodyfont[palatino,11pt]
\setupbodyfontenvironment[default][em=italic]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]

\setupframedtext[align={normal,hanging,hz}] %NEW
\setuptabulate[align={normal,hanging,hz}] %NEW
\showframe %NEW, for better seeing

\starttext
\subject{Normal Text}
align working, tolerance working.

\input knuth

\subject{Table}
Table resets align/tolerance:
\starttabulate
\NC align/tolerance not working \NC \input knuth \NC\NR
\NC align/tolerance working \NC \setupalign[hz,hanging]
\setuptolerance[horizontal,stretch] \input knuth \NC\NR
\stoptabulate

\subject{Frame}
Framedtext resets align/tolerance:
\startframedtext[width=0.6\textwidth]
align working, tolerance not working

\input tufte
\stopframedtext

\startframedtext[width=0.6\textwidth]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]
align/tolerance working

\input tufte
\stopframedtext

\stoptext


2013/8/30 Wolfgang Schuster <schuster.wolfgang at gmail.com>

>
> Am 30.08.2013 um 14:23 schrieb Christian Prim <christian.prim at gmx.ch>:
>
> > Dear list
> >
> > is there a way to \setupalign and \setuptolerance globaly?
> >
> > In tabulate- or frameenvironement for example they are reseted.
>
> Environments which have a align key use the settings of the key and ignore
> global values, to enable protrusion and font expansion for these
> environment
> you have to change their align values.
>
> \setupframedtext
>   [align={normal,hanging,hz}]
>
> \setuptabulate
>   [align={normal,hanging,hz}]
>
> Wolfgang
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at 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 part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20130830/11d8af31/attachment-0001.html>


More information about the ntg-context mailing list