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

How to vertically shift the = sign?

I want to define a command that prints the = sign with its lower line touching the baseline, that is directly sitting on the baseline, any suggestion?
3
votes
1answer
724 views

Align TikZ node inside equation environment

I am trying to insert a TikZ node into an equation but I have some problems: the = sign is not vertically centred inside the circle the circle is not vertically aligned with the formula. I want to ...
5
votes
1answer
106 views

Table within table fouls up vertical alignment of neighboring cells!

I nested a table inside of my table like this: \begin{tabular}{p{1in}||p{5in}} \hline This should be on top. & \begin{tabular}{@{\extracolsep{\fill}}lr} Thing1 & ...
3
votes
3answers
454 views

Table Large Text and Centering

I'm trying to learn the TeX language in preparation for my final engineering project before I graduate, and while I've been able to find most of the solutions online, I can't seem to find a solution ...
7
votes
3answers
529 views

Vertically center image with text midpoint

I want to vertically align the center of an image with the vertical center of the text on the same line using \raisebox. Using a macro is a must since it will be used many times (and multiple times on ...
10
votes
2answers
565 views

equation, equation number and itemize bullet all on the same line

I think the following sample says it all. I need to get the item bullet in the right place on the same line as the equation, and have this followed by an normal equation number. Someone asked the ...
3
votes
1answer
128 views

Tabular p-column and environment gives strange output

The code below does produce a clearly too high column. The same effect can also be seen with other environments (center, ...). How can I use the p-column and have the correct height at the same ...
8
votes
2answers
591 views

Tabular paragraph vertical alignment

How to make this kind of tabbed paragraph: 3 columns 2cm 10cm 2cm, the last column is right aligned and it's content starts on the last line of the paragraph of the second column. 10. Some text ...
5
votes
1answer
587 views

Table cell height too small when wrapping text

I have the following problem with my table: The height of the 2nd row is slightly too small and the text overlaps with the line at the bottom and the top of the cell. My code is below: ...
6
votes
0answers
58 views

Why importing pgfplots changes behavior of \vfill? [duplicate]

When I import pgfplots, it affects behavior of \vfill. The following code works as expected: This should be at the top of the page. \vfill This should be at the bottom of the page. \eject \end ...
1
vote
1answer
119 views

vertical alignment of 3 columns with different content

I'm using the linguistic avm library along with tikz and I am trying to put a \leftrightarrow vertically centered between the attribute-value matrix and the tikz image. Thanks in advance for any ...
8
votes
1answer
5k views

Vertical alignment of subfigures with different subcaptions length

I would like to vertically align 3 subfigures (same size), but I don't manage to do so if the subcaptions have different lengths, like here: This is the code that generated the image: ...
3
votes
2answers
352 views

How to better adjust placement of frametitle converted to marginpar in beamerarticle?

I'm using beamer and beamerarticle for my class notes. I would like to include frametitles as margin notes in <article> mode aligned with frame content but they are a little bit misplaced. ...
5
votes
3answers
190 views

Vertically centering a set of tabbed graphics

I have a lot of different graphics in three versions each. All those versions have a fixed width and I want those three versions to be displayed next to each other. So far, I've used a tabbing ...
1
vote
1answer
236 views

Automatic vertical alignment of multirow cells

I have this MWE \documentclass{article} \usepackage{multirow} \usepackage{bigstrut} \setlength{\bigstrutjot}{2pt} % height added by \bigstrut \usepackage{tabu} \tabulinesep=1.5pt % ensures some ...
6
votes
3answers
464 views

Vertical alignment of graphic and tabular

There are a bunch of related questions here. But I was not yet able to pull this off yet. I have the following code: (where hist.tex is a plot drawing) \fbox{\scalebox{0.40} {\input{hist.tex}}} ...
6
votes
2answers
1k views

Vertical Alignment of tikz picture in a table cell

I apologize in advanced for asking a question that has been asked before. I have read the other posts on SE about vertical alignment but I'm very new to Latex and had difficulty understanding them. ...
14
votes
3answers
39k views

vertically align text in table in LaTeX

Probably a straightforward problem. Why is the final column not center aligned vertically? Here is the code I'm using: \documentclass{article} \usepackage{array} \begin{document} ...
3
votes
1answer
63 views

Alignment of subscripts inside and outside parentheses

$(X^n_i)_i$ This piece of code produces output where the inner i is placed at a lower height than the outer i. Is there a graceful way to place both i's at the same height?
1
vote
1answer
92 views

Vertical alignment within table with graphics

Perhaps I am doing it the wrong way, but I have a table with 3 tabulars arranged within minipage each, such that I end up with 3 tables side by side. Each table only has 2 columns: 1 for text and one ...
2
votes
0answers
67 views

difficulty correctly identifying all parameters affecting vertical placement within lists

I'm trying to align the baseline of the first line of a list environment with the baseline of a box. After working on this in various forms, I thought I was ready to tackle this issue. I also ...
4
votes
1answer
146 views

Difficulty finding the vertical distances between two lines of content

I'm trying to determine the vertical distance between boxes and a line of text in the immediately following paragraph. Depending on the content of the top box I'm getting a discrepancy of \lineskip. ...
3
votes
1answer
257 views

Align multiline RHS

I have the following MWE: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align} L_W&=\frac{L}{W} & \text{words per line}&=\frac{\text{bytes per ...
2
votes
1answer
76 views

Alignment with multicolumn in table

I'm trying to get three centred columns, evenly spaced under the (rather long) column heading (...). Can anyone help? Thanks! \begin{table}[!] \centering \begin{tabular}{ c c c | c c c |c ...
2
votes
1answer
200 views

Trouble aligning rows in two columns using makecell

Been trying to align columns two and three (vertically) but can't figure it out. Columns are coming up central to "Workability" instead, and as column two has some rows taking up 2 lines, they don't ...
3
votes
2answers
129 views

How to start text and image on the same baseline

I need text and images to start at the same level on each page. With standard LaTeX settings the image seems to start a few points higher then a text. I believe this is due to \topskip. \topskip=0pt ...
7
votes
2answers
562 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
4k 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 ...
5
votes
3answers
152 views

Help with left align?

I was trying to left align this equation by using code $$\begin{equation} \begin{aligned} E_\theta(L(\delta_1(X)) &=& E_\theta[(1-\frac{b}{a+X^2}) X-\theta]^2\nonnumber\\ ...
1
vote
1answer
152 views

Align subfigures in opposite pages to the top

I have two collections of subfigures (produced using the subfig package) that Latex decided to place in opposite pages. I would like to align them to the top of the page but for some reason there's ...
7
votes
1answer
204 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} ...
0
votes
0answers
17 views

subfigure vertical alignment although different large subcaptions (subfigure environment; subcaption package) [duplicate]

I am using the subfigure environment provided by the subcaption package by Axel Sommerfeldt. Although reading the manual, I do not find a solution. I would like to vertical align subfigures although ...
6
votes
2answers
888 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 ...
2
votes
1answer
108 views

Alignment of image within tabular

I got a problem with the alignment of an image within the tabular environment. I want to align the image within the table in such a way, that it is located to the very right of the layout and the text ...
3
votes
1answer
167 views

Vertical alignment of text around a symbol in table

Is there a way to organize the vertical alignment in table around a particular symbol. For example in the below code \begin{table} \begin{center} \begin{tabular}{ *{1}{c}} a = b + c \\ a + ...
3
votes
1answer
98 views

Longtable vertical placement

I'm fighting with Google. I have a longtable with manual breaks, so in every page there is an empty space after the table, I want to vertically center the longtable. How can I do that?
5
votes
2answers
165 views

Automatic / variable vertical alignment within a minipage?

I have defined a new environment that I use to highlight warnings in my text. Here's a minimal example of the code I use: \documentclass[parskip]{scrartcl} \usepackage{fourier} % for the bomb ...
4
votes
3answers
499 views

How to top align text and image in table?

I am facing some problem in aligning (top-aligned) image and text in a table. \documentclass[11pt,table,a4paper]{article} \usepackage{array,ragged2e} \usepackage{graphicx} \usepackage[top=2cm, ...
2
votes
1answer
100 views

Left/right scripts with horizontal centering

I have been using \newcommand{\lrscript}[3]{\raisebox{.5ex}{\llap{\scriptsize$#2$}}#1\raisebox{.5ex}{\rlap{\scriptsize$#3$}}} to produce the middle segment of things like this: Produced with ...
9
votes
2answers
3k views

Variable-width horizontal rules with \cline intrude cell text

I have come to learn how to make a variable-width horizontal rule with \hline from the LaTeX companion and with \cline from Horizontal rule with adjustable height behaving like \cline{n-m}. But the ...
3
votes
1answer
126 views

Consistent vertical alignment of one-line text in minipages

The vertical alignment of one-line text in minipages depends on the vertical extent of the text itself: \documentclass{scrartcl} \begin{document} bad alignment: \frame{ ...
3
votes
3answers
232 views

Free cell alignment in a table

I want to use the package tabu which I've heard is the latest and greatest package for creating tables to generate a table that looks like this: ------------------------------------- |A | ...
3
votes
1answer
515 views

captionsetup inside floatbox messing up image

I'm trying to include images with custom caption label format defined using \DeclareCaptionLabelFormat from caption package. If I put \captionsetup inside \floatbox environment the caption and image ...
2
votes
1answer
42 views

Multiple alignments from top of page on a single page

I am trying to specify the location of text from the top of a page. I know how to set the margins for the main text and can set the top, bottom, left, and right margins for certain pages using the ...
2
votes
1answer
213 views

Set permanent first bullet starting point in beamer

I'm trying to set a permanent starting point for bullets in my Beamer slides. By default, the bullets are centered in the middle of the page. I have tried using the [t] option, but it places the first ...
7
votes
1answer
304 views

In the geometry package, what's the practical use of setting heightrounded=true?

In the geometry package, what's the practical use of setting heightrounded=true? The documentation says sth about avoiding cases of "underful vbox", but I don't see why I need to worry about it. When ...
2
votes
4answers
221 views

Problem with custom vertical-alignment and/or length of lines/rules in tabular environment

As a follow-up to my previous question: In my table / tabular, \cline{1-1} gives me the correct vertical position but not the right horizontal length . In contrast, \rule{\mycustomlength}{0.4pt} ...
2
votes
1answer
324 views

Vertical spacing for two consecutive figure environments

I think I'm not going to solve my problem with the Floats and positioning of figures. I have 4 diagramms and I need to place them on two pages and at the end of the second page the caption for all 4 ...
7
votes
2answers
427 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 ...
2
votes
1answer
163 views

multiple minipages in document give indentation

I'm trying to create my CV using latex. To do this I am trying to divide parts of my document into 3 columns and an arbitrary amount of rows. I've been using the minipage environment, but I'm given an ...