In a basic tabular environment it seems that the optional parameter to \\ sometime has no effect. For instance, why is there no additional vertical spacing following the highlighted lines even though each line ends with a \\[2.0ex]?
Notes:
I am aware of solutions that apply to all lines in the table:
\renewcommand{\arraystretch}{1.5}\extrarowheight=3pt\relax(With thearraypackage)
but am specifically looking for a solution where I can control the spacing on a line by line basis as per the MWE.
References
Code:
\documentclass{article}
%% --------------------- These two for \rowcolor (to reproduce image)
%\usepackage{colortbl}
%\usepackage{xcolor}
\usepackage{array}% For \extrarowheight
\newcommand{\ShortText}{Short text.}% Fits on one line
\newcommand{\LongText}{Long text that takes up more than one line.}%
\begin{document}
\noindent
%\renewcommand{\arraystretch}{1.5}% This works, but applies to ALL rows
%\extrarowheight=3pt\relax% This works with the array package, but applies to ALL rows
\begin{tabular}{l p{0.35\linewidth} p{0.45\linewidth}}
Num & Column 1 & Column 2 \[2.0ex]
1 & \ShortText & \ShortText \[2.0ex]
2 & \ShortText & \LongText \[2.0ex]
%\rowcolor{red!25}% <-- Needs "colortbl" and "xcolor"
3 & \LongText & \ShortText \[2.0ex]% <--- Why this optional parameter ignored
4 & \LongText & \LongText \[2.0ex]
5 & \ShortText & \ShortText \[2.0ex]
\end{tabular}
\end{document}




\\[<len>]when I don't colour thetabular. – Werner Jun 22 '18 at 19:18\noalign{\vspace{2.0ex}}. – Ulrike Fischer Jun 22 '18 at 19:27\\[<len>]will only show if<len>exceeds this vertical difference. – Werner Jun 22 '18 at 19:27array v2.4hand getting some spaces, but not all of them. So I don't know what you mean by "this is no longer true with a currentarray.sty. – Werner Jun 22 '18 at 19:34|and that simplifies things greatly. – David Carlisle Jun 22 '18 at 19:372 & \ShortText & \LongText \\[2.0ex]gives a different result with a current array.sty (no space) than with an older one (space). – Ulrike Fischer Jun 22 '18 at 19:42arrayaltogether. – Werner Jun 22 '18 at 19:51