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

learn more… | top users | synonyms

2
votes
2answers
84 views

How to center align the below subfigure when it stands alone?

I have three subfigures as shown in the MWE below, I want to align the subfigure c in the center below the two upper figures, how to do that? \documentclass{scrartcl} \usepackage{caption} ...
3
votes
2answers
417 views

Two algorithm2e environments side by side

I want to get two algorithm2e environments side by side aligned at the top. I tried it with two minipages, but it does not work. How do I get them side by side in the normal text (not in a floating ...
6
votes
2answers
959 views

Trouble placing images side by side in beamer

I need to place a couple of images side by side (horizontally) in a presentation I'm doing with beamer, so I looked around and inserted the following code (sugested by this post): ...
5
votes
1answer
148 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: ...
1
vote
2answers
206 views

Minipage not finding width argument

The following code is producing an error: \begin{figure}[htbp!] \subfloat{ \begin{minipage}[c][Structured Mesh]{0.5\textwidth} \centering ...
4
votes
1answer
381 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 ...
3
votes
1answer
58 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 ...
5
votes
1answer
220 views

Improper symbol mark of footnote in minipage environment

I think that the footmisc package has predefined the sympol mark series, but in minipage environment they become invalid. See below \documentclass{book} \usepackage[symbol*,stable]{footmisc} ...
3
votes
1answer
368 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} ...
1
vote
2answers
167 views

Adjusting layout in minipage within tikz node

What I want to achieve are nodes in which I can put a small index in the top left with either a one or two line description in the center. The nodes should all have the same size. What I achieved with ...
2
votes
0answers
71 views

How do I display a very wide table at the bottom of a page over two columns?

I'm writing a paper in LaTeX according to a CogSci template which uses two columns. However, I have a very wide table which needs to span accross both columns to be shown correctly. I want this table ...
2
votes
2answers
785 views

Put two pictures above one another within one sub float / reference problem

I was going through some crazy hoops to get minipage and subfloat work nicely (?) together, only to find out in the very end that I screwed up the figure references. I have a figure with two ...
2
votes
1answer
134 views

Use a box to fill text to right margin

I often use an eqnarray (I know it's better to use align, but let's not worry about that for this question unless it changes the answer) as a way to list a bunch of definitions or descriptions of ...
1
vote
1answer
90 views

Gcard with six panels

I want to make a card in latex with six panels. Sorry for the crude explanation, but something like this: \__/, that is, the card folds both from the left and the right, with the two edges meeting in ...
2
votes
1answer
164 views

Figure with minipage alignment issues [duplicate]

I have a figure block with 2 'minipage', each having a figure. When I typeset the document, the figure goes to the top of the page instead of being in the sub-section where I am defining it. The ...
0
votes
0answers
41 views

PDFLATEX : Cover Page Image with No Margin [duplicate]

I'm creating exam paper using exam class as mentioned below: \documentclass[a4paper,addpoints,answers,10pt]{exam} \usepackage{tikz} \usepackage{graphicx} \usepackage{wallpaper} ...
2
votes
1answer
195 views

Vertical Alignment of (graphic+text, inside a mini page)+item number

I have a figure and text inside a minipage inside an enumerate. I would like align the text and the item number and top-align the figure and the text. Top top-align figures and text in the past I ...
2
votes
2answers
93 views

Three minipages side by side but over several pages

Im searching for a way to typeset the following scenario: With three minipages this works fine: \documentclass{minimal} \usepackage{blindtext} \begin{document} \begin{minipage}[t]{0.1\textwidth} ...
4
votes
2answers
104 views

Footnote in minipage wit newtxtext misses mark

With the newtxtext LaTeX package, footnotes inside a minipage miss the mark. \documentclass{article} \usepackage[papersize={6cm,4cm},margin={2mm,2mm}]{geometry} \usepackage{newtxtext} ...
2
votes
0answers
57 views

How to align the top of two minipages [duplicate]

I have two minipages aligned to the top of a frame (I used the option [t] on the frame and the two minipages). If I had elements in one of the minipage, the other minipage goes down. I have ...
6
votes
1answer
169 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 ...
2
votes
1answer
910 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, ...
3
votes
1answer
339 views

How to fix caption in moderncv?

I'm using moderncv and I want to add a caption to an inserted graphic. I'm currently using this code \begin{minipage}{.5\textwidth} \centering ...
8
votes
1answer
504 views

Why does \vfill not work inside minipage?

Perhaps the answer is trivial, and I am facing the scenario as part of a larger macro. I faced a situation where I found that \vfill does not work inside minipage environment. The extracted code from ...
3
votes
2answers
203 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 ...
4
votes
2answers
4k views

minipage environment with bottom-aligned

I would like to make my figures with bottom-aligned, but the arrows are still in the center. Here is my code: \begin{figure}[!ht] \centering \begin{minipage}[c]{0.2\textwidth} ...
4
votes
2answers
209 views

Horizontal alignment of text blocks

I want two text blocks in a horizontal row. In the middle between them, there should be an arrow pointing from left to right. This is what I currently have: As you see, the arrow is not in the ...
6
votes
2answers
725 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 ...
3
votes
1answer
3k 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
310 views

How can I vertically align two minipages with subfigures and differing caption length?

Following "Placing two figures (each having subfigures) next to each other", I used the following code in order to place two figures with subfigures next to each other putting the subfigures ...
2
votes
0answers
190 views

Single-column framed minipage spanning two or more slides in Beamer

I searched and could not find an easy non-labour intensive solution to this one. In making a Beamer presentation, I have some framed minipages with various arbitrary content I am transferring from a ...
2
votes
1answer
103 views

How to put a figure inside a minipage when using memoir?

I need to put a figure inside a minipage, like so: \documentclass{memoir} \begin{document} \begin{minipage}{10cm} \begin{figure} blabla \caption{test} \end{figure} \end{minipage} ...
6
votes
3answers
896 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 ...
4
votes
1answer
609 views

Reduce vertical space before minipage

My problem: There's more space before my \chapter that's inside a \minipage environment than before any of the other chapters that are outside this environment. What I'm after: Keep the same distance ...
6
votes
1answer
224 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}% ...
2
votes
1answer
112 views

