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

3
votes
1answer
96 views

Position of figure in a new page

Writing my thesis, I have to put an image in a new page, but it is always in the middle of the page, and I want it on the top. To insert the image I use \begin{figure}[t] \centering \hspace*{-2.0cm} ...
5
votes
3answers
1k views

parbox vertical alignment

The following code uses parboxes and hrules to vertically align two rectangles of different heights. The hrule seem a bit hackish to me. Is there a more elegant solution? \documentclass{article} ...
2
votes
0answers
63 views

How to align the top of two minipages [duplicate]

I have two minipages aligned to the top of a frame (I used the option [t] on the frame and the two minipages). If I had elements in one of the minipage, the other minipage goes down. I have ...
4
votes
2answers
173 views

Show stretch/shrink of whitespace in the line

Is there an option or package, to show the amount of stretching or shrinking TeX has done to justify each line? If there is none, how could this be implemented? It should look like the black bars the ...
0
votes
1answer
106 views

Not aligned figures!

I have a problem aligning my figures. I am using following code. However, one figure appears a bit higher than the other one. Everything else is perfectly aligned in the paper. Except for these two: ...
3
votes
2answers
644 views

“ERROR: Extra }, or forgotten \right.” in align* enviroment

Why do I get a "ERROR: Extra }, or forgotten \right." in the following align* environment? \begin{align*} ...
3
votes
1answer
167 views

Inserting a new blank line in LaTeX (HTML)

I'm new to LaTeX and I'm trying to write a line, then a new blank line just underneath it. Here is my code so far: \begin{center} \underline{\smash{This} \\ A} \end{center} \begin{center} is some \\ ...
5
votes
2answers
280 views

vertical shift in pstricks picture

My paper contains the following PSTricks picture. It displays a square on the left, and two squares on the right - top and bottom. It describes a process where the square on the left can be in either ...
6
votes
2answers
184 views

Can't center vertically text in table with enumerate in one column

Code: \documentclass{article} \usepackage[a4paper]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{array} \begin{document} \begin{tabular}{ |m{0.8cm}| p{3cm} |c| } ...
5
votes
1answer
2k views

How to create a new column type with top alignment

I am trying to create a table which has wrapped text and the text in each cell is ragged right and top aligned. As you can see in the following image I'm not getting the top alignment. Here is my ...
5
votes
1answer
2k views

Align vertically two tikzpicture in subfloat

I have two sublfoat that I would like to align from the horizontal coordinate line. \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \usepackage{subfig} \begin{document} \begin{figure} ...
2
votes
1answer
336 views

Vertical alignment text first column with merged cells and last column

I'm relatively new to Latex and I really appreciate this community, it has already helped me a lot. However, I've been unable to find the answer for the following problem: I want to create a 3 ...
2
votes
1answer
1k views

How to set different alignment for Name/Title in ModernCV?

I'm trying to write my CV using ModernCV template. As you see in the picture below, the Name/Title section at the left-top of the first page in this template is bottom-aligned to the personal ...
1
vote
1answer
118 views

Different heights of elements of subfloat

