{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
3answers
326 views

Align points with text vertically

I have the following code: \begin{itemize} \item SPOJ - everyone loves SPOJ\\ - I love SPOJ \end{itemize} And what I'd like to do is display the two hyphens at the same position. ...
8
votes
1answer
5k views

Tikz node alignment

How can I align (or shift) Tikz nodes? I have the following figure (see below), which consists of multiple horizontal nodes. I want to align the data node with top/bottom of nodes A-D (i.e., red ...
8
votes
1answer
606 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
2answers
2k views

\pbox vertical alignment

What's going on here, why are the TEXTs not aligned? \documentclass{article} \usepackage{pbox} \begin{document} \hrule \pbox[c][20pt][b]{\textwidth}{TEXT\\ Short} ...
8
votes
1answer
2k 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
12k 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: ...
8
votes
1answer
3k 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 ...
8
votes
1answer
1k 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
5k 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
1answer
623 views

Correctly align vertical text on a baseline in pgfplots

I'm proud to announce that I have a large number of PGFplots in my document. But ... I have a small problem with the vertical alignment of text throughout my plots. What's the easiest way to align ...
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
1answer
18k views

Matrix equation (esp. row vectors)

I'd like to write the matrix equation A = (x y) B (x y)^T, where (x y)^T is written as a column vector and B is a 2x2 matrix written as such. I can (almost) do this by, for example, the following: A ...
8
votes
1answer
4k views

Center sideways text in table

I'm trying to make a two-column table environment. The left column is supposed to center the sideways text "Tips" vertically and the right column should be a normal paragraph column. Here's what I ...
8
votes
1answer
4k views

How can I balance the last two columns of ACM SIGPLAN article?

I need to balance the heights of the last two columns of my ACM article that is typeset using sigplanconf.cls. This class file defines the following command: \newcommand{\balancecolumns}{% ...
8
votes
1answer
313 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
811 views

Baseline shift with fontspec?

Is there a way to manually adjust the vertical position of a font using fontspec (in XeLaTeX)? Such a feature would be quite useful when typesetting Asian text, since different font vendors often ...
7
votes
3answers
3k 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
3answers
189 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
4answers
7k 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
924 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
535 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
2answers
4k views

centering vertically the abstract element

How can I put at the center of the page the element abstract?I put it in a blank page but it is at the top. I would center it vertically.any idea?
7
votes
3answers
141 views

Reposition Text around Images

So I'm trying to work on a visual layout for a kind of Xmas card. The idea is to have a pictures in the upper left and lower right corners with the family name and date centered in the upper right ...
7
votes
3answers
305 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
2answers
6k views

Automatic vertical alignment of a single float on a dedicated page

In my large latex document, I have some figures which take a considerable height of the page (80-95%). Latex puts each of these figures alone on a page, aligned on top. I would like to have each ...
7
votes
4answers
132 views

Proper alignment of three boxes

I want two text boxes to appear next to a photo which is 5cm wide. The combined height of the boxes may be greater than or less than the height of the photo. If the combined height is less than the ...
7
votes
3answers
558 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
2answers
448 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
2answers
276 views

Aligning the bottom of a picture and a chapter title

Consider the following example, where the chapter number is ginormous and put in a blue box: \documentclass[svgnames]{scrbook} \usepackage{titlesec} \usepackage{tocloft} \usepackage{tikz} ...
7
votes
5answers
14k 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. ...
7
votes
3answers
1k 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
309 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
115 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
4answers
125 views

Aligned underbraces between amsmath equations

I have an \amsmath aligned environment containing some equations aligned with &=. I want to be able to place underbraces between the equations in such a way that that both the contents and “point” ...
7
votes
2answers
192 views

Vertical alignment of equations

I'm trying to put three equations in the same line. I used the tabularx package as was advised by this post: How to place and number 3 short equations in one line?. However since I am using ...
7
votes
2answers
90 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
325 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
436 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
3answers
5k views

Vertically aligning images in beamer

I have a sequence of images I would like to animate in beamer. In each frame, I would like to have two images, say A and B, aligned vertically and centred on the page. All images are the same size. ...
7
votes
2answers
479 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
837 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
1answer
7k views

How to change the vertical position of the text in a frametitle

I'm wondering how to change the vertical position of the text in a frametitle? Take for instance this frametitle: I'd like to place the text, in this case "Introduction", a bit higher such that it ...
7
votes
1answer
953 views

How to omit vertical realignment when using cmidrule in different colors?

My question is similar to the one here How do I eliminate the vertical realignment when using arrayrulecolor with cmidrule? but can not be solved with the suggested answer (because the lines are ...
7
votes
4answers
723 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
210 views

LaTeX is stretching vertical paragraph skip although parskip=false

How can I stop LaTeX from creating vertical space between paragraphs to fill the page although parskip=false is set (actually by default in scrbook). Usually not a problem it becomes really ugly when ...
7
votes
2answers
130 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
2answers
3k 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
938 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

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
5k 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: ...