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

learn more… | top users | synonyms

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
2answers
131 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
2answers
16k 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}
7
votes
2answers
333 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 ...
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
2answers
7k 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?
7
votes
2answers
540 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
5k 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
2answers
516 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
308 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
990 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
339 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
3k 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
242 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
1answer
474 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 ...
7
votes
1answer
151 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
209 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
1answer
5k 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? ...
6
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 ...
6
votes
1answer
193 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
355 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
1answer
4k 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 ...
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
171 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
12k 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
5k 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
2answers
112 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
2answers
1k 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
972 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
598 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
505 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
3answers
1k 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
10k 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
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
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 ...
6
votes
1answer
272 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
2answers
131 views

How to keep tikzpicture minipages in position?

I found these pretty boxes on texample.net: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,snakes} \usepackage{amsmath,amssymb} \begin{document} % % Define box and box title style ...
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
93 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
703 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
2answers
8k views

Placing images left and right of each other

I want to create the following layout: ------------ ------------- | IMAGE 1 | ...
5
votes
2answers
269 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 ...
5
votes
3answers
135 views

Long list of tabular figures inside minipage goes off page

Using the follow MWE, I'm able to create a beautiful lists of photos on the left and a caption on the right (similarly, I could also use the sidecaption package or floats directly). MWE [LuaLaTeX]: ...
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 ...