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
194 votes
9 answers
510k 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 ...
Rafid's user avatar
  • 5,717
56 votes
3 answers
14k 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?
RoflcoptrException's user avatar
35 votes
7 answers
35k 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 and ...
Sophie Alpert's user avatar
86 votes
3 answers
61k 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 ...
Peter Grill's user avatar
40 votes
2 answers
29k 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: \...
Stefe Klauou's user avatar
56 votes
8 answers
81k views

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
48 votes
5 answers
194k views

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
  • 5,035
193 votes
4 answers
206k views

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,495
43 votes
2 answers
72k 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 ...
lpdbw's user avatar
  • 8,340
230 votes
5 answers
98k 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?
Sophie Alpert's user avatar
26 votes
3 answers
5k 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 ...
Charles Staats's user avatar
12 votes
1 answer
9k views

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
207 votes
5 answers
399k views

Vertically center text on a page

How do I vertically center the text on a page?
Neil G's user avatar
  • 18k
29 votes
2 answers
47k views

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,521
227 votes
4 answers
591k views

Increase LaTeX table row height [duplicate]

How does one increase the height of the rows in a LaTeX table?
user1965914's user avatar
  • 2,501
47 votes
4 answers
23k 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} \...
Julian Lamas-Rodriguez's user avatar
16 votes
1 answer
2k views

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
191 votes
2 answers
140k 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?
csgillespie's user avatar
  • 5,218
35 votes
4 answers
53k views

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,380
29 votes
2 answers
8k 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 ...
anderfo's user avatar
  • 391
25 votes
2 answers
13k 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 ...
nw.'s user avatar
  • 612
15 votes
1 answer
9k views

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,407
92 votes
4 answers
29k 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 '...
Alan Munn's user avatar
  • 218k
39 votes
2 answers
49k 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} \...
F'x's user avatar
  • 3,011
17 votes
2 answers
16k views

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,165
236 votes
2 answers
527k 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?
night owl's user avatar
  • 7,593
35 votes
2 answers
20k views

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,961
150 votes
8 answers
158k 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} \...
Chris Cannon's user avatar
  • 1,755
40 votes
9 answers
99k views

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
  • 2,049
21 votes
2 answers
5k views

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
  • 10.2k
11 votes
1 answer
265 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 ...
Stefan Witzel's user avatar
11 votes
2 answers
5k views

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
36 votes
2 answers
44k 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 ...
dr.bunsen's user avatar
  • 1,781
58 votes
3 answers
92k views

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
  • 250k
18 votes
4 answers
14k views

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,262
77 votes
2 answers
134k views

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,797
70 votes
7 answers
104k 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 - ...
Mnementh's user avatar
  • 4,157
49 votes
3 answers
36k 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} \usepackage[...
Display Name's user avatar
43 votes
6 answers
70k views

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
  • 433
27 votes
1 answer
8k views

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
  • 62.7k
25 votes
3 answers
2k 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 ...
user3671's user avatar
  • 655
24 votes
2 answers
67k views

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,427
18 votes
2 answers
105k views

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,241
15 votes
1 answer
7k views

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
  • 587
12 votes
1 answer
616 views

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
160 votes
5 answers
237k 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} \title{...
Rebecca Morgan's user avatar
67 votes
4 answers
27k views

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,780
47 votes
2 answers
90k views

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
27 votes
4 answers
38k views

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,331
24 votes
2 answers
19k 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, ...
Roly's user avatar
  • 4,221

1
2 3 4 5
16