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

learn more… | top users | synonyms

4
votes
2answers
157 views

captionof increases count by 2

I face a similiar problem like the one described here. I created a command that will output a caption besides an image (in this example replaced by simple text). ...
4
votes
1answer
224 views

Caption beside image in minipage

What i'm trying to achieve: Have two images in one page, one image on the top half of the page and the other the bottom half. Ive managed to do this by: \vbox{ ...
4
votes
1answer
2k views

Padding in a minipage

I build a minipage with some background picture: \newsavebox\langscapeSafebox \newenvironment{dsaBoxLandscape}[1][]{% ...
4
votes
1answer
84 views

Error with pmatrix inside multline* inside minipage inside tabular

The following is a minimal example of code that gives me an Argument of \multline* has an extra } error. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{tabular}{c} ...
4
votes
2answers
988 views

Left and right aligned minipages, with table layout

I am trying to create a layout with two "columns," where the right-hand column itself has two columns, which are right and left aligned, respectively. For instance: This is some text in the first ...
4
votes
1answer
130 views

How can I center multiple paragraphs that are wider than the text width?

I have a figure that consists of multiple paragraphs of tabulars and images. At least one of these paragraphs is wider than the text width. How can I center the entire figure so that the widest ...
4
votes
1answer
226 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 ...
4
votes
1answer
191 views

Place group of text and image on same exported PDF page

I am new to Tex and this question maybe is not written well, so I will try to explain it better. I am writing a reference manual where there are a lot of "blocks" that all have the same structure: a ...
4
votes
2answers
43 views

How to keep a constant baselineskip when using minipages in tables?

Following up this question: How to keep a constant baselineskip when using minipages (or \parboxes)? The answers to the question suggest that \strut is not perfect to space minipages well with ...
4
votes
2answers
79 views

spacing in description with items wrapped in minipage

I'm trying to prevent items in description environment from breaking by wrapping each one in a minipage. (Perhaps that's not a good approach, but let's put that aside if we can for my question.) When ...
4
votes
1answer
1k views

Setting background color of minipage without overflow

I would like to set a color to the leftmost minipage in the following code: \usepackage{xcolor} \fcolorbox{red}{gray}{ \begin{minipage}{0.33\textwidth} some text \end{minipage} } ...
4
votes
1answer
228 views

Placing figures adjacent to exam choices

In the following mwe, I'd like the circular ohm formula figure to be positioned further to the right and the bottom of the figure lined up with choice D of question 4. I don't want the blank space ...
4
votes
1answer
1k views

using fbox in a newenvironment [duplicate]

