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

3
votes
1answer
59 views

Why is my document moving out of alignment after the first page

I already tried using \noindent but this error actually keeps happening on every other page. The problem can be seen below when observing the difference in alignment of the (4) and the (5)
2
votes
1answer
620 views

Aligning equality sign with overset text

I'm typing a logic definition within an align environment that uses \overset{def}{=} from the amsmath environment. However, the new sign is aligned vertically based on the equality sign, and not on ...
4
votes
2answers
140 views

Boxing a number and aligning it vertically along the baseline

I am making a big list of exercises and I'd like to box the number of the exercise at each line. I found this: \tikzstyle{square}=[minimum width=0.5cm, minimum height=0.3cm, rectangle, rounded ...
2
votes
2answers
107 views

How to align an image to the bottom inside a table cell

I created the following document: Code: \documentclass[11pt]{article} \usepackage[a5paper]{geometry} \usepackage{tabularx} \usepackage{graphicx} \begin{document} \begin{tabularx}{\textwidth}{|X|} ...
8
votes
4answers
389 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 & ...
4
votes
2answers
1k views

Center my dedication in my thesis

Currently, I have \documentclass[a4paper, % Seitenformat 12pt, % bibliography=totoc, % Literaturverzeichnis in das Inhaltsverzeichnis ...
5
votes
1answer
374 views

flush bottom an environment

Suppose, I have defined an environment called myenvironment which typesets multiple lines of text using various formats. So, the height of the environment depends on the text that it has which is ...
3
votes
2answers
271 views

tabular can't vertically align the cell to the top

I have the following code: \documentclass[11pt]{article} \usepackage{array} \begin{document} \begin{tabular}{|p{1cm}|m{1cm} | @{}m{0pt}@{}} \hline 1-1 & 1-2&\\[1cm] ...
4
votes
1answer
53 views

Vertical alignment of the `aligned` environment in table cells

I think most people will agree that the vertical alignment in the table cells below is less than ideal--especially if I want to remove the \cmidrule to be more in line with accepted "best practices" ...
2
votes
1answer
150 views

How do I center my title (both horizontally and vertically)?

I'm trying to create a centred title, both horizontally and vertically on the page. I'm rather new to latex - so far, I've tried the code below without success: \begin{center} \title{Title} ...
2
votes
1answer
104 views

vertical placement of graphics in marginpar

I'd like to put small graphics into the margin via \marginpar. The top of the figures shall be aligned to the top of the text line they refer to. I found around here the suggestion to put a \vskip0pt ...
7
votes
1answer
170 views

m column doesn't center text vertically

I want vertically centered text in a simple table like this: \documentclass{article} \usepackage{array} \newcolumntype{Z}{>{\centering\arraybackslash}m{0.2cm}} \begin{document} ...
3
votes
1answer
237 views

Tikz vertical alignement text and shape

I want to vertically align sans serif font with a rectangle. The following code show the problem: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary[positioning] ...
4
votes
2answers
105 views

(How) Can I vertically align parts of cell contents differently?

I am trying to create the following game matrix and am wondering how exactly can I vertically align the cell contents? Especially since I need them to be offset differently in the same cell.Is this ...
6
votes
1answer
525 views

Code improvement and suggestions in template

Consider the following MWE: \documentclass[12pt,twoside,letterpaper]{report} \usepackage[text={4.95in,7.5in},centering,bottom=1.5in,showframe]{geometry} \usepackage[dvipsnames]{xcolor} ...
12
votes
2answers
21k 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] ...
4
votes
1answer
2k 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 ...
3
votes
3answers
782 views

Vertical alignment in tabular cells with fixed height

I have the code: \documentclass{article} \usepackage[a5paper]{geometry} \begin{document} \begin{tabular}{ | c | } \hline top\\[8ex] \hline center\\[8ex] \hline bottom\\[8ex] \hline ...
9
votes
3answers
9k 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 ...
3
votes
3answers
122 views

Bad vertical alignment in latex \tabular

I've got a little question about my tabular vertical aligment. I've a two-column tabular with letter and text : \begin{tabular}{p{0.1\textwidth} p{0.8\textwidth} } Hypothèse & Description\\ ...
6
votes
2answers
221 views

Why doesn't LaTeX vertically center contents of table cells by default?

Or perhaps provides an easier way to do so? Most tables rendered (that I have witnessed) seem to require vertical centering of content in table cells, purely for aesthetics. So what is the reason that ...
6
votes
1answer
248 views

Use \textquotedbl in repeating cells in pgfplotstable

I have Table 1. Repeating values in consecutive cells of a column should be replaced with \textquotedbl as in Table 2. Also \textquotedbl should be aligned centered according to column width although ...
5
votes
2answers
613 views

How to put the text at the top in fancyhdr

I made a document with 2 pages and headers: Can I put "Page 2 of 2" at the top of the 2-nd page, so it was vertically aligned with "Commercial invoice"? How can I manage the padding between the ...
9
votes
1answer
448 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? ...
4
votes
1answer
136 views

How to lock a static text in the margin in ConTeXt?

Even though I have a some manuals at hand I can't seem to find a solution for my problem. Within an invoice I created with ConTeXt (MkIV) I have placed a short paragraph in the right margin. This ...
8
votes
1answer
285 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: ...
7
votes
2answers
2k views

