{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
926 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
3k 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 ...
4
votes
1answer
231 views

Problem with layout after including pictures

I can't resolve the problem with including pictures. When I add a picture by using \includegraphics my text doesn't flush to the bottom (as it should) but it move up. It happens especially when I add \...
27
votes
2answers
28k views

Aligning image and text on top, with minipages

I have an image (on the left) and a block of text (on the right), and I would like both to be aligned on their top. I am trying to use minipages for that: \documentclass{article} \begin{document} \...
7
votes
1answer
5k 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 \...
5
votes
2answers
7k views

Package keyval Error: No value specified for margin. — error from geometry

I'm using a resume template from the following URL: (res9b) to be exact. http://rpi.edu/dept/arc/training/latex/resumes/ The problem is that the resume template doesn't include a header. If I simply ...
5
votes
2answers
2k views

Problems with pictures in multicol

I am writing a short article for a magazin and want to have a two-column text. Since the header is supposed to be centered, I decided to use the multicol-package. This is my header: \documentclass[...
8
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 ...
5
votes
2answers
1k views

Vertical Text Alignment in Title

I'm trying to make a title format with a large chapter number, and then smaller text with the name of the title. The following code mostly does what I want: \documentclass[12pt]{book} \usepackage{...
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?
12
votes
3answers
24k views

Tabular, parbox, vertical alignment

What i want to achieve is really simple: I want to be able to align cell content at the top (which is the default behavior of tabular) while being able to manually break lines (and anything you could ...
3
votes
2answers
767 views

aligning bottom of two tables

I need to align the bottom of these two tables, and I need to add a brace to each side of the second table.. how can I do that? \begin{figure}[] \centering \subfloat[]{ \begin{tabular}{cc} \...
86
votes
1answer
45k views

Positioning content at the top of a beamer slide (by default)

When I create beamer frame, the content is centred in the slide. How do I make the content move to the top of the slide by default?
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 ...
19
votes
6answers
10k views

Vertical alignment of align* in enumerate

Related (but not the same): Align number from enumerate with equation Displaying an equation in a list Earlier today I asked a question about aligning equations in an enumerate environment and ...
2
votes
3answers
633 views

equality sign and fraction bar alignments in complex fractions around braces

When some math expressions such as complex fractions are around the braces which should be on the same baseline, besides, equality sign should be aligned with vinculum, how can we handle? For example, ...
2
votes
1answer
1k views

Align number from enumerate with equation

I'm trying to have an equation as the first line of one of my items in an enumerate environment. Example: \begin{enumerate} \item \[ x \] \end{enumerate} I want the $x$ to have the same ...
5
votes
2answers
2k views

Combined header cell in a table

This question is closely related to at least two other ones; namely, Tables of numbers, and slashbox alternative. What I'm after, is the horizontal- and vertical-alignment of row- and column-headers ...
3
votes
3answers
1k views

How to vertically center `\begin{equation}…\end{equation}` in a table cell?

How to vertically center \begin{equation}...\end{equation} in a table cell? Minimal Code (I cannot minimize anymore) \documentclass{article} \usepackage{array,longtable,calc,amsmath} \...
3
votes
1answer
1k views

makecell package vertical centering of vertical text

I'm using makecell package to write vertical text to my table cells. It works fine, but I have trouble centering it. Normal vertical text (within a {tabular}) is displayed as: \rothead{Some ...
3
votes
2answers
523 views

A fix for \vspace*, does it break other things?

Thanks to the answers to this question, I believe I have a fix for \vspace* that will make it work sanely at the top of a page. \def\@vspacer#1{% \ifvmode \dimen@\prevdepth ...
15
votes
1answer
3k views

Why does \vspace*{0pt} add vertical space?

I'm trying to format the title of the table of contents using the tocloft package. It inserts code that looks like the following. \par \vspace*{\cftbeforetoctitleskip}% % code to typeset \...
10
votes
3answers
2k views

Vertical alignment of fonts of different sizes on same line

In XeTeX, if I have a line with two font sizes, how can I arrange to have the smaller font aligned to either the center or top of the line? e.g. \newfontinstance\biggoth[Color=000000,Scale=5.0]{...
9
votes
3answers
2k views

Tables do not align side by side

. . \usepackage{tabularx} \usepackage{multicol} \begin{table}[ht] \begin{minipage}[b]{0.5\linewidth}%\centering \begin{tabular}{|c|c|c|c|} \hline & One & Twp & Three \\ \...
5
votes
1answer
2k views

Adding vertical stretch at a table row?

I have a longtable that is used to produce checklist forms. The basic layout is shown below, The second page (if there is one - some forms are quite short) would be better if it had the bottom ...
7
votes
4answers
5k views

LaTeX beamer fixed vertical alignment

I am building a presentation in Beamer. The presentation contains a slide where an image should be displayed on the top of the frame. Underneath some text should be displayed containing information ...
15
votes
2answers
5k views

How to make an exact vertically centered object in a page?

Note: the red lines have the same length. \documentclass{minimal} \usepackage[showframe,paperwidth=4cm,paperheight=4cm,margin=1cm]{geometry} \begin{document} % \vspace*{\fill}% \fbox{test}% \vspace*...
66
votes
6answers
49k views

How to vertically center two images next to each other?

How can I vertically center two images next to one another? Here is some example code: \begin{minipage}[h]{6in} \centering \vspace*{.3in}~\\ \includegraphics[height=1.25in]{fig1.pdf} \...
74
votes
3answers
128k views

How to vertically-center the text of the cells?

I have a simple table as follows: \begin{table*} \centering \begin{tabular}{|l|c|c|c|c|p{2in}|} ... ... \end{tabular} \caption{The factors the camera solver depends on to ...
1
vote
1answer
2k views

\ShortStack Align

Some sentence.... \shortstack[]{a\\b\\c} it produces like a b Some sentence.... c But I would like to produce something like this a ...
2
votes
2answers
528 views

certificate ending layout

How can I achive the above layout in latex? Place and Name should be on the same horizontal line, and so as Date and En.No.. Signature, Name and En.No should come on a same vertical line.
8
votes
1answer
2k views

slidestop for a single slide in beamer

Is it possible to align text at the top of the slide for only a single slide? Alternatively is there a simple way to absolute align anything in a beamer slide.
5
votes
1answer
561 views

bottomrule not working in a self-made environment [duplicate]

Possible Duplicate: bottomrule not working in a self-made environment I have this environment for consistent tables in my latex documents: \newenvironment{defaultTable}[2] { \@float{table}...
6
votes
2answers
1k views

Repeating a block of text until it fills a page

Might I please have some help with writing a loop that repeats a block of text as many times as there is remaining space for it on the page? I would like to produce an notebook in TeX which is ...
17
votes
3answers
26k views

Problem with Table Vertical Alignment

I want a table whose first column is aligned top, second column is aligned middle, and third column is aligned bottom; like this: I wrote the following code: \documentclass{article} \usepackage[...
4
votes
1answer
3k views

How can I center horizontally but not vertically?

This centers both horizontally and vertically, but I do not want vertical centering. I want the grid to be at the top of the page. (The geometry package works well at defining margins though). \...
38
votes
4answers
57k views

Reduce space between enumerated items

Background A book with lots of images. All of the images are set to "here definitely" (as they must come after the text that introduces them). Problem The list types (enumerated and bullet) have ...
3
votes
3answers
1k views

Vertical alignment in the tables with pictures (epsfig)

I have a table with two columns. The column on the left contains a picture (\epsfig) the column on the right contains the description. The description starts on the same height as the lower end of ...
34
votes
4answers
24k views

How to balance last page of two-column layout?

I create a document in two-column-layout with LaTeX (and Koma-Script, if that is relevant). The two-column-layout is defined in documentclass. The last page of an chapter fills the left column first - ...
15
votes
2answers
539 views

Depth of the \times symbol

I just noticed an annoying discrepancy involving the \times symbol's depth. Read the below code and then try to guess what it should look like: \documentclass{article} \begin{document} \fbox{$A$} \...
10
votes
4answers
10k 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 ...
10
votes
2answers
2k views

Uneven text distribution with two-column layout

I am comfortable with creating basic LaTeX documents and making minor modifications to templates I can find online, but not much more. The Oxford Bioinformatics journal has an awesome template here ...
9
votes
1answer
1k 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. ...
5
votes
1answer
1k views

How can I unbalance double columns in revtex4?

It seems that revtex4 tries to automatically balance the lengths of the two columns on the last page of a double-column document. I would like to know how to turn this off. Unfortunately, all the ...
5
votes
2answers
2k views

Force KOMA-Script title to fill whole page

I’m using KOMA-Script (scrreprt) and its excellent set of macros to define a rich title page: \documentclass{scrreprt} \usepackage[showframe,pass]{geometry} \subject{Subject} \title{Title} \author{...
13
votes
4answers
5k views

Spread bullet points across block in slide using beamer

I'm using beamer to create some slides for a presentation. I've got a block containing a bulleted list. The list only has three items, and all three items are bunched up in a small block at the top of ...
12
votes
2answers
579 views

Inconsistent behavior of boxes in amsmath's `gather`.

Recently I was working on a package (ytableau) and had a strange experience with the gather environment in amsmath. Namely, it screws with \vtop and, seemingly, with boxes that I reserve before ...
4
votes
2answers
888 views

Vertical align a marginpar with the *first* line of a 2-line statement

I have an article in which I'd like to use margin notes near some text (some minor headings, equivalent with a subsubsubsection). In some cases that text runs on two lines. I'd like the margin note ...
11
votes
1answer
7k views

How to center vertically content of the table?

I have this table: \usepackage{array} \newcolumntype{x}[1]{>{\centering\arraybackslash\hspace{0pt}}p{#1}} \begin{table}[ht]\footnotesize \centering \begin{tabular*}{0.95\textwidth }{@{\...
12
votes
4answers
3k views

Aligning an enumeration item to the top of a tikzpicture

I've drawn a tree using pgf/tikz and am trying to place it in an enumerated list. A snippet of my complete code is as follows: \subsection*{Problem 2} \begin{enumerate}[1)] \item Max heap \item \...