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

learn more… | top users | synonyms

8
votes
3answers
715 views

Vertical align a tabular and tikz figure in a minipage

How can I vertically align a tabular left to a tikz figure? With minipage without a vertical align option it looks good: The problem is that I need it aligned at top (for this I replaced ...
8
votes
2answers
959 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 ...
8
votes
3answers
4k 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 ...
8
votes
1answer
6k 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 ...
8
votes
3answers
588 views

Minipage footnote is inside tikZ node

I have a minipage, and inside of it I have a footnote and a tikZ picture. Now my problem is, that the footnote text goes inside the last node of my tikZ picture. That is not what I want – and it's ...
8
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 ...
8
votes
2answers
3k views

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 ...
8
votes
1answer
82 views

minipage with verbatim package doesn't compile

This is my code: \usepackage{verbatim} \newenvironment{listing} {\begin{minipage}{\linewidth}\verbatim} {\endverbatim\end{minipage}} However, it doesn't compile: Runaway argument? ! File ended ...
8
votes
1answer
1k 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?
8
votes
2answers
494 views

minipage is wider than I wanted

Occasionally, the width of a minipage environment seems to be ignored. I've not kept accurate records of when this has happened. But below is purely illustrative code that shows the issue. ...
8
votes
1answer
230 views

Problem with tikzpagenodes and minipage

Using the anchors defined by tikzpagenodes inside a minipage produces unexpected results; this is not the case for the current page family of anchors defined by standard TikZ as the following example ...
8
votes
1answer
142 views

Minipage width not acurate

I have the following document, with several minipages of 12cm width. Each minipage contains a different number of minipages (with a sum of 12cm for all of them). So every *sub*minipages should fit ...
8
votes
1answer
315 views

How to create a group of minipages that can be spanned across columns but can't be broken in two pages?

I'm trying to diagram an exam for an educational purpose. I'm using the package multicols to display questions in two columns. Each question of this exam is divided in three blocks: base text ...
8
votes
2answers
2k views

Changing minipage vertical alignment in mid-line?

Please consider the following MWE: \documentclass{article} \usepackage{lipsum} \usepackage[showframe,showcrop]{geometry} \begin{document} \section{Section 1} aa \fbox{\begin{minipage}{100pt} Box 1 ...
8
votes
1answer
1k views

How to solve the issue between side-by-side floats (tables) and floatrow package?

I came from here where this issue was raised but could not find a straightforward solution. I have now side-by-side tables and I want to avoid the errors thrown once floatrow package is added to the ...
8
votes
2answers
160 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 ...
8
votes
1answer
1k views

How to produce 5-up 3by5 index cards

I want to produce instructional 3by5 index cards. It's easy enough to produce the cards one per page, but I want to print five copies of the same car on a single sheet of 8.5by11 card stock, where it ...
7
votes
3answers
2k 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 ...
7
votes
1answer
7k views

How can I control the horizontal space between minipages?

I'm trying to place two mini pages next to each other, one with text, one with an image. But my code has them spaced really far apart. How can I bring them together horizontally. I've tried \hspace ...
7
votes
2answers
723 views

Tikz Ellipse Formatting

I am having difficulty formatting an ellipse within a Tikz box. I am a little bit of a loss on how to describe the issue, so I will let the code speak for itself. I want it to look like this: ...
7
votes
1answer
3k 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
2answers
2k views

minipage horizontal alignment

I'm using minipage to put two tables next to each other, and instead it is putting them in vertically. It seems like this is usually caused by having blank lines between the minipages, but that isn't ...
7
votes
1answer
367 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
4k 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
14k 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 ...
7
votes
1answer
449 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
1answer
4k views

Align the top of two tables horizontally (side-by-side with minipage)

I'm using \minipage to put two tables side by side. But when the two tables are not of equal length, the shorter of the two is vertically centered with respect to the other. I would like both tables ...
7
votes
2answers
4k 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
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 ...
7
votes
3answers
277 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
13k 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 ...
7
votes
1answer
216 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
244 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
11k views

Placing images left and right of each other

I want to create the following layout: ------------ ------------- | IMAGE 1 | ...
6
votes
1answer
255 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
2answers
629 views

Three 'side to side' figures using minipage

I'm trying to set up a main figure containing three sub figures. The idea is to split them in such way that it shows a two columns figure where the second column is made out of two sub figures located ...
6
votes
2answers
783 views

vertical alignment of two columns in a beamer frame

I'm trying present two concepts side by side in a frame. And I want each lineitem to be vertically aligned. Here is is an example where they are not aligned. \begin{frame}{An Example of using columns ...
6
votes
1answer
558 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
3answers
2k 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
181 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
2answers
6k 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 ...
6
votes
1answer
222 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: ...
6
votes
2answers
2k 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
1k 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
4k 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
664 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
546 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
1answer
74 views

Microtype does not work inside varwidth

I make a template for different texts and I need to use varwidth. But it seems microtype doesn't work inside this environment. Is there any way to make it work? \documentclass{book} ...
6
votes
3answers
2k 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
1answer
3k views

Minipage - space between two columns and aligning

Here is the deal. I want both of them starting from the very same line and perhaps increase the distance between them. I really cannot remember wheater s.th. chaged after adding ...