Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

positioning 6 figures in a 3 row by 2 column structure.

1,479 views
Skip to first unread message

mapi...@gmail.com

unread,
Mar 12, 2008, 8:19:29 AM3/12/08
to
Hi,

I am using TeXnicNecnter.

I have six figures and I want them to fit in one page like in a 3x2
matrix. I am using \multicolumn to do it like this:

\multicolumn{2}{c}{
\begin{figure}[ht]
\includegraphics[scale=0.2]{C:/Tesis/LATEX/imagenes/RNormWR10}
\caption{$\sigma$ standard deviation for different window sizes -
$5x2$ divisions }
\label{f.RNormWR10}
\end{figure}

\begin{figure}[ht]
\includegraphics[scale=0.2]{C:/Tesis/LATEX/imagenes/RNormWR20}
\caption{$\sigma$ standard deviation for different window sizes -
$10x2$ divisions }
\label{f.RNormWR20}
\end{figure}

\begin{figure}[ht]
\includegraphics[scale=0.2]{C:/Tesis/LATEX/imagenes/RNormWR30}
\caption{$\sigma$ standard deviation for different window sizes -
$15x2$ divisions}
\label{f.RNormWR30}
\end{figure}

\begin{figure}[ht]
\includegraphics[scale=0.2]{C:/Tesis/LATEX/imagenes/RNormWR40}
\caption{$\sigma$ standard deviation for different window sizes -
$10x4$ divisions}
\label{f.RNormWR40}
\end{figure}

\begin{figure}[ht]
\includegraphics[scale=0.2]{C:/Tesis/LATEX/imagenes/RNormWR50}
\caption{$\sigma$ standard deviation for different window sizes -
$10x5$ divisions}
\label{f.RNormWR50}
\end{figure}

\begin{figure}[ht]
\includegraphics[scale=0.2]{C:/Tesis/LATEX/imagenes/RNormWR60}
\caption{$\sigma$ standard deviation for different window sizes -
$10x6$ divisions}
\label{f.RNormWR60}
\end{figure}
} %end of multicolumn

I am getting the following erros:

! Misplaced \omit.
\multispan ->\omit
\@multispan

! Misplaced \span
\sp@an ->\span

mapi...@gmail.com

unread,
Mar 12, 2008, 8:23:42 AM3/12/08
to


(I had a problem in the middle of writing... it continues:)

! Misplaced \span
\sp@n ->\span
\omit \advance \@muticnt \m@ne

! Undefined control sequence.
\@mkpream ...hclass \ifcase \@lastchclass \@acol


I dont know if maybe this is not the way to do this with figures. I
need some help, thanks.

Maria Pia FR

Ulrike Fischer

unread,
Mar 12, 2008, 9:04:13 AM3/12/08
to
Am Wed, 12 Mar 2008 05:19:29 -0700 (PDT) schrieb mapi...@gmail.com:

> Hi,
>
> I am using TeXnicNecnter.
>
> I have six figures and I want them to fit in one page like in a 3x2
> matrix. I am using \multicolumn to do it like this:
>
> \multicolumn{2}{c}{
> \begin{figure}[ht]
> \includegraphics[scale=0.2]{C:/Tesis/LATEX/imagenes/RNormWR10}
> \caption{$\sigma$ standard deviation for different window sizes -
> $5x2$ divisions }
> \label{f.RNormWR10}
> \end{figure}

There a lot of faults in the code.

- Don't put the figure-environment inside other command or environment.
Use only the \includegraphics command.

- You can't put things like \caption that needs to do a linebreak in a
tabular cell of type "c", you need e.g. p{Xcm}.

- I doubt that you really knows what \multicolumn does. Read some
introduction to LaTeX.

- for captions outside of figure you can use the capt-of or the caption
package which both provide a \captionof command.

- Also take a look at the subfig package.

Also read the following faqs:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=askquestion
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl


--
Ulrike Fischer

Rolf Niepraschk

unread,
Mar 12, 2008, 10:08:25 AM3/12/08
to

Here is a short example:

%---------------------------
\listfiles
\documentclass[fontsize=11pt,paper=a4,pagesize]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}

\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{grffile,graphicx,subfig}

\begin{document}

\section*{A Test}

\blindtext
%
\begin{figure}
\subfloat[First Subfigure, first line]{%
\rule{4.5cm}{3cm}
}
\hfill
\subfloat[Second Subfigure, first line]{%
\rule{4.5cm}{3cm}
}
\hfill
\subfloat[Third Subfigure, first line]{%
\rule{4.5cm}{3cm}
}
\par
\subfloat[First Subfigure, second line]{%
\rule{4.5cm}{3cm}
}
\hfill
\subfloat[Another Subfigure]{%
\rule{4.5cm}{3cm}
}

\caption{Some Figures}
\end{figure}
%
\blindtext

\end{document}
%---------------------------

Replace the \rule macros with your \includegraphics.

...Rolf

Donald Arseneau

unread,
Mar 12, 2008, 3:29:54 PM3/12/08
to
On Mar 12, 4:19 am, mapiaf...@gmail.com wrote:

> I have six figures and I want them to fit in one page like in a 3x2
> matrix. I am using \multicolumn to do it like this:

No, \multicolumn is for making entries in a table (tabular env) cover
more than one column! You were probably thinking of:

\begin{multicols}{2}
\begin{figure}
...
\end{multicols}

but even that isn't really right because it arranges the figure
reference points as you like, but not the figures themselves
because figures float.

What you seek is to be achived with a tabular environment
*inside* a *single* figure environment.

\begin{figure}
\begin{tabular}{@{\extracolsep\fill}p{.47\linewidth}p{.
47\linewidth}@{}}
\includegraphics{}
\caption{}
&
\includegraphics{}
\caption{}
\\[5pt]
\includegraphics{}
\caption{}
&
\includegraphics{}
\caption{}
\\[5pt]
\includegraphics{}
\caption{}
&
\includegraphics{}
\caption{}
\end{tabular}
\end{figure}

Adjust the relative column widths by changing "p{.47\linewidth}"
and the spacing between rows at "\\[5pt]"

Donald Arseneau as...@triumf.ca

0 new messages