Managing checkbox representation

I tried to create a checkbox, analogous to Creating Boxed Check Mark This woks correctly: \documentclass{article} \usepackage{amssymb} \begin{document} ...
2
votes
2answers
253 views

Vertical space depending on height of marginpar

I'd like to set a law text consisting of articles, marginal notes and, in most cases, paragraphs (\abs). The marginal notes should always start on the same line as the first line of the article text, ...
3
votes
1answer
231 views

How to increase the vertical space between two “touching” tables?

I skimmed Can't generate vertical space between tables but am looking for sth slightly different: I don't really want to keep the tables together necessarily - I'm happy to let LaTeX (or whoever ...
2
votes
1answer
1k views

How to vertically align title in LaTex

I'm finishing my master's thesis and would like to move the title vertically more down towards center of the page...I googled, but couldn't get it to work =/ Here is a portion of my code from the ...
1
vote
0answers
39 views

Why does \begin{figure} center my image vertically? [duplicate]

If I insert image into my document as such: \includegraphics{spss24fore.png} The image is aligned at top of the page, but when I use: \begin{figure} \includegraphics{spss24fore.png} ...
3
votes
1answer
926 views

Multirows, multicolums and vertical centring in the tabu environment

I have a table, using the tabu environment, in which I would like multirow and multicolumn cells. Inside the cells, any content that doesn't vertically fill the cell should be vertically centred. ...
4
votes
1answer
385 views

tabularx: bottom alignment on r or l-columns when X column wraps

In tabularx, when the X-column wraps on more than one line, l/r/c-columns remains top aligned: MWE: \begin{tabularx}{5cm}{lXr} 1 & qwer asdf zxcv qwer asdf zxcv qwer asdf zxcv & 1 \\ 2 ...
3
votes
3answers
145 views

Align text on a vertical axis similar to movie credits

I would like to align text on a cover page in a way often seen in movie credits, with the "key" ragged right and the "value" left: I use two minipages next to each other to achieve this. However, ...
4
votes
0answers
191 views

Aligning a table (vertically) with a subfigure [closed]

I want to show three pictures and a tabel with explanatory text: --------- --------- | | | | | Pic 1 | | Pic 2 | | | | | --------- --------- ...
2
votes
2answers
167 views

How can I get Table of Contents to fill the page?

If the Table of Contents has only a few lines, how can I add spaces between the lines so that it fills the whole page? Is there a command similar to \vfill ?
7
votes
1answer
5k views

beamer reference list

I am using Beamer with biblatex. When I used the code below, it produced a bibliography which has three slides. But the references in the last slide are in the center rather than top. So the first ...
11
votes
1answer
233 views

Alignment rules

I find myself quite frequently in the need to check whether some elements on my page are aligned exactly as intended. As a result, I usually end up magnifying the output 400% and using a rule over my ...
1
vote
0answers
29 views

mdframed in two column book vertical alignment problem (first page only) [duplicate]

I am trying to align the columns of the first page but without success into the mdframed. Any ideas? \documentclass[11pt,a4paper,twocolumn,twoside]{book} \usepackage{lipsum} \usepackage{mdframed} ...
6
votes
1answer
1k views

Fix height of frametitle independent of content

I'm using a custom beamer theme from my university. The frametitle height depends on whether any characters extend below the baseline. A frametitle named "example" is higher than a title named "test". ...
8
votes
2answers
813 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 ...
2
votes
1answer
2k views

Line return/spacing after \hrulefill

I'm new to LaTeX and am trying to make a simple resume. I'd like my left-justified name to appear above an \hrulefill line followed by my right-justified address on the next line. However, when I do ...
6
votes
3answers
4k views

\underbrace and align environment

I want to typeset a proof and want to emphasize what I do in each step e.g. by underbracing an equal-sign when I substitute a variable. In addition I also want to align equal-signs in every line. ...
3
votes
1answer
489 views

Change abstract page position to top in report format

My document type should be report and I need to start my abstract at the top of the page. But with the below code, the abstract is centered on the page. What do I need to do? (I cannot change the type ...
0
votes
1answer
5k views

Centering table in landscape page [duplicate]

I'm trying to get a table centered both vertically and horizontally in a landscape page. I've tried some of the solutions proposed around here but I can't get them to work in my specific case. Here ...
3
votes
1answer
342 views

Vertical misalignment due to beamer onslide? [duplicate]

The following MWE displays the problem: \documentclass{beamer} \begin{document} \begin{frame}\onslide<+-> \begin{tabular}{p{4cm}r} Text\\Text & Text \\\hline Text\\Text & Text ...
2
votes
1answer
145 views

Last cell in complex table not behaving

I am having a hard time figuring out why the text in the last cell on each row of this complex table I am creating is not positioning correctly. As you can see from my code, the issue only occurs when ...
19
votes
2answers
2k 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 ...
7
votes
3answers
465 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} ...
5
votes
2answers
2k views

Problem controlling vertical alignment of minipage containing only math

I would like to insert a large box containing maths into a line of text and align the box with the top of main line. Strangely, the argument "[t]" gets ignored in the first example below (the second ...