Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to know how to put text between stacks of images in LaTeX in an elegant way. I have tried to use \par, \linebreak, \bigskip, but the results are not good. Here is the code:

 \begin{figure}[ht]
    \centering
    \subfigure[]{%
    \includegraphics[width=2.8in]{thtumsnone.png} &
    \label{fig:subfigure1}}
    \quad
    \subfigure[]{%
    \includegraphics[width=2.8in]{tumziseth.png} &
    \label{tumsizemetastas}}
    \caption{Smth}
    \label{fig:tumsizemetastas}
    \end{figure}

    \\ TEXT TO PLACE HERE %%% What tags to use?

    \begin{figure}[ht]
    \centering
    \subfigure[]{%
    \includegraphics[width=2.8in]{thtumsnone.png} &
    \label{fig:subfigure1}}
    \quad
    \subfigure[]{%
    \includegraphics[width=2.8in]{tumziseth.png} &
    \label{tumsizemetastas}}
    \caption{Smth}
    \label{fig:tumsizemetastas}
    \end{figure}

or:

\begin{figure}[!hbp]
   \centering
   \includegraphics[scale=0.6]{melikeobhist.png}
   \linebreak
   \caption{Smth}   
   \label{fig21}
   \end{figure} 

    \\ TEXT HERE

   \begin{figure}[!hbp]
   \centering
   \includegraphics[scale=0.6]{melikeobhist.png}
   \linebreak
   \caption{Smth}   
   \label{fig21}
   \end{figure} 

What tags to use, in what order?

share|improve this question
3  
When you use the figure environment, which is a floating environment, TeX decides on the best place to place the figure, so what you are trying to do will never really behave as you (think you) want. See How to influence the position of float environments like figure and table in LaTeX? for more information. –  Alan Munn Nov 24 '13 at 17:34
    
I'm a relative novice, so I have no idea if this could work (you experts out there please feel free to shoot down this suggestion if it won't) but maybe you if you create three columns with paracol (for instance), you could put a full-height minipage in each of the outer columns, put your stacks in those, and put your text in the center column. –  Stonefeather Grubbs Nov 24 '13 at 19:02
1  
You don't have to put graphics in a floating figure. You can just do \[\includegraphics{blah}\] to get a nicely centred display of your image. If you want a "proper" caption, then use the captionof command provided by the caption package. –  Thruston Nov 24 '13 at 21:57
1  
@Thruston While using a displayed math environment could work, it does seem a bit wrong, I'd rather use the center environment. –  Torbjørn T. Nov 24 '13 at 22:28
    
@TorbjørnT., yes center is good, probably a better semantic choice. I was going for brevity. –  Thruston Nov 25 '13 at 19:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.