summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f74e577)
This is a temporary expediency. These characters sometimes appear in a
math expression and sometimes outside of a math expression, so when we
start correctly rendering math expressions, we can't just blindly jump
into math mode like this. :(
def process(spec: Spec) -> None:
spec.texout.write(br'''\documentclass{article}
def process(spec: Spec) -> None:
spec.texout.write(br'''\documentclass{article}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{longtable}
# Work around `Extra }, or forgotten \endgroup.`
("FixBareNesting", lambda x: re.sub(
b'(^|\n)(\\\\(emph|st){)', b'\\1\\\\hspace{0pt}\\2', x)),
# Work around `Extra }, or forgotten \endgroup.`
("FixBareNesting", lambda x: re.sub(
b'(^|\n)(\\\\(emph|st){)', b'\\1\\\\hspace{0pt}\\2', x)),
+ ("UnicodeApprox", lambda x: re.sub('≈'.encode('utf-8'), b'$\\approx$', x)),
+ ("UnicodeTriangle", lambda x: re.sub('◁'.encode('utf-8'), b'$\\lhd$', x)),