[NTG-context] align text and formula

Hans Hagen pragma at wxs.nl
Sat Aug 27 14:51:03 CEST 2016


On 8/25/2016 4:07 PM, Wolfgang Schuster wrote:
>> Henri Menke <mailto:henrimenke at gmail.com>
>> 25. August 2016 um 15:31
>> Hi Jan,
>>
>> unfortunately, these commands are in no book. I just looked them up in
>> the ConTeXt source. However, these two books helped me a lot in
>> improving my understanding of TeX and ConTeXt. They are definitely
>> worth their money!
>>
>> The TeXbook by Donald E. Knuth https://amzn.com/0201134489
>> Programming in Lua by Roberto Ierusalimschy https://amzn.com/859037985X
> Other good books for TeX are
>
>   - TeX by Topic (https://www.ctan.org/pkg/texbytopic) and
>   - TeX for the Impatient (https://www.ctan.org/pkg/impatient)

the next upload (not today) will provide a specifier so that one can 
make helpers

\starttext \showframe

\setupformulas[align=flushleft]

\startformula
     \startalign[m=2,align={middle}]
         \NC \text to 6cm{} \NC x = 0 \NR
     \stopalign
\stopformula

\startformula
     \startalign[m=2,align={middle}]
         \NC \text to 6cm{One\hfill}           \NC a = 1 \NR
         \NC \text to 6cm{One Two\hfill}       \NC b = 2 \NR
         \NC \text to 6cm{One Two Three\hfill} \NC c = 3 \NR
     \stopalign
\stopformula

\startformula
     \startalign[m=2,align={left}]
         \NC \text to 6cm{One\hfill}           \NC a = 1 \NR
         \NC \text to 6cm{One Two\hfill}       \NC b = 2 \NR
         \NC \text to 6cm{One Two Three\hfill} \NC c = 3 \NR
     \stopalign
\stopformula

\blank[3*big]

\startformula
     \startalign[m=2,align={middle}]
         \NC \text to 6cm{} \NC x = 0 \NR
     \stopalign
\stopformula

\startformula
     \startalign[m=2,align={middle}]
         \NC \text to 6cm{One}           \NC a = 1 \NR
         \NC \text to 6cm{One Two}       \NC b = 2 \NR
         \NC \text to 6cm{One Two Three} \NC c = 3 \NR
     \stopalign
\stopformula

\startformula
     \startalign[m=2,align={left}]
         \NC \text to 6cm{One}           \NC a = 1 \NR
         \NC \text to 6cm{One Two}       \NC b = 2 \NR
         \NC \text to 6cm{One Two Three} \NC c = 3 \NR
     \stopalign
\stopformula

\blank[3*big]

\startformula
     \startalign[m   =2,align={middle}]
         \NC \text{} \NC x = 0 \NR
     \stopalign
\stopformula

\startformula
     \startalign[m=2,align={middle}]
         \NC \text{One}           \NC a = 1 \NR
         \NC \text{One Two}       \NC b = 2 \NR
         \NC \text{One Two Three} \NC c = 3 \NR
     \stopalign
\stopformula

\startformula
     \startalign[m=2,align={left}]
         \NC \text{One}           \NC a = 1 \NR
         \NC \text{One Two}       \NC b = 2 \NR
         \NC \text{One Two Three} \NC c = 3 \NR
     \stopalign
\stopformula

\stoptext


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


More information about the ntg-context mailing list