{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
47 views

tcolorbox & text vertically center align

tcolorbox and text does not vertically align to the center with one another. \documentclass{book} \usepackage{tcolorbox}% for framed rounded boxes ...
0
votes
0answers
22 views

Strange vetical spacing in book Class [duplicate]

I am using the book class for my thesis. However, the default alignment is very strange as shown in the following sample. As it shows, extra space was added between lines so that the content is ...
1
vote
1answer
35 views

Vertically centering of text in multirow in table when using \cmidrule

Consider the following example: \documentclass{article} \usepackage{siunitx} \DeclareSIUnit[mode = text]\kroner{kr.} \usepackage{booktabs,multirow} \newcommand*\mr[2]{\multirow{#1}{*}{#2}} ...
0
votes
0answers
40 views

Why does the text begins in the middle

I am making a project. When I made a frontpage and a table of content my text does not begin from the top of the page. Can someone help me to fix it
35
votes
2answers
4k views

How to define a figure size so that it consumes the rest of a page?

Sometimes I don't need to have a specific picture size, but for layout reasons I would like to scale the image so that the rest of the page is filled. How can I achieve that?
1
vote
1answer
22 views

Vertical align of multirow cell

I give you a little example, so it's more easy to explain: \documentclass[a4paper,12pt]{book} \usepackage{multirow} \usepackage{longtable} \begin{document} \begin{longtable}{|c|c|} \hline ...
5
votes
2answers
136 views

Nodes on arrows not aligned nicely

I've written the LaTeX for an automaton that looks like this: As you can see, the 'b' on the arrow from q1 to q3 is positioned lower than the 'a, b, c' on the arrow from q3 to q2. Also, the 'b' ...
0
votes
1answer
80 views

How to balance last page of a LaTeX document?

I am trying to balance the last page of my LaTeX document, i.e. a conference paper. I am using the flushend package to do it. All of it goes well except for the last line. The columns are balanced but ...
1
vote
0answers
44 views

Vertical chapter title in the table of contents

I'm about to write my thesis, and finally decided to do so in LaTeX. I'm still new to it though, and was wondering if something like this is possible in the table of contents: --+ | I | N | ...
7
votes
3answers
123 views

Reposition Text around Images

So I'm trying to work on a visual layout for a kind of Xmas card. The idea is to have a pictures in the upper left and lower right corners with the family name and date centered in the upper right ...
2
votes
1answer
88 views

Sidebar or sidepar vertical alignment with objects

I am writing a document (memoir) with an extensive use of sidepars. I like a lot that sidepars are aligned vertically according to the line position of the word to which they are attached. My document ...
3
votes
2answers
73 views

Align first line in tikz picture with surrounding text

I would like to align the baseline of the first row of the tikzpicture with the baseline of the surrounding text to get something like Let A → B be a function from A to B a → f(a) but at the ...
2
votes
3answers
64 views

Change row vertical alignment in a table

I am trying to produce a table that changes the vertical alignment of the cells for different rows. At the moment I have set up my table so that all the columns are middle and center aligned. However, ...
4
votes
2answers
67 views

Aligning several forest trees in centered way

I want to align three trees in the way shown in the following figure: What I have now is the following code: \documentclass{minimal} \usepackage{forest} \forestset{ tag/.style={for ...
2
votes
1answer
71 views

Vertical aligment of dinglist inside table cell with `parskip`

Why is the list text so close to the top line of the cell in some lists? I know it's a problem with the parskip package. I can solve this by adding this strut in every cell before the text ...
4
votes
2answers
34 views

Alignment issues due to vspace and hfill

Facing issues with alignment (the 3 and 4 are out of alignment), I suspect it has to do with the vspace and hfill issue. Please assist. \begin{enumerate}[\textbf{(\roman*)}] \item Using a scale of 1 ...
6
votes
2answers
78 views

Aligning stackrel signs beneath each other using split

I'm typesetting a proof by induction using split to align equality signs precisely beneath each other. One of the signs should have 'IH' on top of it to indicate that the induction hypothesis has been ...
6
votes
1answer
137 views

aligning several trees to the baseline

I want to have the following trees aligned to the baseline. There is a problem which is probably due to the "g" in some of the trees. How do I get these trees aligned? I tried \strut, but this somehow ...
0
votes
0answers
28 views

“Vertical array” inside multicols? Translation problem

I am using a 2-column {multicols}{2} environment for a translation of a text. On the left column is language A and on the right column is language B. Now my text has some rules which are indented ...
3
votes
1answer
70 views

How can I name a label node?

I have recently discovered the possibility to adjust the baseline of a tikzpicture via the baseline=... key. However, this requires the node at which the baseline should be oriented to have a proper ...
3
votes
2answers
46 views

arranging the arrows in align environment

I have the following code and I dont know how to align the two horizontal \Longleftrightarrows vertically higher than they are now. Ideally they need to be only vertically moved a bit up so that one ...
2
votes
2answers
41 views

Custom environment for second-level items not vertically aligning properly

While writing a document with lots of enumerate environments, I wanted to add a little subset, 1. So the item is here — and the inset is here Which I did pretty easily. However, when I ...
2
votes
2answers
52 views

Centering a table in a figure environment

I have the following code which I am trying to use to show the image of the lo shu magic square being translated into its numeric magic square equivalent: \begin{figure}[htbp] \centering ...
3
votes
1answer
51 views

Read graphics dimensions

I'm putting sets of graphics (i.e. figures and graphs) aligned in sets of rows using caption and subcaption packages. As figures and graphs doesn't have same with/height ratio the captions in rows are ...
3
votes
2answers
43 views

Aligning three columns differently; with images, manually broken and wrap-around text

I am trying to create a situation with three columns from left to right: one with an image top-edge aligned to the top of the center column and the left of itself; one with wrap-around text having ...
1
vote
0answers
20 views

adjust vertical space between horizontal line of the radix in denominator and the horizontal line of the fraction

Even in display math I guess that there is too little space between the top horizontal line of the radix symbol and the horizontal line of a \frac. How can I control that vertical space? I have a ...
1
vote
2answers
31 views

\vspace is swallowing my column

I am using \vspace*{1cm} in my table.. Unfortunately, the column seems to have dissapeared at the location where I am placing my /vscpace.. See the picture \multirow{3}{*}{Rayleigh } & ...
4
votes
1answer
3k views

Align the top of two tables horizontally (side-by-side with minipage)

I'm using \minipage to put two tables side by side. But when the two tables are not of equal length, the shorter of the two is vertically centered with respect to the other. I would like both tables ...
9
votes
1answer
889 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. ...
4
votes
1answer
450 views

Vertical alignment in multicols environment with figures

I have the following lines: \documentclass[a4paper,landscape,12pt,oneside]{scrbook} \usepackage[english]{babel} \usepackage{multicol,lipsum} \usepackage[demo]{graphicx} \usepackage[utf8]{inputenc} ...
0
votes
0answers
25 views

How to write text vertically right/ left to the margin to the whole document? [duplicate]

I want to write text vertically right/ left to the margin to the whole document. A sample figure is shown below. Is there any way to do this? Please suggest.
2
votes
1answer
56 views

Inconsistent Vertical Spacing Using Multicol

I've been getting random vertical spaces between paragraphs using multicol. Oddly enough, if I change the margins to 1cm I get perfect spacing. The problem gets worse if I attempt to add an asterisk ...
6
votes
1answer
58 views

Eliminate distance from phantom node in forest

Ignasi's answer to Forest trees on the same line shows how to effectively draw two trees in the same forest environment using the phantom trick noted in the forest documentation. Doing this, however, ...
3
votes
4answers
107 views

Wrong bottom-alignment of rows of two independent tables, where the last row contains a nested table

I wanted to create a page, where I put some information in the left and some on the right side at the bottom of the page. The bottom lines of the minipages are supposed to be aligned as kind of an ...
3
votes
2answers
64 views

top alignment of table in table

I have a small :) problem with latex. I wanted to put an enumeration into a tabular, but this didn't work. Than I worked on a workaround ending up with the following code. My Problem: The cells are ...
3
votes
1answer
78 views

Problem with tikz external library and chemfig - fatal error in external image

I have a document with a lot of diagrams created with PGFPlots and want to externalize those. All other tikz snippets should not get externalized. I achieve this by setting \tikzset{external/only ...
3
votes
1answer
37 views

Alignment of equations that contain Feynman diagrams

I want to insert a Feynman diagram into an equation, but when I do so, I find that the Feynman diagram and the rest of the equation are awkwardly aligned. The picture should make it pretty clear what ...
1
vote
1answer
86 views

How to have several overleftarrows of same height and length

I want to put arrows on top of various pieces of several formulas but I want the arrows to be of the same size and height. What is a good solution? For example consider \overleftarrow{x} \quad ...
2
votes
2answers
31 views

Align text in equation

\begin{align*} \text{min } \mu \ \\ \text{s.t. } P^t(X) &\le y_t,\ (\forall t \in T)\\ \sum_{t \in M_k} y_t &\le \mu , \ 0 \leq k \leq k_{max}\ & \\ ...
2
votes
2answers
56 views

Align table by dot - Not with siunitx

I'm trying to align numbers in a table by the dots. I know of one method using the siunitx package. But I can't load the package. siunitx error: "incompatible-package"! Package 'SIunits' ...
0
votes
1answer
60 views

aligning and logo shape in moderncv

How can I align the logos and the elements on their right side? Another, and more important, problem that I face has to do their shape. As soon as I close TeXworks and try to open the pdf document I ...
3
votes
1answer
40 views

Vertical Alignment or Centering

\begin{tabular}{|c|c|c|c|c|} \hline & \multicolumn{2}{c|}{Demand} & \multicolumn{1}{|c|}{} & \multicolumn{1}{c|}{} \\ \cline{2-3} AAA& Group 1 & Group 2 &BBB & CCC \\ ...
2
votes
2answers
65 views

Separate page vertically at variable height

Other Explanation: This is a template at mark #1 there is an table inserted and at mark #3 some text. The text and table which are inserted are of different size for each dataset. Normally both fit ...
7
votes
1answer
269 views

align margin note to vertical center of text block or environment, with optional bar

Here is what I wish to achieve: section title as usual (optional) subsection in left-margin, aligned to top of its contents group of text/theorem/etc blocks within subsection margin note or label ...
9
votes
4answers
1k views

Stretching a framebox over the whole page

Does anyone know how to stretch a (framed) box down to the end of the page? In effect something like \documentclass{scrartcl} \begin{document} sometext ...
3
votes
3answers
45 views

longtable Alignment

I'm using a long table with image and lots of text. The alignment of it is wrong for me. I'd like to know how to make the text start on top of the box, near the line. Here is my code for the longtable ...
3
votes
3answers
75 views

How to vertically align an image in a beamer column?

How can I vertically align the content of a beamer column? In the following example, I want the rule in the second column to be centered vertically. I could use \begin{columns}[c], but that would ...
2
votes
2answers
38 views

Alignment of numbers in table with wide columns

I have a table with numbers which get aligned using the S column type from siunitx. Some numbers are put into \multirow and with the \tablenum macro the alignment works perfectly as long as the ...
2
votes
2answers
58 views

Equation and image aligned on beamer slide

I'm trying to make a beamer slide which has some matrix equations and an image lined up with each other. Here is my attempt: \begin{frame}\frametitle{Transportation polytope constraints} A ...
9
votes
3answers
230 views

How To Make a Special Position Environment in LaTeX?

So I must admit I am way out of my depth and have no idea what I'm doing. I apologize in advance for a long and complicated question. I'm trying to build this output: Which I have successfully ...