ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: align text and formula
Date: Sat, 27 Aug 2016 14:51:03 +0200	[thread overview]
Message-ID: <57bf7a91-a232-14df-b587-48585b6b89e7@wxs.nl> (raw)
In-Reply-To: <57BEFB8D.30105@gmail.com>

On 8/25/2016 4:07 PM, Wolfgang Schuster wrote:
>> Henri Menke <mailto:henrimenke@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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2016-08-27 12:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-24  8:02 Jan Willem Flamma
2016-08-24  8:10 ` Otared Kavian
2016-08-24  8:19   ` Jan Willem Flamma
2016-08-24  8:21   ` Jan Willem Flamma
2016-08-24 14:53     ` Otared Kavian
2016-08-24 15:38     ` Jan Willem Flamma
2016-08-25 11:52       ` Henri Menke
2016-08-25 13:12         ` Jan Willem Flamma
2016-08-25 13:31           ` Henri Menke
2016-08-25 14:07             ` Wolfgang Schuster
2016-08-27 12:51               ` Hans Hagen [this message]
2017-02-09 13:05           ` Jan Willem Flamma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57bf7a91-a232-14df-b587-48585b6b89e7@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).