I know in order to add the row height in a tabular
, there are two quite different ways to do so:
By setting
\arraystretch
. For example,\renewcommand{\arraystretch}{1.1}
. Now, the row height of each row is satisfactory. However, this has the problem that in some critical situation, the lines are crowded.\renewcommand{\arraystretch}{1.1} \begin{tabular}{|lll|}\hline $a$ & $b$ & $\left\langle\dfrac{1}{7n}\right\rangle$ \\\hline $c$ & $d$ & $\left\langle\dfrac{1^n}{7}\right\rangle$ \\\hline \end{tabular}
The third column is crowded. As you may think, why don't I set the \arraystretch
bigger? If so:
\renewcommand{\arraystretch}{1.4}
\begin{tabular}{|lll|}\hline
$a$&$b$&$c$\\
$e$&$f$&$g$\\\hline
$i$&$j$&\color{red}{$\left\langle\dfrac{1}{7n}\right\rangle$} \\
$k$&$l$&\color{red}{$\left\langle\dfrac{1^n}{7}\right\rangle$} \\\hline
\end{tabular}
Now the red parts have good line spacing, but the other parts, like the spacing between letter a and e, has exaggerating spacing, too wide.
- The second way is by setting
\extrarowheight
, but it may cause the same problem.
My question: So, can I set something like the \lineskip
in paragraph? That is, only when the bottom of the characters in the former line is too closed to the top of some characters in the next line(like my example), it will produce proper extra spacing among these. If such circumstance doesn't occur, the line spacing holds regular.