[texhax] pdflatex : multi figure + one table : \\, aligning figures

Steve Schwartz s.schwartz at imperial.ac.uk
Fri Jul 3 02:08:38 CEST 2009


Bryan,

I found this sitting in my inbox and it doesn't seem to have been
answered, so I'll give my 2-pennies' worth.

On Fri, 2009-06-26 at 18:48 +0100, Bryan W. Lepore wrote:
> i'd like to get a long figure aligned left, then three small figures 
> stacked on the right, then table on the bottom.
> 
> +--------+---------+
> | long   | short 1 |
> |        |---------+
> | figure | short 2 |
> |        |---------+
> |        | short 3 |
> +--------+---------+
> |     table        |
> +------------------+
> 
> the table position is ok.  i am trying \\ after the figures, but have 
> inconsistent results : seems dependent on figure scaling, maybe
> rotation.

You supplied some sample latex code that seemed to be relying on the
size of your graphics to get things right. I'd be inclined to take
control, by putting tabulars inside tabulars, e.g., (totally untested}


\usepackage{array} 

\begin{tabular}{m{0.5\textwidth}m{0.5\textwidth}}
\includegraphics[width=0.4\textwidth]{long} &
	\begin{tabular}{m{0.45\textwidth}}
		\includegraphics[width=0.4\textwidth]{short1}\\
		\includegraphics[width=0.4\textwidth]{short2}\\
		\includegraphics[width=0.4\textwidth]{short3}\\
	\end{tabular}
\\
\multicolumn{2}{c}{
	\begin{tabular}{.............} your table here \end{tabular}
}\\
\end{tabular}

Here's a bit of code I have tested which shows the idea in text and
without specifying column widths. Using m{} array specifiers or tabularx
or parboxes inside the tabular or just sizes from the includegraphic
will force things to be the size you want. The tabular will always
ensure things line up.

\documentclass{article}

\begin{document}

\fbox{
	\begin{tabular}{cc}
		\fbox{long} &
		\fbox{\begin{tabular}{c}
			\fbox{short1}\\
			\fbox{shortshort2}\\
			\fbox{short3}\\
		\end{tabular}
		}
	\\ % end 1st row of outer tabular
	\multicolumn{2}{c}{
		\fbox{\begin{tabular}{c} your table here \end{tabular}}
	}\\ % end 2nd row of outer tabular
	\end{tabular}
}

\end{document}

HTH

Steve

-- 
+-------------------------------------------------------------------+
Professor Steven J Schwartz        Phone: +44-(0)20-7594-7660
Head, Space & Atmospheric Physics  Fax:   +44-(0)20-7594-7900
The Blackett Laboratory            E-mail: s.schwartz at imperial.ac.uk
Imperial College London            Office: Huxley 711A 
London SW7 2AZ, U.K.               Web: www.sp.ph.ic.ac.uk/~sjs
+-------------------------------------------------------------------+



More information about the texhax mailing list