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

learn more… | top users | synonyms

4
votes
1answer
183 views

Place group of text and image on same exported PDF page

I am new to Tex and this question maybe is not written well, so I will try to explain it better. I am writing a reference manual where there are a lot of "blocks" that all have the same structure: a ...
4
votes
1answer
197 views

Placing figures adjacent to exam choices

In the following mwe, I'd like the circular ohm formula figure to be positioned further to the right and the bottom of the figure lined up with choice D of question 4. I don't want the blank space ...
4
votes
1answer
857 views

using fbox in a newenvironment [duplicate]

I am trying to write a new enviroment to add text into a \fbox, when I use \fbox on its own, it works quite nicely \fbox{\begin{minipage}{0.9\textwidth} does this work, I would love if it did ...
4
votes
1answer
2k views

Space just before minipage

This is my .tex file: \documentclass{article} \usepackage{framed} \setlength{\FrameSep}{3pt} \begin{document} \noindent{}The king\\ \begin{minipage}{0.9\textwidth} is dead, ...
4
votes
1answer
5k 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 ...
4
votes
1answer
158 views

No space above first \item inside mdframed [closed]

Problem This is what happens: But I want the same vertical spacing before the first list item inside the mdframed environment as outside of it. How can I do this? Code \documentclass{article} ...
4
votes
1answer
216 views

Laying out subfigures with minipages

I want to place 3 subfigures in a figure with two columns. There is one big subfigured placed to the right. The two subfigures on the left should be aligned so that the first is aligned with the top ...
4
votes
1answer
228 views

How do I make a framed coffin with correct alignment?

I'm playing with coffins for a title page and would like to have a square framed box that aligns with the topline and baseline of text within a rotated coffin. I have a couple of issues with this so ...
4
votes
1answer
45 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 ...
4
votes
1answer
86 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} ...
4
votes
0answers
73 views

Why does a linebreak in minipage flow this to the next page?

I am using zwpagelayout (see this question) but if I put a minipage with a line or paragraph break, I get weird two-page output. \documentclass{article} ...
3
votes
5answers
336 views

An double arrows between two systems

I'm trying to have 2 equations systems separated by a double arrow, something like this : I'm actually using 3 minipage : the first and the third with and array and the arrow at the ...
3
votes
3answers
626 views

tikz-figures in minipage: Captions at the same height and top alignment

I want to place two tikz pictures next to each other, both of them should be figures I can reference to. Please consider the following MWE: \documentclass{scrartcl} \usepackage{tikz} \begin{document} ...
3
votes
1answer
1k views

Shadowbox that breaks page

I am trying to typeset a block of text in shadowbox. The text is quite long, therefore I would like it to span across two pages where necessary. TeX will not perform a pagebreak, though. Here is my ...
3
votes
2answers
5k views

Frame around minipage containing listing in beamer

I am working on the sheets of a course on LaTeX and would like to have several sheets in which you see on the left an example of a source document and on the right its output. I have this working now ...
3
votes
2answers
167 views

Using Tikz to position a background image in mini page

