Tagged Questions

{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
2answers
926 views

Longtable column problem: column alignment changes

I'm setting up a big table (few hundred pages) with similar data as presented. I've used longtable in the past with good success, no problem. However, when I try to do the same again, I get the ...
3
votes
0answers
170 views

How to vertically align the captions for sub figures in subfigure? [duplicate]

This is my tikz code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,shapes.geometric,arrows,fit,calc,positioning,automata,} \usepackage{amsmath} \usepackage{caption} ...
4
votes
1answer
369 views

How to prevent book class from vertically justifying the contents? [duplicate]

If we use the book class, the output looks like the following screenshot. But if we use the article class, the output looks better as follows. The MWE is given as follows. Note: please enable ...
4
votes
2answers
210 views

Different vertical position of summation limits in consecutive \sum

When I use different summation indices in a double sum the limits are not vertically aligend, for instance: \begin{equation} \Delta K_T^i = \sum_{t=1}^{T}\sum_{k=1}^{m}{\Delta K_t^{i,k}} = ...
3
votes
1answer
527 views

Vertical alignment of nested table

I have two tables nested inside of a larger table. One of the nested tables is taller than the other, and I'd like to have the two tables line up together at the bottom. I've tried inserting [b] in ...
1
vote
1answer
104 views

How do I have the list item appear on the top left of the image? [duplicate]

I am including an image with the graphicx package in an enumerated list. \begin{enumerate} \item \includegraphics[width=100px]{my_image.png} \end{enumerate} The list item number appears on the ...
6
votes
1answer
737 views

\hfill in in table cells

There are tables in my document. The baselines between the last row of each table and the following text is usually circa 16,25p (see below). Now I wanted to add right-aligned text to some selected ...
3
votes
1answer
65 views

Enumeration marker appears centered to the left of the table

\item \begin{tabular}{ |l| l| l| } ... \end{tabular} \quad \begin{tabular}{ |l| l| l| } ... \end{tabular} The following causes the enumeration marker (ie, "(b)"), to appear in the ...
4
votes
1answer
262 views

How do i vertically align a tikz picture inside a beamer frame

The beamer frames optinal argument [c] seems to be ignored in the following example: \begin{frame}[c, fragile, shrink] %seems to be ignored, not aligning vertically \makebox[\textwidth][c]{ % ...
3
votes
2answers
120 views

vertical alignment in a row

I have a one-row table with a number of columns. Each cell in this row is another table, which can be either 2x1 or 3x1. I want to make sure that all these sub-tables are aligned to the top of the ...
2
votes
1answer
305 views

How to vertically center text in a table cell with multiple lines?

I want to vertically center "Apple iPad". Does someone here knows how to do that? My code looks like this: \begin{table}[H] \noindent \centering{} \begin{tabular}{cc} \hline ...
4
votes
2answers
987 views

How to anchor labels in tikz for baseline alignment

LaTeX handles subscripts and superscripts nicely, automatically correcting for various sizing and placement issues. I am trying to build a function that works like subscripts and superscripts, but ...
3
votes
1answer
2k views

Vertically center a table on a landscape page

I have a landscape page with one table on it. My current code horizontally centers the table, but how can I also vertically center it? \documentclass[10pt,a4paper]{report} ...
11
votes
1answer
321 views

Consistent cover design regardless of inner pages

This is a series of books, the margins, page sizes are all identical. Depends on the content, the design of inner pages are slightly different, i.e. different type sizes, leading, etc. The question ...
6
votes
2answers
433 views

Text in table with images is not aligned on top

I have table with text in the first column and image in second. I want both columns to be top aligned. I use following code: \begin{tabular}{p{3cm}l} Internal state after adding 2 elements & ...
5
votes
1answer
314 views

LaTeX align/distribute objects à la InDesign?

I'm trying to replicate, in LaTeX, InDesign's align and distribute tools. This is a snapshot of ID's toolbar: Say I want first to align vertically two objects (texts, graphics, boxes,...), and ...
2
votes
1answer
997 views

Latex Brace Stack [duplicate]

Possible Duplicate: How to write conditional equations with one-sided curly brackets So I'm trying to take notes in LaTeX and while I've been able to keep up with everything that's been ...
6
votes
2answers
361 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 ...
3
votes
1answer
133 views

Use \fill (or similar) to extend a table to the end of the page

I am currently trying to make an invoice from a template which requires a table to extend to the end of the page regardless of the content. I tried using \fill as below (in \tabularnewline[\fill]), ...
5
votes
2answers
202 views

(How) can I manually specify the axis of a (horizontal) box in math mode?

This question led to a new package: underoverlap I've been using the \overunderbrace macro provided in this answer. It works fine for simple examples, but since the original definition uses ...
2
votes
2answers
260 views

Multi-line equations with single operator referring to multiple lines

I need to include an equation similar to the following in my text and have failed doing so in various tries, including using the align-environment of the amsmath-package. Basically, the text before ...
1
vote
0answers
64 views

Alignment Issues in Equations [duplicate]

Possible Duplicate: LaTex Error Help- Math Related I'm having trouble formatting this \begin{align*} $$f_a = Res (F(z))_{z=0} &= \Big(Res(F(z)_{z=0} +\sum_{\beta} ...
6
votes
2answers
284 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 &=& &=& ...
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} ...
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.
2
votes
1answer
319 views

