Questions tagged [vertical-alignment]

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

Filter by
Sorted by
Tagged with
187 votes
8 answers

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 ...
Rafid's user avatar
  • 5,577
35 votes
7 answers

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 and ...
Sophie Alpert's user avatar
56 votes
3 answers

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?
RoflcoptrException's user avatar
40 votes
2 answers

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: \...
Stefe Klauou's user avatar
52 votes
8 answers

How to vertically center text with an image in the same row of a table

I want to create a table with multiple rows of the following form: a cell that contains text and then multiple cells that contain images. The text should be vertically centered and the contents of ...
Dominik Spicher's user avatar
87 votes
3 answers

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 ...
Peter Grill's user avatar
45 votes
4 answers

Vertical alignment in tabular cells with variable height

I have the code: \documentclass{article} \usepackage[a4paper]{geometry} \usepackage{tabularx} \usepackage{lipsum} \begin{document} \begin{tabularx}{\textwidth}{ | X | c | } \hline \lipsum[1] &...
user4035's user avatar
  • 4,905
186 votes
4 answers

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

What I have are two equations with align and I want one single equation number to refer to this system of equations. To illustrate, I have \begin{align} dr_t &= \kappa ( \theta - r_t ) dt + \...
Paul Koer's user avatar
  • 3,365
220 votes
5 answers

\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?
Sophie Alpert's user avatar
40 votes
2 answers

\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 ...
lpdbw's user avatar
  • 8,132
26 votes
3 answers

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 ...
Charles Staats's user avatar
12 votes
1 answer

How to prevent the paragraphs to spread out over the page? [duplicate]

I have a problem. I have several large equations within the text. And when LaTeX does not manage to put the equation on the same page and moves it to the next one, he spreads the paragraphs of the ...
Natalia's user avatar
  • 291
217 votes
4 answers

Increase LaTeX table row height [duplicate]

How does one increase the height of the rows in a LaTeX table?
user1965914's user avatar
  • 2,401
197 votes
5 answers

Vertically center text on a page

How do I vertically center the text on a page?
Neil G's user avatar
  • 17.4k
45 votes
4 answers

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} \...
Julian Lamas-Rodriguez's user avatar
29 votes
2 answers

Equations inside enumerate aligned on item's number

If I type \begin{enumerate} \item \begin{align*} eqn 1 eqn 2 \end{align*} \end{enumerate} the label will appear on the first lines and the equations will ...
richtera's user avatar
  • 1,501
16 votes
1 answer

How to split and align equations when they are inside an enumerate environment?

How to make the first line of aligned equations sit in the same baseline as the bullet and make the equation left justified? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{...
kiss my armpit's user avatar
184 votes
2 answers

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?
csgillespie's user avatar
  • 5,028
35 votes
4 answers

Problem with Table Vertical Alignment

I want a table whose first column is aligned top, second column is aligned middle, and third column is aligned bottom; like this: I wrote the following code: \documentclass{article} \usepackage[...
Sadeq Dousti's user avatar
  • 4,360
28 votes
2 answers

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 ...
anderfo's user avatar
  • 381
25 votes
2 answers

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 ...
nw.'s user avatar
  • 612
15 votes
1 answer

Vertical alignment in tabularx X column type

I'd like to create a new column type which works exactly like a X column from tabularx but that also has the text vertically centered. I tried with the newcolumntype command but I can't figure out ...
franz's user avatar
  • 2,347
89 votes
4 answers

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 '...
Alan Munn's user avatar
  • 210k
38 votes
2 answers

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} \...
F'x's user avatar
  • 2,991
17 votes
2 answers

How to align picture top left in a table?

is there a way to create a table with 2 columns, in the left column should be some text, in the right column should be a picture. The problem is - to align both to the left, top corner. The image ...
Skip's user avatar
  • 1,135
221 votes
2 answers

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?
night owl's user avatar
  • 7,323
34 votes
2 answers

How do I force TeX to completely use the 1st column?

How do I force TeX to completely use the 1st column before writing to the second column? Right now I dont have enough content to fill one whole page. So the left and right columns are equally filled, ...
epsilon8's user avatar
  • 5,781
144 votes
8 answers

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} \...
Chris Cannon's user avatar
  • 1,695
38 votes
9 answers

Centering mutirow text in a table whose cells contain several lines of text

I'd appreciate advise in centering a multirow text. In the MWE below the multirow text "spring" is NOT centered over the three rows that it spans. \documentclass[10pt,a4paper,twoside,open=right,...
Olumide's user avatar
  • 1,969
20 votes
2 answers

How to vertically center the \vdots in this node?

