{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
3answers
717 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
769 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
678 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
107 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
641 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
2k 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
563 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
330 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
239 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
2answers
64 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
134 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
2k 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
2answers
1k 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
401 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
2k 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
970 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
105 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
395 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
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
1answer
814 views

Positioning of numbers in gb4e.sty examples

I'm planning to use the following numbered examples in a document (see example below). I would like the number to be at the top of the example, but for the ones with diagrams it ends up in the middle. ...
7
votes
2answers
401 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
279 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
9k 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
663 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
126 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}{% ...
7
votes
1answer
187 views

Setting leading in LaTeX using \fontsize: what are the advantages and disadvantages?

LaTeX has several ways of setting leading without changing anything else, including: \fontsize{default font size}{value of leading}\selectfont \linespread{ratio of leading to original} ...
7
votes
1answer
1k views

List environment inside the tabular environment: extra line at top preventing alignment

I have a LaTeX question that is bugging me. I have been trying to get a list environment to appear correctly inside the tabular environment. So far I have gotten everything to my liking except one ...
7
votes
1answer
739 views

Aligning a marginpar with a line box inside a list

I'd like to write a LaTeX environment that automatically places a \marginpar next to the first line of text within. However, that first line of text might not be part of an ordinary paragraph; it can ...
7
votes
0answers
155 views

align margin note to vertical center of text block or environment, with optional bar

Here is what I wish to achieve: section title as usual (optional) subsection in left-margin, aligned to top of its contents group of text/theorem/etc blocks within subsection margin note or label ...
6
votes
4answers
193 views

Vertical alignment of text in a table

I have two images in two different column in a table and in the third table i want to have a text, ideally as a list, but when i write the text it begins at the last row and goes down from there, i ...
6
votes
4answers
150 views

Enumerate environment without vertical space in tabular

I am trying to typeset a hierarchical proof structure as defined by Leslie Lamport in How to Write a Proof. In particular, I am trying to typeset the portion Assume: 1. $r \in \mathbf{Q}$ ...
6
votes
2answers
887 views

Putting text at the side of a tikzpicture

I've just completed a tikz diagram. I need the text In the following diagram, what can you say about $\angle F$, $\angle B$ and$\angle E$? to go to the right of the diagram to save space on ...
6
votes
2answers
263 views

LaTex Error Help- Math Related

I'm trying to make an equation array \begin{eqnarray*} f^{(a)} (0) &=& \frac{a!}{2 \pi i} \oint_{ |z| = \frac{\varepsilon}{r}} \frac{f(z)}{(z)^{a+1}} dz &=& &=& ...
6
votes
1answer
2k views

How to prevent the paragraphs to spread out over the page?

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 ...
6
votes
2answers
4k 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 ...
6
votes
3answers
12k views

how to vertically align a cell in a table?

I have a table that I define \begin{tabular}{lllllllllllll} \includegraphics[width=7.3in]{img1.pdf} & \includegraphics[width=7.3in]{img2.pdf} & \includegraphics[width=7.3in]{img3.pdf} & ...
6
votes
3answers
1k views

Same height for list of comma-separated vectors

I am trying to typeset a list of vectors spanning a multidimensional space, using the notation span{v_1,v_2,...,v_n} (I haven't found out how to inline it as rendered latex) i.e.: span \{ ...
6
votes
2answers
272 views

Aberrant vertical spacing with {align} and friends?

Consider documents with the following preamble: \documentclass[12pt]{article} \usepackage{amsmath} Question #1. Why do we get bad alignment with the following code? \noindent ...
6
votes
2answers
789 views

Shift page up slightly. Cant get \enlargethispage*{-2\baselineskip} to work

How would I shift up my 2nd page to the 1st page? There seems to be alot of space left on the 1st page but I cant get the 2nd page to move up to the 1st page. I tried using ...
6
votes
2answers
605 views

Alignment problem of empty cells when doing multirow/multicolumn cells in TikZ matrices

This is a question which has been discussed here and here. One of the solution discussed is to use fit to cover empty cells. However, while trying it, it displayed an alignment problem between the ...
6
votes
3answers
188 views

Specify alignment per column in align equation

Using the following mwe i have not yet found a way to align the formulas correctly. \documentclass{article} \usepackage{mathtools} % extends amsmath and fixes some of its quirks ...