Tagged Questions

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

learn more… | top users | synonyms

8
votes
1answer
637 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 ...
3
votes
2answers
249 views

newenviroment error: Extra }, or forgotten \endgroup \begin{gbox}

\noindent \colorbox{gray!25}{ \begin{minipage}{\textwidth} \vskip0.5cm \leftskip0.5cm \rightskip0.5cm Text Here! \\\end{minipage}} Code above works fine, but I don't ...
4
votes
2answers
6k 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} ...
4
votes
2answers
221 views

Horizontal alignment of text blocks

I want two text blocks in a horizontal row. In the middle between them, there should be an arrow pointing from left to right. This is what I currently have: As you see, the arrow is not in the ...
6
votes
2answers
936 views

Changing Font Style in Minipage

I am trying to generate a pull quote in my document, which I want to have with a different font style. To accomplish this, I have a wrapfig environment containing a minipage. I'd like to set the font ...
3
votes
1answer
4k views

Text alignment in a minipage

I have a little problematic in LaTeX, and I have not found any solution. I have a minipage like this : \begin{minipage}[t]{\textwidth} \raggedleft {\bfseries Some text}\\[.35ex] \small ...
5
votes
1answer
463 views

How can I vertically align two minipages with subfigures and differing caption length?

Following "Placing two figures (each having subfigures) next to each other", I used the following code in order to place two figures with subfigures next to each other putting the subfigures ...
2
votes
0answers
205 views

Single-column framed minipage spanning two or more slides in Beamer

I searched and could not find an easy non-labour intensive solution to this one. In making a Beamer presentation, I have some framed minipages with various arbitrary content I am transferring from a ...
2
votes
1answer
115 views

How to put a figure inside a minipage when using memoir?

I need to put a figure inside a minipage, like so: \documentclass{memoir} \begin{document} \begin{minipage}{10cm} \begin{figure} blabla \caption{test} \end{figure} \end{minipage} ...
6
votes
3answers
1k views

Minipage, multiline caption centering

No matter what I do, I can't seem to center the bottom line of these minipage captions. Along with the several variations in the code below, I have also tried ...
4
votes
1answer
737 views

Reduce vertical space before minipage

My problem: There's more space before my \chapter that's inside a \minipage environment than before any of the other chapters that are outside this environment. What I'm after: Keep the same distance ...
6
votes
1answer
264 views

Using biblatex, multicols, defbibenvironment, how to keep list items together

Using Biblatex, I can produce a double-columned bibliography with the following definition: \defbibenvironment{bibliography}{% \begin{multicols}{2}% ...
2
votes
1answer
124 views

How to order 3 images horizontally (two with sub-figure and the third one is one figure)

I put three figures in a row. One figure is independent one and with a caption underneath; the other two figures are sub-figures. Please see the picture below. I tried to combine minipage with ...
3
votes
1answer
5k views

How to make a caption (via \captionof and extra margins) adhere to minipage margins?

I made use of the caption-package to define a custom layout of the captions. Their width is set to 0.8\columnwidth. As far as I understood the problem, this measure is not used when the caption is set ...
2
votes
2answers
2k views

Is it possible to use subcaption inside a minipage?

I have tried formulations of using subcaption inside minipage--subcaption and subcaptionbox. I have also look at some threads but couldn't find anything doing what I needed. Please note that this ...
25
votes
1answer
407 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 ...
0
votes
1answer
271 views

Supertabular + minipage

I have a very long but narrow table (3 columns but 800 rows) and I would like to have it such that the table starts on the left side of the page and breaks onto the right side of the page before ...
7
votes
1answer
145 views

Find out actual width of text in nested lists

I am trying to solve the following problem: In regular text, I can place two paragraphs of unequal width side by side using minipages, like so: \documentclass{article} \begin{document} Some text ...
1
vote
1answer
7k 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} ...
3
votes
1answer
64 views

How to improve simple macros to leave the surrounding text justification undisturbed

I have prepared a series of macros in order to simplify the incorporation of pictures into long documents. All of them are based onthe MWE below. However I have just noticed that the text following ...
4
votes
1answer
119 views

How can I center multiple paragraphs that are wider than the text width?

I have a figure that consists of multiple paragraphs of tabulars and images. At least one of these paragraphs is wider than the text width. How can I center the entire figure so that the widest ...
3
votes
1answer
393 views

Tabular: Using tabular to separate figures in a minipage

\documentclass[demo]{article} \usepackage{tabu} \usepackage{tikz} \usepackage{capt-of} \usepackage{subfig} \captionsetup[subfigure]{labelformat = parens} %\usepackage[demo]{graphicx} ...
3
votes
1answer
108 views

misbehaving bold text while using minipage

I am working on a report, and I have been making use of minipage to display tables side by side. Problem* The tables are being displayed fine but it's the textbf{some text} that's giving me problems ...
4
votes
1answer
227 views

Problem with environments, arabic and tikz

Here a question also about my last topic. I want to create an environment that put a pretty box around my theorem and its title. Here is a code with the desired output : \documentclass{report} ...
5
votes
2answers
142 views

Automatic / variable vertical alignment within a minipage?

