ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alasdair McAndrew <amca01@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: mathalignment within a table - help needed!
Date: Sat, 14 May 2011 11:17:15 +1000	[thread overview]
Message-ID: <BANLkTim5s8rpAF8R2aAw2NZ=d2v32t8WGA@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1121 bytes --]

Hello,

I'm trying to typeset some linear algebra exercises for my students; the
exercises will be within a table, and each second element will be a system
of linear equations.  This sort of thing:

\starttable[|l|M|l|M|]
\NC (a) \NC %

\startmathalignment[n=7,align={right,middle,right,middle,right,middle,right}]
      \NC 3x\NC +\NC 6y\NC -\NC 2z\NC =\NC -13\NR
      \NC -6x\NC -\NC 9y\NC +\NC 5z\NC =\NC 22\NR
      \NC 3x\NC +\NC 3y\NC -\NC 5z\NC =\NC -13\NR
    \stopmathalignment
\NC (b) \NC %

\startmathalignment[n=7,align={right,middle,right,middle,right,middle,right}]
\NC x\NC +\NC 3y\NC +\NC 3z\NC =\NC -4\NR
\NC x\NC +\NC 4y\NC +\NC 5z\NC =\NC -5\NR
\NC 2x\NC +\NC 4y\NC +\NC 3z\NC =\NC -5\NR
\stopmathalignment
\NC\AR
\stoptable

But this doesn't work.  There seems to be a problem with the mathalignment
environment within the table.  What do I need enclose these in so that they
will be treated as displayed equations within the table environment?  I'm
using MkII.

Thanks,
Alasdair

-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew

[-- Attachment #1.2: Type: text/html, Size: 3138 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2011-05-14  1:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-14  1:17 Alasdair McAndrew [this message]
2011-05-14  1:23 ` Aditya Mahajan
2011-05-14  1:57   ` Alasdair McAndrew
2011-05-14  2:03     ` Aditya Mahajan
2011-05-14 10:28   ` Hans Hagen

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='BANLkTim5s8rpAF8R2aAw2NZ=d2v32t8WGA@mail.gmail.com' \
    --to=amca01@gmail.com \
    --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).