From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: about \startformula\startalign error
Date: Sun, 22 Jul 2012 21:30:48 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.02.1207222115520.8583@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <8114F18A-AD46-42BF-AE96-5435E9957659@me.com>
On Mon, 23 Jul 2012, dalyoung wrote:
> I have two more questions.
>
> 1. In the output of the following code, 'x' in the first column is
> vertically centered, but matrix in the second column is not(located at
> top). What option can solve this?
Normally matrices are centered on the math axis (and their location can be
controlled by location=(low|lohi|high) keys, but for some reason that is
not working in a table.
> \starttable[|c|c|w4cm|w4cm|]
The normal syntax is w(4cm) ...
> \HL
> \NC A \VL B \VL C \VL D \NC\SR
> \HL
> \NC $x$ \VL \startmatrix
> \NC x' = \NC \NR
> .\NC y' = \NC \NR
> \stopmatrix \VL \VL \NC\SR
The matrix should be in math mode $\startmatrix ... \stopmatrix$
> \HL
> \stoptable
>
>
> 2. In the output of the following code, the matrix in the second column is vertically centered, but 'x' in the first column is located at the bottom.
>
> \starttext
> \starttable[|c|c|w4cm|w4cm|]
> \HL
> \NC A \VL B \VL C \VL D \NC\SR
> \HL
> \NC $y$ \VL {\framed[frame=off, align=normal]{\startformula\startalign
> \NC x' = \NC \NR
> \NC y' = \NC \NR
> \stopalign\stopformula}} \VL \VL \NC\LR
> \HL
> \stoptable
> \stoptext
>
> Both of them are good for compiling, but need a slight touch.
Use the \frame aligning options (better to hide this in a macro):
\starttext
\starttable[|c|c|]
\HL
\NC A \VL B \VL \SR
\HL
\NC $x$ \VL \framed[frame=no,height=fit, strut=no,
location=lohi,align=normal]{
\setupformula[spacebefore=,spaceafter=]
\startformula \startalign
\NC x' \NR
\NC y' \NR
\stopalign \stopformula} \VL \SR
\HL
\stoptable
\stoptext
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-07-23 1:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.91.1342972474.2216.ntg-context@ntg.nl>
2012-07-22 16:49 ` Bibliography sectioned Robert Blackstone
2012-07-22 22:21 ` about \startformula\startalign error dalyoung
2012-07-23 1:30 ` Aditya Mahajan [this message]
[not found] <mailman.103.1343035435.2216.ntg-context@ntg.nl>
2012-07-23 22:55 ` dalyoung
2012-07-22 12:21 dalyoung
2012-07-22 13:59 ` Aditya Mahajan
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=alpine.LNX.2.02.1207222115520.8583@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--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).