5

I have created longtable with some text and I want set same height for all cells.

It looks like:

\documentclass[11pt]{article}
\usepackage{longtable}
\begin{document}

\renewcommand{\tabcolsep}{0.5cm}
\renewcommand{\arraystretch}{2}

\begin{longtable}{ | p{7cm} | p{7cm} |} 
\hline
TEXT TEXT TEXT TEXT.
&
TEXT TEXT TEXT.
\\ \hline
MORE TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
 TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
&
END.
\\ \hline
\end{longtable}

\end{document}

Is it possible to set same height for all cells in table?

12

enter image description here

\documentclass[11pt]{article}
\usepackage{longtable,array}
\begin{document}

\renewcommand{\tabcolsep}{0.5cm}
\renewcommand{\arraystretch}{2}

\begin{longtable}{ | >{\noindent\begin{minipage}[t][4cm]{\hsize}}p{7cm}<{\end{minipage}} | p{7cm} |} 
\hline
TEXT TEXT TEXT TEXT.
&
TEXT TEXT TEXT.
\\ \hline
MORE TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
 TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
&
END.
\\ \hline
\end{longtable}

\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.