4

I'm trying to place a bunch of images into the multirow within longtabu. But it looks messy if row is splitted by page break. The same problem with long text in multirow. Neither image nor text are not moved to another page.

Is there way to make it correct? Thanks!

PS my environment: win, texlive 2013, xelatex.

\documentclass{article}
\usepackage{multirow, longtable, tabu, graphicx}

\begin{document}    
\section{Section}
\vspace{16cm} % to force page break.

\begin{longtabu} to \linewidth {|c|X[m]|}
\cline{1-2}\endhead

\cline{1-2}\endfoot

\cline{1-2}    
\multirow{9}{60pt}{
    \begin{center}
    \includegraphics[height=30pt]{image.eps} 
    \includegraphics[height=30pt]{image.eps}
    %Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi.
    \end{center}
} &1 \\ \cline{2-2}    
&2 \\ \cline{2-2}
&3 \\ \cline{2-2}
&4 \\ \cline{2-2}
&5 \\ \cline{2-2}
&6 \\ \cline{2-2}
&7 \\ \cline{2-2}
&8 \\ \cline{2-2}
&9 \\ \cline{1-2}

\end{longtabu}
\end{document}

Image for testing (image.eps)

4
  • 1
    you can't split the cell over a page so you need to manually change that multirow and put one image in something spanning the first 5 rows and one in a second span for the later rows. Not ideal, but it will get the doc done... Oct 21, 2013 at 10:29
  • @DavidCarlisle thanks, didn't think of this scenario; pretty hard to implement since I generate tex files by script, but anyway your proposal is useful.
    – skozlovf
    Oct 21, 2013 at 10:48
  • If you use \multirow{9}, the next eight \\ must be \\*
    – egreg
    Oct 21, 2013 at 12:01
  • @DavidCarlisle If it's possible to convert your comment to answer I may accept it. Probably it's the only way without diving into TeX programming. To @egreg yep I'm using \\* for all spanned rows except last to allow page breaks between multirows, thanks.
    – skozlovf
    Oct 24, 2013 at 5:16

1 Answer 1

3

You can't split the cell over a page so you need to manually change that \multirow and put one image in something spanning the first 5 rows and one in a second span for the later rows. Not ideal, but it will get the doc done...

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .