Advertisement

Jurassic World: Dominion Dominates Fandom Wikis - The Loop

01:25

The minipage environment puts its content inside a box with a given width. It is often used to show tables or images side-by-side.

Syntax

\begin{minipage}{width}
  contents
\end{minipage}

or

\begin{minipage}[position][height][inner-pos]{width}
  contents
\end{minipage}

Effect

A minipage is like a small version of a page; it can contain its own footnotes, itemized lists, etc. (There are some restrictions, including that it cannot have floats.) The minipage will not be broken across pages. So minipage is similar to \parbox but it is not limited to a single paragraph.

Example

\begin{minipage}{0.5\textwidth}
	The quick brown fox jumps over the lazy dog.
\end{minipage}
\begin{minipage}{0.5\textwidth}
	Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich.
\end{minipage}

If there was a paragraph break between the minipages, the content would not be shown side-by-side.

Optional arguments

The optional argument position is a single letter governing how the minipage vertically aligns with the surrounding material:

c Default. Positions the minipage so its vertical center lines up with the center of the adjacent text line.
t Aligns the baseline of the top line in the minipage with the baseline of the surrounding text.
b Aligns the baseline of the bottom line in the minipage with the baseline of the surrounding text.

If the height parameter is set to a value larger than the minipage's natural height, the vertical placement of the contents inside the box is given by position unless overridden by inner-pos. This parameter can take on the following values:

t Place contents at the top of the box.
c Place it in the vertical center.
b Place it at the bottom.
s Stretch contents out vertically; it must contain vertically stretchable space.

References

This article includes content from the unofficial LaTeX2e reference manual, which is licensed under the old-style GNU documentation license.

Community content is available under CC-BY-SA unless otherwise noted.