3

I have a table with two columns like this:

\begin{tabularx}{\textwidth}{XX}

test & test \\ 

\multicolumn{2}{l}{test} \\

\end{tabularx}

However the multicolumn line does not function good (too close to the first line). Besides I read that \multicolumn should not cross any X columns.

What is the solution?

ShreevatsaR
  • 45,428
  • 10
  • 117
  • 149
MKJ
  • 31

1 Answers1

2

Please always post complete. documents not just fragments. the spacing you get here is unaffected by tabularx you would get the same spacing from tabular p columns. I a not sure why you say it is "too close" as it is teh standard row spacing that you would get without the \multicolumn However I insert an extra 20pt space in the example below.

enter image description here

\documentclass{article}

\usepackage{tabularx}

\begin{document}

\noindent
\begin{tabularx}{\textwidth}{XX}

test & test \\[20pt]

\multicolumn{2}{l}{test} \\

\end{tabularx}

\end{document}
David Carlisle
  • 757,742