mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-13 23:18:38 +00:00
Old font command support: \rm, \sf, \tt, \bf, \it (#675)
Squashed: * \rm, \sf, \tt, \bf, \it support * Fix space consumption after macros without arguments * Add tests for old font commands
This commit is contained in:
committed by
Martin von Gagern
parent
40ec1b92b8
commit
171e38f28a
@@ -118,6 +118,12 @@ NestedFractions: |
|
||||
\dfrac{\frac{a}{b}}{\frac{c}{d}}\dfrac{\dfrac{a}{b}}
|
||||
{\dfrac{c}{d}}\frac{\frac{a}{b}}{\frac{c}{d}}
|
||||
NullDelimiterInteraction: a \bigl. + 2 \quad \left. + a \right)
|
||||
OldFont: |
|
||||
\begin{matrix}
|
||||
\rm rm & it & \it it & \bf bf & \sf sf & \tt tt \\
|
||||
\text{\rm rm} & \text{rm} & \text{\it it} & \text{\bf bf} & \text{\sf sf} & \text{\tt tt} \\
|
||||
i\rm r\it i & \text{r\it i\rm r}
|
||||
\end{matrix}
|
||||
OpLimits: |
|
||||
{\sin_2^2 \lim_2^2 \int_2^2 \sum_2^2}
|
||||
{\displaystyle \lim_2^2 \int_2^2 \intop_2^2 \sum_2^2}
|
||||
|
Reference in New Issue
Block a user