diff --git a/tests/typeset.rs b/tests/typeset.rs index 4fe7cde..71aeff0 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -1764,3 +1764,32 @@ $O_{ird}^m,q_{ird}^m$ & x \\ let value = fresh_preview(source, "longtable-scripts.tex"); assert_eq!(value["status"], "ok"); } + +#[test] +fn e_full_header_math_compiles() { + let source = r"\documentclass{article} +\usepackage{booktabs} +\begin{document} +\begingroup +\small +\begin{longtable}{@{}p{0.29\linewidth}p{\dimexpr0.71\linewidth-2\tabcolsep\relax}@{}} +\caption{符号约定}\\ +\toprule +符号 & 含义 \\ +\midrule +\endfirsthead +\multicolumn{2}{l}{\small 表\ \thetable\ (续)}\\ +\toprule +符号 & 含义 \\ +\midrule +\endhead +\bottomrule +\endfoot +$i,j$;$m\in\mathcal M$ & x \\ +$O_{ird}^m,q_{ird}^m$ & y \\ +\end{longtable} +\endgroup +\end{document}"; + let value = fresh_preview(source, "e-full-header.tex"); + assert_eq!(value["status"], "ok"); +}