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.

2
votes
3answers
94 views

Text alignment in tikzpicture

I would like to have two lines of text with my time line below. How could I do this: MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} % draw horizontal line ...
5
votes
5answers
103 views

Align table content vertically for one column and at bottom for another

I have the following table \documentclass{article} \usepackage{array} \usepackage{lipsum} \usepackage{booktabs} \usepackage[a4paper]{geometry} \geometry{left=1cm,right=1cm,top=1cm,bottom=1cm} \begin{...
1
vote
1answer
19 views

tabular(x): How to get top-alignment, if a picture is put in?

How can I get this instead of this \documentclass[paper=a5]{scrreprt} \usepackage{graphicx} \usepackage{tabularx} \begin{document} \begin{tabularx}{\linewidth}{l X} Laptop & \rule{2cm}{3cm} \\ ...
4
votes
2answers
237 views

Stretching a curly bracket to get better vertical symmetry

As can be seen in the following MWE, \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \left\{ \begin{aligned} a&=\frac{b}{c} \\ a&=e ...
0
votes
1answer
15 views

Aligning multiple array environment vertically (at the bottom)

I have multiple array environment that I want to allign vertically. Currently it looks like: With a minimal working example being: \begin{array}{|c c|} \hline A_1^1 & A_1^2 \\ A_2^1 &...
2
votes
1answer
35 views

Centering vertical text within merged rows

please help me to centre the word 'Design' in the first column. \documentclass{article} \usepackage{array,multirow,graphicx} \newcommand*\rot{\rotatebox{90}} \begin{document} \begin{table}[h!] \...
5
votes
2answers
62 views

Align equations within one column

I have the following table in latex: \usepackage{booktabs} \usepackage{amsmath} %%% \begin{table} \begin{tabular}{l@{\hskip 4.8cm} c} \toprule \multicolumn{1}{l}{Conversion} & \multicolumn{1}{c}...
1
vote
1answer
55 views

How to vertically align text to the middle of page

I want to vertically align the text to the middle of the page, if the text is not long enough to fill out the page. For example if I write 1,5 pages: The first page is full and therefore the text is ...
2
votes
1answer
39 views

Line on the same height on CV with multicols

I am trying to wrap up my CV but the problem I am facing is with two lines not being on the same level. My code is below: \begin{multicols}{2}{} \begin{rSection}{|Computer Skills|} \begin{itemize} ...
6
votes
3answers
107 views

A Shorter Zero Vector

I'm looking for a nice 0 vector for some linear algebra flashcards utilizing MathJax. I know some conventions use theta, but I find that practice very confusing. At the current moment I'm using \vec{...
5
votes
3answers
77 views

Aligning object in a commutative diagram

MWE: \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tikz-cd} \usepackage{faktor} \begin{document} I'd like the first line of the following diagram to be ...
2
votes
2answers
33 views

Vertically centre text in table cell

I'm struggling to understand what's happening here: I am creating a table, and want the column on the far left to have text which is vertically centered in its cell. However, the vertical alignment ...
1
vote
1answer
51 views

Two listings side-by-side in TColorBox

I have two requests: I am trying to compare two codes side by side using tcolorbox. The problem is that I am not able to put them both with code format (i.e., one is in plaintext and the other is in ...
3
votes
1answer
39 views

Align several pie charts in table

I want to align several pie charts of different sizes in one table. Specifically, I want that these pie charts are horizontally and vertically aligned such that the centers of the pie charts are on ...
3
votes
1answer
46 views

Aligning Matrices? [closed]

How would I align matrixes more correctly? I tried to use array with filling top cells and left one at the bottom, but it doesn't really work. Currently its implemented as $ \begin{bmatrix} 400. &...
5
votes
2answers
99 views

Vertical Alignment Every Other Line and Wide Expressions

I'm sorry if this was asked elsewhere, but I couldn't find anything. I've had this question for a while now, and it really bothers me; I seem to run into these situations relatively often. The ...
3
votes
2answers
147 views

Adding curly brace to the right-hand side of the equation

I want to add brackets on one side of the equation and write something adjacent to it. But, I'm getting those words in the line below while I need those at one side of the equation. Can anyone help ? ...
3
votes
1answer
31 views

Vertical spacing in multicol environment with tabular environment

I want to create three tables (using the tabular environment) side-by-side in a tcolorbox environment, each of which start and end at the same height. Strangely, the third column always shows up a ...
2
votes
1answer
64 views

How to connect equation signs with vertical line?

I would like to create a layout like below, but more automated so that I don't have to adjust the spacing by hand in every case (as done below). Who knows how to do that? \documentclass{minimal} \...
1
vote
1answer
30 views

Pictures vertical aligned, with vertical aligned caption side by side and configurable horizontal space

i have already searched the internet and the forum for a solution, but unfortunately no post applies to my requests. Also the merging of different posts didn't work out. The goal is: 2 png-graphics ...
1
vote
2answers
35 views

How do I center the two images coming from two different “tikzpicture” environments?

Consider the following code. \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.10, ticks=none} \usepgfplotslibrary{fillbetween} \usetikzlibrary{...
3
votes
3answers
32 views

Centering a batch of columns with respect to larger multicolumn cell above them

In the table above, the three columns below the multicolumn are smaller and are aligned to the left. However, I want them to be vertically centered with respect to the largest multicolumn above them ...
0
votes
0answers
20 views

Logic gate component diagram

How can I draw a vertically displaying connection diagram for a logic gate component such as the 16 to 1 multiplexer (74150 multiplexer)? A hand drawn example is shown below.
0
votes
1answer
47 views

How to allign brackets with the text?

I want to write Z[x] with those brackets alligned with the Z. I've tried using \lbrack and \rbrack but the result is basically the same, so what's the best way to force it to stay on the same line?
4
votes
3answers
92 views

vertically central aligning the table cell contents

I need to centrally align the cell contents vertically. Below is the code for values of rows "channel bandwidth" and others, as well. \documentclass{article} \usepackage{array} \begin{document} \...
2
votes
1answer
43 views

Vertically center textwidth table

Sorry for this question but I'm new using LaTeX. I have a table which width is set to be \textwidth using tabularx{\textwidth} and one of its rows will have 3 or 4 lines. This is my current code: \...
0
votes
1answer
18 views

how to align this

I'm using this \newcommand\Underset[2]{\underset{\textstyle #1}{#2}} so that \Underset{f \mapsto f\circ \partial_{n} }{\partial^{*}_{n}:Hom(G_{n-1},M)\to Hom(G_{n},M)} wouldn't minimize the ...
1
vote
1answer
37 views

A bit complicated alignment situation

I have something like this: Of course with a,b,c, etc. being some expressions. I would like to align the equal signs in "a = b = c" with the equal signs in "g = h = i" and the equal signs in "d = e =...
4
votes
1answer
37 views

centering / aligning arbitrary amsmath objects

See how the little ^\frown ⌢ symbols are aligned (on the last 3 lines) ? That's what I want. But see how it's just a concatenation symbol for (C_\alpha) (Cα) and (C_\beta) (Cβ) ? I want to make ...
3
votes
2answers
74 views

Align many matrices and operations so it's more beautiful

I have the following matrices, I'd like to align them under each other more beautifully. Can anyone recommend a good way to do this? $ \left[\begin{matrix} 1 & 1 & 1 & 6z-2 \\ -1 & 2 &...
0
votes
0answers
54 views

How to fix the issues with defined enumerate

After spending a lot of time, I managed to get the possible output but it is not accurate. There are some following issues which need to be resolved. Defined item (question number with box) is not ...
2
votes
2answers
32 views

make top of circuitikz diagram align with top of item label within enumerate

\begin{enumerate} \item \begin{circuitikz} \draw (2,3) node[and port] (myand) {} (4,1) node[or port] (myor) {} (myand.out) -- (myor.in 1); \end{circuitikz} \end{enumerate} is currently ...
3
votes
1answer
25 views

vertically align top line of item contents with item number

\begin{enumerate} \item This looks good. \item $\begin{aligned} \mathrm{This} &= \mathrm{is} \\ &= \mathrm{not\ nicely\ aligned} \end{aligned}$...
2
votes
2answers
50 views

Aligning 2 Minipages to the top of a figure and scaling nodes

Below is my MWE and an example how it should look like. I asked a kind of similar question yesterday, see here. Now the problem is, I need both graphs to be vertically the same height, so equally ...
1
vote
3answers
68 views

Vertical alignment in multicols

How can I prevent the white space between lines caused by vertical alignment, as seen in first and third columns from the MWE below? \documentclass{article} \usepackage[utf8]{inputenc} %-> ...
3
votes
2answers
77 views

How to align underlines in a cases environment

Please consider this MWE: \documentclass{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[a4paper,margin=1in,footskip=0.25in]{geometry} \...
5
votes
2answers
88 views

Find the width of a figure in latex, to properbly align multiple minipages within a figure

I want something like this: made with this MWE: \documentclass{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{duckuments} \newsubfloat{figure} \begin{...
0
votes
1answer
39 views

Memoir way of vertically align subfigures

When having two subfigures of different size, is there a way to vertically align them? MWE: \documentclass{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{duckuments} \...
4
votes
2answers
75 views

Yet another images in tables question alignment. Want text to start at top of cell. Not centered

I want to have a table with image in one cell and text in other cells. I know about the issue of alignment at center of cells. So I use the trick of \raisebox{-.5\height}{\includegraphics[...]`...
3
votes
1answer
68 views

Alignment of matrices with annotations on the right side

I have a problem with aligning matrices with annotations on the right side. I need the annotations to show the operations I used. To show the operations I first used the gauss package. Unfortunately ...
2
votes
2answers
34 views

Center subfigures of different heights

I'm trying to center two subfigures that have different heights, but I can't seem to be able to allign them. The original code is like this, and the subfigures are aligned at the bottom \begin{...
4
votes
3answers
211 views

How do you center multiple equations that have multiple steps?

I am writing a paper that deals with Gaussian integers and I have a section where I am talking about the norm of the units in the Gaussian integers. Since there are only four units in the Gaussian ...
0
votes
2answers
39 views

How to do vertical sorting in the equation?

MWE \documentclass{article} \usepackage{amsmath} \begin{document} \begin{array} I_1\cdot(R_1 + R_4)+I_2\cdot R_1 +I_3\cdot 0 =\varepsilon_1\\ I_1\cdot R_1 + I_2\cdot(R_1+R_2+R_5) +I_3\cdot R_5 =\...
0
votes
1answer
30 views

How to shift a video on a beamer frame?

I have a video in my beamer presentation which is already in fullscreen size but is shifted a few cm down and a few cm to the right. How can I shift an \includemedia environment? MMW : \...
4
votes
2answers
46 views

Reducing vertical space in stackrel

I often use the stackrel command within an equation in the following way \documentclass{article} \begin{document} % \begin{equation} e^{i\pi} + 1 \stackrel{\footnotemark}{=} 0 \end{equation} \...
6
votes
2answers
112 views

Relationship between strut and baselineskip

Here, it is said that a strut is defined as: \rule[-.3\baselineskip]{0pt}{\baselineskip} However, if I do: \newlength{\strutheight} \settoheight{\strutheight}{\strut}\printlength{\strutheight} \...
2
votes
3answers
41 views

How to align content and captions differently in subfigure

I'm trying to use tikz to illustrate an iterative process in figures, but when placed next to each other, the different heights of the images cause the captions to become unaligned, as below: ...
4
votes
1answer
60 views

How to stop MetaPost drawings from overlapping on different lines in ConText?

I have an itemized list. On several lines there are some boxes, drawn in MetaPost. I used \inframed[location=line] to make them vertically centered on the line. The problem is, they are overlapping ...
1
vote
2answers
30 views

Vertical alignment of nested aligns

I would like to align a rather complicated formula, consisting of an (outer) optimization problem with several (inner) constraint blocks, which should be aligned around equal signs. I have opted to ...
5
votes
1answer
190 views

Problem with vertical alignment of a multicolumn listing in a tcolorbox

TLDR: current remaining questions are at the bottom of the post Consider the following test code: % ---------------------------------------------------------------------------- % % Files \begin{...