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

4
votes
1answer
2k views

Vertical align in tikz matrix

\documentclass[a4paper,12pt]{report} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{center} \begin{tikzpicture} \tikzset{square matrix/.style={ matrix of nodes, column ...
1
vote
2answers
6k views

caption ruining figure placement in minipage

I have tiny problem. I'm using minipage to put two pictures side by side in a two column article. The code is \begin{figure*} \centering \begin{minipage}[b]{.49\textwidth} ...
1
vote
2answers
466 views

Make \infty symbol horizontal align with 8 EXACTLY

as image \newlength{\abc} \settoheight{\abc}{$\infty$} \raisebox{.5\abc}{\infty}8 doesn't get desired thing.
0
votes
1answer
581 views

Align normal text inside a listing

I need a way to correctly align the escaped strings that I put inside of this listing. The problem is that they are presented right aligned. I want that this lines keep the indentation of the previous ...
3
votes
1answer
986 views

Vertically center text in a specific cell

I want to vertically center the "Characteristic" heading in its respective cell? \documentclass[a4paper,12pt]{article} \usepackage{booktabs} %for top, middle and bottomline \usepackage{multirow} ...
6
votes
2answers
733 views

Improper alignment of qed-like symbol when using equation to end

I use this code to define a symbol that I put at end of (maths) examples in my file. \newcommand\xqed[1]{% \leavevmode\unskip\penalty9999 \hbox{}\nobreak\hfill \quad\hbox{#1}} ...
7
votes
2answers
4k views

Dancing images in beamer

When creating a slide using pauses and \only, I am getting cases where the content shifts between slides. I have tried using overlayarea and overprint as described in Avoiding jumping frames in beamer ...
15
votes
2answers
618 views

Optional ornament

For chapters that end with a mostly empty page, I'd like to insert some form of ornament. The ornament should not be inserted if there is not enough room in the page. Is there some way of testing ...
3
votes
1answer
2k views

Vertical alignment of subfigures

So I have a document which in a lot of places uses one pstree (part of the pstricks package) and a simple tabular side by side...I do this with subfigures. The problem is that because the pstree image ...
7
votes
1answer
916 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 ...
2
votes
1answer
1k views

Table Cell Alignment - Last Column 'Misbehaving' - Simultaneous Vertical and Horizontal Alignment Problems

I am going a little crazy with alignment in the tabular environment. In the following code I would like both the top-left cell 'Green Die', and the last cell in the 2nd row '6' to be aligned ...
10
votes
2answers
3k 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 ...
2
votes
1answer
260 views

How can I build a box with multiple lines of content with two anchors?

I'm trying to create a macro \AST (or an environment, if that helps) that will let me typeset abstract syntax trees, in the following way: \AST{A}{\AST{B}{C\comma D}\comma E\comma \AST{F}{G}} should ...
1
vote
1answer
533 views

Align a parbox at the bottom of a table

Below, how can I align the \tiny text in the \parbox at the end of the right column table so that its last line is on level with the last row of the left column table? In general, it would not be a ...
2
votes
1answer
1k views

Why is my text vertically spread out?

Can anyone see from the following LaTeX fragment why the page got formatted the way it can be seen in the picture below? For some reason everything got centered vertically across the whole page. ...
1
vote
2answers
316 views

LaTeX equation positioning problem

With this portion of code \rm \setlength{\parindent}{1cm} Estimatorul nonparametric pentru functia de distributie cumulative, $F(x)$, in punctul $x$ este raportul de puncte intermediare care sunt mai ...
2
votes
2answers
2k views

alignment of text between 2 lines in align*

I have this: \begin{align*} &f(1) = -11 & &\mbox{while q satisfies} &q(1) = 11,\\ &f(-2) = 20 & &\mbox{} &q(-1) = 20 \end{align*} which puts the text "while" ...
20
votes
3answers
23k views

beamer: Top-aligning columns within a top-aligned frame

According to section 3.10 of the beamer manual, the t option top-aligns either every frame (when used as a class option) or a single frame (when used as optional argument of a frame environment). ...
8
votes
2answers
155 views

Make the enlarged digit vertically centered in normal text (digits almostly) height.

I want a digit inside around other digits could centered vertically in height, without affecting by normal font size setting, as image show: (The enlarged six is {\Large6}) but I couldn't get the ...
4
votes
1answer
577 views

Why is the left column of this table vertically-aligned to the bottom, no matter how I specify the column?

This document produces a table that mostly looks like I want it to look... except that I can't get the text in the left-hand column to be aligned in the vertical center. What I would really like is ...
16
votes
1answer
2k views

Align marginpar with beginning of paragraph

Is there a way to align a marginpar with the beginning of a paragraph, without cluttering the text of the paragraph? If I do the following, the marginpar lines up with the last line of the first ...
21
votes
1answer
8k views

Vertical alignment of inline images

Images appearing inline aren't always ideally placed relative to the baseline and risers of the text itself, so I frequently find myself doing manual adjustment, by eye, using \raisebox{}{} with a ...
6
votes
2answers
2k views

Alignment of item number in list containing a minipage

I would like to have the list number at the beginning of the item, and not centered as is the case for item (b) the example below. If I comment out the \usepackage{nccmath}, I get this, but then the ...
0
votes
1answer
1k views

Layout for certificate

This is my environment for the certificate: \newenvironment{alwayssingle}{% \@restonecolfalse \if@twocolumn\@restonecoltrue\onecolumn ...
7
votes
1answer
2k views

Centering xymatrix in equation environment

The xymatrix diagram does not seem to vertically align when grouped in an equation environment. For example, this code produces the following image (which seems to place the xymatrix 2.5em lower than ...
6
votes
1answer
213 views

The same height of text in a large document

I’m typesetting a large document that contains a lot of mathematics. The only problem is that the height of text on some pages that ends with a displayed formula is less than (about 3-6mm) the height ...
2
votes
1answer
4k views

Centering Text using multirow that overflows onto multiple lines

I am trying to create a table where one column has multiple rows. This is very easy to do using the multirow package. However, if I specify a width for this \multirow and my text overflows, the second ...
4
votes
2answers
2k views

Aligning text columns

I am using the following code to try to obtain something to the effect of Author: Laboratory Partners: Amos NG Rebecca ROYCROFT ...
12
votes
2answers
2k views

\addvspace can't replace \vspace

I want to replace \vspace with \addvspace in a command. When so doing, I get obtuse "something's wrong--perhaps a missing \item." errors. I'd appreciate an explanation of why this happens and how ...
39
votes
2answers
6k views

How to define a figure size so that it consumes the rest of a page?

Sometimes I don't need to have a specific picture size, but for layout reasons I would like to scale the image so that the rest of the page is filled. How can I achieve that?
4
votes
1answer
442 views

Want figure height to ignore side caption height

I use beside captions placed in a large margin area. Sometimes, the caption text is taller than the figure and this causes too much vertical space around the figure. I'd like the effective height of ...
23
votes
1answer
8k views

How to modify columns/column environments so they resize automatically to the largest column ?

This question was originally a duplicate of How can I add vertical space to a beamercolorbox to make it align with another one?. The response to that question was to add a vertical space according to ...
16
votes
1answer
1k views

Underline at the same level

I want to underline alpha's and beta's, but at the same level. I mean, I don't want but . Maybe there is already a command that make it but I couldn't find it. The second image was obtained with the ...
6
votes
3answers
1k views

Wrapped figure diverges from text level after sections

I have a big problem. I want to print an book with reportages. Every reportage has a headline (created by the section command), a teaser and an article. The teaser should be wrapped text and should ...
4
votes
1answer
2k views

Top-align two parboxes with tables

I am looking for a two-column solution: The left column contains one table, the right column several tables. I was thinking of using parboxes as follows: \parbox[t]{2cm}{\vspace{0pt} ...
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: ...
4
votes
1answer
2k views

Two tables vertically align

i have two tables, each of them has 4 columns. one is just below the other. i want to know how to make every column of the below table have same width of the column of the above table. it looks like ...
5
votes
2answers
4k views

Vertical space of \includegraphics[height=2cm]

I am trying to place an image on the right of some individual lines of text that do not stretch over the entire \textwidth. The image will go higher than the first line and I have to be able to ...
0
votes
1answer
415 views

setspace kill the \flushbottom, how to make the sep between footnote item equal that in normal text

I want double spacing, but then sep between footnote item is strange. I use setspace package, but it kill the \flushbottom mechanism. Is there a method after I set \linespread{2}, the footnote text ...
61
votes
3answers
31k views

How to get only one vertically centered equation number in align environment with two equations

What I have are two equations with align and I want one single equation number to refer to this system of equations. To illustrate, I have \begin{align} dr_t &= \kappa ( \theta - r_t ) dt + ...
2
votes
1answer
378 views

Pagebreak destroys page layout

I have the following code to add an appendix to my document: \appendix{} \chapter{Questionnaire} \pagebreak \includegraphics[width=1\textwidth]{questionnaire1.png} ...
3
votes
1answer
2k views

fncychap package - reduce vertical gap/space between header and chapter heading

The package fncychap, using \chapter places the chapter heading 1/3 down the page. How can we place it closer to the top? That is; the words "Test Chapter" closer to the header "My Header" in the ...
4
votes
1answer
703 views

Header doesn't align with decorative line

I use tabular in header with package fancyhdr. I added settototalheight to calculate the header height. Following is a small example. The question is that header doesn't align with the decorative line ...
10
votes
2answers
10k views

How to align image

If i have in my beamer presentation some list of items and on that slide i wanna add a picture, which i want to be aligned e.g. to right top corner. \begin{frame}[fragile]{III. Override pages} ...
12
votes
3answers
3k views

How can I save the bounding box of a TikZpicture and use in other TikZpicture

I need 2 different TikZpictures with the same bounding box (the one of the first TikZpicture) because I need a perfect vertical alignment of the subfigures side by side. Please, how can I handle ...
6
votes
1answer
2k views

Can I insert a vertically centered image in math mode?

In Mikael Öhman's answer to this question, he provides some code for placing an image in math mode as a symbol using the \mathord declaration. I can define a new command in the preamble using this, ...
9
votes
4answers
1k 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
1answer
1k views

Vertically align two boxes based on their top borders, not on baseline

I have two boxes which to shows text to the left and right of a document. \begin{minipage}[t][1in][t]{2in} {\Huge First line box 1}\\ {\footnotesize Second line box 1} \end{minipage} \hfill ...
8
votes
1answer
870 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
1answer
2k views

How to align the bottom of each column in \begin{columns}?

Option T is used to align the top of each column. Is there an option to align the bottom of each column? If no option, how to achieve the same effect? Note: Using option b is not the answer because ...