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

4
votes
0answers
140 views

Centering cell content in multirow [closed]

According to the table code below, Could anyone please help me to: center vertically and horizontally TextB1, TextAB, TextC0, TextC1, TextC2, TextC17 and TextC18 Draw vertical line along the right ...
0
votes
0answers
114 views

How to put text between stacks of images? [duplicate]

I need to know how to put text between stacks of images in LaTeX in an elegant way. I have tried to use \par, \linebreak, \bigskip, but the results are not good. Here is the code: \begin{figure}[ht] ...
2
votes
1answer
198 views

How to make a column with an adaptive width?

I have two questions in creating the following table: 1) How to make the first sub-column (with title No.) adaptive in width? Now it has the same width with the second sub-column, but I'd like to ...
4
votes
3answers
457 views

Table Header with vertically centered alignment

I'm creating table header using latex code mentioned below: \begin{center} \begin{tabular}{|c|l|c|c|c|c|} \hline $\textbf{Q }$&$\textbf{Header one}$&$\textbf{Test} ...
0
votes
1answer
49 views

begin{align} behaving oddly - Lines after (10) show up as exponents

I'll let the picture speak for itself. Full res here: http://i.imgur.com/YyXBPv1.png It's probably a silly mistake but I have been awake for the past 20 or so hours and in my current state I ...
2
votes
1answer
757 views

Problem having an aligned column using multicol

I'm having problems getting a good-looking column. (The text is in Danish.) What can I do to get them aligned? \section{Teknologianalyse} \subsection{Teknik} \begin{multicols}{2} ...
4
votes
1answer
1k views

TikZ: Crop images after placing them

I have a ton of microscopy images to include in a report, some of these images have rather uninteresting information I want to crop. Since I add scale bars using TikZ and therefore require all image ...
2
votes
3answers
693 views

Tikz matrix vertical alignment

I'm having trouble with the vertical alignment of the nodes in a tikz matrix. I have two plots next to each other. I want them to be aligned with respect to the center of their bounding boxes, but ...
4
votes
1answer
565 views

Math mode inside LyX tables

If I insert a math mode environment inside a table cell, then the output will show no vertical space between the borders and the equation, here is an example: Is there any way that will make ...
19
votes
3answers
1k views

How to align limits of double integrals?

I'd like to have the limits of two integrals vertically aligned. In this example, the x and b should be positioned on the same line. \[\int\limits_x^{\infty}\int\limits_b^{\infty} x^2+y^2 ...
4
votes
1answer
266 views

How do I make tabu and multicol play nice with each other? [closed]

I'm trying to write a document that will require lots of small tables (which contain other, nested tables) in a section of my document, which I want to put into a two-column section. I use tabu for ...
5
votes
1answer
283 views

How to set bounding boxes of groupplots for aligning purposes?

How can I set the bounding box of a groupplot to the left and right outer axis of the subplots in the groupplot? In my MWE are three plots and I want to align the outer axis of the groupplots with ...
4
votes
1answer
218 views

Align itemize items and text in table

I have itemize environment in a table. With a text in other cell, the alignment is not correct. How can I shift the text so that the item is aligned with text? Or, how can I control the indentation of ...
4
votes
2answers
1k views

Put chapter title in the middle of a page (vertically)

I'm using fncychap package to customize my chapters' titles. I want to put the chapter title in the center of a separate page (vertically). \documentclass{report} \usepackage[Bjornstrup]{fncychap} ...
4
votes
2answers
400 views

Wrong tick labels alignment on baseline

Here is an example replicating a problem I faced using the xticklabels from table feature: \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \usepackage{siunitx} \begin{document} ...
6
votes
1answer
189 views

Match upper horizontal line of two fractions with different roots

I'm learning LaTeX and encountered a problem which I'm not able to solve after reading several related problems (e.g.: Align \sqrt with baseline of other mathematical input). I will present my actual ...
3
votes
1answer
254 views

Align marginpar with top of current paragraph

I am using \usepackage{backref} to create a back reference in my bibliography. That part is working fine. I am now attempting to use \marginpar to have those references show in the margin, like so: ...
5
votes
1answer
180 views

Vertical alignment of atoms in chemfig

