General ⇒ Images side to side
Images side to side
Thanks
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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: 10350
- 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: 10350
- 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