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

learn more… | top users | synonyms

13
votes
1answer
2k views

Wrapfigure-Minipage Woes: How do I correctly typeset wrapped text boxes within a \parcolumns environment modified for a two-sided document?

This is a follow-up question concerning an experimental chapter layout I'm trying to implement for a novel I'm writing. So. My initial problem of finding a way to modify the innards of the parcolumns ...
2
votes
1answer
1k views

aligning a table with a figure side to side using llncs format

using the \documentclass{llncs} instead of for example \documentclass{book} will not make the captions aligned together for the following example. How can I do to align them together: ...
6
votes
2answers
13k views

Align minipage on right side

I was thinking that this is a small matter, but I can't seem to get my head around this. I want to create a legend, which sits on the right side of the page. I created a minipage environment around ...
1
vote
1answer
836 views

Custom Beamer Block has strange spacing why?

I have a custom block defined as the following! this comes from the progressbar theme from http://recherche.noiraudes.net/fr/LaTeX.php \newdimen\lengthone \newcommand{\defblock}[1][]{ ...
8
votes
1answer
1k views

How to produce 5-up 3by5 index cards

I want to produce instructional 3by5 index cards. It's easy enough to produce the cards one per page, but I want to print five copies of the same car on a single sheet of 8.5by11 card stock, where it ...
4
votes
1answer
231 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 ...
8
votes
2answers
2k views

Changing minipage vertical alignment in mid-line?

