Questions tagged [minipage]
{minipage} is an environment providing a paragraph box which is a complete mini version of a page.
1,781
questions
0
votes
1
answer
15
views
after "minipage" command, words cannot change line auto but extend the page layout
I meet some issue after I use minipage. My article is a single column. To reduce the number of pages, I used minipage to combine the tables and related images of two experiments into one page (Of ...
0
votes
2
answers
44
views
How to include Latex listing in a command using minipage?
I created a \fooCmd to typeset some text in a large file.
This typesetting is using a minipage environment.
And sometimes within the minipage environment, I would like to include some LaTeX listing.
...
1
vote
1
answer
18
views
listings not cover the whole minipage area
I try to put a listing into minipage, when I set listings color to white and minipage color to grey, I found some grey color still show.
How can I make the listings cover the whole minipage area?
\...
1
vote
2
answers
45
views
Itemize and minted environment height problem inside minipage
I'm having some problems setting the height of the minipage on the left, in the example code below.
I've tried many suggestions I found on this forum (\vspace{0cm}, \raggedbottom, \raggedright, ...
2
votes
1
answer
121
views
Second Argument of \fontsize{}{}\selectfont Not Working in a Pspicture
Consider the code:
\documentclass[12pt]{book}
\usepackage[hmargin=0in,vmargin=0in,top=0in,paperwidth=5.0in,paperheight=8in]{geometry}
\newcommand{\longemdash}{{\fontfamily{cmss}\selectfont---}}
\...
5
votes
2
answers
230
views
Why is this white line between the two vertical boxes? [duplicate]
I have two colorboxes which should appear vertically close together, but without any white line in between. The MWE shows the problem. Is there a better solution for this task?
I am not interested to ...
1
vote
1
answer
42
views
How to change vertical spacing between two minipages? [duplicate]
As you can see, in the image I included the pictures on the right are too far apart, resulting in the page they're supposed to be in to be skipped. The method I use is to wrap the different minipages ...
0
votes
1
answer
35
views
How to arrange 3 pictures in a figure, one picture on the left, and on the right side one picture each at the top and bottom?
I am trying to align 3 pictures like this using minipage:
But my output looks like this:
This is my code which uses \sidesubfloat to generate the labels at the top left:
\documentclass[]{scrreprt}
\...
5
votes
3
answers
402
views
How to align each bullet point in the table
Following this question. I have the following table:
\documentclass[graybox]{svmult}
\usepackage{type1cm} % activate if the above 3 fonts are
% not available on ...
2
votes
0
answers
48
views
What causes this inconsistency in formatting a question in the exam class
For question one the word "The" incorrectly appear on the line showing points while in the second example it works properly. The only difference in the text is that the sentence in the ...
1
vote
1
answer
17
views
minipage customised in llncs doc class
I want to produce a 2x2 plot llncs class using minipage. But I do not want the Fig. X.... for all subplots. I want them for formatted like a.) Image 1, b.) Image 2.... And then 1 common, shared Fig. 1....
3
votes
1
answer
48
views
How to achieve the parallel mixed layout of pictures and texts?
I want to achieve the layout in which the text is on the left, while the figure is put properly on the right. To be specificly, as the figure shown below, I want to achieve that:
The first two lines[...
2
votes
3
answers
147
views
Looking for two tables to start at the same height
I am using a minipage environment to display these tables. I want the top row of each table to align vertically (as opposed to right now where it looks like the first table is in the center vertically ...
0
votes
1
answer
48
views
Caption of a figure aligned to right-hand margin with `minipage`
I would place the caption immediately to the right of each figure. With the use of
\begin{minipage}[c]{0.67\textwidth}
I was able to obtain a caption to the right of the figure, but I have a ...
2
votes
2
answers
134
views
Underfull \hbox with image
When I create a minipage to insert an operating mode in front of an image, I obtain a warning with an Underfull \hbox (badness 1748) in paragraph at lines 75--75
I can't understand what is causing ...
3
votes
1
answer
93
views
Customize minipage to support spaces below it
I'm trying to create a custom minipage environment that allows spaces above and below it. I manage to control the spaces above using the @minipage shitch, but I can't find the modification to achieve ...
1
vote
1
answer
27
views
Tikz picture messes up the layout of my beamer frame
I am writing a beamer presentation, and in one frame, I want to do a layout with four sections. I managed (with the help of ChatGPT) to do it with minipage in the following way:
However, I found one ...
0
votes
0
answers
21
views
Equations Below Rotated Forest [duplicate]
I created the following graph:
\documentclass{article}
\usepackage{forest}
\usetikzlibrary{shadows}
\useforestlibrary{edges}
\usepackage{amsmath}
\usepackage[graphicx]{realboxes}
\usepackage[left=2....
0
votes
2
answers
71
views
Overlay text over a PGF plot in a minipage
I use matplotlib to export plots in the pgf format, such that I can include it in LaTeX and have it be rendered crisp and beautiful.
I can use minipage to order the plots in a figure and create e.g. a ...
3
votes
2
answers
91
views
Footnote within minipage: double mark and single text
I have placed a figure caption inside a minipage environment. My goal is to show a single footnote mark several times within the same caption and to write the footnote text only once under the caption....
0
votes
1
answer
45
views
How to indent items inside a `tikzpicture` and `minipage` package?
I have a tikzpicture and minipage environment below, and I would like there to be a slight indent in the sub-categories a, b, c, etc. For example below: a. Sub-second \\ and a. again sub. How can I do ...
1
vote
1
answer
41
views
On Positioning Text in a Pspicture with \rput
The following code generates a pspicture which I want to use as the basis for the back cover of a book:
\documentclass[12pt,onecolumn,openany,final]{book}
\usepackage[hmargin=0in,vmargin=0in,...
3
votes
2
answers
202
views
Two minipage with horizontal lines and a vertical line
I'm trying to make a custom command with two parameters that let me input the blue text and the black text, then output something like this with a vertical line in the middle separating the text
I ...
1
vote
1
answer
281
views
Colored box paragraph that stays on text grid
Is there any straightforward way to produce this kind of output with the distance between the baseline of the last line before the box and the baseline of the first line within the box as well as the ...
1
vote
2
answers
43
views
`verbatim*` environment in a `minipage` defined by a `\newcommand` does not work
Still a novice at LaTeX - I was attempting to define a custom command for creating minipages of a certain width using this code:
\newcommand{\col}[2]{\begin{minipage}{#1\linewidth}#2\end{minipage}}
...
1
vote
1
answer
79
views
Vertical and horizontal alignement in minipage environment
How would it be possible to have the same space between the figure and both margins of the page in this example :
Also, I would like to adjust the bottom side of the left figure with the axis x of ...
1
vote
1
answer
28
views
Strange interaction between subfigure and algorithm within minipage
Consider the following code, whose purpose is to place a subfigure and algorithm side by side within a floating figure.
\documentclass{article}
\usepackage{algorithm}
\usepackage{subcaption}
\begin{...
0
votes
0
answers
28
views
How can you control the vertical space before and after an equation (on its own line) in a figure caption?
I want to insert an equation (on its own line) in a figure caption.
The default spacing before and after the equation in the caption looks too big to me. How can I adjust the spacing before and after ...
1
vote
1
answer
59
views
How to define width of flalign environment?
I am trying to get the equation in the flalign environment to be left aligned with the text in the tabular environment above it, and to have the same width -- 0.8\textwidth. The equation is a ...
1
vote
2
answers
48
views
tikzpicture environment makes \noindent have no effect
See this MWE please:
\documentclass[a4paper]{article}
\usepackage{tikz}
\usepackage[showframe]{geometry}
\usepackage{ulem}
\setlength\fboxsep{0pt}
\begin{document}
% \begin{tikzpicture}[remember ...
3
votes
2
answers
77
views
How to use hook to change \parskip in minipage?
I try to use a hook to change the \parskip in the minipage environment. But my code doesn't work.
Here is an MWE.
\documentclass{article}
\AddToHook{env/minipage/begin}{\setlength{\parskip}{2em}}
\...
2
votes
1
answer
57
views
Adding annotations on images in minipage
I am trying to add a visual annotation (a rectangle) on an eps file directly using LaTex. I have attached the desired outcome below :
For that, this is my code :
\documentclass{article}
\usepackage{...
1
vote
1
answer
58
views
Problem placing information at the bottom of the first page
I am working on the development of template and I would like to have something similar like this:
I'm working in twocolumn document and I tried to replicate it in \fancyfoot[L]{} (only for the first ...
1
vote
2
answers
105
views
How to make a lesson of mathematical aggregation in Latex?
I am trying to make a page similar to this one (le plan d'une leçon d'agrégation) in Latex but in vain ! If any one can help please !
This is my code :
\documentclass{article}
\usepackage{multirow}
\...
2
votes
1
answer
43
views
How to enable paragraph indentation within minipage boxes in LyX?
In LyX, using the "Insert box" command inserts a minipage. However, this minipage does not have any paragraph indentation. Is it possible to indent all paragraphs inside minipages?
1
vote
2
answers
66
views
Duplicate a page containing minipages
I am beginner to the minipages environment and am having some difficulty writing on the next page after the first one, even with the usage of \pagebreak. If I use \pagebreak and paste the template (...
1
vote
1
answer
53
views
Put a figure next to a table
I'm trying to decently put a figure right next to a table.
I tried all the approaches suggested here and here. None of them worked.
The closest was the first one, but I get an error
Package floatrow ...
1
vote
1
answer
21
views
Vertical position of a list changes in beamer
Why does the list move upwards when last item appears?
MWE
\documentclass{beamer}
\begin{document}
\begin{frame}[t]{foo}
\begin{minipage}[c]{.5\linewidth}
\begin{itemize}[<+->]
\item Começamos ...
0
votes
0
answers
24
views
Unknown errors ocuur in front page
I am actually using the template from my University, which you can find it attached at the end.
However, I constantly get the errors from the logs.
It occure ant the last one \end{minipage} line. ...
0
votes
0
answers
57
views
Fit a tikz-figure to a minipage
I would like to position two tikz-images side by side using two minipages. The two tikz-files each contain the coordinates of a 3D plot.
As you can see in the MWE, there is a lot of "unused" ...
0
votes
0
answers
32
views
Making Minipages Breakable in Activity Report Template
I'm currently working on a report template where I use a table with minipages to represent tickets along with their descriptions. The minipage is utilized for the descriptions so that the ticket and ...
0
votes
1
answer
65
views
Well aligned text boxes and arrows
I would like to align text boxes and draw arrows between them. My current attempt is the following:
\documentclass[crop,tikz]{standalone}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{...
0
votes
2
answers
41
views
Vertical alignment of two adjacent minipage in a 2-column document (created with paracol)
I have the following MWE:
\documentclass{article}
\usepackage[a4paper,margin=1mm]{geometry}
\usepackage{paracol}
\usepackage{lipsum}
\usepackage{tabularray}
\begin{document}
\columnratio{0.4}
\begin{...
0
votes
1
answer
50
views
minipage with [t] option inside \twocolumn[] argument [duplicate]
General overview
I try to put a \minipage[t]{…} inside a \twoclum[<here>]’s argument.
But it failed with the following error message:
Error message
! Argument of \@iminipage has an extra }.
<...
2
votes
2
answers
109
views
Align the tops of two minipages
I would like to align the tops of two minipages.
Here is a MWE:
\documentclass{article}
\usepackage{tcolorbox}
\usepackage{lipsum}
\begin{document}
\noindent
\hfill
\begin{minipage}{0.49\...
0
votes
0
answers
51
views
Line numbers for displayed maths inside boxed minipage
I need to add line numbers to things like the following, probably inside the box and at the right-hand side, with numbers on all the lines, including the maths. I see that there is a package called ...
0
votes
0
answers
80
views
Space between minipages
On my Ruby book, I break the code listing if it don' fit on the page using minipages. But the page before the minipage, if there is some space remaining, distribute it on an uniform way between the ...
2
votes
3
answers
190
views
How to put big brackets around minipage
I have this bit in my document and I would like to put big brackets on either side to show it is not part of the main development. However, I have no idea how to do such a thing. Any help is welcomed.
...
1
vote
1
answer
28
views
minipage: horizontally alingned figures with common caption
I am using minipage to insert 3 figures horizontally, each having its sub-caption, and then a common caption.
My intention is to produce a figure like:
Reproducible ME:
\documentclass{article}
\...
0
votes
1
answer
42
views
Creating a minipage in multicolumn with a figure and a parallel text gives no parallel text
My book consists of many line of multicolums and I am well used to it since text and figures are in different lines. Now adding a comment instead of a figure, I wanted to use a minipage and this fails ...