I am using "subfloat" to visualize both an image and a table inside the same figure as follows: \begin{figure} \centering \subfloat[Summary statistics\label{subfig-1:tab}]{% ...
3
votes
2answers
99 views

How to put vertical text in an equation?

I want to put vertical text in my equation, like in this example: I got \begin{equation} Dir(\alpha) \xrightarrow{iid} \end{equation} and tried to put in linebreaks, but that does not ...
2
votes
1answer
95 views

Figure keeping vertically

I have a large figure (more width than height) to place vertically (rotate the figure 90 degree anti clockways direction to the way we used to place the fig in latex) to use maximum space of the page. ...
6
votes
0answers
87 views

Align ToC pagenumber with top line [closed]

I need to align the pagenumber with the top line of a multi-line entry in a ToC. This figure should illustrate the issue: Here is the relevant code from the style file: \titlecontents{figure}[0pt] ...
3
votes
1answer
403 views

Using \parbox in Beamer has unwanted effects

I want to change from an itemized list on one slide to an image on the next slide. I tried this with a \parbox with overlay specifications. It works ok when the inner position of the parbox is set to ...
2
votes
1answer
89 views

Left alignement and right alignement

I would like to realize an alignment as follows, with array environment by preference: abcde fghijk lmnnnnn opq rstuvwxyz So, abcde and lmnnnnn are left aligned; fghijk and opq are right aligned. ...
5
votes
1answer
280 views

First column of multicols introduces an unwanted vertical space when first element is displaymath

Code: \documentclass{article} \usepackage{multicol} \begin{document} \begin{multicols}{3} \[ \rho^1 = ...
5
votes
2answers
146 views

Listings, Cleverref, and Appendix: Weird Alignment

I'm using the packages listings and cleverref in my thesis. When I put a listing in the appendix, however, it seems to be somehow indented: \documentclass{article} \usepackage{listings} ...
3
votes
1answer
67 views

Both centering and left alignment in same column in S colummn from siunitx

Here we go again with an S column problem: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage[locale=DE]{siunitx} \DeclareSIUnit{\kroner}{kr.} \begin{document} ...
7
votes
1answer
579 views

TikZ graph not aligning

I am having two issues with TikZ pictures. I have three graphs side by side, and I am having issues, but only with some of them, which is very odd. First the x-axis is going out of alignment (some ...
5
votes
1answer
89 views

Unexpected alignment in table

Consider the following example. Code \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{booktabs,dcolumn} \usepackage[locale=DE]{siunitx} \newcolumntype{d}[1]{D{.}{,}{#1}} ...
4
votes
2answers
238 views

Vertical alignment in tabular with fbox

I have problems with vertically aligning content in my single row header table for an invoice template. Currently it looks like this: What do I have to do to align the top fbox to the top of the ...
2
votes
1answer
617 views

How to shift yticklabels vertically?

When plotting data matrices as done here and here, the tick labels get drawn at the border of fields. They should be drawn in the center. I've tried shifting them using hspace and vspace. This works ...
2
votes
1answer
155 views

Alignment of text within a table with color

Is it possible to align the numbers in the last column of a table with color? For this column, I would like the numbers (they are actually text) to be in the center of the table, but aligned to the ...
0
votes
0answers
31 views

How to vertically align cell in a longtable environment [duplicate]

Hi I want to vertically align my cells in a longtable. I also use \shortstack[l]. Don't know whether this has an effect. The Table looks like \begin{landscape} \begin{longtable}{|l|l|l|l|l|l|} ...
2
votes
2answers
140 views

Make the “Appendix X” text go higher in report class

I have an appendix which goes 3 lines on a second page, so I would like to recover some "lost" space by the "Appendix" text on the top to keep it on one page. I tried using \vspace{some negative ...
2
votes
0answers
106 views

How to vertical align lines of facing pages

It is a good typographic practice* that lines of two facing pages are aligned. Also, the lines at the two sides of a paper should be aligned. How can I achieve this with LaTeX? Especially when having ...
5
votes
2answers
198 views

siunitx and vertical line

I used siunitx so numbers in a table can be aligned. However, a vertical line is lost between two columns. Also, numbers in the last column are not vertically aligned. How can this fixed? Thank you! ...
3
votes
0answers
126 views

Vertical distribution over multiple pages

I want to distribute several elements over multiple pages with a gap between these elements. The gaps should roughly have the same height. Example: element1 \vspace*{\fill} element2 ...
5
votes
1answer
656 views

Perfect-centering characters in a box

I have made in Inkscape a page layout with some boxes here and there that should contain a single Kanji character. These Kanji should be horizontally and vertically centered in the box. At the very ...
3
votes
2answers
168 views

Placing a table next to figure (align table vertically centre)

I would like to place a table and figure side by side in my document. I have achieved this with the following code \documentclass[a4paper,10pt]{article} \usepackage{floatrow} \usepackage{color} ...
4
votes
1answer
371 views

Align subfloats to the top of the figure

I want to put a listing next to a schematic in one figure. The template of the journal, I am writing my article for, suggests using subfloats. Here is my latex sourcecode, \lstset{ numbers=left, ...
4
votes
1answer
209 views

Multicolumn list with same number of items in each column

I want to make a multicolumn list with the same number of items in each column. I tried this with multicols, but some items have bigger heights than others so I got a column of 5 and a column of 3: ...
8
votes
3answers
326 views

Align points with text vertically

I have the following code: \begin{itemize} \item SPOJ - everyone loves SPOJ\\ - I love SPOJ \end{itemize} And what I'd like to do is display the two hyphens at the same position. ...
5
votes
2answers
326 views

Inline underset spilling over to next line

The underset of my "xdim" command is touching characters in the line underneath. How to correct? \documentclass[12pt]{minimal} \usepackage{amsmath} ...
6
votes
2answers
372 views

How to align tabular to the top of the side-by-side minipage?

How do I align the table with contact info to the top of the page? My best try is this: \documentclass[draft]{article} \renewcommand{\familydefault}{\sfdefault} ...
3
votes
1answer
819 views

Right-aligned figure while vertically aligning subfigures with beamer

This question is almost a duplicate of this question. The question is asked in a comment, but is never answered. When vertically aligning two subfigures as suggested in section 5.4 of the ...
3
votes
1answer
168 views

vertical distance between two graphics in sidewaysfigure environment

I have two tikz graphics in a \sidewaysfigure environment and i want to separate them with a little vertical spacing. The problem is that the two graphics are directly side by side, only the caption ...
5
votes
2answers
211 views

How can I vertically align the numerators of two fractions?

I am writing the following formula: % arara: lualatex \documentclass{article} \usepackage{mathtools} \usepackage{unicode-math} \begin{document} ...
5
votes
1answer
437 views

Moving a subfigure

I need to move the left part of the subfigure in the following picture upward: That is, the image should like the following: so the subfigures are aligned vertically at the top. Document: ...
5
votes
2answers
11k views

minipage environment with bottom-aligned

I would like to make my figures with bottom-aligned, but the arrows are still in the center. Here is my code: \begin{figure}[!ht] \centering \begin{minipage}[c]{0.2\textwidth} ...
5
votes
1answer
227 views

Stretchable vertical skip with mdframed

I created an mdframed-based theorem environment as follows: \newmdtheoremenv[outerlinewidth=0pt, leftmargin=0pt,rightmargin=0pt, innerleftmargin=4pt,outermargin=0pt, ...
3
votes
2answers
4k views

\vfill and vertical space

In a two-column document, I would like some text to be positioned at the bottom right of the right column. The text is inside tabular and flushright. An MWE is: \documentclass[twocolumn]{article} ...
0
votes
1answer
62 views

Vertically centering page with @texttop and @textbottom

I am trying to use \@texttop and \@textbottom to vertically center a page in a manner similar to Use of \@texttop and \@textbottom for vertical positioning. Everything works fine if I do ...
5
votes
1answer
858 views

How can I vertically align two minipages with subfigures and differing caption length?

Following "Placing two figures (each having subfigures) next to each other", I used the following code in order to place two figures with subfigures next to each other putting the subfigures ...
0
votes
1answer
2k views

Vertical centering of figure

I understand from other posts that a single float should automatically be centered vertically on the page; however, this does not seem to be the case in my code. Why? I use the book class. Both ...
2
votes
1answer
463 views

Vertically center elements in table doesn't work

I am trying to vertical and horizontal align items in a table. I tried to follow what I found on the internet, including on this site, but it seems not to work for the last column. Here is what I ...