Support \hline (#1306)

* Support \hline

Support `\hline`.

* Fix CSS

* Fix lint errors

* Add double \hline. Code Cleanup

* Reduce width of screenshot test

* Add screenshots

* Use consumeSpaces, read multiple \hlines

* Code cleanup

* Update screenshots
This commit is contained in:
Ron Kok
2018-05-12 10:51:14 -07:00
committed by Erik Demaine
parent 929b9bf5e7
commit 74422e1462
6 changed files with 65 additions and 2 deletions

View File

@@ -124,6 +124,7 @@ GroupMacros:
\startExp: e^\bgroup
\endExp: \egroup
tex: \startExp a+b\endExp
Hline: \begin{array}{c|c}\hline \hline \hline a & b \\ \hline \hline \hline c & d \end{array} \quad \frac{\begin{pmatrix} a & b \\ \hline c & d \\ \hline \hline \hline\end{pmatrix}} 2 \quad \begin{bmatrix}\hline a & b \\ \hline c & d \\ \hline e & f \end{bmatrix}
HorizontalBraces: \overbrace{\displaystyle{\oint_S{\vec E\cdot\hat n\,\mathrm d a}}}^\text{emf} = \underbrace{\frac{q_{\text{enc}}}{\varepsilon_0}}_{\text{charge}}
KaTeX:
tex: \KaTeX