この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
次の 2 つの簡単なガイドラインを常に覚えておけば、間違いを犯すことはありません。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}