I am trying to write a new enviroment to add text into a \fbox, when I use \fbox on its own, it works quite nicely \fbox{\begin{minipage}{0.9\textwidth} does this work, I would love if it did ...
4
votes
1answer
2k views

Space just before minipage

This is my .tex file: \documentclass{article} \usepackage{framed} \setlength{\FrameSep}{3pt} \begin{document} \noindent{}The king\\ \begin{minipage}{0.9\textwidth} is dead, ...
4
votes
1answer
6k views

Text alignment in a minipage

I have a little problematic in LaTeX, and I have not found any solution. I have a minipage like this : \begin{minipage}[t]{\textwidth} \raggedleft {\bfseries Some text}\\[.35ex] \small ...
4
votes
1answer
161 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
225 views

Laying out subfigures with minipages

I want to place 3 subfigures in a figure with two columns. There is one big subfigured placed to the right. The two subfigures on the left should be aligned so that the first is aligned with the top ...
4
votes
1answer
231 views

How do I make a framed coffin with correct alignment?

I'm playing with coffins for a title page and would like to have a square framed box that aligns with the topline and baseline of text within a rotated coffin. I have a couple of issues with this so ...
4
votes
1answer
89 views

minipage environment inserting blank pages and footer won' turn off

This is my first post, so hopefully I got the formatting correct. I have searched all over and can't seem to find an answer to my problem. Below you will find a minimal example of my text file. I have ...
4
votes
1answer
471 views

Beamer Columns environment doesn't work when converting dvi to pdf

I am trying to create two columns in one slide with Beamer. I followed this link: How to split a frame (of beamer) into 2 parts (minipage) side by side? However, none of the minipage or the columns ...
4
votes
1answer
87 views

How to put 2 headings on same line (next to each other)?

Can someone help me to put ''Author:'' on the same line as ''Supervisor:''? \begin{minipage}{0.4\textwidth} \begin{flushleft} \large {\bf Author:}\\ aaa\textsc{bbb} % My name \end{flushleft} ...
4
votes
0answers
82 views

Why does a linebreak in minipage flow this to the next page?

I am using zwpagelayout (see this question) but if I put a minipage with a line or paragraph break, I get weird two-page output. \documentclass{article} ...
3
votes
5answers
377 views

An double arrows between two systems

I'm trying to have 2 equations systems separated by a double arrow, something like this : I'm actually using 3 minipage : the first and the third with and array and the arrow at the ...
3
votes
3answers
856 views

tikz-figures in minipage: Captions at the same height and top alignment

I want to place two tikz pictures next to each other, both of them should be figures I can reference to. Please consider the following MWE: \documentclass{scrartcl} \usepackage{tikz} \begin{document} ...
3
votes
1answer
2k views

Shadowbox that breaks page

I am trying to typeset a block of text in shadowbox. The text is quite long, therefore I would like it to span across two pages where necessary. TeX will not perform a pagebreak, though. Here is my ...
3
votes
2answers
6k views

Frame around minipage containing listing in beamer

I am working on the sheets of a course on LaTeX and would like to have several sheets in which you see on the left an example of a source document and on the right its output. I have this working now ...
3
votes
2answers
203 views

Using Tikz to position a background image in mini page

I'd like to use tikz to position a graphic at the lower right hand corner of a minipage. I've gotten this far (this isn't quite an MWE, since it depends on a locally available imagefile). ...
3
votes
3answers
220 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]: ...
3
votes
3answers
179 views

Minipages' vertical alignment

I use three minipages so to make a table and two images be placed next to each other and although the images are in the right place the table is placed much lower producing an ugly result. Why is ...
3
votes
2answers
3k views

Is it possible to use subcaption inside a minipage?

I have tried formulations of using subcaption inside minipage--subcaption and subcaptionbox. I have also look at some threads but couldn't find anything doing what I needed. Please note that this ...
3
votes
1answer
850 views

How to make verbatim text in multicols environment not overflow to other columns?

I prefer to use \begin{multicols}{2} over \documentclass[12pt,twocolumn]{article} so I can control when to have 2 columns and when not. The problem comes when using ...
3
votes
1answer
2k views

Indentation inside a new environment

I want to have my text lines in a new environment indented from the left, as happens within \begin{minipage}{...} \end{minipage} The reason not to use a minipage inside the environment definition ...
3
votes
3answers
91 views

Center text directly beneath a right-aligned heading

With LaTeX, how do I center text directly beneath a right-aligned heading? Maybe it's better explained with my attempt so far: \documentclass{article} \usepackage[ hmargin = 1in, vmargin = 1in ...
3
votes
1answer
5k 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
76 views

Pdflatex on file with large amount of pictures

I have a tex file that's generated by an automated bioinformatics pipeline as a report. Usually, this is roughly 50-150 pages, but that's based on 1-3 samples. It contains many quality control graphs. ...
3
votes
1answer
128 views

how to ensure items in two minipages are in same line

By including a tikz-picture in my two (tabular) minipages my items are messed up. Ideally there is a corresponding item for each (except there's an empty entry for the last item in the left table). ...
3
votes
2answers
2k views

Left position of minipage

I'm trying to put an optimization problem inside a box. After some research I found this method (please fill free to propose a better method if you know something better): ...
3
votes
1answer
242 views

Formatting text inside minipage

If I use \begin{textbf} and \end{textbf} (for example) inside a minipage, it seems to apply only to the first character. Here's a simple example: \documentclass{article} \begin{document} ...
3
votes
2answers
257 views

How to align text and a table next to each other

I want to produce a table-like structure but preceeded by a single word on the left, like so: Here is what I tried: \begin{minipage}[t]{\textwidth} Here \\ \begin{tabular}{ccl} $n$ & --- ...
3
votes
1answer
219 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 ...
3
votes
1answer
939 views

Tables: Automatic adjustment of columnwidth to its content gives error “Misplaced \noalign” at \toprule

I am trying to put two tables next to each other, vertically aligned top, with some below listed adjustments I unfortunately can't get together. First, I'd like to know if/how I can avoid the error ...
3
votes
2answers
1k views

Proper spacing using minipages, dealing with margins and succeding text

So I have this user defined function below. This gives me near optimal results. The code is supposed to make numbered subsections. Where the rest of the text is aligned below. Since these subsections ...
3
votes
2answers
59 views

Reprint page but smaller

Here's an uncommon request. Let's say I have a page, page A. It's x in * y in. On another page, page B, I'd like to shrink the page to say half size (0.5 x in * 0.5 y in), to be used as a ...
3
votes
2answers
138 views

Minipage overlapping with text that follows

I'm trying to replicate the following layout that I have in a Word version of the paper: There are two code sections side by side with the code balanced between the two. The code won't fit into a ...
3
votes
1answer
72 views

configuring minipage in htlatex

I want to use minipage in htlatex, because I want to have a minipage with a figure, close to a minipage with some text, and then I want some other text that must be on a new line and full-width. I ...
3
votes
2answers
65 views

How do I align the caption of these two pictures in my minipage at same `height´?

It might be a silly question, but it is bothering me that I cannot fix it at the moment. \medskip \begin{figure}[h] \begin{minipage}{.3\textwidth} \centering ...
3
votes
1answer
65 views

Equation left margin

I have equations inside an environment which has a larger left-margin than the main text (analogous to an enumerate/itemize environment, implemented with the changepage package's adjustwidth ...
3
votes
2answers
373 views

Minipage make different space between tables

I have the following problem. I use a minipage to show two table next to each other. As you can see in the figure the first two rows of the tables are okay, but the thrid has a problem with the ...
3
votes
1answer
571 views

What's the exact margin size separating two side by side minipage environments?

Consider the following MWE with two minipage environments, ideally filling 1\textwidth in total. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{fouriernc,parskip,framed} ...
3
votes
1answer
64 views

How to improve simple macros to leave the surrounding text justification undisturbed

I have prepared a series of macros in order to simplify the incorporation of pictures into long documents. All of them are based onthe MWE below. However I have just noticed that the text following ...