Fix ligatures vs. \tt (#1379)

* Fix ligatures not always triggering

Example: \text{\rm --} would not cause ligature but should

* Remove ligatures in \texttt mode

* Add screenshot tests

* Fix MathML ligatures

* Fix type

* Handle \text... fonts in MathML building

* Remove leftover console deubgging
This commit is contained in:
Erik Demaine
2018-06-04 20:29:25 -04:00
committed by Kevin Barabash
parent 4f9851fb0c
commit 1e645198f7
12 changed files with 232 additions and 29 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -76,7 +76,12 @@ Colors:
ColorImplicit: bl{ack\color{red}red\textcolor{green}{green}red\color{blue}blue}black
ColorSpacing: \textcolor{red}{\displaystyle \int x} + 1
Colorbox: a \colorbox{teal} B \fcolorbox{blue}{red}{C} e+\colorbox{teal}x
DashesAndQuotes: \text{``a'' b---c -- d----`e'-{-}-f}--``x''
DashesAndQuotes: |
\begin{array}{l}
\text{``a'' b---c -- d----`e'-{-}-f} -- \\
\text{\it ``a'' b---c -- d----`e'-{-}-f} ``x'' \\
\text{\tt ``a''---} \texttt{``a''---} \mathtt{--} \\
\end{array}
DeepFontSizing:
tex: |
a^{\big| x^{\big(}}_{\Big\uparrow} +