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

learn more… | top users | synonyms

7
votes
3answers
3k views

Increase spacing after minipage

Hello i am using a line of code to draw 2 equations next to eachother using \minipage{}: \begin{minipage}{0.5\textwidth} \small \begin{equation}\label{e3} \begin{split} \frac{\mathrm d x'}{\mathrm d ...
7
votes
1answer
4k views

How do I put a paragraph in a box that is some percentage of the width of the page I'm putting it in?

I have a document that should contain a bordered box with a paragraph of explanatory text. The box's width should be a percentage of that of the page's body. I don't want to make the box a fixed ...
7
votes
2answers
5k views

\footnotemark and \footnotetext in minipage

The Tufte handout class give a neat layout that shows the footnote at the right hand side not bottom line. But, when I use the minipage with tufte-handout, and if the minipage has the footnote, the ...
7
votes
1answer
266 views

Why does this code give me a badbox?

Why does this code give me a badbox? \documentclass[a4paper, 10pt, notitlepage]{article} \begin{document} \begin{minipage}[t]{1.0 \textwidth} aaaaaaaaaaaaaaaaaaaaaaa \end{minipage} \end{document} ...
7
votes
1answer
2k views

No horizontal spacing within minipage

I do not understand why my attempts to introduce horizontal spacing in beamer (with hspace or typographical spacing) fail when within a minipage: \documentclass[10pt]{beamer} \begin{document} ...
7
votes
1answer
3k views

Minipage, columns, tabular: differences in applicability?

This \parbox vs. \minipage post helped me to understand the main reasons to use either \parbox or {minipage} for placing material side-by-side ({minipage} is usually the winner). I have a similar ...
7
votes
1answer
796 views

How can I determine the height of a minipage?

If I have a minipage \begin{minipage}{5cm} content \end{minipage} How can I determine its height and save this value as a length?
7
votes
1answer
280 views

General question on floating and non-floating objects in LaTeX

I am wondering when you place a non-floating object such as a minipage into a floating environment such as a table or figure if this construction as a whole is then a floating or a non-floating ...
7
votes
2answers
2k views

Why is text being placed beyond the specified line width?

I thought that I knew a few things, but looks like I have some basic misunderstanding on how TeX is supposed to typeset material. I thought that settings by the geometry package would force the text ...
7
votes
3answers
213 views

How to arrange a large picture on the side on the current page?

I have a decorative picture that I want to display on the right side current page. The picture should fill the whole vertical length of the text body (maybe even 1cm larger). The picture is long and ...
7
votes
2answers
117 views

Hyperref inserting undesired space at start of enumerate environments

This question arises from my attempt to answer vertical spacing on enumitem. Originally, I was able to answer the OP's question, but then the OP mentioned that the problem re-emerged if the hyperref ...
7
votes
1answer
125 views

Find out actual width of text in nested lists

I am trying to solve the following problem: In regular text, I can place two paragraphs of unequal width side by side using minipages, like so: \documentclass{article} \begin{document} Some text ...
7
votes
1answer
193 views

Single/Double side environment with different backgrounds

I'm having trouble aligning some of the elements. I would like align Check Box and Cross Box to be same size so that they look nicer below is what i got so far. Also it would be great if they can ...
6
votes
2answers
14k views

How to center the minipage?

The left margin is too wide if I set 1.5\textwidth: \begin{document} \noindent\begin{minipage}{1.5\textwidth} test \end{minipage} \end{document}
6
votes
1answer
8k views

cannot use \caption under minipage

I am using following code to import two images next to each other. When \caption{} is used, LaTeX gives me error caption outside float. \begin{minipage}{.5\textwidth} \centering ...
6
votes
2answers
148 views

framed or colored box with text and margin notes

I am using pdfTeX and I have in my text an example which just is a kind of a short story. What I want is: The story should be visually distinct from the normal text, by frame or background colour. I ...
6
votes
1answer
161 views

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 ...
6
votes
1answer
276 views

Dotted column sep in multicolomn minipage

I'm trying to typeset a table whose cells are divided into columns, and the columns are separated by dotted lines. This is for variable-length enumerations of (short) entries and planned to look ...
6
votes
2answers
4k views

Text next to image

I have a problem to get the following result in LaTeX: The figure is not something I want to do with tikz, but I want to use \includegraphics{figure1.png}. Can someone help me to get this?
6
votes
3answers
1k views

Resuming a list started within a minipage

I have a minipage with a figure, and I want part (a) to be on the right of this figure (so part (a) is in a 2nd minipage), and the remaining parts (b), (c), etc to be below. The insights provided in ...
6
votes
2answers
157 views

Group content side by side possibly spanning more than a single page

I have data consisting of groups of key-value pairs and associated images. I'd like the key-value pairs to show in a table to the right of the images. Like this: The above screenshot is produced by ...
6
votes
1answer
10k views

How to fix the width of a minipage?

I put 2 minipages containing tikzpicture side by side: one on the left, the other one on the right. And I hope each minipage, surrounded by \fbox, occupies almost half side of the page, and leave some ...
6
votes
2answers
643 views

Changing Font Style in Minipage

I am trying to generate a pull quote in my document, which I want to have with a different font style. To accomplish this, I have a wrapfig environment containing a minipage. I'd like to set the font ...
6
votes
1answer
750 views

Alignment inside minipage with flushright

Please help me to figure out how to produce with that: I have the following code: \begin{flushright} \begin{minipage}{0.5\textwidth} {\bfseries Допущен к защите: }\hrulefill \\ {\bfseries ...
6
votes
1answer
562 views

How to place two ctables side by side

ctable, not a regular table/tabular. How can I get two narrow ctables to go side by side? I want them to be subtables of a larger table, just two independent tables side by side. I've tried using a ...
6
votes
1answer
481 views

Why there is no output when invoking \usebox{\mybox} outside the minipage in which \sbox{\mybox}{contents} is invoked?

\documentclass{article} \newsavebox{\mybox} \begin{document} \fbox{% \begin{minipage}{5cm} \sbox{\mybox}{from first minipage} \usebox{\mybox} \end{minipage}% } %nothing rendered ...
6
votes
2answers
708 views

Trouble placing images side by side in beamer

I need to place a couple of images side by side (horizontally) in a presentation I'm doing with beamer, so I looked around and inserted the following code (sugested by this post): ...
6
votes
3answers
808 views

Minipage, multiline caption centering

No matter what I do, I can't seem to center the bottom line of these minipage captions. Along with the several variations in the code below, I have also tried ...
6
votes
2answers
8k views

Align minipage on right side

I was thinking that this is a small matter, but I can't seem to get my head around this. I want to create a legend, which sits on the right side of the page. I created a minipage environment around ...
6
votes
1answer
4k views

Vertical alignment of tikzpicture with text?

I have some text, and a corresponding tikzpicture, both of which are to be part of a test question, and which are thus included as part of an \item in an enumerate environment. Like this: \item ...
6
votes
1answer
208 views

Using biblatex, multicols, defbibenvironment, how to keep list items together

Using Biblatex, I can produce a double-columned bibliography with the following definition: \defbibenvironment{bibliography}{% \begin{multicols}{2}% ...
6
votes
1answer
3k views

How to control the vertical height of boxes

I would like to create boxes where I can control the height of the boxes. Right now I have used the command. \colorbox{calcclr}\makebox[\textwidth-2\fboxsep][l]{#1}}} This gives me a box that ...
6
votes
1answer
3k views

Eliminate space at end of list in a table

I have a tabular environment, created with array loaded and using m columns, the cells of which mostly contain lists. In cells with a list, there is about 1em of dead space at the end of the list ...
6
votes
1answer
91 views

Can I let a listing move up two lines without introducing a break in a paragraph? [duplicate]

Possible Duplicate: How to prevent lstlisting from splitting code between pages? I have a rather long listing on a page that has 3-4 lines on the following page. Just before the listing is ...
6
votes
1answer
683 views

graphical tools for tabular construction?

I often use R's xtable library or emacs org-mode to create tables in LaTeX (they are wonderful, by the way). I wonder if there are other tools people use which facilitate construction of large tables ...
6
votes
2answers
2k views

Create layout avoiding overlapping floating wrapfigures

I'm writing companion notes for some beamer presentations. For each slide in a presentation, the document has a small picture of the slide, along with a text explaining the slide. For some slides, the ...
5
votes
1answer
3k views

How to put two minipages side-by-side, which use 100 % of the text width?

In draft-mode a black marker indicates that the reserved space is too low. This also appears in the following example, but it shouldn't. How can I put two minipages exactly side-by-side? ...
5
votes
2answers
7k views

Placing images left and right of each other

I want to create the following layout: ------------ ------------- | IMAGE 1 | ...
5
votes
3answers
1k views

Caption issue when placing figure side by side

I placed 2 figures side by side using the minipage method from this post, and the figures look perfectly fine. However, the caption of the right figure stick out into the margin, why is that and how ...
5
votes
2answers
3k views

minipage within fullwidth

I'm using Marco Daniel's fullwidth package, detailed in this answer. I want all of my text in fullwidth to be inseparable (and to begin and end with long black lines), so I am currently doing the ...
5
votes
1answer
6k views

minipage right margin

I want to start a minipage, with the regular left-indentation, but to have its right margin adjusted with regular page right margin. An example of discrepancy: \documentclass{article} ...
5
votes
2answers
1k views

Problem controlling vertical alignment of minipage containing only math

I would like to insert a large box containing maths into a line of text and align the box with the top of main line. Strangely, the argument "[t]" gets ignored in the first example below (the second ...
5
votes
2answers
1k views

Framed minipage of dependent dimensions

I am trying to prepare handouts of a ppt (I know). I would like a slide to be shown on the left half of a page and comments regarding it in a framed box of the same size as the slide on the right ...
5
votes
2answers
4k views

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 ...
5
votes
1answer
363 views

How can I express \begin{minipage}{\linewidth-2ex}?

I am working on a poster template with a not so easy to reproduce style with nested blocks. To that end, I have to create a minipage whose width depends on \linewidth minus some fixed value. In a ...
5
votes
1answer
139 views

How do I get my cards to automatically tile?

I want to create sheets of playing cards for a game. There isn't a known package for this, however stealing from a previous answer and deleting things until it made sense got me this far: ...
5
votes
1answer
9k views

! LaTeX Error: Not in outer par mode

I am using an image within minipage and getting error message. ! LaTeX Error: Not in outer par mode. Below is minimal working example. \documentclass[11pt,table,a4paper]{article} ...
5
votes
1answer
153 views

Defining color in minipage makes it too big for the current page

If I uncomment the first line of the minipage, the minipage is then too big to fit on the page. What's happening here? \documentclass{article} \usepackage{xcolor} \usepackage{lipsum} ...
5
votes
1answer
4k views

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 ...
5
votes
2answers
1k views

Alignment of item number in list containing a minipage

I would like to have the list number at the beginning of the item, and not centered as is the case for item (b) the example below. If I comment out the \usepackage{nccmath}, I get this, but then the ...