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

learn more… | top users | synonyms

3
votes
3answers
77 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

How to make a caption (via \captionof and extra margins) adhere to minipage margins?

I made use of the caption-package to define a custom layout of the captions. Their width is set to 0.8\columnwidth. As far as I understood the problem, this measure is not used when the caption is set ...
3
votes
1answer
107 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
251 views

Beamer - building footnote example with columns and minipage

While trying to construct a beamer slide illustrating usage of footnote command I hit upon the following problems. When I compile a slide with the following code: \documentclass{beamer} ...
3
votes
2answers
1k 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
171 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
179 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
189 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
727 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
262 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
449 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 ...
3
votes
1answer
109 views

Consistent vertical alignment of one-line text in minipages

The vertical alignment of one-line text in minipages depends on the vertical extent of the text itself: \documentclass{scrartcl} \begin{document} bad alignment: \frame{ ...
3
votes
1answer
4k 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 ...
3
votes
1answer
160 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: ...
3
votes
2answers
65 views

Caption misalignment with minipage and adjustwidth

I'm trying to fit two over-sized figures side by side on one page. I tried using minipage and adjustwidth, but the caption on the second figure kept mis-aligning to the left, as shown below. I tried ...
3
votes
2answers
43 views

Aligning three columns differently; with images, manually broken and wrap-around text

I am trying to create a situation with three columns from left to right: one with an image top-edge aligned to the top of the center column and the left of itself; one with wrap-around text having ...
3
votes
1answer
74 views

How can I arrange the table and the image in a minipage vertically?

I need the table and the image arranged vertically in the minipage instead of horizontally. I also add the pictures used in the code in the end. \documentclass[12pt,a4paper]{article} ...
3
votes
2answers
180 views

Itemize in tabular // minipage resulting in `Missing \endcsname inserted` error

The minipage solution of this accepted answer is also what I'm looking for, that is, this one :-) not this one :-( The commented-out part of the MWE below tries to implement that minipage ...
3
votes
1answer
113 views

misbehaving bold text while using minipage

I am working on a report, and I have been making use of minipage to display tables side by side. Problem* The tables are being displayed fine but it's the textbf{some text} that's giving me problems ...
3
votes
1answer
450 views

how to use fancyvrb Verbatim in tabularx?

When using tabular and p it is possible to insert Verbatim block in a table using minipage \documentclass[]{article}% \usepackage{fancyvrb} \begin{document} \begin{tabular}{|p{2in}|p{3in}|} ...
3
votes
2answers
4k 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: ...
3
votes
3answers
133 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, ...
3
votes
1answer
663 views

How to limit the width of equations?

I want to control the width of the equations so they don't exceed a predefined width. Firstly I used minipage environment and put the eqnarray within that. This does not produce the line breaks before ...
3
votes
1answer
211 views

svmono and footnote inside boxedminipage

Using the svmono class (downloaded from http://www.springer.com/computer/lncs?SGWID=0-164-6-793341-0 ), I get a latex error "Command \itshape invalid in math mode" with the following code: ...
3
votes
1answer
420 views

Colorboxes that break across pages

I am trying to build an environment/command that allows me to place comments in the text. The idea is to have colored box that can break across pages and use the \ttfamily font with hyphenation. I ...
3
votes
1answer
1k views

Figure numbering with minipages (memoir)

I have the following figure, where I can't seem to get the numbering right. The numbers next to the captions comes out as Figure 1, Figure 2, and Figure 3, but I want them to be (a), (b), and Figure 1 ...
3
votes
2answers
3k views

How to force text and figures to be on the same page when minipage, samepage, nopagebreak do not work

I'm trying to get four figures (centered on a page in a 2x2 grid) to show up on the same page as the section heading ("Appendix"). The following puts the word "Appendix" on one page (all by itself) ...
3
votes
2answers
212 views

Problems with \newgeometry by using landscape and minipage

I try to rotate a tikz-tree and a table which are in a minipage environment by using \landscape because the tree besides the table is to wide. Now, the tree and the table are not centered. The last ...
3
votes
1answer
55 views

Minipage inside MetaPost label within GMP - what is wrong?

Any clues please?? The following MWE will not compile. Line where minipage environment was used seems to be the offensor. With that left out compiling is OK. \documentclass{beamer} ...
3
votes
1answer
107 views

Duplicate footnotes when tabulary is inside minipage

I want to make table footnotes by nesting a tabular or tabulary inside a minipage, and that inside a table. When I do this with tabular, it works exactly as it should. But with tabulary, it produces ...
3
votes
1answer
31 views

documentclass{book}: Page content aligned on bottom of page

I'm still a beginner on LaTeX, but at the moment I'm working on a book. I'm working with Gummi and for some reason I started my work with \documentclass{article}. As I changed the \documentclass to ...
3
votes
1answer
106 views

Put two figures side by side

There are already several threads that deal with this: they suggest having one figure and putting putting minipages inside, or using the subcaption package and having subfigure environments. However, ...
3
votes
2answers
115 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). ...
3
votes
1answer
2k views

changepage package's \adjustwidth environment adjusts only left margin

I was trying to create a custom abstract environment with minipages and adjusted margins. Everything works fine, except for that the right margin changes according to the left. I could'n find ...
3
votes
1answer
61 views

Adjust width of listings including pagebreaks

I have my own lstlistings environments which are framed. Since I wanted to adjust the width so the frame starts with the text I used a minipage inside the lstlisting. (See MWE). But as I have quite ...
3
votes
2answers
255 views

newenviroment error: Extra }, or forgotten \endgroup \begin{gbox}

\noindent \colorbox{gray!25}{ \begin{minipage}{\textwidth} \vskip0.5cm \leftskip0.5cm \rightskip0.5cm Text Here! \\\end{minipage}} Code above works fine, but I don't ...
3
votes
1answer
230 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: ...
3
votes
1answer
240 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 ...
3
votes
1answer
2k 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 ...
3
votes
1answer
1k views

Custom divider between 2 minipage and lstlisting

I am using the following code to have 2 boxes beside each other for code comparison: \documentclass[12pt]{article} \usepackage{listings} \begin{document} \begin{singlespace} ...
3
votes
1answer
627 views

Multiple footnotes in minipage - how to typeset as paragraph ?

I have a table in a minipage with multiple, short footnotes. These are typeset one per line. However, I would like to have these in 'paragraph' mode to save space. I have tried ...
3
votes
1answer
64 views

How to align rotated column headings in a table?

I have this code which I adapted from Big table with rotated column labels using booktabs: \usepackage{booktabs} \begin{document} \begin{table*} \centering \begin{tabular}{cccccccccc} \toprule ...
3
votes
2answers
39 views

minipages in fbox horizontal misalignment when figure is included (not float)

I am trying to place some text and a figure next to each other and trying to avoid wrapfigure at the same time :-) Placing two minipages inside a framedbox works just fine: the text can be aligned by ...
3
votes
1answer
312 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} } ...
3
votes
1answer
47 views

\begin{alltt} inside \subfloat

I am trying to use the alltt environment inside a \subfloat element, and inside a minipage. The problem is that if I use \subfloat the indented text looses its indentation. Do you know any solution? ...
3
votes
1answer
76 views

Placing a tikzpicture next to an align and add an equation number

I want to place a tikzpicture next to an equation and equip both of them together with an equation number. The reason is that the tikzpicture is a kind of explanation (visualization) for the equation. ...
3
votes
1answer
130 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{ ...
3
votes
1answer
1k views

Why is the minipage indented on the left?

I am trying to create a CV and for the heading information I am using a minipage to display my name and Curriculum Vitae inline with smaller text containing my contact information. The code works ...