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

learn more… | top users | synonyms

6
votes
2answers
5k 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?
8
votes
1answer
197 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 ...
3
votes
1answer
187 views

Making global footnotes inside a minipage with hyperref support

I would like to make footnotes inside a minipage that use the global footnote counters and the hyperref package. I'm having trouble getting hyperref to make the correct references. I imagine I need ...
7
votes
2answers
119 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 ...
3
votes
1answer
167 views

vertical spacing on enumitem

In the example below I want the enumerate list to essentially be ``inline'' with the word Example from the example environment. It works perfectly with text or enumerate* (inline list), but I cannot ...
4
votes
1answer
2k 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 ...
2
votes
1answer
119 views

Datatool split page vertically

There is a CSV file, which has 1-6 records, I need to load it and display on the letter page into two columns (each row in a column is block with all text from CSV row), right column appears only for ...
1
vote
1answer
246 views

minted Environment Inside minipage Environment

I am having to use the minted environment inside a minipage environment quite often in my document. I wanted to write a new environment for doing this, but since minted isn't designed to be included ...
3
votes
1answer
2k views

Problem with top alignment in beamer columns

I am trying to place two images in top of two columns in a columns environment, in a beamer presentation. The first column consists of one image on top and a enumeration list bellow the image. The ...
5
votes
1answer
2k views

Make a minipage float

