[NTG-context] question concerning \setupalign \setuptolerance

Wolfgang Schuster schuster.wolfgang at gmail.com
Fri Aug 30 18:36:47 CEST 2013


Am 30.08.2013 um 17:55 schrieb Christian Prim <christian.prim at gmx.ch>:

> 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?

The \setupalign command does also accepts “tolerant”, “verytolerant” and “stretch” as keyword which means you don’t need the \setuptolerance command. This is important because the value of the align key is passed to the \setupalign command.

> - What about tabulate-environment?

I’m sorry but I was wrong about the setting for the tabulate environment, the align value of \setuptabulate accepts only “left”, “middle”, “right” and “normal” as arguments. There is also no way to change the format of the default tabulation environment, only local changes are possible, e.g.

\starttabulate[|l|pA{normal,hanging,hz,stretch}|]
\NC align/tolerance not working \NC \input knuth \NC\NR
\NC align/tolerance working     \NC \input knuth \NC\NR
\stoptabulate

When you want a different default alignment you have to create your own tabulation environment with the \definetabulate command.

Wolfgang



More information about the ntg-context mailing list