Please consider the following MWE: \documentclass{article} \usepackage{lipsum} \usepackage[showframe,showcrop]{geometry} \begin{document} \section{Section 1} aa \fbox{\begin{minipage}{100pt} Box 1 ...
11
votes
2answers
1k views

highlight lines in listings

I have code that i have included into my document using the texcode below \begin{minipage}{.48\textwidth} \centering \lstinputlisting[numbers=left,xleftmargin=2em,frame=single,framexleftmargin=2em, ...
1
vote
1answer
1k views

cannot scale images with latex fonts which are side by side

Referring to cannot use \caption under minipage, When I use the solution provided to the question in link above, in order to include images with latex math fonts embedded into them and place them side ...
2
votes
2answers
9k views

How to put text in minipage top-centered?

I am working on LaTeX and R. I want to put text (here itemize top aligned) in minipage. In the attached image (dummy image with itemize text), how can I put itemize . First line . Second line on ...
9
votes
1answer
15k views

cannot use \caption under minipage

I am using following code to import two images next to each other. When \caption{} is used, LaTeX gives me error caption outside float. \begin{minipage}{.5\textwidth} \centering ...
4
votes
1answer
824 views

What's wrong with minipage(table(minipage(align))) arrangement

In an attempt to show the code and the output side by side, I have used a table inside a minipage. The table entries are two minipages and one contains an align environment. Having the align ...
9
votes
2answers
4k views

How do I make one minipage the same size as another?

I'm writing a LaTeX document into which I want to put two boxes, in a row next to each other, which will contain varying length content. I want each box to be the same height, and that height needs ...
6
votes
1answer
4k views

How to control the vertical height of boxes

I would like to create boxes where I can control the height of the boxes. Right now I have used the command. \colorbox{calcclr}\makebox[\textwidth-2\fboxsep][l]{#1}}} This gives me a box that ...
2
votes
1answer
2k views

Problem with itemize indentation in minipage in tikz node

How could I disable the indentation of the items here: The MWE is this (compiled with pdflatex): \documentclass[12pt,a4paper]{article} \usepackage[pass]{geometry} \usepackage{tikz} ...
27
votes
2answers
87k views

How to use figure inside a minipage?

I'm trying to include an image, and keep it centered, and prevent from wrapping from the next page. The following code works for that: \begin{minipage}{\textwidth} \begin{center} Caption ...
3
votes
1answer
1k views

Figure numbering with minipages (memoir)

I have the following figure, where I can't seem to get the numbering right. The numbers next to the captions comes out as Figure 1, Figure 2, and Figure 3, but I want them to be (a), (b), and Figure 1 ...
14
votes
2answers
10k views

Two minipages with 0.5\textwidth each get placed one below another

This happens in the beamer class only. Does anyone know the reason behind this? I fix it by just setting both widths to 0.49\textwidth and this works but I'm still curious why this happens and if I ...
12
votes
2answers
214 views

\if@minipage purpose in floats

In floating environments such as the captions of figures, LaTeX has a \global\@minipagefalse, why is this necessary and what does this switch do? \long\def\@makecaption#1#2{% ...
4
votes
1answer
1k views

Placement of graphics in a triangular orientation

How is it possible to import figures into a somewhat triangular orientation? By triangular orientation I mean having one figure and then a further two figures underneath where all figures have a ...
3
votes
1answer
1k views

Custom divider between 2 minipage and lstlisting

I am using the following code to have 2 boxes beside each other for code comparison: \documentclass[12pt]{article} \usepackage{listings} \begin{document} \begin{singlespace} ...
3
votes
1answer
2k 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 ...
6
votes
1answer
653 views

How to place two ctables side by side

ctable, not a regular table/tabular. How can I get two narrow ctables to go side by side? I want them to be subtables of a larger table, just two independent tables side by side. I've tried using a ...
4
votes
6answers
418 views

Make the width of the figure (including 2 minipages) same as the paper

I have 2 minipages side by side as follows: \begin{figure} \centering \fbox{ \begin{minipage}[t]{0.48\linewidth}% \begin{minipage}[t]{0.48\linewidth}% left part ...
2
votes
2answers
1k views

Increase space between two tables in minipage and TikZ overlay

Sorry but this is the MWE I could post. I also attached the image. The top image is what I am getting and the bottom one is what I desire. I manage to create nodes but do not know how to connect them. ...
2
votes
1answer
698 views

What width value corresponds to the Tufte fullwidth environment?

In Tufte-LaTeX, I'd like to manually create a full-width environment using minipage rather than the package's fullwidth environment. What width value should I supply to minipage to match that of the ...
1
vote
1answer
7k views

place a minipage on the top of a page

I need to place a minipage on the top of a page. I use the t option, but seems not working. \usepackage{abbrevs} \usepackage{adjustbox} \usepackage{floatrow} \usepackage{graphicx} ...
1
vote
1answer
2k views

Two landscape tables in columns

I am trying to include two landscape tables on one page, with the first one being in the left column and the other placed in the right one. I have tried several solutions including the minipage ...
4
votes
1answer
227 views

2 minipages side by side don't respect the width of an article

In one of my .tex file, I have the following code which puts 2 minipages side by side, the whole width cover two minipages: \documentclass[11pt, a4paper]{article} \setlength{\topmargin}{-.5in} ...
4
votes
2answers
1k views

Increasing the size of a minipage proportional to the contain

I am trying to create a simple environment. The enviroment contains a minipage that is surrounded but a dashed box. \NewEnviron{Notes}{ \par \begin{tikzpicture} \node[rectangle,minimum ...
5
votes
2answers
3k views

minipage within fullwidth

I'm using Marco Daniel's fullwidth package, detailed in this answer. I want all of my text in fullwidth to be inseparable (and to begin and end with long black lines), so I am currently doing the ...
2
votes
1answer
258 views

Definining a new enviroment depending on a parameter

I want to create a new environment which depend if a parameter exists or not. The basic definition, which works fine, is: \newrgbcolor{bcolor}{1. 1. 1.}% \newenvironment{pbox} ...
22
votes
2answers
3k views

How to preserve the same parskip in minipage

I have following structure: \begin{document} Paragraph1. Paragraph2. \begin{minipage} Some paragraph1. Some paragraph2. \end{minipage} \end{document} How can I make the same spacing between ...
5
votes
1answer
528 views

Spacing using minipage in theorem environment (ntheorem)

Consider the following example and notice the different vertical spacings between the theorem caption and the text. Is there a way to get the same spacing when using minipage as in the case of normal ...
6
votes
1answer
93 views

Can I let a listing move up two lines without introducing a break in a paragraph? [duplicate]

Possible Duplicate: How to prevent lstlisting from splitting code between pages? I have a rather long listing on a page that has 3-4 lines on the following page. Just before the listing is ...
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 ...
5
votes
1answer
5k views

Minipage: 2 tables side by side isn't working

I have the following code to layout two tables side by side: \begin{minipage}{0.3\textwidth} \begin{tabular}{c | c | c | c | c | c | c} F & D & E & G & P & A & L\\ \hline C ...
12
votes
1answer
7k views

lstlisting in two columns

I would like to have two listings, side by side. They have approximately the same length, therefore I don't care about how it's layed out if one part is longer. I tried \begin{minipage}{\textwidth} ...
40
votes
2answers
4k views

How to keep a constant baselineskip when using minipages (or \parboxes)?

When a minipage is used to box a text paragraph, the first line of the minipaged text and the last line of the previous text paragraph are closer than two consecutive lines in a standard text ...
31
votes
3answers
14k views

Understanding minipages - aligning at top

I would like to be able to align two minipage at the top, without worrying about what is in the minipage. I am aware of the optional [t] parameter, but still have some confusion as to how this all ...
7
votes
1answer
4k views

Minipage, columns, tabular: differences in applicability?

This \parbox vs. \minipage post helped me to understand the main reasons to use either \parbox or {minipage} for placing material side-by-side ({minipage} is usually the winner). I have a similar ...
3
votes
2answers
6k 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 ...
9
votes
2answers
5k views

Minipage that allows page breaks?

Is there a minipage-like environment that allows pagebreaks? Everything I can find is about avoiding page breaks (which minipage does well) but I want to indent a whole section, which is convenient to ...
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 ...
5
votes
2answers
1k views

Framed minipage of dependent dimensions

I am trying to prepare handouts of a ppt (I know). I would like a slide to be shown on the left half of a page and comments regarding it in a framed box of the same size as the slide on the right ...
5
votes
1answer
7k views

minipage right margin

I want to start a minipage, with the regular left-indentation, but to have its right margin adjusted with regular page right margin. An example of discrepancy: \documentclass{article} ...
10
votes
4answers
8k views

Colored box in new environment

I have a problem, I'm fairly new to LaTeX but I think I got the basics. My problem is that wants to create a environment that can create a minipage with a background color and some text in it. I can ...
4
votes
1answer
346 views

why minipage environment prevents \thepage counter update?

Here is the code, that demonstrates the problem: \documentclass{article} \usepackage{lipsum} \usepackage[a4paper]{geometry} \begin{document} \lipsum[1-6] \begin{minipage}{\textwidth} \lipsum[7] ...
1
vote
1answer
440 views

minipage breaking, or some other route to layout

I'm trying to make a resume with a 2 column layout, where I'll have something like [SECTION NAME] * space * [DETAILS] For example: Work experience[spaaaaaaaaaaaaaace]Some location, 2 years, etc ...
2
votes
1answer
169 views

linking up minipages like real pages

If I understand correctly, the main text box on a page is a special box, since in addition to the normal paragraph typesetting, text can also overflow into the next page. Is it possible to, say, have ...