Problem balancing two column memoir

I have a problem using \balance on this document: \documentclass[a4paper,10pt,twocolumn]{memoir} \usepackage[utf8]{inputenc} \usepackage{lipsum} \usepackage{balance} \balance \begin{document} ...
1
vote
1answer
250 views

Vertical alignment with array package when the line width is fixed

I created a post earlier on the same topic (Vertical alignment in tables). I got an answer but it triggered another question. Below the solution that has been provided. I would expect vertical ...
2
votes
1answer
366 views

Vertical alignment in tables

I would like to create a table where I control the height of the cells and wish to vertically center all the cells. At first sight, the issue here might look quite similar to Problem with Table ...
4
votes
1answer
363 views

\vfill between items in a list

I want to create a list and have \vfill between all the items. Something like this: \documentclass{article} \begin{document} \begin{itemize} \item One \vfill \item Two \vfill \item Three \vfill ...
1
vote
0answers
33 views

How to automate vfill on last paragraph before a page break in case of underfull vbox [duplicate]

Possible Duplicate: \flushbottom vs \raggedbottom I have my Thesis with nearly 200 pages. I have encountered many underfull vbox problems due to the high of equation-to-text ratio. LaTeX ...
5
votes
1answer
151 views

How to insert a text between two cases in a multi valued function?

I want to do something similar to this but do not know how: I do know how to write multi-valued functions by using cases or align or whatever but do not know how to achieve a text that is to the ...
3
votes
2answers
236 views

Balancing columns, last page of index (using memoir class)

I've just received (very final, I hope) editing requests from the production people at CUP, and -- at the last minute -- they are asking for the two columns of the final page of the index of my book ...
0
votes
1answer
289 views

Adding color to table columns with alignment

I am trying to add color to certain columns in a table for highlighting purposes. In said columns, I have positioned the data presented to be aligned by the decimal point. However, when adding color ...
4
votes
2answers
237 views

settototalheight issue with empty lines

I am using \settototalheight to calculate the height of the text in order to use needspace correctly. This is the code i am using : \documentclass[12pt]{article} \usepackage{graphicx} ...
6
votes
1answer
118 views

Self adjusting vertical line in scalar product

I'm trying to define a new command for scalar product. So far, it looks like this: \newcommand{\ilskal}[2]{\left(#1\left|#2\right)} However, when I was trying to put something riddiculously high in ...
6
votes
1answer
78 views

