Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
Welcome to TeX.ES! This question might help: tex.stackexchange.com/questions/19589/… –  Pouya Jan 9 '13 at 10:01
add comment

1 Answer

up vote 11 down vote accepted

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}
share|improve this answer
    
Thank you, this solves my problem. –  werman Jan 9 '13 at 10:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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