# minipage with defined height

Could I create a minipage with defined height? Yes, but it wouldn’t work the way I or you want.

For example here is a minipage with a defined height of 2cm:

\documentclass{article}
\usepackage[showboxes,overlay]{textpos}
\begin{document}
\setlength{\parindent}{0cm}

\TPshowboxestrue
\begin{textblock*}{\textwidth}(1cm,1cm)
\begin{minipage}[t][2cm][t]{0.4\textwidth}
The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm.
\end{minipage}
\end{textblock*}
\end{document}


And here how it looks:

The framed box is only to show that there is a minipage with a height of 2cm, but this doesn’t count.

# latex minipage wider than textwidth

In normale minipage examples allways textwidth would be used to determine width of minipage. But also the paperwidth could be used too.

example

\documentclass{article}

\begin{document}
\noindent
\begin{minipage}{0.5\textwidth}
\fbox{frame around dummy text and more}
\end{minipage}
\begin{minipage}{0.5\textwidth}
\fbox{second framed dummy text and more}
\end{minipage}
\begin{minipage}{0.5\paperwidth}
\fbox{frame around dummy text and more}
\end{minipage}
\begin{minipage}{0.5\paperwidth}
\fbox{second framed dummy text and more}
\end{minipage}
\begin{minipage}{\paperwidth}
\fbox{third framed dummy text and more dummy text to show how big is paperwidth instead of textwidth}
\end{minipage}
\end{document}


How it looks:

# 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}


# 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.