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

10
votes
1answer
1k views

Vertically aligning a marginnote and a section title

In the following code, the marginnote is logically aligned to the lipsum text. I would like to align the marginnote to the title of the section. What's the trick to use ? % Source : ...
26
votes
3answers
12k views

Aligning subplots in a pgfplots figure

I have the following figure (a very, very stripped down version of a figure I created using matlab2tikz) My problem is that the subplots are not aligned correctly due to the fact that the y axis ...
5
votes
1answer
503 views

Table/tabular problem: vertical centering of long text + increase the row height

I already checked this post in this site: Vertical centering of text within a table What I am asking is quite similar to that question: I want all the cells to be vertically centered. This can be ...
9
votes
2answers
869 views

How to get headings to be an integral number of lines high (using the memoir class)?

I use the memoir class and the \checkandfixthelayout command to calculate the \textheight so that an integral number of lines will fit. This works very well: But now I want to add a few section ...
8
votes
1answer
1k views

TikZ: vertically aligning text in nodeparts

I can't seem to vertically align text in different nodeparts of the same node. This MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} ...
6
votes
1answer
765 views

How to calibrate memoir's \sloppybottom and \flushbottom behavior?

Memoir provides the command \sloppybottom which "lets TeX put an extra line at the bottom of a page to avoid a widow on the following page." [1] However it also seems to set \raggedbottom which is not ...
3
votes
2answers
1k views

Proper spacing using minipages, dealing with margins and succeding text

So I have this user defined function below. This gives me near optimal results. The code is supposed to make numbered subsections. Where the rest of the text is aligned below. Since these subsections ...
7
votes
1answer
1k 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 ...
3
votes
2answers
364 views

Centering text in tables problems with colortabs

I am trying to produce a basic color table as shown below \documentclass{article} \usepackage{booktabs} \usepackage[dvipsnames*,svgnames]{xcolor} \usepackage{colortbl} \usepackage{array} ...
17
votes
1answer
14k views

p,m and b columns in tables

I wonder why p columns are aligned at the bottom and b columns aligned at the top? created with this code: \begin{tabular}{|p{0.3\linewidth}|m{0.3\linewidth}|b{0.3\linewidth}|} \hline \centering ...
14
votes
6answers
2k views

How to stack boxes like a vertical version of \mbox?

I would like a vertical equivalent to \mbox{} that somehow takes a sequence of boxes and stacks them on top of each other. I'd like the resulting width to be the width of the widest box, and I'd like ...
1
vote
2answers
1k views

Question about tabular

I need some table in LaTeX. As you can see, my LaTeX code is following \setlength{\extrarowheight}{7.6pt} \begin{footnotesize} \begin{tabular}{l|m{7cm}} \hline \hline Workloads & Applications \\ ...
5
votes
2answers
564 views

how to typeset RTL document with two columns flush AND two-column footnotes

I'm working on a set of documents in Hebrew. My general workflow is I type reStructuredText, run it through rst2xetex and then typeset with XeLaTeX. What I can't figure out how to do is create a ...
7
votes
2answers
284 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} ...
3
votes
1answer
585 views

Odd problem with spacing using memoir when switching from oneside to twoside

For reasons I won't bore anyone with, I being forced to change my document at the last minute from oneside to twoside using memoir. However, when I do, I suddenly get odd problems with spacing; the ...
4
votes
3answers
1k views

Vertically align text inside of a colorbox

I am quite new with TeX so I am not sure how to solve the following correctly and it would be more than great to get some hints. So I am trying to get a grey colorbox which spans over the whole page ...
7
votes
3answers
4k views

How to make a table with centered images?

On page 6 in this PDF is there a table with centred pictures in the right column. Does anyone know how to make such a table? I am using pdflatex.
4
votes
2answers
1k views

TikZ, multicolumn, and vertical spacing

My question is related to the vertical spacing of the objects in the page. I think that in my case TikZ can influence it. Here the MWE: \documentclass[12pt,letterpaper]{book} \usepackage{amsmath} ...
42
votes
3answers
20k views

Understanding minipages - aligning at top

I would like to be able to align two minipage at the top, without worrying about what is in the minipage. I am aware of the optional [t] parameter, but still have some confusion as to how this all ...
9
votes
1answer
3k 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 ...
5
votes
1answer
5k views

Easily aligning 'from' and 'to' address fields in LaTeX letters

When you write a letter in LaTeX, you can add your address with the \address block, while you have the possibility of adding the recipient address after the \begin{letter} statement as an extra ...
7
votes
1answer
7k views

How to vertically and horizontally centre text and images in (different) table cells?

I have a table which contains images in one column. I would like the first column to have text centred vertically and horizontally. I would like the second column to have text left justified and ...
3
votes
1answer
3k views

Vertical alignment with floatrow

I am playing with floatrow, however the images are not aligned at the top and I do not know what I am doing wrong. \begin{figure}[H] \begin{floatrow} \floatbox{figure}[0.4\textwidth][\FBheight][t] ...
6
votes
1answer
1k views

Within table, vertically align top of a list and normal text in horizontally adjacent cells

I am making a table where two of the columns constitute a pros/ cons list. I have created a custom list environment with minimal white space around it for this purpose. However, I still find that the ...
1
vote
1answer
1k views

Align table-text in Lyx 1.6.9

