Cover longtable headers with math body rows
This commit is contained in:
1 parent
972b7635d2
commit
3622d40043
1 file changed
+29
@@ -1764,3 +1764,32 @@ $O_{ird}^m,q_{ird}^m$ & x \\
|
|||||||
let value = fresh_preview(source, "longtable-scripts.tex");
|
let value = fresh_preview(source, "longtable-scripts.tex");
|
||||||
assert_eq!(value["status"], "ok");
|
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");
|
||||||
|
}
|
||||||
Reference in new issue
Block a user