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

0
votes
1answer
124 views

Aligning subfigures with the plots starting at the same level

I have two figures that I am trying to align side by side. The difficulty is trying to get the two plots on a same horizontal line. In the bad example picture shown below the problem is that the ...
3
votes
1answer
81 views

Vertical centering of a title within a box which ignores possible accents

I am currently adapting the \part command to customize the table of contents as follows [code directly extracted from the book.cls class]: \def\@part[#1]#2{% \ifnum \c@secnumdepth >-2\relax% ...
1
vote
1answer
370 views

Horizontal line through table cell

I have a very long, thin table that I'm folding onto itself to make a wider, shorter version. The table has a couple horizontal rules to separate data categories. For example, the original table is ...
4
votes
1answer
4k views

Vertically center text in tabularx table [duplicate]

How to center text vertically in this table? \begin{center} \begin{tabularx}{\linewidth}{ | c | X | X | } \hline \textbf{Date} & \textbf{Name} & \textbf{Sign} \\ \hline ...
6
votes
2answers
3k views

Figure and table side by side with common caption

I'm not a LaTeX expert, and I want to align a table and a figure side by side, with a common caption; the table and the figure should be aligned to the bottom, too. I tried this: \begin{figure} ...
3
votes
1answer
401 views

Top-aligned table cells with different font sizes and controlled spacing

I am trying to achieve a table where a few things have to work simultaneously. Several of these things have been discussed before, but I have been unable to make everything work at once (and some ...
2
votes
1answer
175 views

How to vertically align the text in table cell?

I am trying to get a table cell with vertical text alignment. My current code is: \begin{tabularx}{\linewidth}{|X|} \hline \cellcolor{gray!20}Hardware\\ \hline \end{tabularx} Is there an easy ...
4
votes
3answers
4k views

Top alignment of cell content in tabularx

I would like to align the content of each cell (of the first column) to the top. The approaches presented here did not apply. Maybe it has something to do with die tabular-environment inside the ...
1
vote
1answer
228 views

Extra space added in table with multi-rows and columns

I am working with a table with multi-rows and headers. The problem is when I run it, extra space is added both between rows and at the end of the last column. \documentclass{article} ...
8
votes
2answers
386 views

Align subscripts vertically

I would like to align the subscripts in an expression such as this one: \documentclass{article} \usepackage{amsmath} \begin{document} $$\sup_{f\in\mathcal H}\lim_{\epsilon\downarrow ...
7
votes
1answer
262 views

Horizontal alignment of margin notes in nested enumitem list

I would like to be able to 'tag' certain list items in an enumitem list with a mark in the left margin. I would like the marks in the left margin to be horizontally aligned with respect to each ...
6
votes
2answers
379 views

How to vertically align multiline column

I am trying to set up a table with the tabularx package (although the used package does not really matter to me). The table should stretch across the entire line. I am trying to get both columns ...
4
votes
1answer
3k views

Dedication page in article class

Alignment of dedication page in the document class article. \documentclass[a4paper,12pt]{article} \usepackage[paper=a4paper,left=30mm,right=20mm,top=25mm,bottom=30mm]{geometry} ...
7
votes
2answers
397 views

Ensuring a paragraph uses at least a given height?

I'm making a custom document class based on memoir, and I don't know how to implement the chapter precis so that it does what I want (the chapter precis is a small optional paragraph that follows ...
5
votes
1answer
561 views

Even columns in document with long bibliography

I am writing a document in two column format and the last two pages are devoted to the bibliography, which I generate with BibTeX. I need to finish the last page with the two columns having the same ...
3
votes
1answer
282 views

Line break in a table cell for a math equation?

In the middle of typing up an assessment and trying to work out how to get equations to work inside a table environment \documentclass [11pt] {article} \usepackage{amsmath} \usepackage{pdflscape} ...
1
vote
0answers
24 views

getting latex to vertically align all text blocks on a page instead of vertically justifying them [duplicate]

I'm typesetting a book (documentclass = book) and every page compiles so that the first line is aligned with the top of the latex page and the last line is aligned with the bottom of the page - but ...
1
vote
0answers
424 views

Vertical/Horizontal alignment for multi-line header [closed]

I have the following code to create my header \documentclass[english]{scrreprt} %%% PAGE DIMENSIONS \usepackage{geometry} ...
4
votes
1answer
395 views

Multiline title vertical alignment using classicthesis and arsclassica

I would like to align the 2nd line of my title to have the same baseline with the chapter number. What I have now is , but I would like to have instead. I found that the tweak in How to get ...
10
votes
4answers
3k views

\qed or \qedhere at the end of split environment

While I was trying to improve my latest document with respect to its \qed symbols at the end of amsthm's proof environment i came across an interesting point. Assume the proof ends with some formula, ...
14
votes
3answers
10k views

Make two figures aligned at top

I am inserting two graphs (of different size) in the following way: \begin{figure}[H] \begin{center} \includegraphics[scale=0.5]{graph1.eps} \includegraphics[scale=0.3]{graph2.eps} ...
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 ...
2
votes
1answer
309 views

Enforcing baseline alignment for multiple overbraces in math mode

What is the easiest way to vertically align overbraces in math? In the following example... \documentclass{article} \usepackage{amsmath} \begin{document} \begin{math} *(m, n) = (\overbrace{n - ...
2
votes
1answer
509 views

Top aligned tabular: \cline equivalent of \firsthline

When aligning tabular environments with the [t] option, one can use \firsthline (from the array package) instead of \hline when a line is required at the top of the table. Like so: ...
1
vote
1answer
391 views

Why is my abstract starting from the middle of the page?

I am making a scrreprt document with an abstract right after the title page. Everything works fine except for the fact that the abstract title and paragraph start in the middle of the page... Does ...
2
votes
1answer
137 views

Remove footer on title page or change content frame size

How can I change the size of the content frame to align it to the footer line? The distance between TEXT3 and the bottom page edge should be the same as the distance between TEXT1 and the top page ...
5
votes
3answers
238 views

How can I do this without the cases?

How can I do this without the cases? $\begin{cases} \dfrac{\partial u(x,y)}{\partial x}=2x=\dfrac{\partial v(x,y)}{\partial y} \\ \dfrac{\partial u(x,y)}{\partial y}=-2y=- \dfrac{\partial ...
1
vote
1answer
522 views

Vertically center block of text including chapter for dedication page

I have a dedication page in my book (using \documentclass[a4paper,11pt,openany,oneside]{book}. It is in a separate chapter and contains two small paragraphs. The chapter is on a separate page. At the ...
5
votes
1answer
230 views

Vertically aligning text after baseline changed

\documentclass{article} \usepackage{tabularx} \usepackage{tikz} \begin{document} \begin{tabularx}{\linewidth}{c|X} \begin{tikzpicture}[ scale=.6, every node/.style={scale=.6} ] ...
5
votes
1answer
746 views

tikz picture inside of an enumerate environment

Is there a way I can make sure that the number of the enumerate environment stays in the top left of the tikzpicture? I'm using a custom environment that just wraps around the enumerate environment... ...
2
votes
1answer
381 views

How can I place an image in a marginpar and make it position itself according to the top of the image

As demonstrated by the following MWE, I've placed a simple image in the margin of a document. What appears to happen is the caption text is vertically aligned with the line that I type the \marginpar ...
8
votes
2answers
1k views

Putting text at the side of a tikzpicture

I've just completed a tikz diagram. I need the text In the following diagram, what can you say about $\angle F$, $\angle B$ and$\angle E$? to go to the right of the diagram to save space on ...
8
votes
3answers
428 views

Aligning text and a tikZ picture vertically

Here is my current slide: \documentclass{beamer} \usepackage[english]{babel} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{frame} \frametitle{My slide} ...
5
votes
1answer
2k views

How to align PGFplot subplots

I am using the matlab2tikz MATLAB function to export a MATLAB figure with subplots to tikz code. Unfortunately the subplots do not align properly. The post PGFplot to occupy full \linewidth, and ...
2
votes
2answers
233 views

How to align rotated table texts?

I turned the captions of my table by 90 degrees. Unfortunately, the headings do not fit to the table contents. Screenshot: Can this be changed? I already tried parbox but that did not work. Here ...
2
votes
1answer
578 views

How to align text without two column?

I want to have the following text alignment and I don't wanna use any "two column" and table because a environment i use doesn't support them. :( The text format looks like below picutre. Basicly i ...
3
votes
1answer
229 views

TikZ node in normal text

I would like to place a TikZ node inside normal text to get the fancy boxes. But the box is on the same baseline. I would like to get the text on the baseline. What can I do? \documentclass{article} ...
4
votes
2answers
961 views

Longtable column problem: column alignment changes

I'm setting up a big table (few hundred pages) with similar data as presented. I've used longtable in the past with good success, no problem. However, when I try to do the same again, I get the ...
3
votes
0answers
170 views

How to vertically align the captions for sub figures in subfigure? [duplicate]

This is my tikz code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,shapes.geometric,arrows,fit,calc,positioning,automata,} \usepackage{amsmath} \usepackage{caption} ...
4
votes
1answer
400 views

How to prevent book class from vertically justifying the contents? [duplicate]

If we use the book class, the output looks like the following screenshot. But if we use the article class, the output looks better as follows. The MWE is given as follows. Note: please enable ...
4
votes
2answers
219 views

Different vertical position of summation limits in consecutive \sum

When I use different summation indices in a double sum the limits are not vertically aligend, for instance: \begin{equation} \Delta K_T^i = \sum_{t=1}^{T}\sum_{k=1}^{m}{\Delta K_t^{i,k}} = ...
3
votes
1answer
538 views

Vertical alignment of nested table

I have two tables nested inside of a larger table. One of the nested tables is taller than the other, and I'd like to have the two tables line up together at the bottom. I've tried inserting [b] in ...
1
vote
1answer
106 views

How do I have the list item appear on the top left of the image? [duplicate]

I am including an image with the graphicx package in an enumerated list. \begin{enumerate} \item \includegraphics[width=100px]{my_image.png} \end{enumerate} The list item number appears on the ...
6
votes
1answer
775 views

\hfill in in table cells

There are tables in my document. The baselines between the last row of each table and the following text is usually circa 16,25p (see below). Now I wanted to add right-aligned text to some selected ...
3
votes
1answer
66 views

Enumeration marker appears centered to the left of the table

\item \begin{tabular}{ |l| l| l| } ... \end{tabular} \quad \begin{tabular}{ |l| l| l| } ... \end{tabular} The following causes the enumeration marker (ie, "(b)"), to appear in the ...
4
votes
1answer
272 views

How do i vertically align a tikz picture inside a beamer frame

The beamer frames optinal argument [c] seems to be ignored in the following example: \begin{frame}[c, fragile, shrink] %seems to be ignored, not aligning vertically \makebox[\textwidth][c]{ % ...
3
votes
2answers
123 views

vertical alignment in a row

I have a one-row table with a number of columns. Each cell in this row is another table, which can be either 2x1 or 3x1. I want to make sure that all these sub-tables are aligned to the top of the ...
2
votes
1answer
310 views

How to vertically center text in a table cell with multiple lines?

I want to vertically center "Apple iPad". Does someone here knows how to do that? My code looks like this: \begin{table}[H] \noindent \centering{} \begin{tabular}{cc} \hline ...
4
votes
2answers
1k views

How to anchor labels in tikz for baseline alignment

LaTeX handles subscripts and superscripts nicely, automatically correcting for various sizing and placement issues. I am trying to build a function that works like subscripts and superscripts, but ...
3
votes
1answer
2k views

Vertically center a table on a landscape page

I have a landscape page with one table on it. My current code horizontally centers the table, but how can I also vertically center it? \documentclass[10pt,a4paper]{report} ...