Tag Archives: figure

latex minipage text beside figure

How to put text beside figure with minipage?

We use two minipages side by side in first one we put the figure e.g. pic1 und in second one the text. The vspace command in the second minipage is only a hint, for example if the text is not enough you could push it up by using vspace. (There are better ways to do this, but this is the fast version).

\begin{minipage}{0.5\textwidth}
\includegraphics[width=\textwidth]{pic1}
\end{minipage}
\begin{minipage}{0.5\textwidth}
on pic 1 you find the word pic 1\\
on pic 1 you find the word pic 1\\
on pic 1 you find the word pic 1\\
on pic 1 you find the word pic 1\\
on pic 1 you find the word pic 1\ \vspace{2.5cm}\\
\end{minipage}

More about minipage here.

latex minipage side by side figures

To get two figures side by side just use this example:

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{minipage}[c]{0.5\textwidth}
\includegraphics[width=\textwidth]{figure 1}
\end{minipage}
\begin{minipage}[c]{0.5\textwidth}
\includegraphics[width=\textwidth]{figure 2}
\end{minipage}
\end{document}

It also works with two tables side by side.