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

8
votes
1answer
281 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
1answer
715 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
960 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
96 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
5k 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 ...
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
5k 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
1k 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
1answer
224 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
141 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 ...
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
278 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 & ...
7
votes
3answers
4k views

Problem with TikZ and vertical alignment of text inside nodes

I have a problem in TikZ with the vertical alignment of text inside nodes. With a very minimal example like this: \usetikzlibrary{arrows,positioning,shapes.geometric} \begin{tikzpicture}[% ->, ...
7
votes
3answers
150 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
2answers
1k views

Subscript vertical position dependent on presence of superscript - how to change? [duplicate]

Possible Duplicate: Subscripts for primed variables If I have a variable which is always subscripted but only sometimes superscripted, the vertical position of the subscript varies. For ...
7
votes
4answers
5k 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
345 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
299 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
3k 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} ...
7
votes
3answers
169 views

Vertical alignment of decorated numbers

I have a set of numbers with some decorations (circled or rounded) using tikz or pifont package. The issue is they look ugly because they don't look like aligned. Is there way to align (or move) them ...
7
votes
4answers
4k 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}{*}{ ...
7
votes
3answers
556 views

A vertically centered equation number on a multline environment

The multline environment does exactly what I want in splitting a long formula between lines by utilizing the horizontal space to the fullest. (I don't want the alignment features of the align ...
7
votes
3answers
930 views

Stretching a framebox over the whole page

Does anyone know how to stretch a (framed) box down to the end of the page? In effect something like \documentclass{scrartcl} \begin{document} sometext ...
7
votes
3answers
174 views

Vertically center image with text midpoint

I want to vertically align the center of an image with the vertical center of the text on the same line using \raisebox. Using a macro is a must since it will be used many times (and multiple times on ...
7
votes
3answers
845 views

Align baseline in multicol

I'm using the multicol package and would like to align the baseline of the two columns. The simple use of a \paragraph heading seems to throw off the alignment, which can be pretty jarring visually. ...
7
votes
3answers
784 views

Move the page number to the very bottom of the page

I need to move the page number to the very bottom of the page, so it scrapes the bottom edge of the actual sheet (US letter). How do we do that?
7
votes
1answer
165 views

Rule at the middle of a page

Is it possible to draw a (dotted) horizontal rule at the middle of the page (same distance from the top as from the bottom) independent of the rest of the text (perhaps in some way overlayed over the ...
7
votes
2answers
100 views

Making sure that text is aligned between bottoms (and tops) of pages

Here is a LaTeX document: \documentclass[a4paper,11pt]{book} \usepackage[paper=a4paper,twoside=true,lmargin=4cm, rmargin=4cm,bindingoffset=0cm]{geometry} \begin{document} Lorem ipsum dolor sit ...
7
votes
1answer
2k views

Strange space left above wrapfig figures

I'm using wrapfig to put a small figure at the start of each paragraph. For the first paragraph of the page, this lines up neatly with the top of the text. But for subsequent paragraphs, the figure ...
7
votes
2answers
77 views

Align numbers with each other

In using the align* environment, how can I get specific numbers to align with each other? In the following example, I want each term of the top sum and the bottom sum to be aligned with each other: ...
7
votes
1answer
126 views

In the geometry package, what's the practical use of setting heightrounded=true?

In the geometry package, what's the practical use of setting heightrounded=true? The documentation says sth about avoiding cases of "underful vbox", but I don't see why I need to worry about it. When ...
7
votes
2answers
190 views

Automatically Raising Subscripts

I have the following expression J_{ne}\boldsymbol{\mathsf{J}}_{ne}^{-1} which is awkward in the sense that as the second (sans-serif) J has a superscript that the subscripted indices are lower than ...
7
votes
2answers
292 views

Ensuring a paragraph uses at least a given height?

I'm making a custom document class based on memoir, and I don't know how to implement the chapter precis so that it does what I want (the chapter precis is a small optional paragraph that follows ...
7
votes
3answers
684 views

An environment for writing regular-font pseudocode

I want to create a pseudocode environment that looks like this: Basically, the font doesn't change - it's just the same as that of the surrounding text. It allows mathmode. And there is a box ...
7
votes
2answers
932 views

How to place two code snippets next to each other with minted?

The minted package for code highlighting comes with a float environment called listing. Now I would like to place two of this code listings next to each other, but I have no idea how to do this. I ...
7
votes
4answers
667 views

New Large Math Symbol

I want to use symbols from the phaistos package as "numbers" This means that I want to type something like: \documentclass{amsart} \usepackage{phaistos} \newcommand{\lo}{\text{\PHbee}} ...
7
votes
2answers
100 views

Uneven vertical alignment with $\in$

Here's a simple example: \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb} \usepackage{commath} \newcommand{\st}{\text{ s.t. }} \begin{document} \[ (x_n) ...
7
votes
1answer
564 views

\vspace after \vfill ignored

\vfill Text first line \vspace{1cm} Text second line \cleardoublepage The \vspace is unfortunately ignored by LaTeX: The resulting document has no vertical space added between the two lines. Why is ...
7
votes
1answer
1k views

Aligning a Tikz Picture in line with the surrounding Text

I'd like to align a Tikz Picture in line with the surrounding Text. Here is a MWE Example: \documentclass[a4paper,10pt]{article} \usepackage{tikz} ...
7
votes
1answer
522 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 ...
7
votes
2answers
2k views

Push marginpar up

I'm using the marginpar to put side notes, but instead of having them facing the line where they are called, I would like the whole marginpar to be pushed up. How can I achieve that? I tried adding a ...
7
votes
1answer
1k views

Text positiong in cell (tabular)

I'm using the beamer class and this code: \begin{tabular}{|c|l|}\hline \includegraphics[scale=0.4]{2_1} & hey ho \\ \hline s & ho hey \\ \hline \end{tabular} and I get this output: ...
7
votes
1answer
4k views

aligning a multiline formula with the bullet of itemize

I would like to use a multiline equation into an itemized list, but such that the bullet of the list is aligned with the first line of my equation. The current code I use is like this: ...
7
votes
2answers
319 views

How can I underline mathematics using a harpoon of variable size?

I am a new user of LaTeX. I want to underline the answers to mathematics problems using a \rightharpoondown symbol. If possible, I would like a \rightharpoondown of variable size, as in the image ...
7
votes
1answer
232 views

What is a good practice to achieve vertical placement? (e.g. a Titlepage)

My titlepage looks right now like this: using this code: \documentclass[a4paper,11pt,oneside,titlepage,german,final]{scrreprt} \usepackage{babel} \usepackage[latin1]{inputenc} ...
7
votes
1answer
2k views

lstlisting, tt fonts, and alignment.

I (mostly) love the listings package, which I have started migrated to from verbatim for code listings. I prefer to continue to use teletype for code, and so I changed my default listing configuration ...
7
votes
3answers
112 views

How to start a paragraph from the middle of the page?

How to start a paragraph from the middle of the page, when something is already written in the first half of the page? e.g. \chapter*{Blabla} \lipsum[1-2] \gotohalf \lipsum[3] <- the first line ...
7
votes
2answers
810 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} ...
7
votes
1answer
348 views

Small text in table does not recalculate line spacing

I'm using tabu to create a table that has a couple multi-line cells (the m style). However, when I set the line spacing outside the table, it seems that the space between lines is not recalculated in ...