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

learn more… | top users | synonyms

3
votes
1answer
32 views

Odd behavior after minipage environment

I have this code where, for demonstrative purposes, I have drawn in red lines at integer values of \baselineskip and framed the minipages: \documentclass{article} \usepackage{calc} \usepackage[margin ...
3
votes
1answer
25 views

Height of text in minipage - columns not parallel

I’m using minipage for the design of my thesis’ titlepage. I have two columns and the problem I see there is, the texts in both are not at the same height. \begin{minipage}{0.4\textwidth} By:\\ ...
1
vote
1answer
39 views

Using minipage in two page layout

Here I am making a two page news letter. I am facing some issues with minipage. Here is the code snippet From above if I remove comments line 60, 61, then every thing is aligned. What is going wrong ...
1
vote
1answer
26 views

Multicolumn spacing issue with moderncv

Just trying to have 2 columns spaced a bit. I use a minipage to do it, and it seems I have some space left. For example, I can add words to my right title, and it's still good with columns ratio ...
2
votes
1answer
28 views

Frame with padding/margins (without using mdframed)

I'm wondering how to add paddings in a frame (as you can see, left and right paddings are the same, but not the same as top and bottom paddings). I know it can be done using mdframed, but sometimes, ...
0
votes
1answer
26 views

Text on one side and figure on the other side of A3 paper

For now, I have two minipages in a minipage on a A3 page, and the text should be on the left in normal height and the figure to the right (which works). I have a problem with the text in a minipage ...
1
vote
1answer
15 views

Width of minipages inside enumerate environments [duplicate]

How can I determine the available width inside an enumerate environment? In particular, what width argument can I pass to the minipages in the example below so that the minipages take up all of the ...
1
vote
1answer
42 views

Minipages across page breaks

I have defined a command that uses the minipage environment to format an "example" question within my document. \newcounter{Example} \newcommand{\example}[3]{% \refstepcounter{Example} ...
1
vote
2answers
45 views

Positioning a figure inside a figure environment

I have a tricky problem: Imagine two graphs in a figure environment and each in a minipage so that each graph gets half of the textlength. Now I realised that I need to put on the right side of each ...
0
votes
1answer
34 views

Automatically adjust height of `\tikzpicture` to match height of `minipage` environment

Is there a way to scale the tikzpicture so that the two minipage environments have the same height? Code: \documentclass[8pt]{article} \usepackage{tikz} \begin{document} ...
0
votes
0answers
22 views

included pdfs won't rotate using pdflscape

As far as I know pdflscape is able to rotate pages* horizontally if you use the landscape option. However, this won't work with included pdfs for me. Is there a syntax I have overseen? turn=false ...
0
votes
0answers
9 views

Minipages missing pagenumbering and no rotation [duplicate]

I am able to include pdfs within my document. However, the page numbering isn't shown. I clear the whole headers/footers and start counting in Roman for my appendix. The page number is only shown on ...
1
vote
0answers
16 views

Acmsmall and referencing subfloats [duplicate]

This question is following almost directly this one : acmsmall and subfigures I managed to insert subfigures using minipage but I'm now wondering how I can refer to these subfigures. My MWE: ...
2
votes
1answer
23 views

Turn off floats temporally

I have written a command which puts content into a minipage to measures its height. It uses this information to insert "intelligent" pagebreaks, newpages, clearpages and warnings. To do the ...
2
votes
2answers
46 views

How do I draw a horizontal line without adding space

I divided my latex page into 3 using minipage. \documentclass[a4paper,12pt]{article} \usepackage[left=2cm,right=2cm,top=0cm,bottom=0cm]{geometry} \usepackage{lipsum} \setlength\parindent{0pt} ...
0
votes
1answer
22 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 ...
5
votes
1answer
92 views

Why is my minipage in beamer foreach environment moving horizontally?

I am preparing a presentation with several very similar slides so I would like to use a \foreach loop with \only to generate them. The frames also contains minipages and these minipages seem to cause ...
2
votes
1answer
42 views

Wrapping tables with minipages?

Say I have the following table: \documentclass{report} \usepackage[intlimits]{amsmath} \usepackage{floatflt} \usepackage{caption} \usepackage{listliketab} \usepackage{booktabs} ...
1
vote
1answer
49 views

minipage with page break

I'm using LaTeX for writing math tests. Every task I wrap into an environment, which I defined like this: \NewEnviron{beispiel}[1]{\begin{minipage}[t]{0.76\textwidth} \BODY \end{minipage} ...
0
votes
2answers
26 views

text alongside figure using minipage

I need to place 2 images with captions in a minipage one below the other, in the second minipage alongside there is the description. I cannot use \begin{figure} ... \end{figure} I looked at this, ...
2
votes
1answer
56 views

Strategy for listings next to code comments

I'm looking for strategies to produce listings of code with comments on what's happening next to it. I've found other similar questions, but not quite what I'm looking for. See for example: Listing ...
0
votes
0answers
40 views

Front page with color!

I ve tried to configure a front page that looks like this. ... How can i complete this ? This is what my code looks right know: \fboxsep2pt ...
1
vote
1answer
34 views

Side by side figures adjusted to have equal height

I have two graphics of different dimensions which I would like to put into my document side by side such that: The two figures are scaled to have the same height. The two figures take up the entire ...
2
votes
1answer
62 views

Minipages wider than frame

In my document I have placed two mini pages side by side: \documentclass{scrartcl} \usepackage[demo]{graphicx} \usepackage{showframe} \begin{document} ...
3
votes
1answer
32 views

Tabular in tabular: Strange behavior of rowcolor

Starting with the following document: \documentclass{scrartcl} \usepackage[table]{xcolor} \begin{document} \begin{tabular}{|r|r|} \rowcolor{yellow} \hline Head 1 & Head 2 \\ ...
4
votes
2answers
37 views

How to keep a constant baselineskip when using minipages in tables?

Following up this question: How to keep a constant baselineskip when using minipages (or \parboxes)? The answers to the question suggest that \strut is not perfect to space minipages well with ...
2
votes
1answer
45 views

How to add separator between paragraphs (or minipages) on the same page?

I am trying to typeset a list of quotations in the following way: No quotation is split across pages. Between adjacent quotations on the same page, there is a separator (such as a fleuron or ...
2
votes
1answer
54 views

Problem with balancing multicols with minipage inside

I have two minipages one above the other with [b] and [t] options set to have right baselineskip. Second minipage/varwidth is in the multicols environment and if it have more then two lines, it ...
0
votes
1answer
33 views

How to keep same baseline skip in two vertically aligned minipages

I have two minipages (actually one of them is varwidth) standing one above the other. How can I keep same baseline skip in them? I have somewhat strange layout, so I can't set [t] option for lower ...
6
votes
1answer
70 views

Microtype does not work inside varwidth

I make a template for different texts and I need to use varwidth. But it seems microtype doesn't work inside this environment. Is there any way to make it work? \documentclass{book} ...
3
votes
1answer
49 views

Minipage maximum height

I want to make template for texts of different length with minipage having maximum height of 62 mm. If text isn't very long, minipage must have its natural height. Is it a way to do it? ...
4
votes
1answer
46 views

layout print in minipage

I need to print a page with some information on it and I also liked to print the layout of the page but I don't want it to cover the full page as is usually printed by using the \layout command from ...
4
votes
1answer
77 views

minipage environment inserting blank pages and footer won' turn off

This is my first post, so hopefully I got the formatting correct. I have searched all over and can't seem to find an answer to my problem. Below you will find a minimal example of my text file. I have ...
0
votes
0answers
51 views

Two minipages side-by-side [duplicate]

I want one minipage with text, to be next to another minipage with two tikzpictures. I have this code: \subsection*{7. Bereken exact de lengte van lijnstuk $TP$.} \begin{minipage}[l]{0.6\textwidth} ...
2
votes
1answer
48 views

put many matrices side by side via minipage

I am trying to align two matrices side by side. I am using minipage but its not working out. this is my code \begin{frame}{Addition and Subtraction} \begin{itemize} \item Addition and subtraction are ...
3
votes
1answer
72 views

Pdflatex on file with large amount of pictures

I have a tex file that's generated by an automated bioinformatics pipeline as a report. Usually, this is roughly 50-150 pages, but that's based on 1-3 samples. It contains many quality control graphs. ...
1
vote
0answers
32 views

How to align a single header to the right?

This is my situation \begin{minipage}{\textwidth} \begin{minipage}[t]{0.65\textwidth} \section{Section 1} Content 1 \end{minipage} \hfill \begin{minipage}[t]{0.25\textwidth} \section{Section 2} ...
1
vote
0answers
75 views

minipage inside long table gives extra new line

I defined a new environments to add top and bottom padding to a minipage and to be used inside a lone table cell (I have used \linewidth to specify the width of the minipage in the new environment). ...
2
votes
0answers
44 views

Problem with \href for hyphenated web addresses within latex minipage environment

I am trying to use \href to link to a web address that contains hyphens (e.g. http://hyphenated-webpage.com) within a minipage environment, e.g. \usepackage{hyperref} ...
2
votes
3answers
153 views

Aligning the equations and equation numbers correctly

I have the following code \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{minipage}{16cm} Maximization:\\ \begin{minipage}{7.6cm} \begin{align} ...
1
vote
2answers
98 views

How to align an image beside a text in LaTeX?

I'm having some troubles with placing an image: I want to put the image by the side of the text but I'm obtaining this: \begin{figure} \begin{flushright} \begin{minipage}{0.4\textwidth} ...
4
votes
2answers
72 views

spacing in description with items wrapped in minipage

I'm trying to prevent items in description environment from breaking by wrapping each one in a minipage. (Perhaps that's not a good approach, but let's put that aside if we can for my question.) When ...
3
votes
1answer
47 views

Minipage with tabular inside ignores vertical alignment

I am trying to align a minipage that has a list inside. Using a tabular environment for the list results in the minipage ignoring the [t] option (or any other, as far as I can tell). On the other ...
0
votes
0answers
35 views

How to align the caption text under the figure to the column width in a minipage environment?

I am stuck at a formatting problem of a Figure. As you can see in the picture there is white space in between the caption text and the left column because the text is aligned to "Figure 1". How can i ...
2
votes
2answers
51 views

Center text in minipage along page center

For a one-page bulletin, I need some text and a logo on the end of a page. I've gotten first results with using minipages so far: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
0
votes
1answer
156 views

Control absolute position of `minipage` or image on page

I am producing a 30x30cm book with a lot of images. I would like to control the absolute positioning of a minipage (to allow normal flowing text) and some sort of image environment to allow me to make ...
1
vote
2answers
274 views

Where does this space come from?

Using colored text inside a minipage results in less vertical space being appended after the text compared to normal text. Strangely, this only occurs when the minipage is top-aligned. In the other ...
5
votes
2answers
85 views

hrule inside minipage refuses to show up

Inside a minipage, \hrule doesn't seem to do anything unless there is already some material inside the minipage. \documentclass{article} \begin{document} \hrule width\textwidth\relax \noindent ...
0
votes
1answer
35 views

Why is tikz getting a different \linewidth or drawing a different rectangle inside a minipage under the same conditions?

Question I have a signature macro that determines whether to include a signature for a final production or whether to put in a red unsigned box (for pre-production copies). For some unknown reason, ...
1
vote
0answers
17 views

how to put Verbatim inside minipage that has fbox around it? “Paragraph ended before \FV@BeginScanning was complete. }” [duplicate]

I am surprised that I get an error when I add Verbatim to content of minipage that had \fbox around it. Removing the \fbox removes the error. But I need to put frame around the minipage. I can't use ...