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
(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
> 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
%---------------------------
\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
> 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