Changes

Jump to navigation Jump to search
108 bytes removed ,  13:25, 9 August 2020
m
Text replacement - "<cmd>" to "{{cmd|"
% into the appropriate ConTeXt macros.
% The \end of a \begin,\end pair is problematic,% since \stoptext % depends on TeX's \end. We fix% that as follows, with a slightly edited copyusing the % \everystoptext hook. (Note that some versions of ConTeXt% have already redefined \stoptext from core-job.texend, but this should all work out.
\unprotect\let\therealdocumentend@@end=\end\def\stoptekstappendtoks {\dogloballet\decrementend=\textlevel\relax@@end \ifnum\textlevel>\zerocount \else \theto \everystoptext \expandafter\therealdocumentend \fi}\let\stoptext \stoptekstprotect
% With that out of the way, the actual trans-
</texcode>
Thus, a command such as <tt>\begin{array}</tt> in a LaTeX equation will simply call <{{cmd>|startarray</cmd>}}, and we can define all of the remaining compatibility macros as <tt>\start ... \stop</tt> pairs without needing to translate the equations manually to match. However, this does not work with all ConTeXt environments; a few of them require the literal string <tt>\stopenvironment</tt> at the end of the environment.
With that framework in mind, we can start duplicating some of the basic LaTeX equation environments. To start with, the <tt>equation</tt> environment itself, along with the <tt>equation*</tt> environment from AMSmath.
\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.
----
I should also add: there's a set of code for bold math (text and symbols) in [http://www.ntg.nl/pipermail/ntg-context/2004/005314.html this message to the ConTeXt mailing list] and [http://www.ntg.nl/pipermail/ntg-context/2004/005315.html its followup here]. This matter is also discussed, perhaps more thoroughly, in [http[magazine://www.pragma-ade.com/general/magazines/mag-0005.pdf |ConTeXt Magazine issue #5]].
[[Category:From LaTeX]]
[[Category:Math]]

Navigation menu