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?

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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.