Changes

Jump to navigation Jump to search
m
Added references to Math_with_newmat package.
< [[Main Page]] | [[Math]] | [[Math with newmat]] | [[Math with amsl]] >
One of the barriers to using ConTeXt is that the equation syntax is quite different from LaTeX equation syntax. As a result, one cannot copy equations from LaTeX documents (whether existing documents, or articles for journals that request LaTeX submissions) into ConTeXt documents, or vice versa. Without some solution to this, producing a set of ConTeXt slides to go with a LaTeX article would require completely rewriting all of the equations.
Thus, the intent of this page is to document some methods for importing LaTeX equations into ConTeXt documents. Eventually, they will end up in a third-party ConTeXt package (<i>or such is my intent --Brooks Moses</i>), but for now they are simply given here in full.
 
== LaTeX Environments ==
To start with, there is the problem that ConTeXt uses <tt>\startenv ... \stopenv</tt> pairs to define environments, whereas LaTeX uses <tt>\begin{env} ... \end{env}</tt> pairs. The relative merits of these can be argued, but the fact remains that if one is importing LaTeX documents into ConTeXt, it is simpler to leave the environments in the LaTeX form. The following small set of definitions does an automatic translation.
\def\stopsplit{\crcr\egroup\egroup\,}
</texcode>
 
 
== Other LaTeX Commands ==
 
There are a number of commands such as <cmd>frac</cmd> that are provided in LaTeX but not in the ConTeXt core. Many of these are provided by the [[Math with newmat|newmat]] module; those are documented there.
 
----

Navigation menu