Skip to main content

Questions tagged [minipage]

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

Filter by
Sorted by
Tagged with
105 votes
3 answers
410k views

How to use figure inside a minipage?

I'm trying to include an image, and keep it centered, and prevent from wrapping from the next page. The following code works for that: \begin{minipage}{\textwidth} \begin{center} Caption ...
Jay Sullivan's user avatar
  • 2,468
100 votes
4 answers
255k 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} \usepackage{...
manish's user avatar
  • 9,181
87 votes
3 answers
61k views

Understanding minipages - aligning at top

I would like to be able to align two minipage at the top, without worrying about what is in the minipage. I am aware of the optional [t] parameter, but still have some confusion as to how this all ...
Peter Grill's user avatar
86 votes
5 answers
93k views

\parbox vs. minipage: Differences in applicability

Lamport, LaTeX: A document preparation system, states on p. 104: There are two ways to make a parbox at a given point in the text: with the \parbox command and the minipage environment. They can be ...
lockstep's user avatar
  • 251k
79 votes
2 answers
12k views

How to keep a constant baselineskip when using minipages (or \parboxes)?

When a minipage is used to box a text paragraph, the first line of the minipaged text and the last line of the previous text paragraph are closer than two consecutive lines in a standard text ...
Gonzalo Medina's user avatar
77 votes
2 answers
136k views

Align text in minipage at same height

I need to put some text at the same height in my page, and I'm trying to do it with a minipage, but I'm not able to do it since they get centre-aligned. This is the LaTeX for the figure I've uploaded:...
Matteo's user avatar
  • 1,807
74 votes
2 answers
464k views

Putting Figures Side-By-Side Using Minipage

I am trying to put two figures next to each other. However, it is not working. Here is my code: \begin{figure}[h] \centering \begin{minipage}{1.0\textwidth} \centering \includegraphics[width=0.3\...
Mack's user avatar
  • 2,001
69 votes
2 answers
222k views

How to split a frame (of beamer) into 2 parts (minipage) side by side?

I would like to split a frame into 2 parts side by side by minipage. But it seems that the following code puts one on top of the other: \begin{minipage}[t]{0.48\linewidth} left part \end{minipage}\...
SoftTimur's user avatar
  • 20k
66 votes
9 answers
24k views

Fit text into given box by adjusting the fontsize

I would like to fit text (potentially several paragraphs) into a box of given size. This should be done by adjusting the fontsize of the contained text. Clarification edit: The given dimensions are ...
kongo09's user avatar
  • 2,496
64 votes
2 answers
24k views

Can I get a normal footnote in a minipage environment in LaTeX? How?

I need to use a minipage environment and I need a footnote in that minipage. I want the footnote to be numbered in the normal footnote sequence and to occur together with the rest of the footnotes in ...
vanden's user avatar
  • 31.3k
58 votes
1 answer
229k views

Underfull \hbox (badness 10000) message

I made a mini page like below. It compiled without any error, however, I am getting following message in log: Underfull \hbox (badness 10000) in paragraph at lines 104--109 I am trying to fix above ...
user avatar
57 votes
2 answers
52k views

Vertical alignment of side-by-side minipages

I want to create some text, which will be positioned on the left-hand side of an image. My Latex code is: \begin{minipage}{.6\linewidth} \lipsum[1] \end{minipage} \hspace{0.02\linewidth} \begin{...
Karnivaurus's user avatar
55 votes
2 answers
12k views

How to preserve the same parskip in minipage

I have following structure: \begin{document} Paragraph1. Paragraph2. \begin{minipage} Some paragraph1. Some paragraph2. \end{minipage} \end{document} How can I make the same spacing between ...
glaz666's user avatar
  • 653
54 votes
1 answer
130k 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? \...
user4811's user avatar
  • 4,185
53 votes
5 answers
128k views

Left and right aligned on same line

I am currently busy typesetting my thesis in LaTeX, but I am stuck on something with my cover/title page. At the bottom of the page, I need to type my name and my supervisor's name. This is a rough ...
user860374's user avatar
  • 1,165
39 votes
4 answers
102k 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}
colinfang's user avatar
  • 1,541
39 votes
2 answers
49k views

Aligning image and text on top, with minipages

I have an image (on the left) and a block of text (on the right), and I would like both to be aligned on their top. I am trying to use minipages for that: \documentclass{article} \begin{document} \...
F'x's user avatar
  • 3,001
34 votes
1 answer
73k views

Fix the height/length of a minipage

I have 2 columns in 1 slide. On the left hand, it is a tabbing inside a minipage in a framed. Some sentences are shown one by one by overlay, that results in the height/length of the whole minipage ...
SoftTimur's user avatar
  • 20k
31 votes
1 answer
48k views

lstlisting in two columns

I would like to have two listings, side by side. They have approximately the same length, therefore I don't care about how it's layed out if one part is longer. I tried \begin{minipage}{\textwidth} ...
Atmocreations's user avatar
31 votes
2 answers
40k views

How to move a whole tikzpicture?

I have a tikzpicture, rounded by a fbox, and embedded in a minipage. Is it possible to change the position of the whole picture inside the minipage? for instance, move the picture 1 unit higher and 1 ...
SoftTimur's user avatar
  • 20k
30 votes
1 answer
3k 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 I ...
kdb's user avatar
  • 1,929
30 votes
1 answer
4k views

Why is \parskip zero inside a minipage?

This question was originally entitled "inconsistent paragraph spacing with \parskip inside minipage" as the MWE below shows. But I found the answer at How to preserve the same parskip in ...
Peter Grill's user avatar
29 votes
3 answers
111k 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?
user32451's user avatar
  • 983
28 votes
1 answer
648 views

Should \minipage restore the default definition of \@par?

I came across the issue hinted at in the title while I was reflecting on this question (“Irregular spacing around a user-defined environment”) and its answer. The \@endparenv command is called by ...
GuM's user avatar
  • 21.6k
27 votes
1 answer
32k views

Two minipages with 0.5\textwidth each get placed one below another

This happens in the beamer class only. Does anyone know the reason behind this? I fix it by just setting both widths to 0.49\textwidth and this works but I'm still curious why this happens and if I ...
Philipp's user avatar
  • 5,088
26 votes
3 answers
5k views

Print programs with its proper syntax

I have defined my own language whose syntax is very close to the one of Pascal. I would like to type the following program for instance. Many people use the packages algorithmicx or algorithm2e to ...
SoftTimur's user avatar
  • 20k
26 votes
1 answer
80k views

Multiple columns with minipage, can't use 100% of \textwidth

In a document I'm making, I have several cases where I need to organize things into several "columns." For example, here is some code I might use: \documentclass[letterpaper,12pt]{report} \...
CmdrMoozy's user avatar
  • 817
26 votes
1 answer
65k 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 ...
jc_os's user avatar
  • 329
26 votes
3 answers
17k views

Minipage that allows page breaks?

Is there a minipage-like environment that allows pagebreaks? Everything I can find is about avoiding page breaks (which minipage does well) but I want to indent a whole section, which is convenient to ...
hatmatrix's user avatar
  • 2,913
25 votes
2 answers
9k views

How to change symbol for footnote in minipage

\renewcommand method does not work \documentclass{article} \renewcommand{\thefootnote}{\arabic{footnote}} \begin{document} \begin{minipage}{1.3\textwidth} test this\footnote{abc} \end{minipage} \...
colinfang's user avatar
  • 1,541
24 votes
2 answers
68k 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} \includegraphics[...
Ginger's user avatar
  • 1,427
24 votes
1 answer
85k views

tables side-by-side using minipage

I'm trying to get three tables side by side using minipage. In spite of my horrific efforts my tables keep stacking on top of each other instead of standing beside what drives me mad. Can anybody spot ...
matcheek's user avatar
  • 535
22 votes
2 answers
143k 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} \includegraphics[...
dearN's user avatar
  • 2,770
20 votes
2 answers
22k views

Placing TikZ drawings in a minipage side by side

I've some problems with aligning some drawings I made with TikZ: I want these two TikZ pictured below to be displayed side by side with the two captions being on the same horizontal level. ...
IronMan12's user avatar
  • 201
20 votes
1 answer
7k 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 ...
Masroor's user avatar
  • 18k
18 votes
4 answers
5k views

In beamer class, how do I remove the additional vertical space before an itemize environment?

On a beamer slide, I want to produce something like I use the following LaTeX code, which works well in LaTeX with the article class. \begin{minipage}[t]{1.4cm} Questions: \end{minipage}\nobreak \...
Hendrik Vogt's user avatar
  • 38.1k
18 votes
3 answers
75k views

side by side minipage figures

I have this code where the part marked A is the same as the part marked B except that .4 in A is .45 in B. Even though they are so similar the first one puts the images side by side with the ...
user1189687's user avatar
  • 1,953
18 votes
1 answer
16k 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 ...
doctorate's user avatar
  • 4,193
17 votes
2 answers
86k views

cannot use \caption under minipage

I am using following code to import two images next to each other. When \caption{} is used, LaTeX gives me error caption outside float. \begin{minipage}{.5\textwidth} \centering \includegraphics[...
maths-help-seeker's user avatar
17 votes
3 answers
6k views

multicols not wrapping to 2nd column properly?

This question led to a new feature in a package: multicol I am having problem with multicol package, I created a sample demo to show it. When I put 3 minipages of certain height in the multicol it ...
Pavel's user avatar
  • 171
17 votes
2 answers
12k 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 ...
Avm's user avatar
  • 173
17 votes
3 answers
23k views

How to make minipage spanning multiple pages

I'm using this resume template: https://github.com/deedydas/Deedy-Resume This template uses minipage to build a layout like : +-----------------+ | Header | +------+----------+ | | ...
PiX's user avatar
  • 171
16 votes
5 answers
787 views

Help needed to create a relatively complex page for the cover of a textbook

I would like to be able to create a page like the following: I am using PDFLaTeX, by the way. I tried playing around with the minipage environments, but while I get somewhere, there are always ...
Maurice's user avatar
  • 263
16 votes
4 answers
41k views

How to right align a minipage?

How can I right align a minipage without using ragged2e? Screenshot MWE \documentclass[12pt]{article} \usepackage{ragged2e} \usepackage{blindtext} \begin{document} \begin{minipage}{10cm} \...
Andreas Schneider's user avatar
16 votes
4 answers
21k views

Colored box in new environment

I have a problem, I'm fairly new to LaTeX but I think I got the basics. My problem is that wants to create a environment that can create a minipage with a background color and some text in it. I can ...
Selveste1's user avatar
  • 183
16 votes
1 answer
5k 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 ...
bitmask's user avatar
  • 1,215
16 votes
1 answer
54k 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 ...
SoftTimur's user avatar
  • 20k
16 votes
1 answer
33k 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} } \begin{...
iggy's user avatar
  • 263
15 votes
1 answer
20k 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 ...
Thanos's user avatar
  • 12.5k
15 votes
1 answer
2k views

A never-written char "b" appears in a minipage

I'm trying to make a presentation with beamer and I've just started using minipages. The following code compiles without any issue and the resulting formatting is good, when proper text and graphics ...
RM00's user avatar
  • 153

1
2 3 4 5
36