Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [minipage]

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

3
votes
1answer
36 views

Rotate a table with caption into landscape mode

I have a table and want to rotate it with the caption by 90 degrees. The table is large and wouldn't even fit when rotated. Hence, I resize it first and rotate it by 90 degrees afterwards (since I ...
1
vote
0answers
32 views

footnotemark misbehaves in titles, minipages, beamer frametitles

In titles or in minipage texts, \footnotemark puts the marks correctly, but the \footnotetext misbehaves: if the \footnotemark is used in \title, the corresponding \footnotetext always gets the 0 ...
7
votes
1answer
60 views

Effect of `\label` on caption position in new environment

I use a new environment and have tried to refer to it using the \label-\refcommands. I'm running into the problem that the \label command affects the vertical position of the caption. The MWE is: \...
1
vote
1answer
63 views

Formatting of new environment based on minipage and sidecaption

In my memoir-based document, I need to occasionally insert some content (text quote or pseudocode) and I want to be able to add a caption. Because the content must appear exactly where I want it, I ...
1
vote
1answer
55 views

How to set local page numbers in minipages

Good time of the day! How to set page numbers in minipages? Please see the code: \documentclass[11 pt]{extarticle} \usepackage[a4paper, top=1 cm, bottom=1.5 cm, left=1cm, right=1cm]{geometry} \begin{...
2
votes
1answer
67 views

Getting R xtable to display within a LaTex 'minipage'

I have the following piece of R-markdown / latex / minipage combo code. What I am trying to do is get the xtable output to display within the minipage, along with other text paragraphs surrounding it....
3
votes
1answer
47 views

Distance and font sizes between two minipages

Question 1: How can I increase the distance between two parts of mini page? Question 2: In the second part of mini page I found that the font size is small as compared to the first part. What is the ...
0
votes
0answers
19 views

How do i set up 2 differently sized columns with multipage support?

I am trying to create a resume with two columns. I first looked at using minipage, but it doesn't support multiple pages (if text gets too long for one page). Is there any alternatives for minipage ...
1
vote
2answers
35 views

Getting the proper interline spacing after a minipage environment

I have a TikZ diagram to the right of a minipage environment. I have some text that I want under the minipage environment. The interline spacing is about half of the other interline spacing. I don't ...
3
votes
1answer
74 views

Using the minipage enviroment inside \newcommand

i want to put the minipage enviroment inside a newcommand to avoid typing. \documentclass[aspectratio=169]{beamer} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[nomessages]{fp} \...
2
votes
2answers
60 views

Vertically align two side-by-side minipages at the bottom of the page

MWE: % !TeX program = xelatex \documentclass[paper=A4,fontsize=12pt,titlepage]{scrartcl} \usepackage{showframe} \begin{document} \begin{titlepage} \raggedright { Some text } ...
1
vote
3answers
38 views

longtable spacing problems with minipages inside cells

I'm new in [tex.se] and I want to ask you how do I correct the problem I have with this snippet: \section{Latex meltdown my brain!!!} This longtable table shows a weird behaviour. If I don't use a ...
2
votes
2answers
50 views

how to create template for foldable booklet (requires rotating and reordering pages)?

I'd like to create a template or package for documents that are printed on a single page but can be folded into a proper booklet like this: I'd like, when writing a new document, to be able to write ...
1
vote
0answers
29 views

How to remove the default title in minipage? [duplicate]

I am currently using overleaf online generating side by side plots. This is my code: \begin{figure} \begin{minipage}[b]{0.33\linewidth} \centering \includegraphics[width=1.5in]{FC SVM for Ctl-AD.png}...
0
votes
1answer
40 views

Minipage separation

ndI have 2 minipages: Foo (0.7\textwidth), Bar(0.3\textwidth). I'd like to increase their separation so I have added another minipage among them (0.65, 0.05, 0.3) but the text of minipage Foo is ...
1
vote
1answer
32 views

MIsaligned line

Why "Misaligned" line is not aligned right using the same margin as other minipages? \documentclass[]{article} \usepackage[utf8]{inputenc} \usepackage{blindtext} \begin{document} \begin{...
0
votes
1answer
51 views

Captions of two figures side-by-side in a minipage

Considering the below code, I am trying to put two figures side by side in a minipage by two separated captions. The problem that I am facing is that the captions have overlaps (caption of figure at ...
-1
votes
0answers
25 views

Two figures side by side works sometimes, sometimes not (in the same document) [duplicate]

I write a book using the report-class as a base. Occationally I include graphics, and sometimes I want two graphics to be placed side by side. Google and Stack Exchange told me to use two minipages ...
1
vote
1answer
32 views

glossary in long-booktabs style has no bottomrule in minipage

I want to put a longbooktabs glossary in a minipage environment, but when I do that it curiously loses the bottomrule. Is there anything I can do about that? As Nicola Talbot commented it suffices to ...
1
vote
1answer
60 views

Slide divided horizontally and vertically

I need to include a slide structured as in the picture below in a beamer presentation in latex. Could you help me to construct it? Basically, the slide is divided horizontally into two parts. The ...
4
votes
1answer
54 views

Minipage compatible with xy matrix? What may be an alternative fix?

I have a minimal working environment below. It fails to be compiled. Is the minipage compatible with xy matrix? What may be an alternative fix? Thanks for the help! \documentclass[14pt]{article} ...
-1
votes
0answers
43 views

Dividing a page into several horizontal minipages [duplicate]

Suppose there is a LaTeX document with format like \documentclass[a4paper]{article}. Is there a way to divide a page into several horizontal ones, say n=3 or n=5 (a parameter specified for all the ...
0
votes
0answers
8 views

Irregular spacing between section titles and text using llncs class, algorithmic and minipages [duplicate]

Following is a MWE of my problem. I am using llncs class file for a conference paper and if I write the paper without the use of algorithmic environment and minipages, the space between section title ...
2
votes
2answers
18 views

How to achieve proper formatting with minipage and algorithmic packages

Following this question, I used the solution in my document as follows but as you can see in the output, the algorithms do not start and end at the same levels. Is there a way I can make the ...
2
votes
1answer
36 views

“Smart” page breaking for boxed content

I am trying to load content from a central .tex file, then display it. %%%%%%%%%%%%%%% % central.tex % %%%%%%%%%%%%%%% \saveContent{A}{this is content "A"} \saveContent{B}{this is content "B"} \...
2
votes
1answer
54 views

How to change line spread of minipage in tabular for a consistent line separation?

Here is the MWE: \documentclass{article} \usepackage{tabularx} \linespread{1.5}\selectfont%\renewcommand{\baselinestretch}{1.62} \begin{document} \begin{tabular}{lc} row 1 & \...
0
votes
0answers
16 views

How to put caption on the side of the figure without using SCfigure or Sidecap [duplicate]

I need to put caption to the left side of a figure. But I must not use SCfigure or Sidecap package. Those loads forever for some reason. Unfortunately, many of the the available solution online are ...
2
votes
1answer
27 views

Float textbox inline with \section or \subsection title

I am creating a document that contains several text-boxes to serve as info-boxes for further information. I use the boxedminipage & wrapfig packages to achieve this: boxedminipage for a box with ...
8
votes
3answers
293 views

Put vertical rotated text within minipage environment

I am creating a cheat sheet for a class and wanted to add some vertical text here: How do I go about doing this? Here is the code that I have thus far: CODE \documentclass{article} \usepackage[...
0
votes
1answer
35 views

\subcaption does not work

I am using the following code to list 3 figures in one line. It is working well and showing the figure if I remove the \subcaption for each figure. However, when I include the (\subcaption)s, it shows ...
1
vote
1answer
39 views

Get text to show up properly next to figure in minipage

In the code below, the text is not showing up properly next to a block diagram/figure: Can you help me get the text to show up properly next to the block diagram? Thanks! CODE \documentclass{...
3
votes
1answer
26 views

2 Column Table with a list and image

I am trying to create a user manual in latex. I'm trying to use a 2 column table, one column has a list and the other column has a screenshot This is what I'm trying to do I can create a minpage, ...
2
votes
1answer
29 views

Odd subfigure indexing with minipages

I have two figures in this document. The second uses minipages to keep its subfigures together with a table (as suggested in this answer), unfortunately the subfigures of the second table are not ...
0
votes
1answer
41 views

Place textbox within minipage at specific location with line break

I am attempting to place some text/equations/table within a minibox next to a figure. I was following the example solution given here. When I try to do a page break I get a compile error. This is ...
1
vote
2answers
71 views

Captions of figures in minipage

I am trying to have two image on the same line. I found some solutions online which seems to work pretty well, and i've decided to use this one: \begin{figure}[!ht] \begin{minipage}[c]{8cm} \...
1
vote
0answers
36 views

tikz/pgf: table below graph [closed]

Currently looks like: Code: \documentclass[a4paper]{article} \usepackage{siunitx,tikz,pgfplots,pgfplotstable} \begin{document} \begin{minipage}{.4\textwidth} % some text before... Calciumcarbonat: ...
1
vote
1answer
55 views

Use normal spacing within a minipage (same as outside)

I was wondering how to have the contents of a minipage look exactly the same as “normal” text (i. e. with respect to spacing, indents etc.). These minipages can contain arbitrary content such as ...
0
votes
0answers
21 views

Adjust Frame Option of pdfpages-Package

I'm currently writing a report for university and want to include some pdf documents as appendices. I'm using pdfpages (of course) to include these pdfs but i ran into one small problem: I scaled the ...
0
votes
1answer
53 views

How do I center align two minipages?

I am trying to center align the following two minipages. Or at least set the margin on both sides from the border of the page? I also included the result from the code below. Something else to note ...
2
votes
1answer
39 views

Keeping a diagram + question on the same page/column with the exam class

I use the exam class to write multiple choice questions, and I frequently use tikz to make a diagram that precedes a question. How can I make sure that each diagram+question doesn't break across a ...
4
votes
2answers
144 views

How to decrease the line spaces in listing codes?

I want to decrease the line spaces of the java codes in the following latex. I already used \setstretch{0.4} but it seems that this code does not work for listing contents. how should I do this?? \...
3
votes
3answers
81 views

How can I add a picture under my listing code?

I want to put a listing code inside a gray container, similar to the following picture: To do this, I used the following \documentclass[svgnames]{report} \usepackage{tikz} \usepackage{verbatim} ...
0
votes
0answers
70 views

How can I generate an output like this??

I'm going to write a textbook about programming and I found the following representation of the codes very cool. Can anybody please help me???
1
vote
1answer
25 views

Span vertical line through page with minipage

I have this code: \documentclass[11pt, showframe]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[margin=2.5cm]{geometry} \usepackage{setspace} \usepackage{tabularx} \...
0
votes
1answer
32 views

Wrapfig and Minipage not working in Beamer

Trying to employ the minipage and wrapfig packages to get itemized bullets to wrap around an image; however, the image is thrown to the next page by itself. Is there anything in the code below that ...
0
votes
1answer
22 views

How to make parskip in minipage match that of parskip outside minipage?

Here is my code: \documentclass{article} \usepackage{parskip} \usepackage{multicol} \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam scelerisque purus eget arcu eleifend ...
3
votes
1answer
115 views

Beamer: block in minipage/columns are out of the page

When I add a block in beamer inside a minipage, I have a block that is bigger than the minipage instead of a block that fits into the minipage. So this gives me really strange alignements: Any idea? ...
0
votes
1answer
35 views

exam-minipage: Using minipage inside the header

Following-up my previous questions [1,2], I, instead, tried using minipage environment in order to able to freely break the lines and use the exam macros (e.g. \numquestions) where I couldn't in case ...
1
vote
0answers
69 views

How to check if last displayed content was displaymath / minipage ends on displaymath?

Is there a way to check if a minipage ends with display math? Or more generally, if the line above was a displaymath? Background: I defined a command for a minipage-environment that fixes alot of ...
1
vote
1answer
117 views

minipage with tables

If I have a minipage like the following: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{multirow} \begin{document} \begin{minipage}{1\linewidth} \centering A \medskip B \end{...