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

96
votes
3answers
17k views

\pagebreak vs \newpage

What's the difference? I know that \pagebreak can take an optional argument that specifies how much a page break is desired, but is there any difference if the optional argument is not used?
52
votes
4answers
6k views

What is the difference between 'fil' and 'fill'?

TeX provides the commands \vfil and \vfill (and their corresponding horizontal versions \hfil and \hfill). These commands are actually defined as: \vskip 0cm plus 1fil \vskip 0cm plus 1fill where ...
49
votes
1answer
22k views

Positioning content at the top of a beamer slide (by default)

When I create beamer frame, the content is centred in the slide. How do I make the content move to the top of the slide by default?
41
votes
3answers
56k views

How to vertically-center the text of the cells?

I have a simple table as follows: \begin{table*} \centering \begin{tabular}{|l|c|c|c|c|p{2in}|} ... ... \end{tabular} \caption{The factors the camera solver depends on to ...
38
votes
6answers
26k views

How to vertically center two images next to each other?

How can I vertically center two images next to one another? Here is some example code: \begin{minipage}[h]{6in} \centering \vspace*{.3in}~\\ \includegraphics[height=1.25in]{fig1.pdf} ...
36
votes
2answers
42k views

How can I get text underneath an underbrace?

I am looking to do something of the following: To get text underneath the underbrace. Is it involving \stackrel or some sort of similar command?
35
votes
3answers
12k views

How to get only one vertically centered equation number in align environment with two equations

sorry if this has been answered before, I couldn't find anything through search. I'm sure its a common problem though. What I have are two equations with align and I want one single equation number ...
35
votes
2answers
35k views

Vertically center text on a page

How do I vertically center the text on a page?
31
votes
2answers
4k views

How to define a figure size so that it consumes the rest of a page?

Sometimes I don't need to have a specific picture size, but for layout reasons I would like to scale the image so that the rest of the page is filled. How can I achieve that?
29
votes
3answers
9k views

Understanding minipages - aligning at top

I would like to be able to align two minipage at the top, without worrying about what is in the minipage. I am aware of the optional [t] parameter, but still have some confusion as to how this all ...
27
votes
4answers
19k views

Shift title and author text up?

What is the best way to shift the title text 'up' in a LaTeX document compiled with pdftex? When I do this: \documentclass[12pt,letterpaper, onecolumn]{article} \setlength{\topmargin}{0in} ...
26
votes
2answers
21k views

Vertically center cells of a table?

What is the easiest way to center align each row of table? I have a table column that contains an image and other cells in the same row contain text. I would like to know how to vertically center ...
24
votes
4answers
23k views

Stable vertical alignment of columns in Beamer

In Beamer, I often use a two-column slide layout, picture on the left and text on the right. Sometimes the same picture is used on multiple slides, with the text on the right changing. I use the ...
24
votes
2answers
893 views

Two rules directly under each other

I'm trying to make two rules of different length (fatness) directly under each other, something like: -------------------- ==================== Where = is a fatter line than -. The vertical space ...
24
votes
3answers
28k views

tabular vertical alignment to top?

I'm trying to create a simple tabular with two cells of text and two images below them like so: \begin{tabular}[h]{ c | c} \emph{Normal} & \emph{Cone} \\ ...
22
votes
4answers
2k views

Sharing alignment between equations in two different items

In the following minimal example, I have two equations inside an itemize environment, with an item per equations. Each equation is defined in its own equation environment. \documentclass{article} ...
22
votes
1answer
6k views

How to modify columns/column environments so they resize automatically to the largest column ?

This question was originally a duplicate of How can I add vertical space to a beamercolorbox to make it align with another one?. The response to that question was to add a vertical space according to ...
21
votes
3answers
12k views

Dot Derivative Discrepancy

I am trying to typeset some higher-order time derivatives using the dot notation, and I've noticed something strange. The expressions $\dot y + y = \cos(\dot y)$ $\ddot y + y = \cos(\dot y)$ give ...
21
votes
2answers
5k views

What is \null and when do we need to use it?

Up to now I don't understand well what \null actually is and when we need it. I have only known that it can be used to create hypothetical anchors as follows. \documentclass{article} ...
21
votes
2answers
608 views

List with several types of items

How can one create a list with different types of items ? I am using the package enumitem, which is great for defining items and referring to them, but it seems to allow only one type of item. I have ...
21
votes
2answers
2k 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: ...
20
votes
5answers
492 views

“Q” and “A” in margin - out of alignment

I have defined a command for a letter in the margin as follows (using marginnote because marginpar did not work at all): \newcommand{\sideletter}[1]{\marginnote{\Huge\bf\sffamily\color{orange} #1}} ...
19
votes
2answers
14k views

Aligning image and text on top, with minipages

I have an image (on the left) and a block of text (on the right), and I would like both to be aligned on their top. I am trying to use minipages for that: \documentclass{article} \begin{document} ...
18
votes
3answers
207 views

Vertical text (not in table)

For a book cover, I want to write the title vertically (like in Japanese, but using English text): T T I H T I I M L S S Y E How do I do this without jumping through a ...
18
votes
3answers
2k views

Vertically asymmetric size variation for parentheses

One of the difficulties I have with writing formulas in LaTeX is that the standard sizing tools for the variable-size operators (parentheses, etc.) do not account for "high" symbols and "low" symbols ...
18
votes
3answers
579 views

How do I set annotations on a facing page?

It's common to set an old play (e.g. Shakespeare) with annotations on the left page and reference information on the right. I don't want to do this for a play, but I would like to set a document with ...
18
votes
1answer
340 views

Flushbottom columns when \parskip has no stretchable glue

In the following example, the columns on page 1 and 3 "sit" perfectly on the frame, while on page 2 (with the large float) the columns end a bit above the frame. Does anyone have an idea what I could ...
18
votes
3answers
583 views

How do I create 6 parallel texts aligned by paragraph, with 3 texts on each page?

I want to typeset a hexaglot work. Each language will occupy its own column, and there will be 3 columns on each page. The text will be aligned by paragraphs and headings. Basically, I want ...
17
votes
3answers
740 views

How to align limits of double integrals?

I'd like to have the limits of two integrals vertically aligned. In this example, the x and b should be positioned on the same line. \[\int\limits_x^{\infty}\int\limits_b^{\infty} x^2+y^2 ...
17
votes
2answers
331 views

The second column always appears lower than the first one in the multicol environment

I need to make a two column document (on a landscape format sheet), but the second column appears in a lower position than the first one. I wrote "always" in the title because it also happens when I ...
17
votes
3answers
6k views

Aligning subplots in a pgfplots figure

I have the following figure (a very, very stripped down version of a figure I created using matlab2tikz) My problem is that the subplots are not aligned correctly due to the fact that the y axis ...
17
votes
1answer
3k views

Aligned equations inside of TikZ node.

How can I create a tree node with an aligned math equations inside? \begin{align} \end{align} doesn't work \begin{minipage}{100} \begin{align} ... \end{align} \end{minipage} Gives a lot ...
17
votes
1answer
4k views

Vertical alignment of inline images

Images appearing inline aren't always ideally placed relative to the baseline and risers of the text itself, so I frequently find myself doing manual adjustment, by eye, using \raisebox{}{} with a ...
16
votes
4answers
24k 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 ...
16
votes
4answers
7k views

How to balance last page of two-column layout?

I create a document in two-column-layout with LaTeX (and Koma-Script, if that is relevant). The two-column-layout is defined in documentclass. The last page of an chapter fills the left column first - ...
16
votes
3answers
5k views

How can I make vfill to work without adding any text before?

Using \vfill between two texts works: \newpage bla \vfill blabla but it doesn't work if there is no text before it: \newpage \vfill blabla How can this be achieved?
16
votes
2answers
1k views

Beamer: Vertical alignment of multi-column ToC

In my LaTeX beamer presentation I have a long Table of Contents, which has been split across two columns by using the multicol package. The problem is that I have not found any way to control vertical ...
16
votes
1answer
805 views

Underline at the same level

I want to underline alpha's and beta's, but at the same level. I mean, I don't want but . Maybe there is already a command that make it but I couldn't find it. The second image was obtained with the ...
16
votes
1answer
890 views

Vertical position of punctuation following fractions in display-style equations

Assuming that one wants punctuation in equations, what is the best way to adjusting the vertical position of the punctuation if it follows a fraction? I am using Palatino and Euler here (which I ...
15
votes
4answers
1k 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 ...
15
votes
2answers
597 views

How to center a typewriter (ttfamily) '+'

I would like to draw a circular TikZ node with + in its center, but font=\ttfamily moves it up. Why? How to solve it? \documentclass[border=3mm]{standalone} \usepackage{tikz} \begin{document} ...
15
votes
2answers
4k views

How to make an exact vertically centered object in a page?

Note: the red lines have the same length. \documentclass{minimal} \usepackage[showframe,paperwidth=4cm,paperheight=4cm,margin=1cm]{geometry} \begin{document} % \vspace*{\fill}% \fbox{test}% ...
15
votes
2answers
258 views

How to align `tcolorbox` at the top?

I want to align Some text with Lead Programmer like this: But the leftrulebox (a tcolorbox) inside the description environment doesn't align properly. The following code gives this: The code: ...
14
votes
6answers
1k views

How to stack boxes like a vertical version of \mbox?

I would like a vertical equivalent to \mbox{} that somehow takes a sequence of boxes and stacks them on top of each other. I'd like the resulting width to be the width of the widest box, and I'd like ...
14
votes
2answers
497 views

Depth of the \times symbol

I just noticed an annoying discrepancy involving the \times symbol's depth. Read the below code and then try to guess what it should look like: \documentclass{article} \begin{document} \fbox{$A$} ...
14
votes
2answers
5k views

Vertically center text and image in one line

I need to place an icon and text behind each other on one line. The icon is higher than a single text line, and would like to have the icon and text center aligned. How do I do that?
14
votes
1answer
3k views

Inline TikZ - vertical centering

If I inline a bounded line segment like this: the distance \tikz{ \draw [|-|] (0,0) -- (5ex,0); } overarching the activities how can I make the line appear vertically centered on the line ...
14
votes
2answers
2k views

Aligning enumerate labels to top of image?

I asked a question a while ago about vertically aligning enumerate labels to the top of table. Now I am having the same problem, but with images. Since my problem was solved in my previous thread, I ...
14
votes
3answers
4k 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 ...
14
votes
1answer
4k 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} ...