{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
1answer
102 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
50 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
59 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
613 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
268 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
240 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
31 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
114 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
59 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
77 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
106 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
53 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
33 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
77 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
37 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
62 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
332 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
14 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
112 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
49 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
39 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
64 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} ...
2
votes
1answer
69 views

align node bottom edges vertically

I would like to draw a diagram with boxes of different heights such that the bottom of each box is on the same height. Additionally, I would like to connect the nodes by horizontal arrows. My approach ...
0
votes
0answers
38 views

How to avoid vertical space between header and paragraph

How to avoid the space between the text continuous from previous paragraph and header? I have shown the picture of my document. please help on this issue... The image shows the unnecessary space by ...
4
votes
1answer
37 views

Vertical alignment problem when organizing image with tabular

I would like to display multiple images organized by tabular. Here's my code, which demonstrate what I want to do. \documentclass[11pt]{article} \usepackage{graphicx} \begin{document} \begin{figure} ...
3
votes
1answer
51 views

Subfloat vertical alignment in latex

If I have to pictures of different height and the same width, how can I dock them to the top that both pictures are vertically aligned. This is my code so far: \begin{figure}[h] \centering ...
2
votes
1answer
21 views

page numbering with braces and lines

Here is a MWE: \documentclass{article} \usepackage{fancyhdr} \usepackage{lastpage} \usepackage{lipsum} \fancyfoot[C]{ \hrulefill \{ \thepage\ of \pageref{LastPage} \} \hrulefill } \pagestyle{fancy} ...
2
votes
1answer
16 views

Left aligning text at center along with multiple equations

What is there I am writing a few equations with gathered and aligned. The problem is that A and B are left aligned with the first equation, and I want them at the center of all equations, whether 2 ...
3
votes
2answers
96 views

Vertically Center Row Entries in Table

in the MWE below, I wanted to be able to center the row entries vertically in the table. Thanks! Here is my code: \documentclass{book} \usepackage{amsfonts} \usepackage{booktabs} ...
2
votes
1answer
30 views

Table could not aligned with the tex in paragraph

I have an table in my document but it seems really so ugly, since table not aligned vertically with the tex. You can see the screenshot and my try. Try: \mbox{}\vskip1cm \begin{table}[t] ...
1
vote
1answer
34 views

Beamer titlepage automatically bottom-aligned

The title page of my beamer presentations is automatically bottom-aligning itself when there's more than one frame in the document. MWE No problems here - the output is as expected: ...
1
vote
1answer
28 views

inline and vertical enumeration in the same document

I want to implement both inline and vertical enumeration in my document. I know that inline enumeration can be achieved using inline option of enumitem package. In addition, I found this question ...
1
vote
1answer
44 views

Aligning a table vertically and horizontally

I need to place a table in the centre of a page, here is the code for the table which just centres the table horizontally, but not vertically. \documentclass[12pt,a4paper,titlepage]{article} ...
1
vote
0answers
33 views

Flushend creating black lines at end of document

I am using the flushend package in TeXmaker on my Mac in order to balance the lines at the end of my two column paper. However, the PDF is always created with horizontal black lines near the end of ...
3
votes
1answer
65 views

How to split only 1 page of my documentclass[10pt,a4paper]{article} and add vertically a big table on a side

I am wondering on how to split in 2 a single page of my whole document, and add a table vertically. As a matter of fact the table is so large, that I used to reading it on a newpage in a landscape ...
0
votes
0answers
38 views

Different alignment on columns when the 'X' column wraps in tabularx

On 2013 I did ask this question and was answered, but implementing on another code I've new issues not presented before. I have a three column tabularx in which two of them are l, r or c and the ...
3
votes
1answer
44 views

CV Address with Photo alignment

I have a problem regarding to my resume alignment. I want to show my address at top left of the CV and at top right show my photo. Here is a code snippet: \begin{document} \thispagestyle{empty} % ...
5
votes
2answers
134 views

Minipage and multicols, vertical alignment

I want to create two columns next to each other. The left side contains a text in two columns using the multicol package. On the left side is some other content. I've tried minipage, but in ...
4
votes
1answer
35 views

Recurring decimal with letter (aligning at top)

A picture is more than 100 words. How do I align the dotts (automatically) and properly at the top? Code currently in use is from here: \documentclass[12pt]{article} %% packages ...
3
votes
1answer
24 views

Is there a \flushbottom-like command that may also decrease vertical spacing?

I am currently working on my thesis, which (hopefully) will once be finished and will then have to be printed. I would like the bottom lines of all pages to be aligned, like \flushbottom does. The ...
1
vote
1answer
60 views

How to place several images on top of each other and center them on the page?

I can't figure out how to center the images. The aim is to center the images and make them large enough to stretch over the cropping line. Optionally: Is it possible to control how close the images ...
2
votes
2answers
47 views

Weird vertical spacing within paragraph using multicol within tcolorbox

The basic idea would be to put a caption next to an image and center it vertically. I tried this within a tcolorbox environment since it's being used on a poster. I'm not sure, how much the tcolorbox ...
1
vote
1answer
40 views

How to move contents of fbox to top?

My question is how to align things in fbox in general but here's the clumsy solution I came up with: \documentclass[12pt]{article} \begin{document} { \fontfamily{qag}\selectfont \fbox{\vbox to 3in ...
5
votes
4answers
73 views

Vertical Alignment of Equations in a Table

I am writing up a university project, and I want to create a table with the left column containing Feynman diagrams (which I have drawn using the feynmp package) and the right column containing ...
3
votes
3answers
140 views

How to center a cell horizontally and vertically?

I just have a question. I do have the impression that s21 (and also s22, s23, s24) is not exactly in the middle of the lines "Falls Spieler 1 'schiessen' wählt, wähle 'schiessen'." and "Falls Spieler ...
2
votes
2answers
58 views

how to center cell-content vertically?

I really like to center the content of the cells vertically, but I do not know how to do it. Is there maybe someone who can help me? Thank you! \documentclass[a4paper, fontsize=11pt]{scrartcl} ...