Changes

Jump to navigation Jump to search
1,183 bytes added ,  22:50, 21 March 2021
m
→‎List of Formulas with MKIV/LMTX: update list option requirement for MKIV latest
< [[Math]]| >
 
 
<div style="border: 3px solid red; background: #ffaaaa; padding: 0.4em;">
<div style="fontsize: 1.3em; fontweight: bold">Warning!</div>
If you consider using ConTeXt for a paper with a proper formula numbering please wait until it is implemented in mkiv. At the moment only a very limited formula numbering is possilbe:
* number formula(s) with a plain number
* number formula(s) with a subnumber
Not possible is at the moment:
* Table of formulas
* Named subformulas
* Mixure of formulas and subformulas in one block
* Reference on a (sub-)formula without having it listed in the Table of formulas
For more details and actual state see mailing list and [http://wiki.contextgarden.net/User_talk:Zenlima Summary of formula numbering problem].
</div>
 
 
= Display Math =
<table width="100%" cols="2" cellpadding="5"><tr valign="top"><td width="50%">
<texcode>
\setupformulas[conversionnumberconversion=Character]
</texcode>
</td>
\setuppapersize[A5]
\setuplayout[width=8cm]
\setupformulas[conversionnumberconversion=Character]
\placeformula
\startformula
\startformula a = 3 \stopformula \endgraf
</context>
 
== List of Formulas with MKIV/LMTX ==
Since MKIV there are two types of formulas: numbered and named. Numbered formulas have the number as a reference and caption next to the formula and are listed only with the number and pagenumber in the list of formulas. Named formulas use the name as the caption instead of a number and are referenced with the name and pagenumber in the list of formulas.
 
<context source=yes>
% equivalent to \placenamedformula[formula:mass]{Mass-energy equivalence}
\startplaceformula[title={Mass-energy equivalence},reference=formula:mass] \startformula e=mc^2 \stopformula\stopplaceformula
 
% equivalent to \placeformula[formula:mass] (note: placeformula is listed in the list of formulas if it has a reference)
\startplaceformula[reference=formula:mass] \startformula e=mc^2 \stopformula \stopplaceformula
 
% equivalent to \placeformula (with no entry in the list of formulas)
\startplaceformula \startformula e=mc^2 \stopformula \stopplaceformula
 
\placelist[formula][criterium=text,alternative=c]
</context>
 
{{cmd|startplaceformula}} comes with the following key options: bookmark, list, reference, suffix, title.
 
To name a numbered formula in the list of formulas, one can use the list option:
<context source=yes>
% named formula
\startplaceformula[reference=formula:mass,title={Mass-energy equivalence}] \startformula e=mc^2 \stopformula
\stopplaceformula
 
% numbered formula with list text, note without a reference option the formula is just a placeformula that is not listed in the list of formulas -- needs ConTeXt latest version 2021-03-21 or later
\startplaceformula[reference=formula:mass,list={Mass-energy equivalence}] \startformula e=mc^2 \stopformula \stopplaceformula
 
\placelist[formula][criterium=text,alternative=c]
</context>
 
Note: The title option changes the formula to a named formula and will use that name in the list of formulas regardless of the list option.
= Shaded background for part of a displayed equation =
we may write $\log(1+x) = x + O(x^2)$.
</context>
 
[[Category:Math]]
174

edits

Navigation menu