I'd like to use tikz to position a graphic at the lower right hand corner of a minipage. I've gotten this far (this isn't quite an MWE, since it depends on a locally available imagefile). ...
3
votes
3answers
158 views

Minipages' vertical alignment

I use three minipages so to make a table and two images be placed next to each other and although the images are in the right place the table is placed much lower producing an ugly result. Why is ...
3
votes
2answers
3k 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 ...
3
votes
1answer
687 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 ...
3
votes
1answer
2k views

Indentation inside a new environment

I want to have my text lines in a new environment indented from the left, as happens within \begin{minipage}{...} \end{minipage} The reason not to use a minipage inside the environment definition ...
3
votes
3answers
80 views

Center text directly beneath a right-aligned heading

With LaTeX, how do I center text directly beneath a right-aligned heading? Maybe it's better explained with my attempt so far: \documentclass{article} \usepackage[ hmargin = 1in, vmargin = 1in ...
3
votes
1answer
7k 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 ...
3
votes
1answer
53 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. ...
3
votes
1answer
118 views

how to ensure items in two minipages are in same line

By including a tikz-picture in my two (tabular) minipages my items are messed up. Ideally there is a corresponding item for each (except there's an empty entry for the last item in the left table). ...
3
votes
2answers
2k views

Left position of minipage

I'm trying to put an optimization problem inside a box. After some research I found this method (please fill free to propose a better method if you know something better): ...
3
votes
1answer
203 views

Formatting text inside minipage

If I use \begin{textbf} and \end{textbf} (for example) inside a minipage, it seems to apply only to the first character. Here's a simple example: \documentclass{article} \begin{document} ...
3
votes
2answers
224 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$ & --- ...
3
votes
1answer
201 views

Placing a tikzpicture next to an align

I have a tikzpicture with an accompanying explanation in a math align environment. The tikzpicture is small enough that I'd like the explanation to appear next to (specifically, to the right) the ...
3
votes
1answer
849 views

Tables: Automatic adjustment of columnwidth to its content gives error “Misplaced \noalign” at \toprule

I am trying to put two tables next to each other, vertically aligned top, with some below listed adjustments I unfortunately can't get together. First, I'd like to know if/how I can avoid the error ...
3
votes
2answers
1k views

Proper spacing using minipages, dealing with margins and succeding text

So I have this user defined function below. This gives me near optimal results. The code is supposed to make numbered subsections. Where the rest of the text is aligned below. Since these subsections ...
3
votes
2answers
67 views

Minipage overlapping with text that follows

I'm trying to replicate the following layout that I have in a Word version of the paper: There are two code sections side by side with the code balanced between the two. The code won't fit into a ...
3
votes
2answers
52 views

How do I align the caption of these two pictures in my minipage at same `height´?

It might be a silly question, but it is bothering me that I cannot fix it at the moment. \medskip \begin{figure}[h] \begin{minipage}{.3\textwidth} \centering ...
3
votes
1answer
59 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 ...
3
votes
2answers
327 views

Minipage make different space between tables

I have the following problem. I use a minipage to show two table next to each other. As you can see in the figure the first two rows of the tables are okay, but the thrid has a problem with the ...
3
votes
1answer
515 views

What's the exact margin size separating two side by side minipage environments?

Consider the following MWE with two minipage environments, ideally filling 1\textwidth in total. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{fouriernc,parskip,framed} ...
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 ...
3
votes
1answer
118 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{ ...
3
votes
1answer
168 views

Chemfig reaction to wide for twocolumn

For a paper I have to describe certain reactions. I am using the chemfig package to do this. The paper has to be two columns and this is where it goes wrong. When I compile this reaction: ...
3
votes
1answer
47 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 ...
3
votes
2answers
118 views

Caption misalignment with minipage and adjustwidth

I'm trying to fit two over-sized figures side by side on one page. I tried using minipage and adjustwidth, but the caption on the second figure kept mis-aligning to the left, as shown below. I tried ...
3
votes
2answers
49 views

Aligning three columns differently; with images, manually broken and wrap-around text

I am trying to create a situation with three columns from left to right: one with an image top-edge aligned to the top of the center column and the left of itself; one with wrap-around text having ...
3
votes
1answer
84 views

How can I arrange the table and the image in a minipage vertically?

I need the table and the image arranged vertically in the minipage instead of horizontally. I also add the pictures used in the code in the end. \documentclass[12pt,a4paper]{article} ...
3
votes
2answers
274 views

Itemize in tabular // minipage resulting in `Missing \endcsname inserted` error

The minipage solution of this accepted answer is also what I'm looking for, that is, this one :-) not this one :-( The commented-out part of the MWE below tries to implement that minipage ...
3
votes
1answer
125 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 ...
3
votes
1answer
523 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}|} ...
3
votes
2answers
5k views

Two images inside minipage (side by side) with one common caption that says “Figure 1 & 2:”

I have two images inside a minipage, so I can have them side by side. When I make a caption for the images it only comes up as "figure 3: text", but I would like to have it showing "Figure 3 & 4: ...
3
votes
3answers
159 views

Align text on a vertical axis similar to movie credits

I would like to align text on a cover page in a way often seen in movie credits, with the "key" ragged right and the "value" left: I use two minipages next to each other to achieve this. However, ...
3
votes
1answer
758 views

How to limit the width of equations?

I want to control the width of the equations so they don't exceed a predefined width. Firstly I used minipage environment and put the eqnarray within that. This does not produce the line breaks before ...
3
votes
1answer
230 views

svmono and footnote inside boxedminipage

Using the svmono class (downloaded from http://www.springer.com/computer/lncs?SGWID=0-164-6-793341-0 ), I get a latex error "Command \itshape invalid in math mode" with the following code: ...
3
votes
1answer
444 views

Colorboxes that break across pages

I am trying to build an environment/command that allows me to place comments in the text. The idea is to have colored box that can break across pages and use the \ttfamily font with hyphenation. I ...