I'd like the \vdots in this chain to have the same distance to both of the arrows. I know that I could manually shift the node so that it looks right, but there must be a better solution. How? \...
Tim N's user avatar
  • 10k
11 votes
2 answers

Centering a TikZ picture around an area

I often find myself in the following situation: A tikzpicture of mine consists of a main area and some outer material like text labels which are hardly symmetric around the main area. If such a ...
Martin Scharrer's user avatar
11 votes
1 answer

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 ...
Stefan Witzel's user avatar
36 votes
2 answers

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 ...
dr.bunsen's user avatar
  • 1,771
54 votes
3 answers

beamer: Top-aligning columns within a top-aligned frame

According to section 3.10 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). ...
lockstep's user avatar
  • 245k
47 votes
3 answers

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} \usepackage[...
Second Person Shooter's user avatar
27 votes
1 answer

Why does \vspace*{0pt} add vertical space?

I'm trying to format the title of the table of contents using the tocloft package. It inserts code that looks like the following. \par \vspace*{\cftbeforetoctitleskip}% % code to typeset \...
TH.'s user avatar
  • 61.6k
25 votes
3 answers

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 ...
user3671's user avatar
  • 665
19 votes
2 answers

Set table position to top [duplicate]

some content \begin{table}[t] \begin{tabular}{c c c} tabular content \end{tabular} \end{table} \chapter{new chapter} The output is: First page: some content Second page: table centered vertically ...
scdmb's user avatar
  • 1,213
18 votes
4 answers

Vertically centered horizontal rule filling the rest of a line?

I'd like to have a horizontal line extending from the end of the text on a line to the right margin. So far I've found \hrulefill and \leaders\hrule\hfill, but these draw a line that's flush with the ...
jtbandes's user avatar
  • 4,132
15 votes
1 answer

vertically align different size images in a figure* environment

I have an figure* environment with the following \begin{figure*} \centerline { \subfloat[1]{...} \subfloat[2]{...} } \end{figure*} The images are different heights. How can I ...
Ferguzz's user avatar
  • 577
12 votes
1 answer

Bad alignment of Author and Title in Beamer class (Warsaw theme)

I just uninstalled TeX Live 2016 and installed TeX Live 2017 and I noticed that the vertical alignment of author and title in any beamer presentation with Warsaw theme has been disrupted. In this ...
Francesco Sampaolesi's user avatar
153 votes
5 answers

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} \title{...
Rebecca Morgan's user avatar
70 votes
2 answers

Align text in minipage at same height

I need to put some text at the same height in my page, and I'm trying to do it with a minipage, but I'm not able to do it since they get centre-aligned. This is the LaTeX for the figure I've uploaded:...
Matteo's user avatar
  • 1,727
60 votes
4 answers

What does \smash do, and where is it documented?

I see several users in this forum talk about \smash. It is apparently defined in base TeX. What does \smash do? For future reference, is there online documentation where I could find this?
vy32's user avatar
  • 4,660
47 votes
1 answer

How to vertically align underbraces

I am trying to balance underbraces in the equation below, how can I ensure that both underbraces at the same depth? \begin{equation} y = \underbrace{ \left [ x^2 + r^2 (a^2+\frac{a^{0.3}}{b}) \right]}...
Emmet B's user avatar
  • 1,139
45 votes
2 answers

p,m and b columns in tables

I wonder why p columns are aligned at the bottom and b columns aligned at the top? created with this code: \begin{tabular}{|p{0.3\linewidth}|m{0.3\linewidth}|b{0.3\linewidth}|} \hline \centering ...
Matthias Pospiech's user avatar
39 votes
6 answers

Vertical Alignment in multirow using cells with >1 lines

I want to vertically align (best would be to center) the text ("TEST") in the left (yellow) column of the following table. It works fine with multirow when every row has exactly the hight of one line: ...
Philipp's user avatar
  • 393
27 votes
4 answers

Placing Subfigures vertically

I want to use subfigures to place three figures like this: The following is the code I used: \begin{figure} \begin{tabular}{|c|c|} \hline \multirow{2}{*}{ \begin{subfigure}[h]{0.3\textwidth} ...
Ali's user avatar
  • 1,281
23 votes
2 answers

minipage environment with bottom-aligned

I would like to make my figures with bottom-aligned, but the arrows are still in the center. Here is my code: \begin{figure}[!ht] \centering \begin{minipage}[c]{0.2\textwidth} \includegraphics[...
Ginger's user avatar
  • 1,397
23 votes
2 answers

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, ...
Roly's user avatar
  • 4,064

2 3 4 5