Getting box dimensions in class file

I want to adjust vertical spacing after the title in a thesis class by measuring the title length (actually, height). To achieve this, I put the title in a box and compute the total height of the box. ...
3
votes
2answers
2k views

Minipage spreading to multiple page

\documentclass[12pt]{article} \usepackage{graphicx} \usepackage[parfill]{parskip} \usepackage[none]{hyphenat} \sloppy \usepackage[usenames,dvipsnames]{xcolor} ...
18
votes
3answers
652 views

How do I set annotations on a facing page?

It's common to set an old play (e.g. Shakespeare) with annotations on the left page and reference information on the right. I don't want to do this for a play, but I would like to set a document with ...
5
votes
3answers
191 views

Vertically align multiple labels

I have a sketch with two aligned lines. These lines have a label each. When you look on my example, you will see, that the labels "Top" and "Inlet" do not share the same baseline. Both labels are ...
3
votes
1answer
692 views

Tables: Automatic adjustment of columnwidth to its content gives error “Misplaced \noalign” at \toprule

I am trying to put two tables next to each other, vertically aligned top, with some below listed adjustments I unfortunately can't get together. First, I'd like to know if/how I can avoid the error ...
2
votes
1answer
1k views

Vertical centering of text spanning multiple rows [duplicate]

Possible Duplicate: How to vertically-center the text of the cells? I am using multicolumn to create a table. The code that I have is here: \documentclass[10pt]{article} ...
2
votes
1answer
379 views

Vertically centre the title in mdframed

I wonder how I can vertically centre the argument of \Title inside the frame in the following MWE. \documentclass[12pt]{report} \usepackage[english]{babel} \usepackage{tikz} ...
4
votes
1answer
200 views

How would I typeset a two-column layout, where the headings are on the left side and the contents are on the right?

I'm trying to typeset my resume using TeX. I'll start off by showing an approximation of what I want to do with this picture: Note the red lines in the picture are only for illustrative purposes. ...
24
votes
2answers
1k views

Two rules directly under each other

I'm trying to make two rules of different length (fatness) directly under each other, something like: -------------------- ==================== Where = is a fatter line than -. The vertical space ...
4
votes
1answer
727 views

vertical aligning images in table with \adjustbox only works when not every image is in an \adjustbox

I'm trying to center all images vertically and horizontally within a table cell. Therefore I'm using the adjustbox packet. This is the code I use for my table: \begin{table}[b] \begin{center} ...
3
votes
1answer
890 views

How to draw the following table (simplex tableau)

I would like to draw table, I tried, \begin{equation} \begin{array}{c} z \\ s_1 \\ s_2 \\ s_3 \end{array} \begin{bmatrix} \begin{array}{c|ccccc|c} z & x_1 & x_2 & s_1 & s_2 ...
2
votes
1answer
178 views

Removing space after a graphic

I have the following code and inputted a graphic at some point. When I compile the code, there is a huge white space after the graphic and before the text after the graphic. How do I reduce this white ...
3
votes
1answer
345 views

Aligning two text boxes with a few lines

Here are the two text boxes: \begin{tabular}{l@{}} Date: 3 Jan. 2500 \\ Place: Moon \\ \end{tabular} \null\hfill\begin{tabular}{l@{}} Prof. Neil Armstrong \\ Department of Moon ...
5
votes
1answer
661 views

\resizebox shifts tikzpicture up when in a subfloat environment

Why when I try to re-scale a tikz figure using \resizebox the baseline is shifted up (regardless of how small the scale factor is), and two horizontal floats are not aligned properly. ...
10
votes
3answers
249 views

Aligning cases conditions from multiple nesting levels

\begin{dmath*} y_{ic}[n] = \begin{dcases} y_0 + x_0 - x_0 (1 - k_2)^n & k_1 = 0 \\ k_5 + \left( y_0 - k_5 \right) (1 - k_1)^n + \begin{dcases} ...