I have a problem aligning atoms in chemfig when one of the atoms has a descender. The solution proposed in the manual is not really good, because it changes the position of bonds. Consider the test ...
9
votes
3answers
153 views

Cases environment without the brace

I want to vertically align one equation against two, similar to the cases environment but without the brace: e.g. similar environment to: There must be another solution to the alignment solution ...
1
vote
0answers
72 views

marginfix package interferes with title element vertical placement in memoir

Possibly in other classes as well. Typeset the below and everything is bunched up at the top of the page: \documentclass{memoir} \usepackage{marginfix} ...
3
votes
1answer
437 views

form field alignment with a table cell

Is there any way to horizontally centre the checkboxes in the following MWE? Also is there any way to adjust the size of the checkboxes so that (i) they do not touch the cell border, and (ii) they are ...
9
votes
1answer
167 views

Measuring align

From what I read it seems that align environments are processed twice: the first time for measuring, the second time for actual typesetting. My question is whether one can get access to these ...
3
votes
2answers
191 views

Enumeration across many sections

I am trying to combine enumeration over multiple sections: it is not working. \documentclass[12pt]{article} \usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry} ...
3
votes
1answer
79 views

How can I use \vfill in a lstlistings environment?

I'd like to do something like this: \begin{lstlisting} public do(int whatever} { \vfill } \end{lstlisting} So basically, I want a method definition and then add spaces in the body of the method ...
4
votes
1answer
85 views

How to place the item bullet at the top of a multiline item?

I have the following LaTeX code: \documentclass[]{article} \usepackage{amsmath} \begin{document} \newcommand{\A}{\begin{bmatrix} 1 & 0 \\ 0 & 1\end{bmatrix}} \newcommand{\B}{\begin{bmatrix} ...
3
votes
1answer
124 views

Vertically stack parboxes in a cell of a table

I need to insert an enumerate environment in a table. Following hints from this page: itemize in a tabular environment, I used \parbox to prevent error (Putting itemize environment in a tabular ...
12
votes
1answer
109 views

Tight connection of \vbox es

I don't understand why TeX put a thin whitespace between my two vertical boxes: \documentclass{article} \begin{document} \vbox to 1cm {\rule{1cm}{1cm}} \vbox to 1cm {\rule{1cm}{1cm}} ...
1
vote
0answers
116 views

How to align bottom edges of mdframes with bottom of text area

I've got a problem with the alignment of the bottom edges of "mdframes". These aren't aligned with the bottom of the text area, as in the following example: \documentclass{scrartcl} ...
2
votes
1answer
282 views

Aligning multiple equation environments with cases

I have some code that works but I wish to align the environments according to the descriptions. I've tried various combinations of align, equation and cases, but can't seem to find a functional ...
4
votes
1answer
94 views

Changing the distance between a label and a math symbol (an arrow for example)

How does one change the distance between the text label and an arrow (for example), by default the labels are way too high and way too low, it looks better if they are flush with the arrow (they seem ...
4
votes
3answers
245 views

Vertical cell alignment in tables?

This problem drives me crazy right now. How can I draw a table with the following properties in Latex? width = \textwidth 1 column: horizontal alignment = left, vertical alignment = bottom 2 column: ...
5
votes
2answers
263 views

Absolute vertical positioning of parbox

I create signature area like \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} %some content here \begin{center}\parbox[t]{5cm}{\hrule height 1pt\medskip \textbf{John ...
5
votes
1answer
6k views

Centre an image, ignoring margins

I have a document with .5cm margins; I want to include a long image which will span the width of the page, ignoring margins. I don't care about the whole image being visible (or which part of the ...
10
votes
3answers
258 views

How to align the conditions in a hierarchical structure?

I know how to align the conditions on the left side of the conditions with either aligned, cases, or array if there is only one level. However, I can't figure out how to do so in a hierarchical ...
3
votes
1answer
597 views

Vertical Alignment of (graphic+text, inside a mini page)+item number

I have a figure and text inside a minipage inside an enumerate. I would like align the text and the item number and top-align the figure and the text. Top top-align figures and text in the past I ...
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
64 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
176 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
108 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
657 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
168 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
286 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
190 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
363 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 ...
3
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
123 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
100 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 ...