From: Pau <vim.unix@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: LaTeX maths with array...
Date: Sat, 19 Apr 2008 20:24:08 +0200 [thread overview]
Message-ID: <30c383e70804191124l649ab7bex54e496a6f81359a0@mail.gmail.com> (raw)
Hi,
I am preparing an e-journal for astro and I have many articles with
lots of equations. Unfortunately, authors are using LaTeX maths and
this is giving me trouble.
I have read and followed the steps of
http://wiki.contextgarden.net/LaTeX_Math_in_ConTeXt
and
http://wiki.contextgarden.net/Math_with_newmat
and it has helped me a lot but there's a snag I run all the time in: array
Typically, the equation giving troubles is of the kind:
\begin{equation}
\begin{array}{rl}
h & \sim \mu M^{2/3}f^{2/3}/r\\
& \sim M_{ch}^{5/3}f^{2/3}/r\\
\end{array}
\end{equation}
when I try to compile, I get
! Misplaced alignment tab character &.
l.484 h&
\sim \mu M^{2/3}f^{2/3}/r\\
Of course, when I use
\startformula\eqalign{
h & \sim \mu M^{2/3}f^{2/3}/r \cr
& \sim M_{ch}^{5/3}f^{2/3}/r \cr
}\stopformula
everything runs smoothly but I cannot convert all equations containing
a {array}{rl} or similar, because I would never end... I guess that
writing a script to convert them in eqlign would be feasible, but it's
a very... precarious way... I would prefer to fix the problem from
ConTeXt itself...
how??
thanks,
Pau
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2008-04-19 18:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-19 18:24 Pau [this message]
2008-04-19 20:41 ` Aditya Mahajan
2008-04-19 22:26 ` Pau
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=30c383e70804191124l649ab7bex54e496a6f81359a0@mail.gmail.com \
--to=vim.unix@googlemail.com \
--cc=ntg-context@ntg.nl \
--cc=vim.unix@gmail.com \
/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).