[NTG-context] Problem with creation of a new alignment

Hans Hagen pragma at wxs.nl
Tue Jan 7 00:20:33 CET 2014


On 1/2/2014 11:50 PM, KONVOJ, spol. s r. o. wrote:
> Hello all in 2014,
>
> the following minimal example does not work, neither with
> start-stop marks, nor with \setupalign, nor with both.
> I use CTX from TeXlive 2013. The same behaviour has been found
> in TL2012 whereas in TL2011 and 2010 it works properly.
>
> What is the new way to define some new alignments?

> \installalign{lastcenter}{ % justified, but the last line should be centered
>    \leftskip=0pt plus1fil \rightskip=0pt plus-1fil
>    \parfillskip=0pt plus2fil \parindent0pt}
>
> \starttext
>    \startalignment[lastcenter]
>    \setupalign[lastcenter]
>    \input knuth
>    \stopalignment
> \stoptext

just use 'last' as its predefined; installable aligns are somewhat 
limited (only certain things can be set) as in mkiv we also keep states, 
recover alignments, export stuff, etc

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list