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

learn more… | top users | synonyms

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 ...
8
votes
1answer
13k 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 ...
6
votes
1answer
630 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
1answer
801 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 ...
14
votes
2answers
3k views

How to change symbol for footnote in minipage

\renewcommand method does not work \documentclass{article} \renewcommand{\thefootnote}{\arabic{footnote}} \begin{document} \begin{minipage}{1.3\textwidth} test this\footnote{abc} \end{minipage} ...
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} ...
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 ...
14
votes
2answers
9k 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 ...
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 ...
2
votes
2answers
15k views

Gnuplot - Reduce the space between graph and axis label [closed]

I'm using the minipage package to position two graphs, generated by gnuplot, side-by-side. I use the epslatex terminal. The graphs are rather small, and I'd like to increase their size by reducing the ...
12
votes
2answers
207 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
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 ...
7
votes
2answers
19k views

How to center the minipage?

The left margin is too wide if I set 1.5\textwidth: \begin{document} \noindent\begin{minipage}{1.5\textwidth} test \end{minipage} \end{document}
4
votes
6answers
407 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
652 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 ...
0
votes
1answer
6k 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} ...
7
votes
2answers
5k views

\footnotemark and \footnotetext in minipage

The Tufte handout class give a neat layout that shows the footnote at the right hand side not bottom line. But, when I use the minipage with tufte-handout, and if the minipage has the footnote, the ...
4
votes
1answer
221 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 ...
7
votes
2answers
3k views

Why is text being placed beyond the specified line width?

I thought that I knew a few things, but looks like I have some basic misunderstanding on how TeX is supposed to typeset material. I thought that settings by the geometry package would force the text ...
7
votes
1answer
6k views

How do I put a paragraph in a box that is some percentage of the width of the page I'm putting it in?

I have a document that should contain a bordered box with a paragraph of explanatory text. The box's width should be a percentage of that of the page's body. I don't want to make the box a fixed ...
2
votes
1answer
253 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} ...
5
votes
1answer
513 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 ...
11
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} ...
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
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 ...
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 ...
32
votes
4answers
3k views

Fit text into given box by adjusting the fontsize

I would like to fit text (potentially several paragraphs) into a box of given size. This should be done by adjusting the fontsize of the contained text. Clarification edit: The given dimensions are ...
4
votes
3answers
561 views

Parbox as an initial

Similar to my last question Initial with wrapfigure -- other idea? I would like to create a wrapped environment in which I can take a \parbox or minipage environment. The following code shows the ...
6
votes
1answer
13k views

How to fix the width of a minipage?

I put 2 minipages containing tikzpicture side by side: one on the left, the other one on the right. And I hope each minipage, surrounded by \fbox, occupies almost half side of the page, and leave some ...
2
votes
2answers
934 views

Where to add a caption and a reference to a tabbing&fbox&minipage

I put some texts enclosed within tabbing, embedded in fbox and minipage: \fbox{% \begin{minipage}[t]{0.48\linewidth}% \begin{tabbing} \quad \= \quad \= \quad \= \quad \= \quad \= \hspace{5cm} \= ...
12
votes
1answer
5k views

How to move a whole tikzpicture?

I have a tikzpicture, rounded by a fbox, and embedded in a minipage. Is it possible to change the position of the whole picture inside the minipage? for instance, move the picture 1 unit higher and 1 ...
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 ...
4
votes
1answer
394 views

How to remove the first blank line in tabbing environment?

I put some texts enclosed within tabbing, embedded in fbox and minipage: \fbox{% \begin{minipage}[t]{0.48\linewidth}% \begin{tabbing} \quad \= \quad \= \quad \= \quad \= \quad \= \hspace{5cm} \= ...
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} ...
4
votes
1answer
325 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
425 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
300 views

Minipage content overlaps with text before that if nccmath is used

It seems that if the nccmath package is included, then the text in the following minipage overlaps with the text before that if the minipage contains only display math. The \FixMinipageForNccmath ...
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 ...
2
votes
3answers
12k views

Side-to-side figure and table in beamer problem

\begin{figure} %\centering \begin{minipage}[h]{0.58\textwidth} \centering \includegraphics[scale=0.4,trim=12mm 15mm 12mm 15mm]{fig1} \end{minipage} ...
8
votes
4answers
3k views

Background image for minipage

I'd like to put a background image into a minipage, stretching exactly to the surrounding fbox. What's the best option to do that? (Searching the web, I only found solutions for backgrounding the ...
4
votes
2answers
9k views

Centering left justified text

I need to define a new environment that contains a minipage centered on the current page and with text left-justified. Something like: \newenvironment{texto}{ \begin{center} % so the minipage is ...
5
votes
1answer
378 views

Is there a replacement for nccmath?

I noticed that the nccmath package is not mentioned in What packages do people load by default in LaTeX?. Since I have had several problems with minipages that all eventually led to nccmath related ...