Stack Exchange Network

Stack Exchange network consists of 174 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
12 views

Centring characters and, if needed, enlarging parenthesis to contain accented characters in them

I would like to centre characters and, if needed, enlarge parenthesis, in such a way that they fully contain accented characters and characters with symbols upon them, like a vector arrow for example. ...
2
votes
0answers
30 views

Centering not working on pdf/tikz plot!

I have looked at other posts regarding how to center a "figure." To be clear, I want to center the plot in the center of the document. I have followed the advice of many to use "\centering." However, ...
2
votes
2answers
40 views

Problem with table cell borders and vertical centering of text

I have been formatting the table on the first picture for a long time and still can not achieve a desirable result shown in the second picture. I am trying to solve 2 problems: I can't get why my ...
0
votes
0answers
17 views

Inline function definition under domain and codomain

It often happens that in mathematics one writes a function definition (i.e. where an element x is sent in the codomain) under the domain and codomain. I try to do it with an aligned environment but I ...
0
votes
0answers
17 views

Top Vertical alignment for all images in either Tex or Pandoc

I am using the following pandoc header: output: rmarkdown::html_document: theme: lumen fig_caption: yes All images are being marked as figures and moved to the end of the document (...
2
votes
1answer
56 views

vertically center all slides in ConTeXt with minimal setups

I would like to emulate beamer's centred framed behaviour in my ConTeXt presentation. Thanks to this post, I figured out how to have my (sub)section titles centred. I am also using a makeup for my ...
1
vote
2answers
42 views

vertically center image in longtable

I have a longtable with \cline borders. Unfortunately, the image in the second column is not vertically centered. I even fail in changing the vertical position any way. I found this similar question: ...
2
votes
1answer
32 views

Vertical alignment of *all* cells when multirow is used to join some cells

I'm trying to achieve a good vertical alignment for a table whose cells contain alternatively an image or text, but I'm confused by the interaction of adjustbox with multirow. The MWE is the ...
1
vote
2answers
36 views

How to make equation spacing consistent in minipage regardless of horizontal alignment

Under ordinary circumstances with amsmath, when I wrap display equations in a minipage, they appear without any \abovedisplayskip spacing if the equation appears first in the minipage but with the ...
0
votes
1answer
25 views

How can Text be vertically centered, but horizontally aligned to the right?

This is my example: ignore the German text. \documentclass[a4paper,11pt]{article} \usepackage[left=3cm, right=4cm, top=2cm, bottom=2cm]{geometry} \usepackage{array} \usepackage{tabularx} \usepackage{...
0
votes
3answers
64 views

Block Diagram drawing with Tikz - misplaced dot and other

I am trying to generate this table: I have two questions regarding the generation: When I position the dot to try to match up row 3 on the block diagram, I get the dot being offset from the line ...
0
votes
2answers
29 views

Title formatting

I have the following code: \title{ \begin{center} CLAXXX Homework X \newline Prof. Professor \newline First Last \newline Day, Month XX, Year \end{center}} \begin{document} \centering \maketitle \...
5
votes
2answers
197 views

How to have equation number at top with intertext in split environment

I have some split equations with intertext, like this: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{split} y_j &= \frac{1}{35}\left(-3y_{j-2}+12y_{j-...
1
vote
2answers
52 views

Line Break in Equation Using empheq

I have an equation that overspills into the margins; I am using (and would like to continue using) empheq for it. Let me give a MWE. Note that it's not what I've actually got in my document, just an ...
1
vote
2answers
48 views

chemfig: lewis structure

Currently working on corrosion of CaCO3: \documentclass[a4paper]{article} \usepackage{chemfig} \begin{document} \[ [Ca^{2+}; \chemfig{O - C (=[6]O) (-[8]O) }] + 2 \chemfig{H-Cl|} \hspace{4em}|\...
0
votes
1answer
34 views

Placing a float just under the text

I'm trying to place the chart (picture) higher, just under the text. However, even though I use: \begin{figure}[ht] the float stays at the bottom of the page. What should I do?
1
vote
0answers
24 views

Vertically Centering a section title

How can I center a the section title "Summary Sheet" Vertically? \documentclass[11pt,a4paper,titlepage]{article} \usepackage{lipsum} \usepackage{graphicx} \usepackage[a4paper,margin=1.0in]{geometry} \...
0
votes
1answer
45 views

Copy tabularx X column as new vertically centered column

My question is very similar to Vertical alignmnent in tabularx X column type and there seems to be many similar questions so hopefully I haven't missed the answer somewhere. However, I would like to ...
3
votes
3answers
36 views

Vertical centering of matrices inside table

I'm trying to center my table contents both vertically and horizontally. The table contains both Bmatrix and bmatrix elements. Only the first column is completely centered. The second column is only ...
3
votes
3answers
48 views

How to write between two matrix lines

I want to write dots between two lines of a matrix. How can I do this? I need this output: with a single line of dots in the fifth column.
2
votes
1answer
63 views

Fill up a page by equations, and then switch to onecolumn

Similar question = How do I ask LaTeX to exactly fill up a page? I want to fill up a page by several equations because they come with automatic numbering. I tried the \lineskip\fill trick but it is ...
6
votes
1answer
101 views

\dotfill but slightly lowered below line

I am using \dotfill to create space for "fill in the blanks" but I do not like that the dots are exactly on the line. I would like the dots to be slightly below line. Is this possible? \documentclass{...
1
vote
1answer
51 views

How can I vertically align the circuit diagrams on a page?

I created two circuit diagrams and they do not align vertically despite being completely identical. Here is the code. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \...
1
vote
2answers
34 views

hrulefill vertical spacing

I want to reduce the vertical spacing that comes before and after \hrulefill. I have already tried different options with \hrule, which works fine except for the fact that the line doesn't end where ...
2
votes
0answers
17 views

How to ensure even vertical spacing around horizontal lines drawn with \rule?

I'm new to LaTeX and I'm trying to write my CV in it. I'm happy with the result so far but I would like to be able to ensure even vertical spacing around the horizontal lines. In other words, I'm ...
0
votes
1answer
25 views

Vertical alignment of rows within a matrix

For a simple matrix equation as the one below, I get the matrix entries bottom-aligned instead of center-aligned. I found some fancy row editing on StackExchange that use arraystretch, vphantom, ...
1
vote
2answers
42 views

Vertically misaligned node in tikz

Can you explain why the node labelled with s is misaligned on the following tikzpicture? \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node at (0,0) {d}; \node at (0.5,0)...
3
votes
2answers
48 views

aligned environment with option [t] within \left \right

This might be a simple fix, however I can't find a way to do it. (Pic and MWE at the end) I have a command \newcommand{\glsbi}[1]{$\left| \quad \begin{aligned}#1\end{aligned}\quad \right|$} to be ...
4
votes
1answer
61 views

unexpected extra parskip before equation, when the last line reach the end

like the figure below, it always generates a extra vertical space, if the line before equation is full. what I have found: remove hyperref or option parskip=full* can solve this, but I want to know, ...
2
votes
3answers
56 views

Table vertical alignment

In the table below, I want to align the first three columns to the vertical center of the row. Tried many solutions but none worked. MWE: \documentclass[12pt,a4paper]{article} \usepackage{tikz} \...
1
vote
2answers
38 views

Aligning two mboxes side by side

I come across this quite a lot and usually end up trying different things until it's barely acceptable but I really don't understand what is going on. This: \documentclass{scrreprt} \usepackage[...
1
vote
1answer
30 views

Vertically centering figures that appear alone on pages

I am writing an article using the aa document class. I include two column figures using the figure* macro. Sometimes, this results in one or two figures being placed on a page with no other text. ...
2
votes
2answers
33 views

Centering “limes” , i.e., “\lim_{…}” term, before long fraction

I want to write the eqaution \[ \lim_{x \to \Delta x}\dfrac {\dfrac {f(x + \Delta x) - f(x-\Delta)} {2\Delta x} + \dfrac {f(y + \Delta y) - f(y-\Delta)} {2\Delta y}} {2} \] However I want limes ...
2
votes
0answers
45 views

vertical alignment when using \underbrace for Matrix

I want to vertical align the underbrace symbol. It looks like now: supposed to be like MME: \documentclass{article} \usepackage{mathtools} \usepackage[no-math]{fontspec} \usepackage{unicode-math} ...
0
votes
1answer
18 views

Aligned equation doesnt align properly

Hi there. I try to simply align an equation but either way I try to do it, it doesnt look nice. In the first case there is no space behind the equal sign (clearly I can make some space there but I ...
2
votes
1answer
18 views

Aligning minipage with a tikz picture vertically simply with tabular and makecell

Why does the top argument of minipage not effect the tikz content of the minipage, when it does effect simple text? Here is my code: \documentclass{article} \usepackage{makecell} \usepackage{tikz} \...
0
votes
2answers
41 views

Aligning issue with overline

Is it possible to align the p and q as well as the ones vertically? \documentclass[a4paper,10pt]{scrartcl} \usepackage[utf8]{inputenc} \begin{document} $z_1^p\overline{z_1}^q$ \end{...
1
vote
2answers
74 views

Macro to display horizontal even spaced text and math that can go past a single line?

I am trying to write a macro that can take in a grouping of choices, then list them (in a specific, but possibly randomized, order) to use as little vertical space as possible while still presenting ...
2
votes
1answer
29 views

Aligning equal signs in align environment

Is it possible to align the second equal sign to the fourth? So I want to have space in front of the second equal sign, so that all equal signs are pairwise aligned. The code is the following \...
0
votes
0answers
25 views

Overfull vbox with koma and setspacing

I had got the same problem as in this question: Overfull vbox with scrbook and setspacing Adding \recalctypearea after \usepackage[onehalfspacing]{setspace} cleared the warnings, but I have a follow ...
1
vote
2answers
25 views

Vertical line spacing versus vertical character spacing

I made some sort of a "header" for a test to my students. The code I used was \begin{document} \begin{flushleft}Combinatorics -- 2018.2 \hfill \includegraphics[scale=0.08]{logo.pdf}\end{flushleft} \...
2
votes
1answer
30 views

Centering horizontally and vertically (simultaneously) using tabularx for multiline and width

Edit: (Partial solution given by This Question which was linked in comments and I've changed the code slightly; see EDIT at the bottom for the specific issue that remains) I am trying to reproduce a ...
0
votes
2answers
35 views

Top alignment using longtable and multicolumn

In a largetable, I want to obtain the following: All cells vertically aligned to the top Left column is horizontally centred, Right column is flushed left To be clear in the picture below: Alpha ...
0
votes
1answer
34 views

tabularx X column not top aligned, but it should be - what is going on?

I am a bit confused, as I even looked in the documentation of the tabularx command, and it should be top aligned. Instead, in my case the first line is centered, and the the text continues downwards. ...
2
votes
2answers
24 views

Additional Vertical Spacing When Using \begin{quote} \begin{thm}

I wish to place one of my theorems inside a quote, in the following way. \begin{quote} \begin{thm}[My Theorem] statement... \end{thm} \end{quote} However, this causes erroneous white space to ...
1
vote
1answer
29 views

Tabular vertical alignment

I need to make a command that may be used like in table on the left but create vertical alignment like in table on the right. I mean left column in table is top aligned. Right column is vertically ...
1
vote
2answers
28 views

Trouble making text flush left and flush right

I am trying to flush left and flush right a "From" and "To" addresses on a page. Here is my LaTeX: %tutorial @: https://www.overleaf.com/20012832vhybmwjdyjqt#/73357884/ \documentclass[12pt]{...
6
votes
1answer
148 views

Tikz Matrix: Nodes are not 'in-a-row'? [duplicate]

I am using a matrix for node-positioning with a fixed node witdh. However, as some nodes contaning more than one line of text some nodes are shifted in y-axis and I don't know why or how to fix this. ...
1
vote
1answer
37 views

Alignment in tabular

Consider the following tabular with the code \documentclass[a4paper,10pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{diagbox,amsmath,amssymb} \begin{document} \newcommand{\on}[1]{\...
0
votes
0answers
29 views

Longtabu, \tabucline placed on wrong page (alignment)

The \tabucline of the last row unpredictably is printed either on the current or the next page. A solution to this problem has been found here: https://tex.stackexchange.com/a/210149/169866. The ...