Tagged Questions

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

1
vote
0answers
27 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
27 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
68 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
28 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
94 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
37 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. ...
0
votes
1answer
51 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} ...
3
votes
2answers
126 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
24 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
11 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
59 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
54 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
36 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
85 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
30 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
24 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
76 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
42 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
43 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
162 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
43 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
48 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} ...
2
votes
1answer
35 views

Subcaption vertical alignment

I'm displaying some figures with different bounding box. The figures seems to be bottom aligned, but I would like to have them vertically aligned. I though subcaption automatically take care of that, ...
0
votes
0answers
17 views

Align text and image topwise [duplicate]

I would like to top align an image with a text. The problem is that the text is aligned with the baseline of the image. The current code I have is this: \documentclass[margin,line]{res} ...
1
vote
1answer
50 views

How do I align the equations about the equal to sign, with lines of text in between? [duplicate]

I want to align unnumbered equations about the '=' sign having one or two lines of statements in between. And also, I want them to be centered. Here is what I did in my code: \begin{align*} T & ...
0
votes
0answers
19 views

\listoftables with large captions does not break page

People I have a horrendously large style file .... I know you will beat me up if I add it again so please see it here. so this time the problem is that some of my tables have very large captions ...
0
votes
1answer
41 views

aligning and logo shape in moderncv

How can I align the logos and the elements on their right side? Another, and more important, problem that I face has to do their shape. As soon as I close TeXworks and try to open the pdf document I ...
1
vote
1answer
43 views

Side by side algorithms with vertical line

How can i produce this in latex. My question is about the framework to put it inside,figure,algorithm,tabular? And how i can separate it with this verical line
1
vote
2answers
41 views

(sub) alignment within an align environment and number positioning

In the example below I try 3 different ways to achieve the same thing (align =E(\sigma^{2}_{Y|X)) directly below =E_{X}(V(\epsilon|X))+0 within the overall align environment. However I am unable to do ...
1
vote
1answer
60 views

How to put a table next to a plot?

I made a plot and a table, and I want to put the table next to the plot, how can I do that? \begin{tikzpicture} \begin{axis}[ axis y line=center, axis x line=middle, axis equal, grid=both, ...
1
vote
0answers
33 views

How to match vertical alignment of titlesec with tocloft?

I want to vertically align the Contents title including the horizontal rules (using tocloft) with the Introduction chapter title (using titlesec). However, I am confused as both packages seem to ...
0
votes
1answer
81 views

ToC content spacing and related formatting

I'm working in memoir class and creating ToC with both short and (sometimes very) long chapter title. I need to: Adjust horizontal spacing between part\chapter number and the title so they won't be ...
0
votes
0answers
45 views

How to fix the inconsistent paragraph spaces in this MWE using KOMA? [duplicate]

MWE code \documentclass[twoside=semi, a4paper, 11pt, open=any, chapterprefix=false, toc=graduated]{scrbook} \usepackage{blindtext} \usepackage{fontspec} \usepackage{libertine} %uncomment ...
3
votes
2answers
99 views

Vertical and Horizontal aligment with several figures and tikz figures

I've been having some trouble aligning multiple figures. The problem is present with png figures and tikz figures, so I guess I am missing something. tikz figures not properly aligned: the ...
0
votes
2answers
38 views

How can I vertically align the first line of a multi-line node to an object? [duplicate]

I'd like to have the first line of the node centered vertically with the object (here: a line) on the left of it. How can I do that? Of course I could split the elements into several parts and then ...
1
vote
1answer
56 views

Left align or right align the header

If I want to L-Align the contact info in the (right) header block. How can one align the contents in a header ? Package: \ProvidesFile{jobapp} \special{papersize=8.5in,11in} ...
0
votes
0answers
24 views

3 subfigures, 2 vertically aligned and one hortizontally [duplicate]

Hello, Does anybody know how to vertically align two subfigures with another subfigure horizontally? I mean i need to put two small images above each other beside another longer image as shown ...
4
votes
2answers
80 views

How to create horizontally aligned subscripts in latex

My problem is that I can't align subscripts properly. I want subscript 'ISI' to be at same level for both H and x. while (m,n) remains in italic format. The last expression gives aligned subscripts ...
1
vote
1answer
35 views

Force longtabu width + skip vertical space between tables

Here is an MWE: \documentclass[10pt]{article} \usepackage[a6paper]{geometry} \usepackage{longtable} \usepackage{tabu} \begin{document} \begin{longtabu} to \textwidth {|X|p{10mm}|p{10mm}|p{10mm}|} ...
1
vote
1answer
48 views

Image not centering in fullwidth even page

My MWE is, \documentclass[a4paper,twoside,openright,11pt]{scrbook} \usepackage[left=1.5cm,right=1cm,top=3cm,bottom=1.5cm,marginparwidth=5.5cm,marginparsep=1cm,outer=8cm]{geometry} ...
1
vote
1answer
52 views

Vertical aligment of dinglist inside table cell with `parskip`

Why is the list text so close to the top line of the cell in some lists? I know it's a problem with the parskip package. I can solve this by adding this strut in every cell before the text ...
3
votes
1answer
41 views

vertical alignment of multiline equations

I tried in many ways to vertically align these equations but I failed to get it right. \documentclass[11pt,a4paper,oneside]{report} \usepackage[T1]{fontenc} \usepackage{fouriernc} ...
3
votes
3answers
144 views

Tikz-Create a Picture Legend

I am trying to create a legend inside a tikzpicture. The picture shows an accelerator and I would like to make a legend that will explain each part. My code is \documentclass{standalone} ...
0
votes
0answers
18 views

Specifying baseline in internal coordinates with graphicx package

I'm using the graphicx package. By default, included graphics are aligned with the baseline at the bottom of the image. I know how to make images vertically centered (using \vcenter) or top-aligned. ...
0
votes
0answers
14 views

Add vertical space between two tables in a single figure [duplicate]

Similar to this SE question but without the requirement that the tables be the same width: I have one figure containing two tabular environments: \begin{figure} \centering ...
3
votes
2answers
101 views

Comic book or graphic novel style panels in LaTeX

I have heard that LaTeX is not necessarily suited to make panels. That even two-column is difficult to get the text to align. I would like to draw stuff like this: --------------------------- ...
4
votes
3answers
83 views

What is the correct way to stretch the cell keeping it vertically centred in tabularX

I have this table, in which the text is touching the horizontal lines above and below, I tried some of the solutions to stretch the cells I found in the web. I managed to stretch the cell but I can't ...
8
votes
7answers
335 views

Vertical aligning for simple numbers

I need to typset a series of fractions with no line inside some paragraphs of text (they were used as proportional symbols). It is very simple, actually: $^2_1$, $^4_2$,$^8_4$ But when it comes to ...
3
votes
1answer
47 views

Increase row height and center, but only the first row

I have a table, built using the tabu package. My code currently looks like below. The \\[5ex] does increase the row height, but the contents of the third cell is aligned top instead of middle (notice ...
1
vote
4answers
91 views

Could I be able to left-align the following equations? (Please note that one of which is mult-lined)

\documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} \DeclareMathOperator{\sgn}{sgn} \begin{document} \begin{flalign*} &D= ...