I'm writing the use case documentation for my Software Engineering project. I'm using longtable
to get a template that spans over multiple pages.
\documentclass{article}
\usepackage{array}
\usepackage{lipsum} % Used to produce long text
\usepackage{longtable}
\newcolumntype{L}{>{\raggedleft}p{0.2\textwidth}}
\newcolumntype{R}{p{0.74\textwidth}}
\newcommand\VRule{\vrule width 0.5pt}
\begin{document}
\begin{longtable}{L!{\VRule}R}
\hline
\textbf{ID} & \texttt{UC\_01\_01} \\
\textbf{Name} & Password recovery \\
\textbf{\textit{Macro}-UC} & Registration (\texttt{UC\_01}) \\
\textbf{Actors} & \texttt{ACTOR\_02} \\ \hline
\textbf{Preconditions} & \lipsum[2-4] \\ \hline
\textbf{Main flow} & Some itemize list here! \\ \hline
\textbf{Postconditions} & \lipsum[5-7] \\ \hline
\end{longtable}
\end{document}
The problem is that the table doesn't break within the row. I would need a breakable content to put into a row to have a homogeneous filling on each page.
I tried to wrap this row in a box using the framed
package but it doesn't work. I noticed that I can achieve a break page within a box with the mdframed
package but I can't use it since I'm working on ScribTeX and I've no version of LaTeX installed on my computer.
I've also tried the usecase
package but it doesn't support page breaking.
Could you please suggest me a trick or an alternative to achieve this result? I've been stucking on this matter for two days.
Best Answer
I don't think that's possible with longtable, or any other tabular environment for that matter, because the material inside the tabular cells are TeX boxes, which by definition cannot be broken.
I suggest you use
parcolumns
instead, which has been designed to typeset several columns next to each other for multilingual texts. Here's an example: