{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
35 views

Enumerate Minipages inside a figure environment

At the moment I'm working with the figure environment to display two graphs side by side using minipage which works fine. I want to use one caption for both and enumerate the minipages with a small ...
4
votes
5answers
102 views

How do I raise or lower the position of text?

Using minipage, I've split my header into \begin{minipage}{0.4\textwidth} \textsc{ \Huge{\textbf{MyNameHere}} }\\ \end{minipage} \begin{minipage}{0.6\textwidth} \begin{flushright} MyAddress\\ ...
1
vote
1answer
64 views

Font size in PGFPlots Minipage

I am using this guide to put concorde tsp solver's vector graphics in LaTeX. I want to show 2 images and a description text right next to them, all side-by-side. I am usign the minipage to do so, but ...
2
votes
1answer
52 views

Strange interaction of minipage, multicol and xcolor

I'm not a big expert of LaTeX (and I know almost nothing of the underlying TeX engine), so sorry if the answer is more obvious than what appears to me. Can someone tell me why simply loading the ...
1
vote
2answers
30 views

Horizontal distance between images

I am trying to control the horizontal space between two minipages but it is ignored. \begin{figure} \noindent\begin{minipage}[t]{.6\textwidth} \includegraphics[scale=0.42]{image1.png} ...
1
vote
0answers
20 views

Long word exceeding column in lyx [duplicate]

I have a long text that exceeds the column margins It's not an English word. it's this hexadecimal number ...
2
votes
2answers
69 views

Caption in Figure only partially centered

I have two figures next to one another and I want to centre my Figure caption, but completely, i.e. to include Figure x.x: in centering. This is the code I'm using: \begin{figure}[!tbph] ...
35
votes
7answers
4k 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 ...
0
votes
1answer
36 views

minipage alignment with tikzpicture

I want to have one minipage containing a tikzpicture and on its right another minipage with a block, and tried with: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{shapes,arrows,chains} ...
3
votes
1answer
41 views

Renewenvironment minipage with xparse

I want to redefine the minipage environment which has several optional parameters. The default renewenvironment allows only a single optional argument. Therefore, I try to use the xparse package which ...
2
votes
1answer
22 views

LyX: insert minipage with 100% line width

I defined the following command sequence in my toolbar: Item "Insert Minipage" "command-sequence box-insert Frameless; inset-modify width \"100line%\"" Unfortunately, this is not working. lyx -dbg ...
2
votes
1answer
42 views

Create link of empty box

I make my first attempt on a beamer template. I created a simple graphic with my company logo and some fields as header (background for title). Now I would like to use the logo as home button. In ...
0
votes
0answers
25 views

Splitting page into two columns

I know this question has been asked a million times, though my problem is slightly different. In the middle of the first column I begin a new section, the writing will go down to the bottom, but when ...
2
votes
2answers
44 views

How to get equivalent to subfigure without using floats?

I understand that floats are supposed to float, however, I have a lot of graphical data, and sometimes when I say put it here, I mean exactly, not plus/minus two pages. I can achieve this using ...
1
vote
1answer
23 views

Subcaption not in center of minipage

I want to have a label to my minipage of just the "a)" and when I do this it is not in the center of my image. This is not a failure of subcaption but a characteristic of my image of too much white ...
1
vote
1answer
55 views

Place a table exactly where you want it

I know that with images, you should never use floats if you don't want them to float. Therefore, I use minipages when I want my images to be in an exact location. However, I have not found an example ...
3
votes
0answers
51 views

Isolate Latex Environments

I want to build a framework for sharing latex mathematics exercises. When trying to assemble exercises from different authors into one "homework assignment", I have a problem. How can I deal with ...
2
votes
0answers
32 views

Spacing after minipage

I have been playing with the code given by egreg here: How to keep a constant baselineskip when using minipages (or \parboxes)?, and I have almost succeeded in creating a two-column environment with ...
2
votes
1answer
83 views

Getting the real page number of a minipage

I am having trouble getting the 'real' page number of a minipage which is in a section. Sometimes it is off by one. I am trying to pass the page number and position in mm of the box (it's in an \fbox) ...
2
votes
3answers
64 views

How to vertically and horizontally center a minipage

I tried centering horizontally using the "adjustwidth" environment, but unfortunately, it's not very accurate. Also my captions are not centered under my figures anymore. I have no idea how to use ...
0
votes
1answer
54 views

Placing vertical lines between columns

I have a document that looks like this The horizontal line is just a \hrule, but the two vertical lines are made with a textblock. Is there an easier way to place them? Using a table environment ...
0
votes
1answer
37 views

Numerating captions of subfigures

I have two figures to add into a single figure environment. When I use subfigure, I got the following error: ! Missing number, treated as zero. <to be read again> } l.25 ...
1
vote
2answers
59 views

Fbox'ed minipages with fboxsep=0pt, fboxrule=0.0001pt and colored border

I have arranged within approx. 20 minipages a data plot, several pictures with attached labels taking columnwidth, columnsep of the twocolumn paper format etc into account. For debugging purposes, I ...
0
votes
0answers
39 views

Two mini pages next to each other, vertically aligned, one has an image included

I've got a bit of problem with aligning two mini-pages side by side in my CV. It's a two column CV format, with one column narrower than the other. Also I want to have a photo in the first column. ...
1
vote
1answer
40 views

Aligning three figures next to each other based on text width

Problem: I am trying to align three figures next to each other with text centered to each figure. This is going well until the box for the third box does not adjust after the text width. Minimal ...
0
votes
2answers
64 views

Minipages and spacing between \paragraph

I am using \paragraph inside a minipage. Don't know why, but the usual space above \paragraph does not appear. Then I have a small minipage in the \paragraph. Now spacing between \paragraph is ...
5
votes
1answer
50 views

List spacing is different inside and outside of minipage

I'm preparing an exam and I want an illustration next to a multiple-choice problem. Usually for this purpose I put the question and/or choices in a multicols environment; however for this particular ...
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 ...
5
votes
0answers
75 views

put \item's in minipage

Is it possible to have an enumerate- or description-like environment, with \item redefined in such a way so that each \item puts its content inside a minipage? Ideally, including the item number/title ...
8
votes
1answer
82 views

minipage with verbatim package doesn't compile

This is my code: \usepackage{verbatim} \newenvironment{listing} {\begin{minipage}{\linewidth}\verbatim} {\endverbatim\end{minipage}} However, it doesn't compile: Runaway argument? ! File ended ...
1
vote
1answer
30 views

vertical alignment of minipages in two columns in a longtable

I began to learn latex and I use it to prepare a CV. I made good experiences by organizing my CV with a longtable, in order to define the widths and the alignments of the different text blocks. In my ...
3
votes
2answers
56 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 ...
0
votes
0answers
35 views

Predefining placement of figures and tables in custom package

I am trying to define figures in a new custom package using \newenvironment{name}{begin defs}{end defs} and minipage command (code is given below). if i create a \newcommand{\name}{defs} (named as ...
3
votes
1answer
88 views

How to place two figures next to each other and centered

How can I position two graphs next to each other so that it looks good? For putting two figures next to each other I found the solution below in another question around here, however, I would like ...
3
votes
2answers
59 views

Reprint page but smaller

Here's an uncommon request. Let's say I have a page, page A. It's x in * y in. On another page, page B, I'd like to shrink the page to say half size (0.5 x in * 0.5 y in), to be used as a ...
3
votes
1answer
38 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
27 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
46 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 ...
8
votes
3answers
21k 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}
2
votes
1answer
41 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 ...
1
vote
1answer
49 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} ...
2
votes
1answer
43 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, ...
4
votes
2answers
92 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 ...
1
vote
1answer
33 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 ...
19
votes
4answers
27k 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} ...
1
vote
1answer
22 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
2answers
51 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
36 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
26 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 ...