math_spec.typesetting.latex
LaTeX (amsmath). The preamble must stay installable from a two-package TeX, which is what CI compiles with.
LatexFormat
#
See :class:math_spec.typesetting.format.Format.
cases_row = ' \\\\ '
class-attribute
#
dash = '---'
class-attribute
#
notation = 'latex'
class-attribute
#
operators = {name: latex for name, (latex, _) in OPERATOR_SPELLINGS.items()}
class-attribute
#
apply(function, argument)
#
cardinality(inner)
#
cases(arms)
#
document(blocks, *, standalone)
#
equations(lines, *, numbered)
#
Source code in src/math_spec/typesetting/latex.py
escape(prose)
#
fraction(numerator, denominator)
#
glossary(title, entries)
#
greek(name)
#
italic(name)
#
joined(parts, operator)
#
math(expression)
#
mono(text)
#
note(text)
#
parenthesise(inner)
#
prose(text)
#
quoted(label)
#
The quotes in text mode and the label upright in math mode, since MathJax renders \_ inside \text literally.