General ⇒ Images side to side
Images side to side
Thanks
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Images side to side
A little example of the former situation:
Code: Select all
\documentclass{article}
\usepackage{caption}
\begin{document}
\noindent\begin{minipage}{.45\textwidth}
\centering
\rule{.7\linewidth}{1cm}
\captionof{figure}{Test figure 1}
\label{fig:testfig1}
\end{minipage}
\begin{minipage}{.45\textwidth}
\centering
\rule{.7\linewidth}{1cm}
\captionof{figure}{Test figure 2}
\label{fig:testfig2}
\end{minipage}
\end{document}
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Images side to side
perhaps see de-tex-faq 6.1.6 for an example. It's in german, but the tex code should be understanable.
Stefan
Re: Images side to side
Thanks
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Images side to side
gmedina has given a complete example above.
Just replace \rule (simulating the image) by \includegraphics{imagename}.
Don't forget \usepackage{graphicx} in your preamble. You may have a look at the graphics guide page 9.
Stefan