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

2
votes
2answers
43 views

vertical centering in tabular using array and booktabs

In the following school timetable for my 4 kids I am trying to use array and the m{} command (vertical align middle) to get the word Peter to be vertically aligned in its cell, (at the cmidrule), ...
6
votes
2answers
754 views

Text in table with images is not aligned on top

I have table with text in the first column and image in second. I want both columns to be top aligned. I use following code: \begin{tabular}{p{3cm}l} Internal state after adding 2 elements & ...
1
vote
0answers
40 views

one chapter affects layout of the next one

I maintain a very long document, which I usually process chapter by chapter, then compile the whole when the chapter I changed satisfies my needs. however, I saw an inconsistency in one of my ...
3
votes
1answer
43 views

Items in columns are not top aligned the same

If I'm using itemize inside a beamer column, the items are not the same way top-aligned as the items without a column. I want the symbols of both items in the images to be at the very same place. ...
2
votes
2answers
53 views

How to use aligment in a list?

At the moment: What I want: Here is the code: \begin{enumerate}[(a)] \item $3,6,9,12, \dots$ \item $3,5,7,9,11, \dots$ \item $2,3,5,7,11,13, \dots$ \item ...
2
votes
1answer
50 views

\vspace with negative value not working as expected

I want to position the image exactly in the corner of the margins, regardless of the text. However, the "Foo" gets placed slightly lower when using the code between the %s. Comment it out and you'll ...
3
votes
1answer
34 views

Side by side nodes, Horizontally aligned

I am trying to have two rows of nodes, but as you can see, the nodes are not horizontally aligned, so the arrows are off. How can I fix this? Result: MWE: \documentclass{article} ...
1
vote
2answers
86 views

Vertical spacing in list — latex3 syntax

Consecutively to this question, I need to add something after the inclusion of on itemed file to be sure that what comes next begins on a nexwline. I don't want skip blanck line in the source I'd like ...
12
votes
3answers
23k views

Tabular, parbox, vertical alignment

