表の縦線と上線の間の隙間

表の縦線と上線の間の隙間

この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}

出力に表示されているギャップを埋める必要があります。

Mathematica グラフィックス

これらのギャップを埋めるために上記の 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}

関連情報