|
From: Corentin F. <cor...@gm...> - 2007-03-28 07:38:27
|
Hi,
I'm not quite sure to understand exactly what you want, so don't be mad if
my suggestion seems foolish...
What about wrapping your \begin{figure} within a \begin{center}? Like:
\begin{center}
\begin{figure}[h]%
\centering
\subfloat[Big]{\includegraphics[width=0.45\textwidth
]{bigimage}\label{fig:twoimages:a}}%
\qquad
\subfloat[Small]{\includegraphics[width=0.45\textwidth
]{smallimage}\label{fig:twoimages:b}}%
\caption{Two images}%
\label{fig:twoimages}%
\end{figure}
\end{center}
HTH,
Corentin
On 28/03/07, Marcel van Leeuwen <m.v...@st...> wrote:
>
> Philip G. Ratcliffe wrote:
> >>I am using the subfig package for my figure placement in my thesis. I
> >>ran into a problem of which the manuals proposes two
> >>solutions: both did not work for me.
> >>
> >>[snip]
> >>
> >>As suggusted by the text is the left image a big image, the rigt one a
> >>small one. The captions are neatly aligned and the images are
> >>aligned at
> >>the bottom. However, I want them to be vertically aligned in
> >>the center.
> >>The solution proposed in the manual:
> >>
> >>\begin{figure}%
> >> \centering
> >> \newsavebox{\tempbox}%
> >>
> >>\sbox{\tempbox}{\includegraphics[width=0.45\textwidth]{bigimage}}%
> >> \subfloat[Big]{\usebox{\tempbox}}%
> >> \qquad
> >> \subfloat[Small]{%
> >> \vbox to \ht\tempbox{%
> >> \vfil
> >> \includegraphics[width=0.45\textwidth]{smallimage}
> >> \vfil}}%
> >> \caption{ two floats}
> >> \label{fig:test}
> >>\end{figure}
> >>
> >>Places the big image above the small one.
> >
> >
> > I suspect the widths plus the \qquad are just too big for your page
> width -
> > try using, e.g., width=0.40\textwidth and/or \quad instead of \qquad.
> >
> > Cheers, Phil
> >
> >
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> I tried that but that's not the solution. Even setting width to 0.05
> does place them above each other. And 0.45 should be ok as this does work:
>
> \begin{figure}[h]%
> \centering
> \subfloat[large]{\includegraphics[width=0.45\textwidth
> ]{large}\label{...}}%
> \qquad
> \subfloat[small]{\includegraphics[width=0.45\textwidth
> ]{small}\label{...}}%
> \caption{...}%
> \label{...}%
> \end{figure}
>
> But as said the vertical alignment is not what I want in this case.
>
> Thanks,
> Marcel
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> MiKTeX-Users mailing list
> MiK...@li...
> https://lists.sourceforge.net/lists/listinfo/miktex-users
>
|