From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Reg. fonts and math
Date: Thu, 12 Jan 2006 16:29:26 -0500 (EST) [thread overview]
Message-ID: <Pine.GSO.4.63.0601121559590.17710@rrpf4327h07.ratva.hzvpu.rqh> (raw)
In-Reply-To: <43C69632.1040906@wxs.nl>
On Thu, 12 Jan 2006, Hans Hagen wrote:
> Aditya Mahajan wrote:
>
>> Most math in latex is *not* same as tex math. Though, most that can be done
>> with latex can also be done in tex, but latex does provide a nice interface
>> which sadly is missing in context. amsl and nath modules provide some of
>> this functionality but a lot still needs to be done to make Context math
>> handling as easy as it is in Latex.
>
>
> Do you mean that everything between $ $ and \begin{math} \end{math} is
> different?
>
> a + b
> \int ...
> \sqrt
>
> etc is not different is it?
No, I mean the complicated math is much harder in context. Consider
\begin{align}
a &= b \\
c &= d \notag \\
&= f \notag \\
&= g
\end{align}
which will typeset as
a = b (1)
c = d
= f
= g (2)
There is no Context way to do it, and one has to resort to plain tex
\placeformula
$$
\eqalignno{
a &= b &\formulanumber \cr
c &= d \cr
&= f \cr
&= g \formulanumber}
$$
Context gives the same result, but the input syntax is much more verbose
than the latex syntax.
Latex also has a lot of other useful enviromnemts like
\begin{equation}
\begin{split}
a &= b \\
&= c
\end{split}
\end{equation}
Again, the same effect can be achieved in plain tex, but it is more
verbose.
amsmath also has some useful environments like multalign and aligned,
gathered, faligned, alignat, etc. Some of their functionality can be
achieved using \start stop array from amsl but the amsmath environments
have a lot more features.
There are certain features that are much more difficult to achieve using
context. Consider equation subnumbering. In latex, it is as simple as
\begin{subequations}
\begin{align}
a &= b \\
c &= d
\end{align}
\end{subequations}
Compare this from how to do this in context (see the wiki). You have to
*manually* set the number of the subequation. Actually, for equation
numbering and refering, the context way is rather limited. Consider
something like an align environment
a &= b\\
c &= d\\
e &= f
Suppose, I want to refer to the second equation. In latex, I can simply
add \label{eq:2} and the end of c&= d and then \ref{eq:2}. For context,
the reference label goes at the top, with \placeformula[eqs]. But I am not
sure, how to give individual labels to each equations.
Browse through http://www-sop.inria.fr/miaou/latex/voss-math.pdf which
explains almost all math tricks in latex. For some of the more complicated
stuff, compare the latex code and the context code to achieve that result.
Context has all the features, but for complicated maths, they are low
level tricks. There is no upper layer like amsmath making life easier for
the user. It will be nice to have such a layer.
Aditya
next prev parent reply other threads:[~2006-01-12 21:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-12 0:55 Kumar Appaiah
2006-01-12 8:20 ` Hans Hagen
2006-01-12 16:06 ` Aditya Mahajan
2006-01-12 17:47 ` Hans Hagen
2006-01-12 21:29 ` Aditya Mahajan [this message]
2006-01-13 17:59 ` Hans Hagen
2006-01-14 1:48 ` Aditya Mahajan
2006-01-14 8:36 ` Aditya Mahajan
2006-01-14 16:58 ` Adam Duck
2006-01-14 17:04 ` Aditya Mahajan
2006-01-14 9:47 ` Tobias Burnus
2006-01-15 17:27 ` 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=Pine.GSO.4.63.0601121559590.17710@rrpf4327h07.ratva.hzvpu.rqh \
--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).