How do you put two figures side-by-side in LaTeX?
- Context: LaTeX
- Thread starter Clausius2
- Start date
-
- Tags
- Latex
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 36K views
Discussion
Physics news on Phys.org
graphic7
Gold Member
- 450
- 2
LaTeX is very picky about figures. Even if you specify where you'd like the figure on the page, sometimes, it'll move it just because it wants to. You can try setting the position to argument to [h], which means "here." LaTeX will then try to place the figure where you want it.
I'm not sure if figure automatically does newlines, in that case you'll be screwed. But, try it. Make sure you don't newline between the figures.
I'm not sure if figure automatically does newlines, in that case you'll be screwed. But, try it. Make sure you don't newline between the figures.
Science Advisor
Gold Member
- 1,433
- 7
Thanks. I've been googling and finally I've found how to do about that.
Yes, LaTex has an automatic newline between figures.
Here it is what I found:
\begin{figure}
\begin{minipage}[t]{8cm}
\begin{center}
\includegraphics[width=8cm,clip]{figure1.eps}
\caption[Short caption for figure 1]{\label{labelFig1} Long caption figure 1}
\end{center}
\end{minipage}
\hfill
\begin{minipage}[t]{7.5cm}
\begin{center}
\includegraphics[width=7.5cm,clip]{figure2.eps}
\caption[Short caption for figure 2]{\label{labelFig2} Long caption figure 2.}
\end{center}
\end{minipage}
\end{figure}
And it works!
Yes, LaTex has an automatic newline between figures.
Here it is what I found:
\begin{figure}
\begin{minipage}[t]{8cm}
\begin{center}
\includegraphics[width=8cm,clip]{figure1.eps}
\caption[Short caption for figure 1]{\label{labelFig1} Long caption figure 1}
\end{center}
\end{minipage}
\hfill
\begin{minipage}[t]{7.5cm}
\begin{center}
\includegraphics[width=7.5cm,clip]{figure2.eps}
\caption[Short caption for figure 2]{\label{labelFig2} Long caption figure 2.}
\end{center}
\end{minipage}
\end{figure}
And it works!
Goalie_Ca
- 102
- 0
try checking into various packages such as placeins.
Figures are "floats" so you really have to force it to go somewhere using tables or whatever.
Figures are "floats" so you really have to force it to go somewhere using tables or whatever.
Similar threads
LaTeX Adding captions to tikZ pictures in minipages
- member 428835
- · Replies 5 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 5
LaTeX Placing text between two side-by-side LaTeX figures
- fluidistic
- · Replies 2 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 2
LaTeX How to place a figure and equations side by side in LaTeX
- nbo10
- · Replies 1 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 1
LaTeX How do you navigate large LaTeX documents while editing?
- mrcleanhands
- · Replies 11 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 11
Moving things to the other side of the equals sign
- RabbitWho
- · Replies 9 ·
- Precalculus Mathematics Homework Help
- Replies
- 9
LaTeX How Do You Create a Script Lowercase 'r' in LaTeX?
- marsdk
- · Replies 1 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 1
Applying side conditions to PDE general solution with two arbitrary functions
- S.N.
- · Replies 1 ·
- Calculus and Beyond Homework Help
- Replies
- 1
Undergrad How do you get to the conclusion that there is accelerating expansion?
- Ben vdP
- · Replies 23 ·
- Astronomy, Astrophysics, Cosmology
- Replies
- 23
How do you show the other side of the inequality?
- math8
- · Replies 2 ·
- Calculus and Beyond Homework Help
- Replies
- 2
High School How Do You Algebraically Move a Numerator to the Other Side of an Equation?
- Quantum Joe
- · Replies 5 ·
- General Math
- Replies
- 5