Questions tagged [minipage]
{minipage} is an environment providing a paragraph box which is a complete mini version of a page.
286
questions
75
votes
2
answers
10k
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 ...
26
votes
3
answers
4k
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 ...
86
votes
3
answers
58k
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 ...
61
votes
8
answers
21k
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 ...
53
votes
2
answers
10k
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 ...
95
votes
3
answers
356k
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 ...
38
votes
2
answers
47k
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}
\...
5
votes
1
answer
1k
views
Is there a replacement for nccmath?
I noticed that the nccmath package is not mentioned in What packages do people load by default in LaTeX?. Since I have had several problems with minipages that all eventually led to nccmath related ...
28
votes
1
answer
3k
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 ...
52
votes
1
answer
20k
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 ...
1
vote
1
answer
780
views
twoside breaks spacing
I'm using minipages to keep related questions together on a test that I'm writing. When I make a 2-sided document some of my spacing gets messed up before the section break. It works fine if I leave ...
67
votes
2
answers
398k
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\...
23
votes
2
answers
8k
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}
\...
7
votes
4
answers
2k
views
Creating this poster layout using minipages
I am making a poster in LaTeX. I am using the minipages enviroment to split the poster into three columns. I have some boxes which spread over multiple columns. The difficulty arises when I try to ...
68
votes
2
answers
112k
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:...
23
votes
2
answers
61k
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[...
3
votes
1
answer
1k
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 ...
2
votes
2
answers
1k
views
Figure subfigure layout with different numbers
I need a layout similar to the following image. However I want only the 3 images on the right side to be subfigures (2a, 2b, 3c), But the big red image on the left should be numbered as Figure 1.
...
47
votes
1
answer
104k
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?
\...
17
votes
3
answers
17k
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 |
+------+----------+
| | ...
12
votes
5
answers
7k
views
Background image for minipage
I'd like to put a background image into a minipage, stretching exactly to the surrounding fbox. What's the best option to do that? (Searching the web, I only found solutions for backgrounding the ...
8
votes
2
answers
17k
views
Why is text being placed beyond the specified line width?
I thought that I knew a few things, but looks like I have some basic misunderstanding on how TeX is supposed to typeset material. I thought that settings by the geometry package would force the text ...
6
votes
2
answers
5k
views
Border in a box frame or minipage
I want to trace a border in a box or minipage like this model.
A border customizable in left angle on top and right angle in bottom.
Somebody can help me?
Thanks a lot
JPierre
12
votes
2
answers
5k
views
highlight lines in listings
I have code that i have included into my document using the texcode below
\begin{minipage}{.48\textwidth}
\centering
\lstinputlisting[numbers=left,xleftmargin=2em,frame=single,framexleftmargin=2em, ...
7
votes
3
answers
727
views
How to arrange a large picture on the side on the current page?
I have a decorative picture that I want to display on the right side current page. The picture should fill the whole vertical length of the text body (maybe even 1cm larger). The picture is long and ...
5
votes
3
answers
363
views
nccmath affecting minipage widths
It seems that nccmath is affecting the layout of minipages. In the MWE, you can see the left minipage is clearly not taking up 70% of the page as I wanted. I'm hoping that there is an easy fix for ...
1
vote
1
answer
346
views
How to place three figures side by side, but two figures are seen as subfigures with one main caption, and third figure as standalone
I would like to place the figures as illustrated in the figure below.
The below code can place three figures side by side, but the third one on the right hand side becomes 1c (instead of 2). Any ...
13
votes
2
answers
19k
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 ...
7
votes
2
answers
3k
views
What is the best way of arranging multiple minipages on a page?
I have been trying to use mini-pages to produce the equivalent of Office text-boxes. The idea is to have panels of different sizes on a page such as 4 equal sized or one wide followed by two long ...
8
votes
1
answer
13k
views
Minipage: 2 tables side by side isn't working
I have the following code to layout two tables side by side:
\begin{minipage}{0.3\textwidth}
\begin{tabular}{c | c | c | c | c | c | c}
F & D & E & G & P & A & L\\
\hline
C &...
7
votes
2
answers
3k
views
Alignment of item number in list containing a minipage
I would like to have the list number at the beginning of the item, and not centered as is the case for item (b) the example below. If I comment out the \usepackage{nccmath}, I get this, but then the ...
5
votes
1
answer
1k
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}
\...
2
votes
2
answers
526
views
Minipage content overlaps with text before that if nccmath is used
It seems that if the nccmath package is included, then the text in the following minipage overlaps with the text before that if the minipage contains only display math. The \FixMinipageForNccmath ...
83
votes
5
answers
74k
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 ...
63
votes
2
answers
188k
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}\...
26
votes
1
answer
41k
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}
...
22
votes
1
answer
73k
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 ...
13
votes
2
answers
9k
views
\footnotemark and \footnotetext in minipage
The Tufte handout class give a neat layout that shows the footnote at the right hand side not bottom line.
But, when I use the minipage with tufte-handout, and if the minipage has the footnote, the ...
7
votes
3
answers
6k
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 ...
23
votes
2
answers
14k
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 ...
12
votes
1
answer
19k
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 ...
7
votes
2
answers
1k
views
Article example inside beamer frame
Let us assume that we have the following example code for an article
\documentclass{article}
\title{Sample title}
\author{Sample author}
\date{}
\begin{document}
\maketitle
\section{Sample section}
\...
17
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
\...
11
votes
1
answer
9k
views
Putting algorithm in minipage
I have the following algorithm. Could any one please let me know how I can put it in a minipage?
\begin{algorithm}\small
{Start}\;
\eIf{A is bigger than B}{
\eIf{if A is bigger than C}{
A;
}{
...
10
votes
3
answers
4k
views
Resuming a list started within a minipage
I have a minipage with a figure, and I want part (a) to be on the right of this figure (so part (a) is in a 2nd minipage), and the remaining parts (b), (c), etc to be below. The insights provided in ...
6
votes
1
answer
727
views
Minipages in macros for ConTeXt
In LaTex I build the following macro "kum" for translating arabic to german. The result are two minipages, left one with german, right one with arabic (the other two minipages were for design-issues). ...
5
votes
2
answers
4k
views
Minipage reset indent. How can i set again to standard? [duplicate]
I have the following code.
\documentclass[a4paper, titlepage, 11pt]{article}
\begin{document}
\section{Introduzione all'astrofisica}
\begin{minipage}{12cm}
In astrofisica, differentemente ...
3
votes
1
answer
444
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 ...
2
votes
1
answer
2k
views
How to align two images side by side if one label has more lines
I have two same sized images and want them side by side with a caption under them.
My code looks like this:
\begin{figure}[H]
\centering
\begin{minipage}{.5\textwidth}
\centering
\...
2
votes
2
answers
9k
views
Two tables side by side with minipage
I have a problem that I cant solve it alone even I have read several threads here. The goal is to have 2 tables side by side with subcaption (a) and (b).
However, I dont know where my mistakes are, ...