I am using the minipage environment to put a table and figure next to each other. Now I would like this to 'float' like a normal figure or table, such that LaTeX decides where to put it (using the ...
2
votes
1answer
188 views

Minipage width to ignore its content

I have a piece of code which I want to use to align equations one next to another using minipages. But there is a part of equation which I want to go below the other equation. Here is the code: ...
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 ...
3
votes
2answers
3k views

Two images inside minipage (side by side) with one common caption that says “Figure 1 & 2:”

I have two images inside a minipage, so I can have them side by side. When I make a caption for the images it only comes up as "figure 3: text", but I would like to have it showing "Figure 3 & 4: ...
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? ...
3
votes
1answer
184 views

Aligning 3 images square in a box

I am trying to create a figure with 3 images: two on the left half which are on top of each other, and one on the right that spans the height of the left images. Here is what I have: ...
4
votes
1answer
131 views

Dirtree and lstset side by side

A \dirtree and a \lstset should be shown side by side. With the code below the \dirtree is vertically not on the same level as the \lstset (above the \dirtree is some empty space). How can I fix that? ...
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 ...
2
votes
3answers
148 views

Side by side tables as one figure

\begin{figure} \begin{minipage}{0.5\textwidth} \centering \caption{***} $\begin{array}{cccccccc} T_1: & c_{12} & & c_{23} & & c_{34} & & c_{45}\\ ...
3
votes
3answers
121 views

Align text on a vertical axis similar to movie credits

I would like to align text on a cover page in a way often seen in movie credits, with the "key" ragged right and the "value" left: I use two minipages next to each other to achieve this. However, ...
2
votes
1answer
167 views

Paragraph Spacing within a Tikz Environment

I am looking to replicate the look of paragraphs within a tikz environment (actually a minipage). \documentclass[letterpaper,12pt]{book} \usepackage{tikz} ...
1
vote
1answer
122 views

Why \ifnum\c@mpfootnote does not work inside tabular?

Why \ifnum\c@mpfootnote does not work inside tabular? Should not I get no footnote-rule? I am just puzzled! \documentclass{article} \begin{document} \makeatletter \long\def\@mpfootnotetext#1{% ...
2
votes
0answers
99 views

Pictures not inserting [closed]

I am trying to insert a picture using \usepackage[pdftex]{graphicx}. I have that in my preamble, and then I'm attempting to insert a picture on a title page. I use the \includegraphics command. I ...
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 ...
7
votes
2answers
431 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: ...
2
votes
1answer
202 views

Two labeled equations on the same line with labels lining up vertically

I'm using the following LaTeX code within the amsmath environment in LaTeX (MiKTeX 2.9 and TeXnicCenter under Windows): Let $f$ represent the resulting number of such two-step cycles that operate per ...
1
vote
1answer
375 views

Height filling minipages in Beamer

I am trying to accurately center things in my Beamer frames with animations. For that purpose, I would like to use minipages with fixed height, which should be automatically inferred so that I do not ...
4
votes
1answer
107 views

Bytefield bitheader escaping its minipage?

In a small segment of a much larger document, I'm building a poor man's two-column layout using minipages for a short run. The bitheader from the bytefield in the right column, however, seems to be ...
4
votes
1answer
138 views

No space above first \item inside mdframed [closed]

Problem This is what happens: But I want the same vertical spacing before the first list item inside the mdframed environment as outside of it. How can I do this? Code \documentclass{article} ...
4
votes
1answer
199 views

Two columns with page span

this is my first post! I have tried to find a solution before posting. I have some input put into my .tex. The left column is text input by a user. To the right I would like 0..4 pictures, also ...
2
votes
1answer
1k views

how to put two pictures together using minipage

I wish to put two pictures side by side using mini page, however, it seems the two pictures even not in the same borderline. Here is my code, I can not figure out what the problem is. ...
5
votes
1answer
180 views

Indented box that split in multiple pages

I am doing a document with exercises and corrections. I would like the corrections to be easily remarkable so that no student read it by accident and get its exercise spoiled. I have written an ...
8
votes
3answers
380 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 ...
4
votes
1answer
5k views

Set background color of a box with predefined width

I would like to have something like a minipage with colored background, i.e. a box where you can predefine the width and the background color. My attempt \colorbox{green}{\begin{minipage}{\slwidth} ...
2
votes
1answer
205 views

Make a list with uniform spacing regardless of the characters and number of text lines, possibly with minipages or a table

I am trying to make a list with two columns, where I can used different font sizes and have single- or multi-row columns, while adhering to the page margins and aligning the text properly regardless ...
0
votes
0answers
23 views

\ref{figures} goes to the part, not the figure [duplicate]

I'm using Latex for a Report about signal processing and I've a lot of figures. SoI putted them into minipages to display them side by side. It's fine but the references doesn't work. Here is an ...
2
votes
1answer
1k views

Wrap around text inside frame (minipage) in Lyx

I want to insert a number of drop-shadowed frame inside a document and place (the same) graphic in the top left hand corner of each box. I would like the text in the rest of the box to wrap around ...
4
votes
1answer
371 views

Line numbering with Lineno within Minipage

I am trying to add line numbers to a reading passage. The issue is that I can't get them to display when I try to number lines within a minipage environment. Can anyone answer what seems to be a ...
2
votes
1answer
3k views

Left margin minipage two figures

I have a minipage with two figures, the problem is, that I want to have them shifted to the left, so the left margin should be smaller, the code of my minipage: \begin{figure}[H] ...
3
votes
1answer
146 views

Chemfig reaction to wide for twocolumn

For a paper I have to describe certain reactions. I am using the chemfig package to do this. The paper has to be two columns and this is where it goes wrong. When I compile this reaction: ...
2
votes
1answer
906 views

Spacing problem while using itemize in minipage

I am using itemize in minipage and observe unexpected spacing among items. \documentclass[11pt,table,a4paper]{article} \usepackage[framemethod=TikZ]{mdframed} \usepackage[top=.5cm, bottom=2cm, ...
5
votes
1answer
370 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 ...
4
votes
1answer
2k 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 ...
1
vote
2answers
534 views

Create an exceptional A3 page within an A4-based report

I created a picture within a tool that fits exactly in an A3 page. However I need to place this picture within an report that has A4 pages by default. The picture contains lots of information so I ...
1
vote
0answers
39 views

How to implement a floating text box? [duplicate]

I'm trying to write an environment that creates a new float type for text boxes. These are used for example in some books to provide interesting tidbits that aren't really part of the main line of ...
2
votes
0answers
144 views

How to do a small box synchronized translation? [closed]

I would like to do something similar to the Artscroll Bibles, with a Hebrew text and a small box on the top with a synchronized translation. In the following picture, the box in question is the upper ...
7
votes
1answer
798 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?
4
votes
2answers
263 views

Table of 2x2 tikzpictures

I'm attempting to condense 4 tikzpictures into a smaller space in my document. The solution I have is as follows: \documentclass{article} \usepackage[paperwidth=6in, paperheight=4in]{geometry} ...
3
votes
1answer
171 views

Placing a tikzpicture next to an align

I have a tikzpicture with an accompanying explanation in a math align environment. The tikzpicture is small enough that I'd like the explanation to appear next to (specifically, to the right) the ...
1
vote
1answer
226 views

Problem with sizing side-by-side minipages

I've been writing up my resume in LaTeX (for the flashiness and also to get better with LaTeX), and I've been having some trouble with one of the macros I wrote, called \nrccolstring. \nrccolstring ...
2
votes
1answer
1k views

About figure in minipage

How to hide "Figure 3:" and "Figure 4:", and let "Figure 5" shows as "Figure 3"? (i.e. subfigure not taking the figure number) \begin{figure}[htbp] \hspace{-4mm} \begin{minipage}{0.5\linewidth}] ...