Dear experienced friends, I met a question when I draw the table in LaTex. Suppose I want to draw a simple table as follows. We can see that the gaps between each line are evenly distributed. However, after I added the dividing line with \hline
into the table, I found this dividing line is always closer to the row below.
May I ask is there any way that I can make the gap of rows evenly distributed again? To be more specific, I hope the heights between A->B
,B->Dividing line
,Dividing line->D
,D->E
become same. Can we achieve that?
Thank you so much in advance.
% Here is my code
\begin{table}[!htbp]
\centering
\begin{tabular}{l | l | p{5cm}}
\hline
Name & ID & Description \\
\hline
$\mathit{A}$ & 1 & This is A \\
$\mathit{B}$ & 2 & This is B \\
\hline
$\mathbf{D}$ & 4 & This is D\\
$\mathbf{E}$ & 5 & This is E\\
\hline
\end{tabular}
\end{table}