What i want to achieve is really simple: I want to be able to align cell content at the top (which is the default behavior of tabular) while being able to manually break lines (and anything you could ...
2
votes
1answer
69 views

How to align something to the paper diagonal [closed]

I drew a very large proof tree using bussproofs. Now, it does not fit on the page in either horizontal or vertical alignment, but it would fit on the page if I could align it to the diagonal of the ...
1
vote
1answer
28 views

Placing two different floats next to each other (independent, float-specific captions)

I have two floats, a figure and an algorithm (new floating environment). I want then to be placed next to each other each using half the linewidth (or 48%, or whatever looks the nicest). I have tried ...
1
vote
1answer
39 views

align numbers based on their decimal point [duplicate]

I have the following table: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table} \centering \begin{tabular}{ lcccccccc } \toprule \multicolumn{5}{c}{\textbf{Training ...
2
votes
1answer
37 views

How do I centre the text in this custom paper size example?

I try to use the Swedish G5 paper size (169x239)mm with text width 111mm, text height 165mm, side margins 29mm and top margin 37mm. Why doesn't the text get centred? ...
57
votes
2answers
90k views

Increase LaTeX table row height

How does one increase the height of the rows in a LaTeX table?
1
vote
0answers
65 views

Adjust alignment of text inside TikZ

A block diagram is generated with tikz pfg via Dia. However, the text inside the blocks is misaligned vertically. This answer says that it is impossible to do from Dia. So, how can following diagram ...
4
votes
3answers
205 views

Graphics and brackets not vertically aligned within align environment

I'm trying to include small graphics within an equation setting (they're little diagrams of mathematical knots), using \includegraphics within the \begin{align} environment. The graphics themselves ...
7
votes
1answer
111 views

Alignment of TikZ pictures in subfigures

I have made two figures using TikZ that I would like to place side by side. This is done in this MWE: \documentclass{memoir} \usepackage{graphicx} \usepackage{tikz} \newsubfloat{figure} ...
1
vote
1answer
35 views

Make LaTeX / KOMA-Script ignore vertical depth in sections

How can I force LaTeX / KOMA-Script (>=3.15) to ignore the vertical depth in sections? MWE showing the problem: \documentclass[twoside]{scrartcl} \begin{document} \section{ja} \rule{\textwidth}{1cm} ...
2
votes
0answers
40 views

mis-aligned chemical names

I am using \chemfig for writing chemical symbols, but those symbols they are misaligned with the rest of the text. Is there a package that I should add? \documentclass[11pt]{report} ...
0
votes
1answer
27 views

Consolidating start of page

This is a follow-up to this question. I would like the contents of the page to start exactly where they would start if the header wasn't present. This turns out to be a lot more difficult than ...
1
vote
2answers
51 views

to vertically align text in center in table when other cells are rotated

I am trying to move first cell text "Assembly" to the center of cell. I already tried raisebox, parbox and many more things but nothing worked. Please help me. And, I don't want to change the rotation ...
2
votes
0answers
38 views

How to control height of minipages, when using multiple rows

I'm using minipages to create a newcommand that allows me row entries in a CV, because I can't use the documentclass that would make this easier. Each set of minipages is one entry in the CV. The ...
1
vote
1answer
43 views

align numbers in table of contents to the right

i am using http://www.ctan.org/tex-archive/macros/latex/contrib/arsclassica/ as a template. how can i align the page numbers in the table of contents? as i am not familiar with the commands in ...
0
votes
1answer
86 views

How can I move the second block of a column of three down?

My question is related to Tikzposter and blocks within columns. Begin situation: The code is describing three colums with each a block within Tikzposter. The second column block has no text. ...
4
votes
1answer
112 views

Equations in tcolorbox. Vertical alignment

I am simply trying to put a frame around equations in my beamer slides. For this purpose, I use the package tcolorbox. The MWE below produces boxes where equations are almost aligned at the base of ...
4
votes
2answers
52 views

Vertically align $\bullet$ marker with \blacksquare marker in text

I use bullets and squares to reference samples in an image. This is how I use them in text: $\bullet, \blacksquare$ {\LARGE$\bullet$}, $\blacksquare$ {\huge$\bullet$}, $\blacksquare$ And this is ...
2
votes
2answers
62 views

How to align equations cases environment

The following code: \documentclass{article} \usepackage{amsmath} \begin{document} $\begin{cases} Af &=g \quad \text{if} \ c,\\ f&=0 \quad \text{if} \ d. \end{cases}$ \end{document} ...
2
votes
0answers
51 views

h/v centering in tabular

I'm trying to get my cells in a tabular environment horizontally and vertically centered. MWE to be found at the end. I tried different orientations: c, which does what it is supposed to, as well as ...
3
votes
1answer
2k views

Putting text at the bottom of the page

Have a look at the MWE example below. I want the text to appear at the bottom of the page rather than on top. I tried the \vfill option, but this does not seem to do the job. Any ideas? ...
10
votes
4answers
619 views

Need help with making Logic Trees in qtree/tikz-qtree (i.e. aligning, numbering lines)

I would like to make something similar to the logic tree below. I've tried using tikz-qtree, but I can't figure out how to number every line in the tree. I did however find something else doable in ...
3
votes
2answers
279 views

Simple visualization of 3D matrix

I need to visualize 3D matrix in a way similar to this one: There are no arrows needed, I only want to have all 2D arrays fully visible, one "behind" each other and their corners connected by lines. ...
4
votes
1answer
246 views

How to keep footnotes to the bottom of the page with \sloppybottom in memoir?

I am using the the memoir class to typeset a book, where the text has many footnotes. To avoid widows and orphans I use the option \sloppybottom. That has the result of under full pages. memoir ...
2
votes
1answer
34 views

Aligning at top- Minipage

I referred the previous questions on aligning at the top when using a minipage. However, still could not solve the problem. I am guessing that there is some other problem in my code. The reduced ...
5
votes
3answers
120 views

New environment to vertically center text

Consider the following code: \documentclass{article} \usepackage[ papersize = 50mm, margin = 2mm ]{geometry} \begin{document} \topskip0pt \vspace*{\fill} test \vfill \end{document} What is ...
4
votes
2answers
60 views

Circles at the same height

How do I get the two circles to be on the same height? I tried the following \newcommand{\sss}{\;\;\;\;\;\;\:} \overset{\circ}{R}_{\mu\nu\sigma\lambda}\overset{\circ\sss}{R^{\mu\nu\sigma\lambda}} ...
3
votes
1answer
79 views

How to put the section head on the same location as a slide title when using slidepage

I am developing my own beamer theme. As part of the theme I want the section slides to have the section title on the same position as the other slides. At this moment the position is a little off. ...
6
votes
2answers
112 views

Exact alignment of caption beside figure

I want to typeset some captions beside figures and in doing so observed some weird behaviour (at least for me). I use two minipages and for a minimal example everything aligns neatly at the baseline ...
1
vote
2answers
54 views

Determine the height of a box with a rule

\documentclass{scrartcl} \usepackage{calc} \usepackage{showframe} \begin{document} \setlength\parindent{0pt} \newsavebox\maintitleBox \newlength\maintitleHeight \newcommand{\maintitle}[1]{% ...
2
votes
1answer
34 views

Spacing and size of my matrix displays

I am displeased with some of my display in the following equation : \begin{frame} \begin{align*} \left[ \begin{array}{l} \dfrac{\partial \log L}{\partial b} \\ ...
0
votes
2answers
97 views

wrapfigure at the bottom - no white space below wrapfigure

I want to place some figures at the left or right side of my book resulting into a reduced column width for the text. So I am using wrapfigure environment with number of narrow lines of 40. By this ...
3
votes
1answer
43 views

Centre vertically rotated text in table

So far I've a table with rotated text but it's appearing at the very top as you can see. I want the text in column 1 to be vertically centred in it's cell. The code I have is below. ...
3
votes
1answer
67 views

How to get uniform spacing between paragraphs across several pages?

I am using \flushbottom to get pages of equal height. When I now insert a tcolorbox which is set to be unbreakable such that a page break becomes necessary, only the spaces between paragraphs on the ...
6
votes
2answers
4k views

Which package defines \smash?

I sometimes see \smash used to control local vertical alignment. Which package defines it?
8
votes
2answers
337 views

Inconsistent superscript placement in $q_x^{n_x} q_y^{n_y}$

As part of a document, I am typesetting the objects q_x^{n_x} and q_y^{n_y} right next to each other, as \frac{ q_x^{n_x} q_y^{n_y} }{2} It bugs me that the n_y gets displayed at a different ...
0
votes
0answers
16 views

Minipages in a table - alignment issues

I am working on a table and I faced with alignment problems. how can I put more space around vertical headings and center them? how can I center minipages inside table cells? Here is my ...
4
votes
1answer
116 views

Vertically center cells with fixed height?

Consider the solution http://tex.stackexchange.com/a/12762/4011 to the problem of fixing the height of a cell in tabular. This essentially adds some space above the cell content, so it is not ...
1
vote
1answer
51 views

Flashcards: Extra blank pages and text not vertically centered

I am trying to make simple two sided flash cards of quotations with one side being the reference and the other side containing the quote. In order to print the cards, they need to be landscape. My ...
3
votes
2answers
42 views

Display hexcode in table

I want to display some hexcode aligned in a table. This is what I got: \begin{table}[h] \caption{Dirty table} \centering \begin{tabular}{p{6cm}|p{6cm}} \textcolor{red}{0000 0000 0001 0000 0000 0000 ...
6
votes
1answer
68 views

Breakable tcolorbox causes ragged bottom

When using a tcolorbox with the breakable option, this may cause a "ragged bottom" in some special situations. The following MWE demonstrates this behaviour: \documentclass[DIV=10, BCOR=10mm, ...
3
votes
4answers
63 views

How do I fix the vertical alignment of the bracketed part of this equation?

The following MWE: \documentclass[]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{equation} ...