Department of Mathematics and Computer Science

www.univ-soukahras.dz/en/dept/mi

Module: Initiation à la recherché et code de déontologie

  1. Information
  2. Questions

How to put two figures within the same line in Latex ?

3 votes

How to put two figures within the same line in Latex ?

Asked on 15:23, Friday 6 May 2016 By Imed Bou (-97 points)
In Initiation à la recherché et code de déontologie


answers (4)




Answer (1)

0 votes

the code: documentclass{article} usepackage{graphicx} egin{document} egin{figure}[!htb] egin{minipage}{0.48 extwidth} centering includegraphics[width=.7linewidth]{image-1} caption{Interpolation for Data 1}label{Fig:Data1} end{minipage}hfill egin {minipage}{0.48 extwidth} centering includegraphics[width=.7linewidth]{-image-2} caption{Interpolation for Data 2}label{Fig:Data2} end{minipage} end{figure} end{document}

Answered on 00:00, Thursday 1 Jan 1970 by houssem djefaflia (95 points)
In Initiation à la recherché et code de déontologie



Answer (2)

0 votes

this is an example:

// this is for figure 1

begin{figure}[!htb]\centering
     \frame{\includegraphics[width=10cm]{Data1}}
     \caption{Interpolation for Data 1}
  \label{Fig:Data1}
  \end{figure}

// this is for figure 2 \begin{figure}[!htb]\centering \frame{\includegraphics[width=10cm]{Data2}} \caption{Interpolation for Data 2} \label{Fig:Data2} \end{figure}

Answered on 01:16, Saturday 7 May 2016 by Aterrai Zakaria (79 points)
In Initiation à la recherché et code de déontologie



Answer (3)

2 votes

better make use of the subfigure package ?

Answered on 08:29, Saturday 7 May 2016 by Imed BOUCHRIKA
In Initiation à la recherché et code de déontologie



Answer (4)

-1 votes

two figures within the same line and the same caption ( title)

\begin{figure}[h]
\includegraphics[width = 5cm,angle=20]{img.jpg}
\includegraphics[width = 5cm]{img1.jpg}
\caption{Methods}
\label{fg:methods}
\centering
\end{figure}

Answered on 17:47, Friday 27 May 2016 by amirat abdallah (257 points)
In Initiation à la recherché et code de déontologie



Do you have an answer ?