{vertical-alignment} is about aligning document elements vertically, e.g. using \raggedbottom or \flushbottom or adjusting the vertical position of several equation or table components. If your question is generally about (vertical) white space, use {spacing} instead.
10
votes
5answers
3k views
Vertical alignment of align* in enumerate
Related (but not the same):
Align number from enumerate with equation
Displaying an equation in a list
Earlier today I asked a question about aligning equations in an enumerate environment ...
10
votes
3answers
142 views
Aligning cases conditions from multiple nesting levels
\begin{dmath*}
y_{ic}[n] = \begin{dcases}
y_0 + x_0 - x_0 (1 - k_2)^n & k_1 = 0 \\
k_5 + \left( y_0 - k_5 \right) (1 - k_1)^n + \begin{dcases}
...
10
votes
3answers
791 views
Is there a vertical equivalent for \rlap?
I'm looking for some sort of vertical equivalent for \rlap, which can be used to typeset maybe one or more paragraphs (or minipages), but do not advance vertically the content that would appear ...
10
votes
2answers
896 views
Uneven text distribution with two-column layout
I am comfortable with creating basic LaTeX documents and making minor modifications to templates I can find online, but not much more. The Oxford Bioinformatics journal has an awesome template here ...
10
votes
2answers
419 views
Inconsistent behavior of boxes in amsmath's `gather`.
Recently I was working on a package (ytableau) and had a strange experience with the gather environment in amsmath. Namely, it screws with \vtop and, seemingly, with boxes that I reserve before ...
10
votes
2answers
1k views
How to put table and PNG next to each other in the same figure?
How can I put a table and a PNG (using \includegraphics) next to each other in the same figure, in the following way?
+----+
+-----+ |png |
|table| |png |
|table| |png |
...
10
votes
2answers
276 views
Position margin notes relative to left margin in plain TeX
I want to add margin notes in the Tufte style to my Plain TeX document. (I'm using eplain, if that matters.) I know that if I were using LaTeX I could just use tufte-latex, but as a thorough ...
10
votes
4answers
157 views
A line of text with proper positioning but consuming no space?
Welcome to part 4 in a series of questions about me trying to improve my crazy layout!
I'm using tabu to create a table with a central heading, and two small blocks of text on the left and right ...
10
votes
3answers
2k views
Vertically align subfloats at the top while having subcaptions vertically aligned below the subfloats
I have a float with two subfloats:
I want the circles to be vertically aligned from their top such as in the following figure. But I don't want the subcaptions to be placed above the subfloats but ...
10
votes
2answers
232 views
Sideways text with rule as table label
I've been trying to achieve the following vertical sidebar effect in LaTeX for my resume, but turns out it's far more difficult than I thought (created easily in InDesign):
I've tried everything ...
10
votes
1answer
118 views
How I can align a table with a figure from above?
I want to have a table and a figure plotted by \pgfplot in two column but
have alignment from above:
\documentclass[a4paper,10pt]{article}
\usepackage[utf8x]{inputenc}
...
10
votes
2answers
5k views
Beamer: Top-aligning columns within a top-aligned frame
According to p. 25 of the beamer manual, the t option top-aligns either every frame (when used as a class option) or a single frame (when used as optional argument of a frame environment). According ...
10
votes
2answers
483 views
Horizontal alignment within an equation using Tikz
I am trying to center horizontally the first terms of a system of equations inside the alignat environment. I don't know if Tikz is the right way to go, but as I might have to add some other ...
10
votes
1answer
309 views
Use of \@texttop and \@textbottom for vertical positioning
There are two macros defined in the LaTeX kernel named \@texttop and its opposite \@textbottom. The first is a bit of a mystery command in that in the source it is let to \relax. There is a note that ...
10
votes
1answer
464 views
How can I set the vertical margin of my chapter headings?
I currently don't like the typesetting of a document. In my two sided document, I want that the chapter headings not have a vertical space before their appearance.
The text on the second page should ...
10
votes
1answer
224 views
Vertical alignment in table: m-column, row size - problem in last column
Unfortunatly, I have a problem with m-columns (array package) in tables with adjusted row height. Somehow in the last column (only there) the text is not centered vertically.
Check it out:
...
10
votes
3answers
2k views
Line up captions on side by side figures
I want to place two (or more) figures with side by side. The figures are independent, so need separate captions, with no overall caption for the two. I know how to do this with minipages within a ...
9
votes
2answers
208 views
How to correctly shrink the bullets of itemize
How can I shrink the bullets of itemize without change its positioning and the centering versus the items? My code below show that behaviour in fact the two item underneath have a bullet shifted down ...
9
votes
3answers
411 views
Align text on top of a framebox
I am trying to create a series of boxes so that my students can input there id number for there final exam.
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\newsavebox{\idbox}
...
9
votes
3answers
312 views
Letter “p” ruining vertical alignment
I have a simple diagram I have created.
\begin{figure}[t]
\begin{center}
\setlength{\unitlength}{10pt}
\begin{picture}(24,4)
\setlength\fboxsep{0pt}
...
9
votes
3answers
2k views
Spread bullet points across block in slide using beamer
I'm using beamer to create some slides for a presentation. I've got a block containing a bulleted list. The list only has three items, and all three items are bunched up in a small block at the top of ...
9
votes
2answers
152 views
How to put a list and an equation side by side
I'd like to get a list and an equation side by side so that I fill the page width better for aesthetic reasons, I've tried the following but doesn't compile:
\begin{tabular}{cc}
Known values:
...
9
votes
2answers
2k views
\flushbottom vs \raggedbottom
I use \documentclass{book}.
If I use \flushbottom, I get messages of the sort Underfull \vbox (badness 10000) has occurred while \output is active []. See question.
These messages disappear when I ...
9
votes
3answers
566 views
Vertical alignment of fonts of different sizes on same line
In XeTeX, if I have a line with two font sizes, how can I arrange to have the smaller font aligned to either the center or top of the line?
e.g.
...
9
votes
2answers
331 views
Why do I need a '\vspace{0pt}` to align a table and a figure along the bottom line when using '\vbox' and '\hbox'?
Recently, I fiddled with placing a table and a figure next to each other such that their bottom parts aligned with each other. I managed to do by using \vbox and \hbox, but there is one thing that ...
9
votes
4answers
9k views
Reduce space between enumerated items
Background
A book with lots of images. All of the images are set to "here definitely" (as they must come after the text that introduces them).
Problem
The list types (enumerated and bullet) have ...
9
votes
2answers
189 views
Why is picture and matrix not drawn at the same height
I'm trying to put a adjacency matrix beneath a graph using subfloat. The graph is drawn with tikz. No matter what I do, the matrix is put below the graph as shown here:
The code is here:
...
9
votes
4answers
1k views
Aligning an enumeration item to the top of a tikzpicture
I've drawn a tree using pgf/tikz and am trying to place it in an enumerated list. A snippet of my complete code is as follows:
\subsection*{Problem 2}
\begin{enumerate}[1)]
\item Max heap
\item
...
9
votes
2answers
113 views
Using memoir, how do I number paragraphs?
I am trying to implement paragraph numbering with memoir. I would like the numbers to be
in the outside margin,
flush against the text block, and
vertically aligned with the first line of the ...
9
votes
2answers
2k views
How can I vertically align a beamercolorbox?
I am trying to customize a beamer theme. In the footline, information such as author, title, date ... are in several beamercolorboxes.
\hbox{%
...
9
votes
2answers
504 views
Vertically misaligned margin note
I'm trying to use a \marginnote along with a specified \parskip. However, I'm having an alignment issue. With the code in the group with the \parskip the margin note is misaligned with the text on the ...
9
votes
3answers
1k views
Tables do not align side by side
.
.
\usepackage{tabularx}
\usepackage{multicol}
\begin{table}[ht]
\begin{minipage}[b]{0.5\linewidth}%\centering
\begin{tabular}{|c|c|c|c|}
\hline
& One & Twp & Three \\
...
9
votes
2answers
4k views
tikzpicture alignment and centering
I have several very similar images except some have some extra graphics that enlarge them slightly. This causes some pictures to be offset and not aligned visually when it's clear they should be.
How ...
9
votes
2answers
605 views
How to get headings to be an integral number of lines high (using the memoir class)?
I use the memoir class and the \checkandfixthelayout command to calculate the \textheight so that an integral number of lines will fit. This works very well:
But now I want to add a few section ...
9
votes
1answer
177 views
What is best practice for aligning distinct arrays or tables side-by-side?
I have two related tables that could naturally be displayed side-by-side but don't have to be. However, it saves space to display them side-by-side rather than one atop the other. If I do so without ...
9
votes
2answers
3k views
Vertical centering of figure in landscape environment
I am using the pdflscape package to insert landscape pages in my document. On one of these I would like to have a figure that is vertically centered on the page, but I can't find how to do it.
MWE:
...
9
votes
3answers
3k views
How to vertically align headers/footers in fancyhdr package?
I'm using fancyhdrpackage for headings and footers. I have defined left-header as a big image, and I want to vertically align (to the top or to the center, the default is to the bottom) the text from ...
8
votes
3answers
188 views
Vertically Centering Text/Numbers in Rows of Array using Math Mode
I am trying to center text in an array of two rows inside a math mode environment so that the text in the second column of the array appears half way between the first and second row of the first ...
8
votes
3answers
214 views
Aligning text and a tikZ picture vertically
Here is my current slide:
\documentclass{beamer}
\usepackage[english]{babel}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\begin{document}
\begin{frame}
\frametitle{My slide}
...
8
votes
3answers
257 views
Poster text positioning: Get width of \hfill
How can 0123456789 be aligned as shown in red: Same baseline as abcdefghij, aligned left with ABCDEFGHIJKL?
\vlines are just for illustration. I am designing a poster where exact text positioning ...
8
votes
3answers
419 views
Clash between aligned environment and TikZ?
The following code mis-renders the multi-line label:
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{aligned}
\begin{tikzpicture}
\node (A) at ...
8
votes
4answers
2k views
When I use [shrink], I lose vertical centering. How do I get my stuff shrunk and centered?
I am creating a beamer slide with a table on it. This table is too big with the normal font size, so I am using the shrink command to try to make it smaller.
shrink is working, however it is ...
8
votes
2answers
109 views
Align subscripts vertically
I would like to align the subscripts in an expression such as this one:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$$\sup_{f\in\mathcal H}\lim_{\epsilon\downarrow ...
8
votes
1answer
3k views
Beamer background image centered
I'm trying to use an image as a background for Beamer presentation according to this post. However, I do not want the image spanning the entire background. Thus, I'm doing something like:
...
8
votes
1answer
99 views
Why isn't a zero-width box in math mode aligned on the baseline?
I'd like to move equation labels into the margin for an article I'm working on, and the answers in Theorem Name/Numbering in Margin accomplish exactly what I'm looking for. Here is a small example:
...
8
votes
2answers
301 views
Table: Can I shift a column by half the height of a row?
This question is best explained by giving the usecase:
I have a table where I list some data and I would like to add a column to the right which gives the ratio of two adjacent rows.
Now to make it ...
8
votes
2answers
121 views
Make the enlarged digit vertically centered in normal text (digits almostly) height.
I want a digit inside around other digits could centered vertically in height, without affecting by normal font size setting, as image show:
(The enlarged six is {\Large6}) but I couldn't get the ...
8
votes
2answers
120 views
Odd vertical gap with multicol, scrreprt and parskip=half
I'm having a weird vertical gap in one of my documents, which only is there when I use multicol together with \documentclass[parskip=half]{scrreprt}.
Minimal example
...
8
votes
1answer
3k views
Adjusting vertical alignment of underbraces
Is there a way to align multiple underbraces so that they sit on the same horizontal line?
For example, the following code
\[
\biggl(
\underbrace{0,1}_{A},
\underbrace{\frac{1}{2},\frac{1}{3}}_{B}
...
8
votes
1answer
117 views
Vertical Centering in a multicols
In a document I have several multicols units, in which on one side there is an image and on the other side some information in a itemize.
Now, depending on the image / information, the two "sections" ...