{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.

learn more… | top users | synonyms (2)

9
votes
1answer
142 views

Vertically align the top of a box to the top of the tallest box of a line

This is a follow-up question on this thread. I want to mark a line by putting a star to the left of it. If the line contains a box that is tall, the marker should be aligned with the top of this ...
9
votes
3answers
163 views

Aligning different matrices

I want to write the companion matrix of a recurrence relation and its use (the notation will be a bit unusual since it is "for cryptography", where we always do stuff in a different way). ...
9
votes
2answers
10k views

Include centered full page figure with no margins

I have a big figure that takes up a full page. I'd like to include it in my latex document on a separate page, centered horizontally and vertically. I managed to put it on a separate page (or it is ...
9
votes
1answer
889 views

Positioning of numbers in gb4e.sty examples

I'm planning to use the following numbered examples in a document (see example below). I would like the number to be at the top of the example, but for the ones with diagrams it ends up in the middle. ...
9
votes
1answer
158 views

Measuring align

From what I read it seems that align environments are processed twice: the first time for measuring, the second time for actual typesetting. My question is whether one can get access to these ...
8
votes
7answers
347 views

Vertical aligning for simple numbers

I need to typset a series of fractions with no line inside some paragraphs of text (they were used as proportional symbols). It is very simple, actually: $^2_1$, $^4_2$,$^8_4$ But when it comes to ...
8
votes
3answers
899 views

Align \sqrt with baseline of other mathematical input

The following mathmatical expression is not being displayed the way I expect it to be. \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} $3x\sqrt{y}-4-2\sqrt{y}+6x$ \end{document} ...
8
votes
3answers
283 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
14k views

How to vertically align 3 images with subfigure?

This code: \begin{figure*}[t] \begin{center} \begin{subfigure}[a]{0.3\textwidth} \label{im:device_front} \includegraphics[width=\textwidth]{images/bsn_side} ...
8
votes
4answers
376 views

Enumerate alignment