How to order 3 images horizontally (two with sub-figure and the third one is one figure)

I put three figures in a row. One figure is independent one and with a caption underneath; the other two figures are sub-figures. Please see the picture below. I tried to combine minipage with ...
3
votes
1answer
3k 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 ...
2
votes
2answers
1k 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 ...
25
votes
1answer
350 views

Using elastic lengths — when do they work?

I was wondering why elastic lengths like \fill seem to work only under certain conditions. For instance if I write A \hspace{\fill} B I get A left aligned, B right aligned as wanted. If however ...
0
votes
1answer
250 views

Supertabular + minipage

I have a very long but narrow table (3 columns but 800 rows) and I would like to have it such that the table starts on the left side of the page and breaks onto the right side of the page before ...
7
votes
1answer
129 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 ...
1
vote
1answer
5k views

Minipage with four figures - avoiding too much whitespace

I have hundreds of figures that I have arranged into 2x2 matrices using the \minipage environment like so: \begin{figure}[ht] \label{ fig7} \begin{minipage}[b]{0.5\linewidth} ...
3
votes
1answer
63 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 ...
4
votes
1answer
116 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 ...
3
votes
1answer
318 views

Tabular: Using tabular to separate figures in a minipage

\documentclass[demo]{article} \usepackage{tabu} \usepackage{tikz} \usepackage{capt-of} \usepackage{subfig} \captionsetup[subfigure]{labelformat = parens} %\usepackage[demo]{graphicx} ...
3
votes
1answer
100 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 ...
4
votes
1answer
207 views

Problem with environments, arabic and tikz

Here a question also about my last topic. I want to create an environment that put a pretty box around my theorem and its title. Here is a code with the desired output : \documentclass{report} ...
5
votes
2answers
131 views

Automatic / variable vertical alignment within a minipage?

I have defined a new environment that I use to highlight warnings in my text. Here's a minimal example of the code I use: \documentclass[parskip]{scrartcl} \usepackage{fourier} % for the bomb ...
6
votes
1answer
9k views

! LaTeX Error: Not in outer par mode

I am using an image within minipage and getting error message. ! LaTeX Error: Not in outer par mode. Below is minimal working example. \documentclass[11pt,table,a4paper]{article} ...
3
votes
1answer
98 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{ ...