I have a strange behaviour regarding longtable
and array
packages: When including the array
package, I can no longer change the row spacing using \\[...]
syntax. MWE:
\documentclass[a4paper,11pt]{scrartcl}
\usepackage{longtable}
% \usepackage{array} % Uncomment to trigger problem
\usepackage{lipsum}
\begin{document}
\begin{longtable}{ p{3cm} | %>{\raggedright\let\newline\\\arraybackslash}
p{10cm} }
a & b\\
c & \lipsum[1] \\[4cm]
d & e
\end{longtable}
\end{document}
(Remark: I want the right column to be left aligned instead of block text. Thus I wanted to use the array
package.) Somehow it seems that LaTeX interprets the 4cm in the MWE differently if array
is included or not:
- Without
array
there is 4cm spacing between row 2 and 3. This is my intention. - With
array
included it seems that the 4cm are interpreted as something like the minimal height of a row. Enlarge it sufficiently and change the amount of text. In my compiled PDFs the third row is always on the same position or pushed down if the text is too much.
Can you confirm this behaviour? What can I do to avoid this?
scrkbase 2017/04/13 v3.23 scrbase 2017/04/13 v3.23 keyval 2014/10/28 v1.15 scrlfile 2017/04/13 v3.23 tocbasic 2017/04/13 v3.23 typearea 2017/04/13 v3.23 longtable 2014/10/28 v4.11 array 2016/10/06 v2.4d lipsum 2014/07/27 v1.3
– Steven B. Segletes Jun 25 '18 at 11:54texlive-core-2018.47471-1
(current package) and does not occur withtexlive-core-2017.46770-1
. I already found another space-related bug with the current package and don't know yet how to track it... – nox Jun 25 '18 at 12:03scrartcl.cls 2018/03/30 v3.25 scrkbase.sty 2018/03/30 v3.25 scrbase.sty 2018/03/30 v3.25 keyval.sty 2014/10/28 v1.15 scrlfile.sty 2018/03/30 v3.25 tocbasic.sty 2018/03/30 v3.25 scrsize11pt.clo 2018/03/30 v3.25 typearea.sty 2018/03/30 v3.25 longtable.sty 2014/10/28 v4.11 array.sty 2018/04/30 v2.4h lipsum.sty 2014/07/27 v1.3
I cannot switch back to 2017 easily. But I just synced from TeXLive everything. This did nothing to improve the problem. – Christian Wolf Jun 25 '18 at 12:30