0

Is it possible places images at the same horizontal level?

\begin{figure}[h]
\includegraphics[scale=0.54]{/h.jpg}
\caption{Architecture}
\label{fig:Architecture}\hfill
\includegraphics[scale=0.54]{H.jpg}
\caption{Architecture}
\label{fig:Architecture}
\end{figure}

When I try doing this, all the images go to the last page.. no clue what's going on. i'm using TexMaker.

username ~ % identify H.jpg 
H.jpg JPEG 668x449 668x449+0+0 8-bit DirectClass 32.3KB 0.000u 0:00.000
username ~ % identify h.jpg 
h.jpg JPEG 692x433 692x433+0+0 8-bit DirectClass 38.2KB 0.000u 0:00.000
5
  • By "horizontal level", are you referring to "horizontal alignment"? How big are your images (place each \includegraphics inside an \fbox to get an idea of the size)? It could be that they're too big, and the figure is pushed to a page of floats.
    – Werner
    Commented Mar 5, 2013 at 21:40
  • Yes, I meant horizontal alignment. It really does not matter how big the images are, you can scale it down. Commented Mar 5, 2013 at 21:44
  • Could you include a graphic (draw it in MS Paint if you must...) of the intended output?
    – Werner
    Commented Mar 5, 2013 at 21:47
  • using [h] increases the chance the figure goes to the end of the document as it prevents top bottom and page floats (actually latex will give a warning and change that to [ht] just to give itself a chance to position the figure. The caption is forcing a paragraph break if you go \includegraphics{a}\includegraphics{b} they come side by side. Commented Mar 5, 2013 at 21:54
  • 1
    Perhaps you're interested in the following question: Side by side images problem
    – Werner
    Commented Mar 5, 2013 at 21:57

0

Browse other questions tagged .