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

7
votes
4answers
119 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
435 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
3k 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
960 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
2answers
257 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
3answers
895 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
237 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
108 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
3k views

Understanding titletoc example (and vertical alignment on line)

EDIT: TLDR summary (as I wrote in comments): What I want from this question (and couple of others referenced herein) is: -- section number (label) to be top-aligned with the title + AND I want the ...
7
votes
1answer
1k views

Top aligning text contents of two parboxes or minipages

I'd appreciate help top aligning the contents of \parboxes containing texts of different sizes as shown in the following graphic. Because one of the texts has a different size it appears to hover ...
7
votes
2answers
87 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
201 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
370 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
289 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
381 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
766 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
1k 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
1answer
818 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
697 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
117 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
4k 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 ...
7
votes
1answer
765 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
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
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} ...
7
votes
1answer
247 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
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 ...
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
2answers
98 views

Beamer: \abovedisplayskip inactive in sublist?

A weird mechanism is observed below: \documentclass{beamer} \begin{document} \abovedisplayskip=0ex \belowdisplayskip=0ex \frame{\frametitle{Title} \begin{itemize} \item text text text text text text ...
7
votes
3answers
181 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
1answer
4k 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 ...
7
votes
1answer
467 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 ...
7
votes
1answer
4k views

Vertical alignment of tikzpicture with text?

I have some text, and a corresponding tikzpicture, both of which are to be part of a test question, and which are thus included as part of an \item in an enumerate environment. Like this: \item ...
7
votes
1answer
158 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} ...
7
votes
1answer
1k views

Vertical alignment of cells in LyX

How can you set the vertical alignment of table cells in LyX? The right-click menu shows three choices ("Top", "Middle", "Bottom") but none of them is enabled, they are all greyed out.
7
votes
1answer
109 views

How to control the alignment of the brace in a dcases environment

The following code \begin{equation} \begin{dcases} u = \frac{\sqrt{2}}{2}(i+j)\\ v = k \end{dcases} \end{equation} results in the following display that I find ...
7
votes
1answer
465 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 ...
7
votes
1answer
8k 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: ...
7
votes
2answers
3k views

Place four algorithms (algorithm2e) in a subfigure and arrange them in two rows and two columns

I want to arrange four algorithms set with the algorithm2e package in two rows and two columns, as shown in the figure below. I've tried the subfigure package and have also read several related ...
7
votes
1answer
3k 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 ...
7
votes
2answers
2k 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 ...
7
votes
2answers
2k views

How can I add vertical space to a beamercolorbox to make it align with another one?

I'm doing beamer slides in the 16:9 aspect ratio, so I want to use a more horizontal flow than I was when I had 4:3 slides. For example, I'd like to place a theorem and its proof side-to-side rather ...
7
votes
2answers
110 views

How to place an image in a chapter title (perfectly centered)

Before to begin, I know about: \chapter{My Chapter Title\hfill\includegraphics{image}} But it's not what I'm searching. I want the following result: Next are all the methods I tried (and their ...
7
votes
2answers
477 views

Vertical space before list environment within a macro

UPDATE My problem comes down to the following: vertical space is added before the \items of a list within a macro. The layout I want to use is based on the classicthesis-styled CV (currvita) template ...
7
votes
1answer
326 views

How to keep the vertical position of pictures in a presentation

I like to have the pictures in the following presentation each on the same position. Unfortunately the position changes after the second slide. How to keep the (vertical) position? Pictures are all ...
7
votes
1answer
12k 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 ...
7
votes
1answer
721 views

Help with vertically aligning enumerate labels

I am just getting started using latex and am having some problem vertically aligning the enumerate labels when listing tables (see image below). I would like to have the '(a)' label aligned vertically ...
7
votes
1answer
138 views

Alignment in Rotated Text

Does anyone have a workaround to this problem? I am working on my CV, and want to use some rotated text to improve the presentation. Here is a MWE. \documentclass[10pt]{article} ...
7
votes
1answer
3k 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}{% ...