Changes

Jump to navigation Jump to search
1,908 bytes added ,  23:24, 18 March 2021
→‎List of Formulas: -- add new list option, see: https://mailman.ntg.nl/pipermail/ntg-context/2021/101611.html
\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 after 2021-03-17
\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 =
174

edits

Navigation menu