Questions tagged [minipage]

{minipage} is an environment providing a paragraph box which is a complete mini version of a page.

is an environment providing a paragraph box which is a complete mini version of a page. It can contain its own footnotes, paragraphs, arrays, tabulars, and other environments. It cannot, however, contain floats or \marginpar commands, but it can appear inside figure or table environments.

The syntax is the following:

\begin{minipage}[<pos>][<height>][<inner-pos>]{<width>} 
<text>
\end{minipage}

where

  • <pos> controls the vertical positioning of the box with respect to the text baseline (valid values: c, t, or b).
  • <height> determines the height of the box.
  • <width> determines the width of the box.
  • <inner-pos> determines the position of <text> within the box.
1750 questions
25
votes
1 answer

Multiple columns with minipage, can't use 100% of \textwidth

In a document I'm making, I have several cases where I need to organize things into several "columns." For example, here is some code I might…
CmdrMoozy
  • 807
15
votes
2 answers

Why is the minipage indented on the left?

I am trying to create a CV and for the heading information I am using a minipage to display my name and Curriculum Vitae inline with smaller text containing my contact information. The code works fine, but I cannot figure out why the left edge of…
double c
  • 153
12
votes
4 answers

\fbox around type area

I'm trying to put a border around multiple lines. Here's a MWE with what I've achieved so far: \documentclass[a4paper]{scrartcl} \usepackage{calc} \begin{document} \setlength{\parindent}{0cm} text text text \fbox{ \begin{minipage}[t]{\textwidth…
user23797
  • 123
12
votes
3 answers

Minipage spanning across pages

I'm looking for a way to span minipages across pages in LaTeX. I have a collection of recipes (presented through the recipe environment provided by the cuisine package) that varies in length, from something like 10 lines to more than can fit on a…
11
votes
2 answers

Spliting a page in half horizontally

I am trying to fix two half-paged documents on one document, one on top of the other. The method below works pretty well so far, but I'm having trouble using 0.5\textheight for the height of the second minipage. When I change 0.49 to 0.5, the…
10
votes
3 answers

Fitting and centering text (both!) in a constrained area

Is there a way to make text size and alignment automatically "best fit" on a page? So that a large amount of text will be constrained on the page in a small font, but a small amount of text can be of larger font and centered properly? The best way I…
hypatia
  • 103
10
votes
3 answers

How to draw a polygon with height exactly equals to the text's height

I am using MiKTeX 2.9 and XeLaTeX. I have a minipage with some formatted text: \centering \begin{minipage}{\quotewidth}% \centering\small\textit{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse elementum luctus odio sit amet…
9
votes
1 answer

Minipage: 2 tables side by side isn't working

I have the following code to layout two tables side by side: \begin{minipage}{0.3\textwidth} \begin{tabular}{c | c | c | c | c | c | c} F & D & E & G & P & A & L\\ \hline C & H & I & I & U & G & F\\ \hline G & Z & G & A & F & Z & U\\ \hline F & R &…
8
votes
1 answer

How to have a figure right next to an itemize environment, aligned?

I'm transcribing lecture notes, and I typically need to have an image to the left, with an itemize to the right (aligned!) I would like to try getting these to work, with no…
ragzoxaim
  • 337
8
votes
1 answer

Linewidth is Larger than the actual Linewidth

Ok I am creating a simple CV and in have the following problem. My \linewidth is actually larger than linewith. I tried to add \noident as stated on the following link overfull hbox despite of width=\linewidth I attach a minimal example and an image…
msmechanized
  • 1,203
6
votes
3 answers

Have minipage take up entire page height

I'm trying to use a minipage to create a kind of sidebar for my document. Because the minipage has a background color and because the document is intended for viewing rather than printing, I want the minipage to butt right up against three edges of…
me--
  • 377
  • 2
  • 8
6
votes
3 answers

How to get the height of a minipage to set the height of another one?

In the example below, how can I set the height of the 2nd minipage so that it matches the one of the 1st one, such that the images "C" are uniformly distributed vertically to match the composite height of the images "A" and "B"? Please note: 1) the…
dontpanic
  • 809
6
votes
2 answers

Preventing minipage from creating a blank page

So I've got a document that is leading off with a minipage. From what I understand, the minipage environment tries to fit the box it creates on the current page, and if it is unable to do so, it moves itself to the top of the next page. The document…
Leo Bloom
  • 171
6
votes
3 answers

How to get two figures beside each other, and have them outside the margins?

I have googled forever and tried to find the answer to my question, but I can't seem to find an answer to this. I have two figures that I want to place beside each other. The figures are MATLAB plots and are saved as pdfs, therefore they have to be…
kga
  • 71
5
votes
2 answers

table positions within a minipage

I have the following code, it should generate 2 side-by-side tables. However, the left table is too left that its last half is there, and the right table thereafter. How can I position them…
1
2 3
8 9