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've got a document I'm going to generate from some input which basically is a tabularx for each page:

\begin{tabularx}{\textwidth}{lXlll}
\hline \\[3ex]
\commandOne \\
\hline \\[3ex]
\commandTwo \\
\hline 
\end{tabularx}

\clearpage

\begin{tabularx}{\textwidth}{lXlll}
\hline \\[3ex]
\commandThree \\
\hline \\[3ex]
\commandFour \\
\hline 
\end{tabularx}

where \commandOne...\commandFour generates the table's rows and columns.

The problem is that I want each of the \hlines to be placed exactly at the same place on each page (I know that every \commandN takes less than half a page).

Is there for example a way I can hardcode the position of the \hline and the text following?

share|improve this question

closed as too localized by egreg, tohecz, Thorsten, Joseph Wright Apr 15 '12 at 6:26

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Do you have to use tabularx here or would it be enough to determine a with of that column and then you could a l column with a minipage whre you specified both the width and vertical extent. –  David Carlisle Mar 21 '12 at 21:53
    
@Paul It maybe better not to use a tabular at all, can you post a sample output somewhere? –  Yiannis Lazarides Mar 21 '12 at 22:26
    
Also would be useful to understand how you determine/specify where the \hline is to go. –  Peter Grill Mar 22 '12 at 0:08