{minipage} is an environment providing a paragraph box which is a complete miniversion of a page.
5
votes
1answer
353 views
Why there is no output when invoking \usebox{\mybox} outside the minipage in which \sbox{\mybox}{contents} is invoked?
\documentclass{article}
\newsavebox{\mybox}
\begin{document}
\fbox{%
\begin{minipage}{5cm}
\sbox{\mybox}{from first minipage}
\usebox{\mybox}
\end{minipage}%
}
%nothing rendered
...
5
votes
2answers
2k views
Spliting a page in half horizontally
I am trying to fix two half-paged documents on one document, one on top of the other.
The method below works pretty well so far, but I'm having trouble using 0.5\textheight for the height of the ...
5
votes
1answer
396 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 ...
5
votes
1answer
2k 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 ...
5
votes
1answer
92 views
Indented box that split in multiple pages
I am doing a document with exercises and corrections.
I would like the corrections to be easily remarkable so that no student read it by accident and get its exercise spoiled.
I have written an ...
5
votes
2answers
3k 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 ...
5
votes
1answer
1k 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 ...
5
votes
2answers
748 views
Alignment of item number in list containing a minipage
I would like to have the list number at the beginning of the item, and not centered as is the case for item (b) the example below. If I comment out the \usepackage{nccmath}, I get this, but then the ...
5
votes
1answer
130 views
Getting the interlinear spacing correct within a paragraph when using minipages
Let me start by saying that this is very similar to a previously posted question, How to keep a constant baselineskip when using minipages (or \parboxes)?, for which egreg gave a very nice solution. ...
5
votes
2answers
1k views
Create layout avoiding overlapping floating wrapfigures
I'm writing companion notes for some beamer presentations. For each slide in a presentation, the document has a small picture of the slide, along with a text explaining the slide. For some slides, the ...
5
votes
1answer
2k views
Eliminate space at end of list in a table
I have a tabular environment, created with array loaded and using m columns, the cells of which mostly contain lists. In cells with a list, there is about 1em of dead space at the end of the list ...
5
votes
1answer
211 views
How to define, once and for all, the size of the area (for an epigraph following a chapter)?
I am using 'memoir' for a thesis, and I have chosen the vertical space between a chapter title and the following section to be exactly fixed, \afterchapskip being 120pt for each new chapter. What I ...
4
votes
6answers
248 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
...
4
votes
2answers
3k views
Placing images left and right of each other
I want to create the following layout:
------------ -------------
| IMAGE 1 | ...
4
votes
3answers
905 views
Increase spacing after minipage
Hello i am using a line of code to draw 2 equations next to eachother using \minipage{}:
\begin{minipage}{0.5\textwidth}
\small
\begin{equation}\label{e3}
\begin{split}
\frac{\mathrm d x'}{\mathrm d ...
4
votes
2answers
3k 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 ...
4
votes
3answers
411 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 ...
4
votes
2answers
61 views
Problem controlling vertical alignment of minipage containing only math
I would like to insert a large box containing maths into a line of text and align the box with the top of main line. Strangely, the argument "[t]" gets ignored in the first example below (the second ...
4
votes
2answers
77 views
settototalheight issue with empty lines
I am using \settototalheight to calculate the height of the text in order to use needspace correctly.
This is the code i am using :
\documentclass[12pt]{article}
\usepackage{graphicx}
...
4
votes
4answers
119 views
\fbox around type area
I'm trying to put a border around multiple lines. Here's a MWE with what I've achieved so far:
\documentclass[a4paper]{scrartcl}
\usepackage{calc}
\begin{document}
\setlength{\parindent}{0cm}
text ...
4
votes
1answer
4k views
tables side-by-side using minipage
I'm trying to get three tables side by side using minipage. In spite of my horrific efforts my tables keep stacking on top of each other instead of standing beside what drives me mad. Can anybody spot ...
4
votes
3answers
154 views
Inserting three minipages in the same line
I'm trying to insert three minipages, side by side, in a line, but I'm failing miserably.
Here's what I've been able to do so far:
% ...
4
votes
1answer
3k 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
353 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 ...
4
votes
2answers
709 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 ...
4
votes
2answers
825 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 ...
4
votes
1answer
232 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]
...
4
votes
1answer
6k 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 ...
4
votes
2answers
148 views
nccmath affecting minipage widths
It seems that nccmath is affecting the layout of minipages. In the MWE, you can see the left minipage is clearly not taking up 70% of the page as I wanted. I'm hoping that there is an easy fix for ...
4
votes
1answer
43 views
Dirtree and lstset side by side
A \dirtree and a \lstset should be shown side by side. With the code below the \dirtree is vertically not on the same level as the \lstset (above the \dirtree is some empty space). How can I fix that?
...
4
votes
1answer
107 views
Line numbering with Lineno within Minipage
I am trying to add line numbers to a reading passage. The issue is that I can't get them to display when I try to number lines within a minipage environment. Can anyone answer what seems to be a ...
4
votes
1answer
71 views
How can I determine the height of a minipage?
If I have a minipage
\begin{minipage}{5cm}
content
\end{minipage}
How can I determine its height and save this value as a length?
4
votes
2answers
161 views
Table of 2x2 tikzpictures
I'm attempting to condense 4 tikzpictures into a smaller space in my document. The solution I have is as follows:
\documentclass{article}
\usepackage[paperwidth=6in, paperheight=4in]{geometry}
...
4
votes
1answer
285 views
Introducing a blank area in the header with a0poster
I'm writing a poster with a0poster and have to make the poster according to the conference instruction. In the header, left of the title, I have to leave some space so that the organizing committee ...
4
votes
1answer
150 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
1answer
3k 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 ...
4
votes
2answers
443 views
How to overlap two adjacent edges of 2 framed minipages placed side by side?
How to overlap the adjacent edges?
In other words, the adjacent edges should be combined into one edge shared between to minipages such that all rules will have the same thickness.
...
4
votes
1answer
36 views
Bytefield bitheader escaping its minipage?
In a small segment of a much larger document, I'm building a poor man's two-column layout using minipages for a short run. The bitheader from the bytefield in the right column, however, seems to be ...
4
votes
1answer
152 views
How can I make an environment so that I can reserve space for text next to a figure?
I'm working on a layout for a custom textbook class, and I'm having issues getting this environment to work as I like.
Here's a shot of my current working layout:
I'd like to be able to make an ...
4
votes
1answer
255 views
Customizing \maketitle output with \minipage's inside \titlehead => Alignment problems
I am trying to customize the title of my scrreprt class document.
The \titlehead looks like this (basically, three 'columns' created with three instances of \minipage):
\titlehead{
\large
...
4
votes
1answer
449 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 ...
4
votes
1answer
335 views
How to adjust macro to respect current \linewidth?
I'm having issues with text going past the end of the specified \textwidth. I posted this question about why text was being placed beyond the specified line width. The MWE provided there produced ...
4
votes
1answer
2k views
Vertical alignment of tikzpicture with text?
I have some text, and a corresponding tikzpicture, both of which are to be part of a test question, and which are thus included as part of an \item in an enumerate environment.
Like this:
\item
...
4
votes
2answers
231 views
table positions within a minipage
I have the following code, it should generate 2 side-by-side tables. However, the left table is too left that its last half is there, and the right table thereafter. How can I position them properly?
...
4
votes
1answer
79 views
Minipages in macros for ConTeXt
In LaTex I build the following macro "kum" for translating arabic to german. The result are two minipages, left one with german, right one with arabic (the other two minipages were for design-issues). ...
4
votes
1answer
84 views
Place group of text and image on same exported PDF page
I am new to Tex and this question maybe is not written well, so I will try to explain it better.
I am writing a reference manual where there are a lot of "blocks" that all have the same structure: a ...
4
votes
1answer
44 views
No space above first \item inside mdframed [closed]
Problem
This is what happens:
But I want the same vertical spacing before the first list item inside the mdframed environment as outside of it. How can I do this?
Code
\documentclass{article}
...
4
votes
1answer
86 views
Two columns with page span
this is my first post! I have tried to find a solution before posting.
I have some input put into my .tex. The left column is text input by a user. To the right I would like 0..4 pictures, also ...
4
votes
1answer
120 views
Laying out subfigures with minipages
I want to place 3 subfigures in a figure with two columns. There is one big subfigured placed to the right. The two subfigures on the left should be aligned so that the first is aligned with the top ...
4
votes
1answer
166 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 ...
