在此 MWE 中
\documentclass[]{article}
\usepackage{amsmath}
\usepackage{booktabs}%added 8/16/2019
\setlength\heavyrulewidth{0.5ex}
\begin{document}
\small
\begin{tabular}[c]{|p{1.5in}|p{4in}|}
\toprule
Problem&1\\\hline
ODE &${\frac {\rm d}{{\rm d}x}}y \left( x \right) =1+2\,x$\\\hline
ODE degree &1\\\hline
Number of solutions &1\\\hline
CAS classification &quadrature\\\hline
Program classification&{\footnotesize [separable]}\\\hline
Solved? &yes\\\hline
Verified? &yes\\
\bottomrule
\end{tabular}
\normalsize
\end{document}
我需要弥补输出中显示的差距:
如何修改上述 MWE 来弥补这些差距?
使用 TL 2019
答案1
\Xhline
以下是使用该包的另一种方法makecell
:
\documentclass[]{article}
\usepackage{amsmath}
\usepackage{makecell}
\begin{document}
\small
\begin{tabular}[c]{|p{1.5in}|p{4in}|}
\Xhline{0.5ex}
Problem&1\\\hline
ODE &${\frac {\rm d}{{\rm d}x}}y \left( x \right) =1+2\,x$\\\hline
ODE degree &1\\\hline
Number of solutions &1\\\hline
CAS classification &quadrature\\\hline
Program classification&{\footnotesize [separable]}\\\hline
Solved? &yes\\\hline
Verified? &yes\\
\Xhline{0.5ex}
\end{tabular}
\normalsize
\end{document}
使用该包并遵循手册booktabs
中的指导的示例booktabs
只要您始终牢记两个简单的准则,就不会犯大错:1. 永远不要使用垂直规则。
看起来可能像下面这样:
\documentclass[]{article}
\usepackage{amsmath}
\usepackage{booktabs}
\begin{document}
\begin{tabular}[c]{ll}
\midrule
Problem & 1 \\ \addlinespace
ODE &${\frac {\rm d}{{\rm d}x}}y \left( x \right) =1+2\,x$\\ \addlinespace
ODE degree &1\\ \addlinespace
Number of solutions &1\\ \addlinespace
CAS classification &quadrature\\ \addlinespace
Program classification&{\footnotesize [separable]}\\ \addlinespace
Solved? &yes\\ \addlinespace
Verified? &yes\\
\bottomrule
\end{tabular}
\end{document}