I created a table with normal font text inside. After I select the text and go to Edit>>Text style>>Customized and select Larger, in the input the text looks aligned ok (it's right in the ...
11
votes
4answers
5k views

Vertically centered horizontal rule filling the rest of a line?

I'd like to have a horizontal line extending from the end of the text on a line to the right margin. So far I've found \hrulefill and \leaders\hrule\hfill, but these draw a line that's flush with the ...
4
votes
3answers
563 views

Lining up leaf nodes in pstree

I am a TeX newbie, trying to make a syntax tree. What I'm going for is this: X / \ X \ / \ \ X \ \ / \ \ \ X \ \ \ / \ \ \ \ A B C D ...
3
votes
2answers
2k views

How to make two rectangles top adjusted horizontally in TiKZ?

I have 2 rectangles and an operator between them, the one on the right is longer than the one on the left: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} ...
17
votes
2answers
24k views

How to move a paragraph to the bottom of the page (without vspace)

I am looking to move a text paragraph of a few lines (like a disclaimer) at the bottom of a 2 page document. Each time I do that, I need to adjust that specific paragraph with the \vspace function. ...
8
votes
3answers
326 views

Vertically Centering Text/Numbers in Rows of Array using Math Mode

I am trying to center text in an array of two rows inside a math mode environment so that the text in the second column of the array appears half way between the first and second row of the first ...
16
votes
5answers
24k views

Centering mutirow text in a table whose cells contain several lines of text

I'd appreciate advise in centering a multirow text. In the MWE below the multirow text "spring" is NOT centered over the three rows that it spans. ...
6
votes
2answers
2k views

Image Dropping Down in MultiRow Table

I am trying to build a table of images in Latex. Two of my images are portrait, two are landscape. My end goal, is to have them look like this: | | B | | | A |---| D | | | C | | With my ...
16
votes
2answers
4k views

Aligning enumerate labels to top of image?

I asked a question a while ago about vertically aligning enumerate labels to the top of table. Now I am having the same problem, but with images. Since my problem was solved in my previous thread, I ...
74
votes
2answers
108k views

How can I get text underneath an underbrace?

I am looking to do something of the following: To get text underneath the underbrace. Is it involving \stackrel or some sort of similar command?
11
votes
2answers
3k views

How to align picture top left in a table?

is there a way to create a table with 2 columns, in the left column should be some text, in the right column should be a picture. The problem is - to align both to the left, top corner. The image ...
4
votes
1answer
5k views

Align text and logo in footer

I can't seem to be able to align our logo and page number in the footer. I have the code below: \pagestyle{fancy} % enable fancy page style \renewcommand\headrulewidth{0pt} ...
2
votes
2answers
8k views

How can I use multline within an align environment?

I've been looking around and I know that there are possibilities to mimic the multline environment within the gather or align environments, or by using multlined but not in a way that I like, I think. ...
46
votes
4answers
49k views

Shift title and author text up?

What is the best way to shift the title text 'up' in a LaTeX document compiled with pdftex? When I do this: \documentclass[12pt,letterpaper, onecolumn]{article} \setlength{\topmargin}{0in} ...
10
votes
2answers
1k views

Table: Can I shift a column by half the height of a row?

This question is best explained by giving the usecase: I have a table where I list some data and I would like to add a column to the right which gives the ratio of two adjacent rows. Now to make it ...
16
votes
3answers
7k views

Vertically align subfloats at the top while having subcaptions vertically aligned below the subfloats

I have a float with two subfloats: I want the circles to be vertically aligned from their top such as in the following figure. But I don't want the subcaptions to be placed above the subfloats but ...
26
votes
4answers
6k views

Sharing alignment between equations in two different items

In the following minimal example, I have two equations inside an itemize environment, with an item per equations. Each equation is defined in its own equation environment. \documentclass{article} ...
6
votes
1answer
3k views

\pagebreak and two-column text

When I use \pagebreak in a two-column text, the paragraphs are spread out by vertical spaces only in the current column, so the whole page looks unbalanced (the right column has large spaces between ...
7
votes
1answer
999 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 ...
4
votes
3answers
10k views

Figure and table side-by-side in subfloats

A very similar question has been asked before: Table and Figure side-by-side with independent captions I'm trying to accomplish this, but while using the subfig package. The image below depicts ...
10
votes
2answers
7k views

Vertical centering of figure in landscape environment

I am using the pdflscape package to insert landscape pages in my document. On one of these I would like to have a figure that is vertically centered on the page, but I can't find how to do it. MWE: ...
8
votes
2answers
7k 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 ...
14
votes
1answer
6k views

Strange space left above wrapfig figures

I'm using wrapfig to put a small figure at the start of each paragraph. For the first paragraph of the page, this lines up neatly with the top of the text. But for subsequent paragraphs, the figure ...
1
vote
1answer
1k views

sig-alternate class, and twocolumn unbalanced bottom alignment problem

EDIT: turns out the below is not really a requirement for ACM - but still a good Latex exercise, I reckon :) I have bumped into a problem with the Alternate ACM LaTeX2e Style File V2.4 (APRIL 2009 ...
14
votes
1answer
9k views

Beamer background image centered

I'm trying to use an image as a background for Beamer presentation according to this post. However, I do not want the image spanning the entire background. Thus, I'm doing something like: ...
8
votes
1answer
5k 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 ...