I have defined a new environment that I use to highlight warnings in my text. Here's a minimal example of the code I use: \documentclass[parskip]{scrartcl} \usepackage{fourier} % for the bomb ...
11
votes
2answers
12k 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} ...
3
votes
1answer
106 views

Consistent vertical alignment of one-line text in minipages

The vertical alignment of one-line text in minipages depends on the vertical extent of the text itself: \documentclass{scrartcl} \begin{document} bad alignment: \frame{ ...
11
votes
4answers
427 views

How do I force multicols environment to use first column when called from within a minipage

I understand how to get multicol package to use the entirety of the first column before moving to the next: \begin{multicols*}{3} .... \end{multicols*} which is mentioned in section 2.2 of the ...
2
votes
1answer
143 views

multiple minipages in document give indentation

I'm trying to create my CV using latex. To do this I am trying to divide parts of my document into 3 columns and an arbitrary amount of rows. I've been using the minipage environment, but I'm given an ...
4
votes
1answer
83 views

How to put 2 headings on same line (next to each other)?

Can someone help me to put ''Author:'' on the same line as ''Supervisor:''? \begin{minipage}{0.4\textwidth} \begin{flushleft} \large {\bf Author:}\\ aaa\textsc{bbb} % My name \end{flushleft} ...
3
votes
2answers
165 views

How to align text and a table next to each other

I want to produce a table-like structure but preceeded by a single word on the left, like so: Here is what I tried: \begin{minipage}[t]{\textwidth} Here \\ \begin{tabular}{ccl} $n$ & --- ...
5
votes
1answer
2k views

Minipage - space between two columns and aligning

Here is the deal. I want both of them starting from the very same line and perhaps increase the distance between them. I really cannot remember wheater s.th. chaged after adding ...
1
vote
1answer
119 views

minted Environment Inside varwidth Environment

Is there a way to incorporate a minted environment inside a varwidth environment? I have colored backgrounds for code snippets, and I did manage to put a minted environment inside a minipage, based on ...
5
votes
1answer
207 views

Defining color in minipage makes it too big for the current page

If I uncomment the first line of the minipage, the minipage is then too big to fit on the page. What's happening here? \documentclass{article} \usepackage{xcolor} \usepackage{lipsum} ...
6
votes
1answer
331 views

Dotted column sep in multicolomn minipage

I'm trying to typeset a table whose cells are divided into columns, and the columns are separated by dotted lines. This is for variable-length enumerations of (short) entries and planned to look ...
5
votes
2answers
157 views

How to have two adjustwidth environments starting at the same height?

When using minipage environments, as below, the left corner of the two environments are automatically placed at the same height in the document. \begin{minipage}{8em} Lorem ipsum dolor sit amet, ...
4
votes
1answer
94 views

Aligning one minipage to other that is stretched

I'm having a problem with the minipage option. What I'm trying to do is to align the first minipage to the second, since the second is a chemical equation. So here is my code ...
3
votes
1answer
449 views

How to make verbatim text in multicols environment not overflow to other columns?

I prefer to use \begin{multicols}{2} over \documentclass[12pt,twocolumn]{article} so I can control when to have 2 columns and when not. The problem comes when using ...
2
votes
1answer
533 views

Can I draw arrows between two minipages?

I have an exam where my students should connect two objects in different columns on a page. The two columns are one with text alternatives and one with pictures/formulae. I want to draw a red line ...
3
votes
1answer
427 views

how to use fancyvrb Verbatim in tabularx?

When using tabular and p it is possible to insert Verbatim block in a table using minipage \documentclass[]{article}% \usepackage{fancyvrb} \begin{document} \begin{tabular}{|p{2in}|p{3in}|} ...
7
votes
2answers
7k 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?
8
votes
1answer
229 views

How to create a group of minipages that can be spanned across columns but can't be broken in two pages?

I'm trying to diagram an exam for an educational purpose. I'm using the package multicols to display questions in two columns. Each question of this exam is divided in three blocks: base text ...
3
votes
1answer
294 views

Making global footnotes inside a minipage with hyperref support

I would like to make footnotes inside a minipage that use the global footnote counters and the hyperref package. I'm having trouble getting hyperref to make the correct references. I imagine I need ...
8
votes
2answers
130 views

Hyperref inserting undesired space at start of enumerate environments

This question arises from my attempt to answer vertical spacing on enumitem. Originally, I was able to answer the OP's question, but then the OP mentioned that the problem re-emerged if the hyperref ...
3
votes
1answer
184 views

vertical spacing on enumitem

In the example below I want the enumerate list to essentially be ``inline'' with the word Example from the example environment. It works perfectly with text or enumerate* (inline list), but I cannot ...
5
votes
1answer
3k 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 ...
2
votes
1answer
167 views

Datatool split page vertically

There is a CSV file, which has 1-6 records, I need to load it and display on the letter page into two columns (each row in a column is block with all text from CSV row), right column appears only for ...
1
vote
1answer
285 views

minted Environment Inside minipage Environment

I am having to use the minted environment inside a minipage environment quite often in my document. I wanted to write a new environment for doing this, but since minted isn't designed to be included ...
3
votes
1answer
3k 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 ...
5
votes
1answer
2k views

Make a minipage float

I am using the minipage environment to put a table and figure next to each other. Now I would like this to 'float' like a normal figure or table, such that LaTeX decides where to put it (using the ...