Is it possible to improve the alignment of the first item? \documentclass{article} \begin{document} \begin{enumerate} \item \begin{tabular}{cccccccccc} $x[n] = $ & \{1/3 & -1/2 & ...
8
votes
3answers
427 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
384 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
2answers
1k views

Putting text at the side of a tikzpicture

I've just completed a tikz diagram. I need the text In the following diagram, what can you say about $\angle F$, $\angle B$ and$\angle E$? to go to the right of the diagram to save space on ...
8
votes
2answers
6k views

How to move a paragraph to the bottom of the page (without vspace)

I am looking to move a text paragraph of a few lines (like a disclaimer) at the bottom of a 2 page document. Each time I do that, I need to adjust that specific paragraph with the \vspace function. ...
8
votes
3answers
418 views

Vertical align a tabular and tikz figure in a minipage

How can I vertically align a tabular left to a tikz figure? With minipage without a vertical align option it looks good: The problem is that I need it aligned at top (for this I replaced ...
8
votes
2answers
394 views

Aberrant vertical spacing with {align} and friends?

Consider documents with the following preamble: \documentclass[12pt]{article} \usepackage{amsmath} Question #1. Why do we get bad alignment with the following code? \noindent ...
8
votes
1answer
13k views

center horizontally and vertically a block of text

I would center horizontally and vertically a block of text as if it was an abstract text block.How can I do? I tried this: \null\vfill \begin{center} \end{center} \vfill\null it It correct?
8
votes
3answers
475 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
2answers
222 views

Correct placement of sum limits

this is maybe some captious question like the correct placement of := but I always notice the unattractive placement of the limits between two sums. Lower limit example (The same holds for the upper ...
8
votes
2answers
385 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
231 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
10k views

Table rowspan and colspan

I need to create similar table using LaTeX: I have tried to use \tabular and \multicolumn, but every time I get something wrong. I want: Fixed width columns and fixed height rows; Centered cells ...
8
votes
2answers
149 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
529 views

Tabular paragraph vertical alignment

How to make this kind of tabbed paragraph: 3 columns 2cm 10cm 2cm, the last column is right aligned and it's content starts on the last line of the paragraph of the second column. 10. Some text ...
8
votes
2answers
737 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
604 views

How to vertically center content in ConTeXt?

I would like to vertically center my title page. I have tried code like this, but it does not work: \vfill \startalignment[center] Title \stopalignment \vfill I am using ConTeXt, so the ...
8
votes
2answers
6k views

Fix vertical alignment in beamer

I am using a beamer frame in which the top has alternating list items, and the bottom has a picture. The problem is that because of the different number of rows for each item, the picture changes ...
8
votes
2answers
179 views

Included graphics with text: Alignment

tl;dr How do I align text to text within \included graphics? Let's look at the following logo, which I want to include (in a vector format, e.g. pdf or svg). The blue/red lines are my annotations. ...
8
votes
1answer
119 views

Why do I need an \hbox inside \vcenter to make it work?

I want to vertically center an object in an equation. I thought: "Ok, \vcenter is the way to go." But I don't understand (not even from the TeX primitives reference), why I need an \hbox inside my ...
8
votes
3answers
248 views

Align points with text vertically

I have the following code: \begin{itemize} \item SPOJ - everyone loves SPOJ\\ - I love SPOJ \end{itemize} And what I'd like to do is display the two hyphens at the same position. ...
8
votes
1answer
474 views

How to vertically center the fraction line?

I feel a bit weird because this is a really simple issue that apparently nobody has brought up so far but I find that very simple fractions produce output that looks vertically unbalanced. The ...
8
votes
2answers
2k views

\pbox vertical alignment

What's going on here, why are the TEXTs not aligned? \documentclass{article} \usepackage{pbox} \begin{document} \hrule \pbox[c][20pt][b]{\textwidth}{TEXT\\ Short} ...
8
votes
1answer
1k 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" ...
8
votes
1answer
1k views

TikZ: vertically aligning text in nodeparts

I can't seem to vertically align text in different nodeparts of the same node. This MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} ...
8
votes
1answer
4k views

Vertical Alignment of Minipage

I have a question, I'm using the following setup for a title page: \begin{titlepage} \begin{center} \textsc{\LARGE University Name}\\[1.5cm] \textsc{\Large Bachelor thesis}\\[2cm] { \huge \bfseries ...
8
votes
2answers
201 views

Need help with making Logic Trees in qtree/tikz-qtree (i.e. aligning, numbering lines)

I would like to make something similar to the logic tree below. I've tried using tikz-qtree, but I can't figure out how to number every line in the tree. I did however find something else doable in ...
8
votes
2answers
2k views

Top-aligned subfigure with bottom-aligned caption

This is a follow-up to an earlier question regarding left-aligning subfigure captions. Having achieved the left-alignment goal, I would now like the caption of the subfigure to be bottom-aligned, ...
8
votes
2answers
2k views

Changing minipage vertical alignment in mid-line?

Please consider the following MWE: \documentclass{article} \usepackage{lipsum} \usepackage[showframe,showcrop]{geometry} \begin{document} \section{Section 1} aa \fbox{\begin{minipage}{100pt} Box 1 ...
8
votes
2answers
3k views

Variable-width horizontal rules with \cline intrude cell text

I have come to learn how to make a variable-width horizontal rule with \hline from the LaTeX companion and with \cline from Horizontal rule with adjustable height behaving like \cline{n-m}. But the ...
8
votes
3answers
8k views

Alignment of \includegraphics in a tabular

When putting a graphics inside a table, the text at the right is too much at the bottom Minimum example : \documentclass{article}[12pt] \usepackage{graphicx} % This is already loaded by the ...
8
votes
1answer
13k views

Matrix equation (esp. row vectors)

I'd like to write the matrix equation A = (x y) B (x y)^T, where (x y)^T is written as a column vector and B is a 2x2 matrix written as such. I can (almost) do this by, for example, the following: A ...
8
votes
1answer
274 views

Too much vertical space before \part when using \marginpar

When I use a \marginpar{...} before \part{...} on a new page, I get a big space on the top of that page. Below is a screenshot, where the left one was typeset with marginpar, the right one without: ...
8
votes
1answer
762 views

Baseline shift with fontspec?

Is there a way to manually adjust the vertical position of a font using fontspec (in XeLaTeX)? Such a feature would be quite useful when typesetting Asian text, since different font vendors often ...
7
votes
3answers
2k views

How to make a table with centered images?

On page 6 in this PDF is there a table with centred pictures in the right column. Does anyone know how to make such a table? I am using pdflatex.
7
votes
4answers
465 views

Vertically aligned table in plainTeX / LaTeX / Context etc

My last answer about vertically aligned table inspired me to write my first question at this site. How to create the following table in various TeX approaches: plainTeX, LaTeX, Context, eplain, OPmac ...
7
votes
3answers
172 views

Preventing newline from left column from forcing a newline in the right column

I'm writing a CV in LaTeX, and got started with the sample called Writing a CV in LaTeX. I'm trying to modify it so that a newline in the left column does not force a newline in the right column. ...
7
votes
4answers
6k views

Adding/subtracting vertical space in »letter« class

Is there a way to move the to-address up (or, respectively, the date down) in the »letter« document class? With the to-address on the left and date on the right, I wish for the vertical alignment of ...
7
votes
2answers
668 views

How to vertically shift the = sign?

I want to define a command that prints the = sign with its lower line touching the baseline, that is directly sitting on the baseline, any suggestion?
7
votes
3answers
431 views

How to set the baseline for headers with scrpage2?

I want the left and the right header to have the same baseline, regardless of the height of the content they yield. To demonstrate this, assume \documentclass{scrartcl} \usepackage{scrpage2} ...
7
votes
4answers
4k views

Aligning conditions in cases environment

I have a piecewise function with three "parts." I would like to have all three conditions aligned at the variable x. How do I achieve that? Here is the code I have so far: \[ f(x) = \begin{cases} ...