Re: tabularx and row spacing



John wrote:
Hello!

I have a problem with the following code

\begin{tabularx}{\textwidth}{X}
\hline
\huge This is a huge text\\
\hline
\end{tabularx}

When I change the text size to something bigger than the normal size,
the text touches the horizontal line instead of preserving the original
spacing. I've tried to use \vspace but it doesn't work.

It's the normal tabular(x) behavior. At beginning of each entry, LaTeX puts a \strut. In your code, it becomes \strut \huge ..., then the \strut is a \normalsize one.

Has someone a solution?

Put another \strut *after* \huge.

\huge \strut This is a huge text\\

Jean-Côme Charpentier
.



Relevant Pages