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

learn more… | top users | synonyms

2
votes
0answers
21 views

Problem with \href for hyphenated web addresses within latex minipage environment

I am trying to use \href to link to a web address that contains hyphens (e.g. http://hyphenated-webpage.com) within a minipage environment, e.g. \usepackage{hyperref} ...
2
votes
3answers
129 views

Aligning the equations and equation numbers correctly

I have the following code \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{minipage}{16cm} Maximization:\\ \begin{minipage}{7.6cm} \begin{align} ...
1
vote
2answers
63 views

How to align an image beside a text in LaTeX?

I'm having some troubles with placing an image: I want to put the image by the side of the text but I'm obtaining this: \begin{figure} \begin{flushright} \begin{minipage}{0.4\textwidth} ...
2
votes
1answer
24 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 ...
3
votes
1answer
25 views

Minipage with tabular inside ignores vertical alignment

I am trying to align a minipage that has a list inside. Using a tabular environment for the list results in the minipage ignoring the [t] option (or any other, as far as I can tell). On the other ...
0
votes
0answers
22 views

How to align the caption text under the figure to the column width in a minipage environment?

I am stuck at a formatting problem of a Figure. As you can see in the picture there is white space in between the caption text and the left column because the text is aligned to "Figure 1". How can i ...
2
votes
2answers
31 views

Center text in minipage along page center

For a one-page bulletin, I need some text and a logo on the end of a page. I've gotten first results with using minipages so far: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
0
votes
1answer
48 views

Control absolute position of `minipage` or image on page

I am producing a 30x30cm book with a lot of images. I would like to control the absolute positioning of a minipage (to allow normal flowing text) and some sort of image environment to allow me to make ...
1
vote
2answers
263 views

Where does this space come from?

Using colored text inside a minipage results in less vertical space being appended after the text compared to normal text. Strangely, this only occurs when the minipage is top-aligned. In the other ...
5
votes
2answers
56 views

hrule inside minipage refuses to show up

Inside a minipage, \hrule doesn't seem to do anything unless there is already some material inside the minipage. \documentclass{article} \begin{document} \hrule width\textwidth\relax \noindent ...
0
votes
1answer
30 views

Why is tikz getting a different \linewidth or drawing a different rectangle inside a minipage under the same conditions?

Question I have a signature macro that determines whether to include a signature for a final production or whether to put in a red unsigned box (for pre-production copies). For some unknown reason, ...
1
vote
0answers
14 views

how to put Verbatim inside minipage that has fbox around it? “Paragraph ended before \FV@BeginScanning was complete. }” [duplicate]

I am surprised that I get an error when I add Verbatim to content of minipage that had \fbox around it. Removing the \fbox removes the error. But I need to put frame around the minipage. I can't use ...
1
vote
1answer
63 views

Dividing the page equally with geometry package

I'm wondering about dividing the page in 2 independent parts. I did it with minipage : first was \begin{minipage}{0.49\textwidth} .. \end{minipage} and second was \begin{minipage}{0.49\textwidth} ... ...
1
vote
1answer
69 views

Easy and robust way to vertically align text and images side by side

Is there any syntactically easy and robust solution of how to place a image right (or left) to a text with correct vertical alignment (and appealing horizontal spacing)? By syntactically easy I mean ...
2
votes
1answer
32 views

Remove top indent of itemize without using minipage in tabular(x)

I am using minipage in my tabularx because it was the only way I found to remove the top space of the itemize environment. However, since minipage cannot break at when the page does, I have a very ...
6
votes
2answers
64 views

Creating a document with no borders or margins

I want to create a small flyer. It should be folded once and have four pages in total. Also, I need a special geometry. So far, I am trying to achieve that using minipages. Here is my MWE: ...
3
votes
2answers
57 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 ...
0
votes
0answers
21 views

Cant remove frame title completely

I am working on a project using Rstudio and am having some latex difficulty. Whenever I create a frame and dont put a title a tiny dot shows up on the screen. How can I disable the title/remove this? ...
12
votes
2answers
278 views

Vertically aligning minipages, subfigures, and subtables (not with baseline)

The goal My goal is to align side-by-side figures, tables, and text in minipages according to the top, middle and bottom of the largest such minipage. This makes it different (I believe) from the ...
1
vote
0answers
15 views

Right minipage goes outside of margin [duplicate]

I have two minipages side-by-side. However, the right one goes outside of the right margin even though I specify the correct widths. As a consequence, the text is no longer aligned on the right. Here ...
3
votes
1answer
42 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 ...
4
votes
3answers
96 views

create environment that resizes content

I want to create an environment that puts its content within a minipage as wide as the current page. The environment would work as follows: \begin{FitToWidth} HELLO \end{FitToWidth} and produce a ...
3
votes
1answer
32 views

listing in minipage sucks content of previous page to the bottom

I'm working on a document that contains many listings (namely code samples) but not a lot of text. Most of these listings are only a couple of lines long, and a few span multiple pages. At the end of ...
4
votes
2answers
46 views

How to center 2 boxes with minipage side by side inside shadowbox

I have two boxes with minipage side by side with different height inside of \fbox, and they are centered each other \documentclass{article} \usepackage{fancybox} \begin{document} \noindent ...
2
votes
1answer
32 views

