{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
2answers
44 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
27 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 ...
2
votes
2answers
27 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
43 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' ...
3
votes
1answer
34 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
59 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 ...
3
votes
1answer
57 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 ...
1
vote
1answer
78 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 ...
3
votes
3answers
35 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
68 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
36 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
48 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
220 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 ...
1
vote
1answer
59 views

Beamer: vertically centered slide content

I am trying to make a slideshow for a quiz. In between rounds, I want to put a blank slide with just the title of that round, vertically centered. The title slide should also be vertically centered. ...
3
votes
1answer
36 views

Aligning text vertically relative to other subfigures with subcaption

I want to add vertical (rotated) text at the beginning of a row of subfigures using the subcaption package. My solution right now is to create a separate subfigure: \documentclass{article} ...
3
votes
2answers
41 views

How to top center a picture in a table cell?

Hello I'm very new to LaTeX, and how it works. I want to make a table with 6 columns and x amount of rows. \section*{\centerline {Counter-Strike: Global Offensive}} Her finder du information om de ...
2
votes
1answer
34 views

Rounded corner box in itemized environment

Here is the MWE: \documentclass{article} \usepackage{tikz} \newcommand{\rbox}[1]{ \begin{tikzpicture}[remember picture, overlay] \node[rounded corners=3pt, draw]{#1}; ...
3
votes
0answers
47 views

Book-style page filling in article documentclass?

Simple question. I feel like it should have a simple answer but I can't find anything. The documentclass book (and default multicols) stretches content so that it fills the page. Now, I want to use ...
5
votes
1answer
33 views

longtable sometimes starts new page when we are near the top of the page

Most of the time longtable does exactly what is required, but sometimes it starts a new page when it is near the top of the page and there is plenty of space for the entire table on the current page. ...
1
vote
1answer
54 views

Tikz nodes with `fit=(top)(bottom)` slightly missized

I like to create textboxes via TikZ. I start with that flexible example. And, Yes :) I do create texboxes. Here it is. But I still have two problems.. Q1 I use fit to create light gray ...
3
votes
1answer
43 views

center align equation

I try to align a multiline equation, but im getting a large space. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{mathtools} \begin{document} \begin{align} AAAAAA &\, yyyyy ...
3
votes
1answer
141 views

Alignment of exponential numbers with non-exponential number

I would like to align non-exponential and exponential number at their decimal point in a table. I tried \documentclass{article} \usepackage{booktabs} \usepackage{siunitx} \begin{document} ...
2
votes
1answer
114 views

Align math sequence next to text

I am writing an assignment and I have a long algorithm that takes up almost a whole page. I would really like this to be shoved to the side so I can write besides it. For the algorithm to look correct ...
2
votes
2answers
45 views

Vertical alignment within table

My MWE: \documentclass{article} \usepackage{lscape} \usepackage{booktabs}% http://ctan.org/pkg/booktabs \newcommand{\tabitem}{~~\llap{\textbullet}~~} \begin{document} \begin{landscape} ...
0
votes
2answers
37 views

How to arrange the figure along the line itself?

How to arrange the figure along the line itself? My picture must be along the question itself. How to do that?? help me. Thanks in advance \documentclass[12pt,a4paper]{exam} ...
3
votes
1answer
34 views

Theorem linebreak in an itemize environment

I'm using the itemize environment to take notes and sometimes I want to add definitions and theorems in the flow. However, amsthm adds a linebreak between the item bullet and the theorem statement, ...
5
votes
3answers
210 views

! You can't use `\unskip' in vertical mode. … How to get space between lines?

I searched the error, but I didn't seem to find anyone who actually wanted the spacing. Also, this is my first question on Tex Stack Exchange, so let me know if I've formatted anything incorrectly, ...
5
votes
1answer
55 views

Why the text goes a little up when comparing two minipages?

I am trying to add a second name in the supervisor list and when I do it the list goes a little up compared with the Authors name. How can I do it to be in the same height: block code for the first ...
1
vote
0answers
35 views

Vertical adjustment of side caption

I have a long table, which I want to start in the margin of my document. However, I am using side captions, and to avoid the table to overlap the caption, I would like to move the caption down a bit. ...
0
votes
0answers
36 views

Fancy part title page with titleformat and centering problem

I would like to create a fancy part title page but I have some issues with titleformat. Currently, I use : \titleformat{\part}[display] {\normalfont\filcenter\thispagestyle{empty}} {}{0pt}{ ...
3
votes
2answers
92 views

Vertically center text or math in a framebox

I have the following commands in my code (taken from Creating uniformly sized boxes around text) to manually adjust the height of frameboxes (the reason is that I often put several in a row with ...
4
votes
2answers
49 views

Align baselines of underset elements in display math equation

I am trying to create a display equation showing the coefficients of an example polynomial for use in the quadratic formula. Basically, I want each coefficient of the polynomial to have an arrow ...
8
votes
1answer
113 views

Why do I need an \hbox inside \vcenter to make it work?

I want to vertically center an object in an equation. I thought: "Ok, \vcenter is the way to go." But I don't understand (not even from the TeX primitives reference), why I need an \hbox inside my ...
2
votes
1answer
45 views

How to center text in a cell of a longtabu (horizontal and vertical)

I have a long tabu like the one defined last in this question and online here. It looks like this when compiled: As you can see the "point" and "score" text is placed in the buttom right corner. ...
1
vote
1answer
65 views

Vertical alignment of table text

I'm trying to align my table text vertically: MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{array,pifont,xcolor} ...
4
votes
2answers
135 views

Add some vertical text on the margin of document?

I like to put url in the left/right margin and align it vertically like arXiv (see figure below). Here is a MWE: \documentclass[10pt,a4paper]{article} \usepackage{lipsum} ...
3
votes
1answer
32 views

QED placement with `prooftree` package

I am using Paul Taylor’s prooftree package to typeset natural-deduction proof trees. When a proof ends with a proof tree, how can one obtain the correct placement for the QED symbol? For instance ...
0
votes
0answers
18 views

\tabucline alignment problem

I'm trying to use \tabucline to generate line with a gap. I get proper result using following code \cline{1-1} \cline{3-6} Result: However, when I use \tabucline to change line width, it ...
6
votes
2answers
66 views

tcolorbox equation and fleqn: not vertically centered

Using tcolorbox with ams equation, there is sometimes additional leading space before the equation comes: \documentclass[fleqn]{article} \usepackage[many]{tcolorbox} \usepackage{amsmath} ...
2
votes
1answer
73 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 ...
2
votes
1answer
48 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 ...
1
vote
2answers
111 views

Typesetting Multipart Exercises

When I typeset exercises, I sometimes like to provide the exercise number in the left margin rather than as part of the paragraph describing the exercise. This poses a problem when I need typeset ...
0
votes
1answer
44 views

Reduce Vertical White Space subfigure

I am having problems removing the white space between two rows of 4 consecutive images. Help is greatly appreciated! As a note to other users, horizontal white space was removed by using a "%" after ...
3
votes
1answer
27 views

Vertical adjustment (column type) not considered by the tabu environement

I am using the tabu package to generate tables and I cannot make vertical adjustments to the cells content. The horizontal markers l, c, r, or j work fine but the column types p,m, or b have no ...
6
votes
1answer
84 views

Align to top of box

This latex code (uses amsmath and proof) produces the image below: \documentclass{article} \usepackage{proof} \usepackage{amsmath} \begin{document} \begin{equation*} \infer[\forall x ...
4
votes
1answer
50 views

aligned-environment in tabularx - fail to align vertically

I try to have a simple tabularx-table in which the cell content is vertically aligned to the top. While this works as expected for text, two aligned-environments in adjacent cells are vertically ...
3
votes
2answers
58 views

Evenly spacing figures vertically across page

I am compiling an appendix for my dissertation consisting only of figures. Currently the gap between the top figure and the top of the page is smaller than the gap between the lower figure and the ...
1
vote
2answers
166 views

How may I align the following mathematical statement 'horizontally'?

I appreciate if someone could provide me an answer with coherence. \documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} ...
5
votes
1answer
46 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, ...
2
votes
1answer
85 views

Figure alignment using sub caption

I'm trying to align some figures using the subcaption package. My current code is that: \documentclass[11pt,twocolumn]{article} \usepackage[demo]{graphicx} \usepackage{subcaption} ...