Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [vertical-alignment]

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

0
votes
0answers
26 views

problem given by decimal alignment in latex tabu table with bold numbers

I'd like to have a table aligned by decimal point. I'm using tabu instead of table for exploit rowfont because I need row with smaller character. I've read different post on dcolumn and siunitx ...
0
votes
0answers
29 views

How to move the skills, hobbies and languages details in the “Designer's CV” template

I'm using this CV template found on ShareLaTeX site (source: http://www.howtotex.com/): %%% LaTeX Template: Designer's CV %%% %%% Source: http://www.howtotex.com/ %%% Feel free to distribute this ...
2
votes
1answer
17 views

Labelling multiple lines of equations with a single label

I want to latex that equation 14.5. With labelling. But couldn't do it for several hours. So Any help will be appreciated. Thanks
4
votes
2answers
95 views

How to insert elective subjects section within a diagram

This is and addendum of the "Ingredients" section posted on a previous question: How to draw a diagram of custom subject correlativities. We need two more ingredients: Make an elective subject. We ...
2
votes
1answer
30 views

Figure and Table not aligned

I'm trying to align a table and a figure in Latex, but I`m not getting the results I want. I followed this answer : Table and figure side-by-side with independent captions This is the code I used \...
4
votes
1answer
60 views

Align figure on a grid by it's top edge

I'm trying to place figures in a book that I'm typesetting. Most of them end up at the top of a page. I'd like my captions to use smaller font with a smaller line spacing than the main text of the ...
0
votes
0answers
11 views

Beamer : Do not center vertically text in frame [duplicate]

I am using the beamer class and consider the following frame: \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize} \item blabla \end{itemize} \end{frame} \end{document} It appears ...
4
votes
1answer
36 views

Bad alignment with minipages, enumerate and doclicense

I've noticed that the content of the minipage environments is not correctly aligned in the following MWE: \documentclass{article} \usepackage{doclicense} \begin{document} \begin{minipage}[t]{.5\...
0
votes
2answers
26 views

How to get uniform vertical space space after section title

I have encountered a problem when working with minipages. Consider the following example. \documentclass{article} \usepackage{mdframed} \begin{document} \begin{minipage}[t]{0.45\textwidth} \...
6
votes
1answer
189 views

How to draw a diagram of custom subject correlativities

I need to create a large diagram i.e. a diagram of custom subject correlativities but I am not able to do certain things. To do this I am going to use TikZ. Ingredients The ingredients are: A title....
0
votes
0answers
24 views

Math Symbol Horizontal Alignment

I'm now using TeX Gyre Pagella for text and TeX Gyre Pagella Math for math, with unicode-math package. But it seems that the math symbols are not in correct positions, compared with letters or numbers ...
3
votes
2answers
51 views

How do I raise a figure (placed with wrapfig) to be flush with the top of a paragraph?

