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

learn more… | top users | synonyms

2
votes
1answer
245 views

moderncv - two column entry with minipage and multicols => multicols error “ther's no line to end here”

\documentclass[10cm,a4paper]{moderncv} \moderncvstyle{casual} \moderncvcolor{blue} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{layout} \usepackage{...
3
votes
2answers
99 views

Text left spacing (local “margin”) [duplicate]

How can I add left space to a block of text? (see the attempts and pictures below) I can think of two ways: minipage \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum[1] \...
0
votes
0answers
60 views

Nested environments: is sequence important?

In the MWE right at the bottom, I define a new environment called teacheronly which wraps text inside two environments. The first environment is a polyglossia language setting, and the second is a ...
5
votes
1answer
101 views

How do I make text raggedright inside all miniboxes?

I have been looking at re-defining minipage so that it is always raggedright but that looks problematic because of the optional arguments. I have a long document which uses lots of minipages. I ...
0
votes
1answer
37 views

outer boxedminipage environment cancelling inner environment

I am using boxedminipage2e to create a framed box with some text in it. I am also using polyglossia, since sometimes this text is in Arabic, sometimes in English. The language environment within ...
3
votes
2answers
78 views

Misaligned caption and table when positioned side-by-side

I wanted to put the caption of a table to its left, so I tried taking the approach suggested in this answer. As pointed out in the only comment to there, I had a misalignment issue as well. The ...
3
votes
1answer
56 views

Unexpected change in pagination when 'no' change in contents, using `boxedmini2e`

I am using the package boxedminipage2e to produce several framed boxes with some text inside. Because these boxes have a fixed height and width, I am expecting that whether or not these boxes contain ...
1
vote
0answers
35 views

Mini Pages to child tex document

I am trying to make minipages work in lyx. I have a tex(1.tex) file, which contains the body of the minipages with the float figures I have, which goes like this \begin{figure} ..\begin{minipages}......
1
vote
1answer
48 views

Foonotes in multlined equations inside minipages

I am having the exact same problem as describe in this question. Unfortunately, however, the solutions listed there do not seem to work for the multlined environment as well. A MWE is the following. ...
1
vote
1answer
49 views

Chapter heading vertical shift on page with multiple minipages

Im trying to create a document with only minipages to not break the content over different pages. But when the minipages reach the 2nd page of a chapter, the chapter heading layout is shifted ...
3
votes
2answers
86 views

Framed minipage and `comments` package

I am preparing a classroom workbook with two versions: one with answers and one without. The student version has big, empty, framed boxes to handwrite their answers. The teacher version has suggested ...
3
votes
1answer
594 views

Table and figure side by side with minipages

How do I put a table and a figure side by side with minipage? I have made it work, but then the figure's caption is table, because table was the surrounding tag. \begin{table}[ht] \begin{minipage}[b]...
2
votes
2answers
85 views

How to make the minipages continue after each other in one page?

I am not sure how to make these two minipages to follow right after each other rather than showing in two different pages while still there's space in the first page: \begin{minipage}[t]{0.85\...
4
votes
1answer
75 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 a)...
4
votes
5answers
184 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\\ ...
2
votes
1answer
76 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
125 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
1answer
125 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 ...
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
114 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] \...
0
votes
1answer
312 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} \...
2
votes
1answer
197 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
61 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
60 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
66 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
71 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
58 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 ...
2
votes
0answers
231 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
3answers
1k 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 the ...
3
votes
2answers
117 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 ...
0
votes
0answers
98 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. I'...
1
vote
2answers
251 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 ...
3
votes
1answer
93 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 ...
0
votes
1answer
1k 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 ...
1
vote
1answer
102 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
313 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 ...
6
votes
1answer
190 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 ...
5
votes
0answers
92 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
122 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
56 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 ...
0
votes
0answers
66 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
357 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
62 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 figure/...
3
votes
1answer
87 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
75 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
62 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 ...
2
votes
1answer
145 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 0.55/...
2
votes
1answer
265 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, I ...
1
vote
1answer
82 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 ...
1
vote
1answer
208 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 ...