Newsgroups: comp.text.tex
> Is there a way to put 2 figures side-by-side in a row on the page? > > I tried to put \begin{figure} in \begin{tabular}{cc} but seems that > latex doesn't like it: > > ! LaTeX Error: Not in outer par mode.
You could check out the subfigure package. It allows figures side-by-side and even lets you label them individually (a) and (b) for example
Dave
> Is there a way to put 2 figures side-by-side in a row on the page?
In my thesis I used a minipage environment to do that. It looked like this:
\begin{figure} \begin{minipage}[t]{4.5cm} \includegraphics[width=0.9\textwidth]{braun3c.eps} \caption[Geometrical model for 0.65 ML Cs on Cu(112)]{0.65 ML Cs} \label{fig:braun3c} \end{minipage} \hfill \begin{minipage}[t]{4.5cm} \includegraphics[width=0.9\textwidth]{braun4c.eps} \caption[Geometrical model for 1.00 ML Cs on Cu(112)]{1.0 ML Cs} \label{fig:braun4c} \end{minipage} \hfill \begin{minipage}[t]{4.5cm} \includegraphics[width=0.9\textwidth]{braun6c.eps} \caption[Geometrical model for 1.80 ML Cs on Cu(112)]{1.8 ML Cs} \label{fig:braun6c} \end{minipage} \hfill \end{figure}
This gave me the three figures next to each other, with seperate captions, both the short ones in the figure and the longer ones in the table of contents.
Hope this helps.
Carsten
From CTAN, read info/epslatex.(ps|pdf) which tells you all about arranging illustrations.
the figure environment is a float and so won't fit inside a tabular. Instead, put the tabular inside the figure:
\begin{figure} \centering \begin{tabular}{cc} \begin{minipage}{3in} \includegraphics{a}\caption{a} \end{minipage} & second picture \\ \end{tabular} \end{figure}
Peter W.