I am using the wrapfig package to place a figure with text wrapped around it. Here is a minimal example, with a screenshot of the relevant part of the output below: \documentclass{book} \usepackage{...
3
votes
2answers
46 views

Tabular environment - text vertically positions itself by bottom of tikz picture in adjacent cell

I would like to get my text (actually a matrix) to vertically center itself in its cell. Instead, it centers itself based on where the bottom of the tikz picture in the adjacent cell lies. This adds ...
0
votes
0answers
30 views

section in-line numbering and vertical spacing with the titlesec package

I am writing a class file for a template with very specific requirements. One of those requirements is that a section title must be bolded, centered, and be written in single-spacing with a single-...
1
vote
1answer
33 views

Best way to avoid page break just after epigraph

What is the best way to avoid a page break just after a \epigraph command from epigraph package? I'm adding epigraphs after section titles. \documentclass{article} \usepackage[nopar]{lipsum} \...
1
vote
3answers
46 views

Subfloat: How to align subcaption of image to same elevation as other subcaption?

Assumed we have two images with different heights. Both images are aligned to the top via valign=t. Minimum working example (MWE): \documentclass{article} \usepackage{subfig} \usepackage[export]{...
1
vote
2answers
28 views

Blank page with centered writing

I am wanting to create a page with the words "Research Plan" in the center. I currently have the following code \newpage \addcontentsline{toc}{subsection}{Research Plan} \vspace*{\fill}% * is needed ...
3
votes
4answers
183 views

A universal method for left-hand alignment of a sequence of equalities

With this code \documentclass[a4paper,12pt]{article} \usepackage{mathtools, mathrsfs} %% Code for '\widebar' macro is courtesy of %% https://tex.stackexchange.com/a/60253 \makeatletter \let\save@...
2
votes
2answers
32 views

Vertically center text between ornaments

How can I vertically center the text between the two ornaments? When I put the three lines in an \fbox it looks almost centered but not completely. MWE: \documentclass{article} \usepackage{...
1
vote
0answers
24 views

Vertically justify frame before page break using mdframed

When mdframed breaks a page, it appears that there is no vertical justification on the page before the page break. Compiling the code sample below for example, it can be seen that there is more ...
2
votes
1answer
22 views

Text not vertically aligned within tabular with nested tabular

I am trying to vertically align a row heading with a table inside the row. But no matter what I do, the heading remains in the center. I tried using p{'width'}, but that had no change. \documentclass{...
5
votes
2answers
48 views

Vertical alignment of \rbrace

I tried to solve the follwing problem for a while but couldn't find a solution yet. I would like to align two \rbraces vertically. This code \begin{align} L = &\left. \text{short eq} \right\...
2
votes
3answers
74 views

Aligning symbols underneath each other neatly

I'm trying to align the equal and greater than signs underneath each other but can't seem to get them aligned properly (see image attached). How can I align them correctly? I have included my lines of ...
2
votes
2answers
28 views

How to remove the topsep of align* environment in proof environment?

Here is my code: \documentclass{article} \usepackage{amsthm,amsmath} \begin{document} \begin{proof} \begin{align*} F(x) & = P(X\le x)\\ & = P(g^{-1}(X)...
3
votes
2answers
40 views

Create an environment to translate sentences

I'm trying to create a command to use when I need to translate the language or make examples to both languages. So far I have created a box around the text and two columns, one for each language. \...
2
votes
1answer
42 views

How to reduce space between two columns

I have the table shown below. Due to the fact that the titles in Rown#2 are long, the numbers and their percentages become so distant from each other and made the table unreadable. Q: How to reduced ...
3
votes
1answer
34 views

How to align numbers in all rows

I have a table which contains numbers and their percentages. Because the numbers and percentages length is different, they become unaligned. The following figure illustrates: As shown in the table, I ...
3
votes
3answers
58 views

Vertical alignment of text in a node (TikZ)

I am using the TikZ code given in this answer. I would like the text in each rectangle to be on the top left of the rectangle. I already managed to bring the text to the left by replacing align=center ...
0
votes
1answer
18 views

Table of Contents in middle of the page and in larger font size?

How to display the contents page in middle of the page and in large size than the other font size within the article? I have used the command \tableofcontents. The output is as follows:
0
votes
1answer
25 views

Text not horizontally aligned with \item

A bit nickpicky, but \item from enumerate and flalign* don't line up correctly, such that there is a small vertical distance between the two. Code surrounding error: \begin{enumerate} %some long ...
0
votes
0answers
37 views

How to explicitely set right margin to a text

I am interested in setting a right margin for the date 2014 on the same line with National Olympiad of Informatics to be vertically aligned with the date above it and have a similar format. I have ...
0
votes
0answers
63 views

How to align the label to centre?

I'm using tikz to draw my Neural Net architecture. The below snippet is for a single convolution block: \pic[shift={ (1,0,0) }] at (pool_b2-east) {RightBandedBox={ name=ccr_b3, ...
1
vote
0answers
19 views

Misaligned indices [duplicate]

Why aren't the $K$ and $\chi$ vertically aligned in the following example and is there a simple workaround? \documentclass[a4paper,11pt,twoside=semi]{scrbook} \usepackage[english]{babel} \usepackage[...
4
votes
2answers
108 views

Add vertically-aligned text between two enumerate items

I'd like to get something like this: MWE: \documentclass{article} \begin{document} \begin{enumerate} \item $Y^2 - 1 = 0$ \quad (text) \item $Y^2 + 1 = 0$ \quad (text) \end{enumerate} \end{...
1
vote
1answer
20 views

Vertical alignment in bussproofs

Consider the following code: \documentclass{article} \usepackage{graphicx} \usepackage{bussproofs} \newenvironment{bprooftree} {\leavevmode\hbox\bgroup} {\DisplayProof\egroup} \begin{document} ...
1
vote
1answer
36 views

Centering Cells with m{}

I have a very simple table with only a few cells. \documentclass{article} \usepackage{mwe} \begin{document} \begin{table}[ht] \centering \begin{tabular}{c|ccc} \hline Long Text Here & D &...
4
votes
3answers
229 views

Bracket on the side of a fraction only over the numerator or denominator

I've been trying to put a curly bracket next to the denominator of a fraction, something like this \frac{1}{a + b} \} = 1 where a + b = 1. Basically I need to move the bracket down a bit, but v ...
2
votes
3answers
67 views

Vertical shifts in Latex

\documentclass{article} \usepackage{tikz,mathtools} \begin{document} \Large $\begin{aligned}&=mathbf{(\hspace{1pt}\underline{\phantom{x_{1}}}\hspace{1pt},\hspace{1pt}\underline{\phantom{x_{1}}}\...
1
vote
1answer
45 views

Image formating

How can I go about creating a compact two column figure with 3 figures for each column? This is the mess the mess I've created trying to do so. \documentclass[a4paper,man,12pt]{scrartcl} \...
3
votes
2answers
72 views

How to vertically centre a cell spanning multiple rows with the p column type

Bit of a mouthful of a question title I have the following table: I'm not completely convinced it's the absolute best way to display this information, but I'm reproducing a table that is laid out ...
0
votes
0answers
13 views

Custom equation command produces not wanted indentation [duplicate]

I wrote this custom environment to save time when typing: \newenvironment{equations} {\begin{equation}\begin{aligned}} {\end{aligned}\end{equation}} However, it produces a strange ...
4
votes
2answers
305 views

But how to align the equality sign $=$ balanced?

See the following latex keywords \[\left\{\begin{matrix} A=B \\ C=D \end{matrix}\right.\] This shows the two array as column wise in center part. But how to align the equality sign $=$ balanced?
2
votes
2answers
44 views

Put a vector image on the right of a table and adjust its height to the table height

I have a table \begin{tabularx}{\textwidth}{ X p{70pt} \toprule stuff1&stuff2\\ \midrule stuff3&stuff4\\ \bottomrule \end{tabularx} and i would like to insert on its right a vector image ...
4
votes
1answer
54 views

vertical centering in pmatrix

I have a little optical Problem with an horizontal alignment in a pmatrix. I would like to get an output like the below but the \vdots doesn't look nice. I would like to replace the two \vdots in the ...
3
votes
1answer
43 views

2x2 figure and caption alignment: clash with packages subcaption, subfigure and subfigures

I am trying to align three figures and their three captions as the following 2x2 (four square) pattern: In order to solve this, I have the following code which works, but not in aesthetic appeal \...
1
vote
1answer
22 views

How to move one subfigure up so that it matches my left subfigure?

How can I move my second subfigure up so that it matches my left figure? Currently I have: \begin{figure}[h] \includegraphics[width=4in,height=3in,keepaspectratio]{DT} \includegraphics[width=4in,...
4
votes
2answers
189 views

Avoiding parskip at end of column

In a two column text (with multicol), the first column is composed of a long paragraph, ending a line before the column end. Then a parskip is added, which makes the last line of the column empty. The ...
3
votes
1answer
34 views

How to align input arguments of an algorithm in a grid?

I'm writing an algorithm box using algorithm2e and want to align the input arguments in a grid. I got close to the desired layout using two tabular environments, each inside of a minipage. However, I ...
1
vote
2answers
47 views

Tikz - Vertical Position Unchanged

I would like to have the graph \begin{itemize} \item $ \tikz { \node (a) at (-0.3,-2) [] {U}; \node (b) at (1,-2) [] {V}; \node (c) at (2,-2) [] {W}; \draw (a) edge[left,->] node[above] {$a_1$} ...
2
votes
2answers
34 views

makecell alters vertical alignment across table row

Consider this example: \documentclass{report} \usepackage{makecell} \usepackage{lipsum} \begin{document} \begin{tabular}{p{3cm}p{3cm}} \lipsum[1][1] & \lipsum[1][2-4]\\ \lipsum[1][5] & \...