How do I merge cells of the same column in LyX?
Question
I have 3 subfigures I want to arrange so that 1 will be in the left and 2 will be in the right (one above the other):
Figure 1 | Figure 2
Figure 1 | Figure 3
Figure 1 should appear only once of course - across the entire column.
I thought I should use 2x2 table to arrange them, but I can't find a way to merge the two cells in the same column to one cell in order to put figure 1 there.
How can I merge the two cells in the same column?
Solution
You want to use the multirow package. Add the package, and use something like this:
\begin{tabular}{l|l}
\multirow{2}{*}{<figure 1>} & <figure 2> \\
& <figure 3>
\end{tabular}
OTHER TIPS
You can enter Latex code snippets directly in Lyx using "Insert TeX code", bound to ALT-L by default.
So:
- Add
\usepackage{multirow}
to your preamble (using the Document/Settings... menu item); - Insert the Latex code b0lt recommended.
multirow
is part of the basic Texlive install, so you shouldn't need to import it.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow