Repository navigation
mathra 1.9.0
·
277 commits
to main
since this release
Chemistry, color, fills and math environments inside text, and TeX's italic correction at the end of a formula.
- Inside
\text{…}, mhchem's\ce{…}and\pu{…}are read as in math (\text{water, \ce{H2O}}), instead of being written as is (L-CHE-1, #84). - Inside
\text{…},\color{…}(also\color[model]{…}) colors the rest of its group and\textcolor{…}{…}its argument, math included, keeping the text's bold, small capitals or monospace (L-TXT-4, #85). - Inside
\text{…},\hfill,\hfiland\hsstake no room, as in a box of natural width, and\newlineand\linebreakare a space, as\\is (L-TXT-3, #86). - Inside
\text{…},\begin{equation},align,gather,multlineand the other displays are read as math up to their\end, like\[…\];array,pmatrix,cases,alignedand the other math-only environments too, with a warning (E-REC-1), since TeX refuses them in text (L-TXT-2, #87). - A slanted letter that ends a math list gets its italic correction after it, as TeX does (Appendix G, rule 17). That covers the end of the formula, of a script, a fraction's parts, a radicand, a phantom, a lap and a table cell. In scripts, the base letter's correction stands in at the script's size.
$V$was 5.83pt wide, TeX gives 8.06pt (#89). layout::compose_list: a math list composed on its own, with that correction.
Equations: \text{water, \ce{H2O}, at \pu{20 mol}}, \text{the {\color{red}warm} and {\color{blue}cold} sides}, \text{so \begin{align*}a&=1\\b&=2\end{align*}}, V = f, V_0 + R_1, \frac{V}{f}, \sqrt{f}