minipage 15.0pt too wide

Sometimes I have two (or more) figure environments which I want to layout on one page, and put a horizontal rule in the center. To acomplish this, I put a \vfill\hrule\vfill between the two ...
2
votes
1answer
35 views

Breaking minipages over multicols

I'm currently trying to break my two minipage's over two multicols columns, but for some reason, my \break is pushing my minipage to the next page, instead of the next column. Here is my code: ...
1
vote
1answer
78 views

Help me in aligning

\documentclass[]{exam} \usepackage{amsmath,amsthm,amsfonts,amssymb,dsfont,tikz,mwe,caption,float} \usepackage{pgf,tikz} \usepgflibrary{arrows} \begin{document} \begin{questions} ...
2
votes
1answer
49 views

Autoscale to fit images between paragraphs

Does anyone know to to place an image to fill up a space between paragraphs? My situation is that I have two minipages that must fall on the same page, but they dont take up all the space. Right now ...
4
votes
2answers
87 views

remove blank space before text under figure when using sidecaption and memoir class

As you can see, when using sidecaption in memoir class, the text in the margin control the text position under the tabulate. Is it possible to remove all this blankspace under the tabular ...
0
votes
0answers
26 views

Subsection wrong placed after several figures+minipages

I'm new using Latex and I found some code to place 2 pictures aligned (one next to each other) in case they have the right scale of course. It works perfectly. But when I copy/paste the code a couple ...
3
votes
2answers
49 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 ...
0
votes
0answers
48 views

Larger picture in minipage, [scale=..] not effective

I try to make the last picture in this minipage larger with the [scale=..] code, but it is not working. I hope it does not have to do with the original view of the picture, so it can be fixed using a ...
4
votes
3answers
68 views

center an image in a custom minipage

Sorry for my broken language, I'm a Frenchy ! I have to create a page template for a personal project : a box without margins in the 72% of the page, aligned to the top which contains a big image ...
1
vote
0answers
52 views

Figures in Minipage to avoid multiple pdf's warning, now labels aren't working

I'm trying to include svg graphics in combination with the respective .pdf_txt within my bachelor thesis. So far that works but it triggers the Warning : 'multiple pdf's in a page group'. That Warning ...
4
votes
3answers
191 views

Align bullet points in two side-by-side itemized lists

I'm trying to create two side-by-side bullet point lists in a document, where each point lines up with the corresponding point in the other list, even when one of the points has multiple lines. So ...
4
votes
2answers
124 views

Dividing a page into independent parts/columns with different widths

I want to divide my page (A4 landscape) into different parts. The top should consist of four columns with different widths and no rule. For this I used vwcol but I could not figure out how to do a ...
4
votes
2answers
86 views

Is it posssible to embed list items `\item` in `NewEnviron` environments?

Question Is it possible to keep the \item commands in the body and wrap the itemize list environment with \NewEnviron from the environ package? I am also trying to wrap the list inside a TikZ node, ...
2
votes
1answer
79 views

Clean way to write a two column proof

I want to write proofs in the following format. The left-column I use for the exercise and the solution. And in the right-column I write results that I used in my proof. For example: I'm able to do ...
0
votes
0answers
20 views

custom lstlisting environment [duplicate]

I'm using the listing package for displaying source code in my document. I want to use the minipage environment to avoid page breaks within the listing, but I don't want to write, at every listing, ...
2
votes
0answers
57 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) ...
0
votes
0answers
44 views

Automating minipage positioning

Many times we have to use tables that do not accept footnote. This mostly happens with longtable environment. What I do for footnotes for these longtables is to actually use minipage, applying the ...
5
votes
2answers
139 views

Article example inside beamer frame

Let us assume that we have the following example code for an article \documentclass{article} \title{Sample title} \author{Sample author} \date{} \begin{document} \maketitle \section{Sample section} ...
0
votes
0answers
46 views

Split a page horizontally with page breaks

I am looking for an adequate package to split horizontally all pages of an article into two parts with page breaks. The expected behaviour shall be as in following picture: I already try with the ...
0
votes
1answer
67 views

Detecting (another) sub-minipage inside an encapsulating minipage?

Is it possible to detect if a minipage is present in an encapsulating minipage? Let me expand on that: I have a float environment which, simplified, can be defined by ...
0
votes
0answers
29 views

Table does not align next to eachother [duplicate]

I have two tables which I want to put next to each other and horizontal centered. However whatever I try they are not going next to eachother latex keeps displaying them on top of each other. This is ...
3
votes
1answer
57 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
1answer
96 views

minipage layout not correct

I want to generate a document with graph at left and tikz code at the right. I try to use two minipage but it seems it always layout it as up and down. The minipage is 0.45\textwidth, why latex still ...
5
votes
1answer
47 views

Paragraph spacing within minibox

I have tried all kinds of gimmicks, but I am stuck trying to reduce the double-spacing within the minibox to single space. (Obviously, I want to keep the global \onehalfspacing option.) This sounds ...
2
votes
1answer
83 views

Set minipage width to the available space

I am trying to fit 2 minipages next to each other, and I would like one to take 20% of the \textwidth, and the other one the rest of the space available, with a margin between both minipages that I ...
3
votes
2answers
99 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 ...