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.

Filter by
Sorted by
Tagged with
1 vote
3 answers
71 views

Why does this alignment not work with this "cases" environment?

I'm trying to align a short equation and a long one. Could you explain why the highlighted parts are not properly aligned? \documentclass{article} \usepackage{amsmath} \begin{document} \[ \left\{ \...
  • 871
0 votes
3 answers
58 views

Centering large column heading above 3 columns

After searching for hours I could not solve my problem. I have a large table with means and sd separated in three columns. I need to three below columns to be centered on the +-. I tried using S ...
2 votes
1 answer
30 views

Splitting fractions and aligning

\documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \begin{equation} A=\frac{\splitfrac{a+b+5}{c+d}}{e} \end{equation} \end{document} How can I align the numerator so ...
1 vote
3 answers
52 views

Multiple columns using Block and nicematrix package

I would like to write text into multiple columns using the nicematrix and booktabs packages. However, there is the unwanted spacing, circled in the picture. Is there any way to get rid of it so that ...
  • 11
8 votes
3 answers
309 views

How to align text under the brackets

How to align text under the brackets: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \underbrace{(zzz)}_{\textrm{tall}} \underbrace{zzz}_{\textrm{short}} \] \end{document}
  • 233
4 votes
1 answer
170 views

How can I stack these items on top of each others at the bottom of a vertical bar?

All my attempts have failed so far. I have the following: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align*} y &= y_0 + \sum_{n=1}^{\infty} \frac{ x^n}{n!} \, f_n(...
  • 19.5k
2 votes
2 answers
46 views

Higher quotation marks in equations

I want to use quotation marks in equations (using \begin{equation} ... \end{equation}) and I want them to be adapted to the height of the text in between. Something like: \begin{equation} x = \...
  • 41
7 votes
2 answers
250 views

How can I force 'description' to start on a new line when using 'enumerate'?

I want to use the description environment with the actual description starting on a new line. As https://tex.stackexchange.com/a/69525/293290 suggests, I am using the enumitem package and I have set ...
1 vote
1 answer
24 views

How to align cells vertically in a nested tabular?

Here is a minimal example that illustrates my problem. \documentclass{article} \begin{document} \begin{tabular}{@{}lp{2cm}@{}} \hline Top left! & This is a long cell \\\hline Top left! & ...
  • 241
2 votes
1 answer
36 views

Text not vertically aligned in tabularx cell

I've run into a problem that I can't seem to find a solution to. I am using the package tabularx since I work with small pages. My table has a mix of figures and text, and I would like the column to ...
  • 41
1 vote
0 answers
39 views

Add a vertical line centered inside a framebox

I would like to have a vertical line inside my framebox. So my framebox should be divided into two equal halves. I haven't found anything about it in the forum yet. Here is a code snippet. \...
  • 537
0 votes
1 answer
30 views

Vertical misalignment of the references

In my references a strange vertical misalignment appeard in the writing of each name, for example: And I really don't know why this happen... MWE (.cls file) \NeedsTeXFormat{LaTeX2e} \ProvidesClass{...
  • 540
0 votes
1 answer
46 views

(Fancyhdr) How to center text, but aligned to the left?

I'm trying to make a header for my thesis document. It requires the text to be left aligned, but centered, like this: I have tried doing it with this aproach: \documentclass[12pt]{report} %other ...
  • 25
3 votes
4 answers
239 views

Problem with a TikZcd between curly braces

I was trying to answer a question but the TikZcd I would like to typeset is not well vertically positioned between the curly braces (the red lines are drawn to better show the problem): \documentclass{...
  • 58k
1 vote
1 answer
49 views

Align minted number of lines inside and outside of a tcolorbox

I have this MWE \documentclass{article} \usepackage[many]{tcolorbox} \usepackage{minted} \usepackage{graphicx} \usepackage{mwe} \setminted{linenos} \tcbset{ common/.style={ before=\...
0 votes
0 answers
28 views

How to change a direction of growth for boxes?

I have read here that it is possible to change the direction of growth in horizontal boxes. Note: horizontal boxes can, of course, contain text typeset in right-to-left languages, such as Arabic or ...
3 votes
1 answer
59 views

3 vertical points between three equations that are lined up

I'm trying to put vertical lines between the equations, but I can't do it. Here's my MWE. \begin{align} \frac{dx_1}{dt} &= f_1&(x_1,\dots,x_i, x_n)\\ \vdots & &\vdots \\ \frac{dx_i}{dt}...
  • 1,364
3 votes
2 answers
219 views

Align vertically 2 circuits

I'm currently at 8th grade working on circuits and I'm taking notes with LaTeX and CircuiTikZ. The problem is that I have 2 circuits, but one is vertically bigger than the other, and so I don't know ...
3 votes
2 answers
102 views

Redoing the align environment with a specific formatting

I want to remake the \begin{align} environment \end{align} with some stylization and I have no idea how I can do this. Well, to be precise, I want two specific things to happen in this environment: ...
  • 540
0 votes
0 answers
39 views

Modifying an Academic Journal Template

I am using the JOAS template for academic journals available here: https://www.overleaf.com/latex/templates/journal-of-open-aviation-science-joas-template/ndxgcqpmksnv and I would like to change some ...
  • 63
0 votes
1 answer
28 views

Vertically aligning author names in IEEEtran

I am working on an IEEE paper with 6 author, but Latex does not vertically align the names well: How can I make sure the author names are vertically aligned better? \documentclass[conference]{...
  • 360
3 votes
2 answers
54 views

Losing vertical alignment when using minipage inside tabular

I am using a minipage and an enumerate inside a tabular. However, when I do that, the vertical alignment of the "hello" part in the code is lost. Here is the code: \documentclass[12pt]{...
  • 155
0 votes
2 answers
46 views

More uniform vertical centering text in tikz nodes

This is one of those "have your cake and eat it too" questions --- is there a way to more "uniformly" center individual text letters in nodes? The default vertical alignment does a ...
  • 2,684
0 votes
0 answers
15 views

how can I set vertical alignment of a tabular in an item of enumerate? [duplicate]

in enumerate, inline tabular is vertically aligned on center, such as follows: <table material> <table material>paragraph <table material> (you can imagine the dots disappeared.) ...
0 votes
0 answers
27 views

Vertically align label of enumeration

I have the following code to create an enumeration: \begin{enumerate}[label=\arabic*., left=0pt, itemindent=1.5cm, labelsep=1cm] \item \hlbg{Lorem ipsum...} \end{enumerate} In combination with ...
  • 33
1 vote
1 answer
34 views

tabularray vertical aligment of cell

I am starting to figure out how to use tabularray in LaTex, but now I am not figuring out how to set my table text to be vertically centered. Here is my minimum example of a working table (but the ...
2 votes
1 answer
48 views

Vertically align 'Bigdelim' delimiters

I have a table where I would like to associate a few entries using the Bigdelim package. However, I cannot figure out how to get the delimiters to align. I have one table which, by chance, has the ...
1 vote
1 answer
50 views

ConTeXt: Problem with \setupalign and vertical alignment

When my MWE has \setupalign[height], my bottom floats sit correctly at the bottom of the page, but the vertical gap between a heading and the following text can be too big. When I delete \setupalign[...
  • 351
0 votes
1 answer
38 views

Vertical alignment of lines change based on letters having a descender or tail

I am currently having issues with vertial alignment based on the type of character being inputted. If I use a character that has some sort of descender or tail, it adjusts the height of the \hrule ...
  • 101
1 vote
1 answer
66 views

The Location of the Date in Letter Class

MWE: \documentclass[12pt]{letter} \usepackage[english]{babel} \usepackage{lipsum} \begin{document} \begin{letter} {Name \\ Address \\ Location } %\date{February 15, 2023} \opening{Dear ---,} ...
1 vote
0 answers
35 views

Weird spacing when using tabular inside of center inside of tcolorbox env [closed]

Here's a minimal example: \documentclass{article} \usepackage[most]{tcolorbox} \newtcolorbox{workinprogress}[1][]{ parbox=false, #1 } \begin{document} \begin{workinprogress}[oversize] this ...
  • 2,413
0 votes
1 answer
71 views

Big Boxed equation with title using tcolorbox

I currently have this command: \NewDocumentCommand{\deq}{omo}{% \begin{tcolorbox}[ colback = blizzardblue!30!white, colframe = white, ] \setlength{\abovedisplayskip}{0pt} \begin{...
  • 553
2 votes
1 answer
73 views

Boxed equation with title and subtitle using tcolorbox

I'm looking for a method to improve my current command: \newcommand{\deq}[2][]{\begin{tcolorbox}[ colback = blizzardblue!30!white, colframe = white, top = -0.3cm, bottom = 0.1cm]\begin{flalign}...
  • 553
0 votes
1 answer
26 views

How to center elements multirow element vertically in a table

In each row in my table, I have a multirow that spans two columns, and also in the last column I am adding an image. The table looks something like this: Now, you'll notice the horizontal line ...
4 votes
4 answers
328 views

How to center Font Awesome in table?

There are some very advanced answer that I can't figure out how to adapt to this situation. When I do the following the text in the second column does get vertically centred for some reason. Question ...
5 votes
2 answers
153 views

tabularray - How to center both text and images

My goal is to have all text and images centered horizontally and vertically in their cells. Which options should I give to tabularray to achieve this? I am getting close, but the vertical centering is ...
1 vote
2 answers
51 views

How to align text at the top of a cell when there is a \makecell in the table

I'm having issues trying to align all the text at the top of my cells. Indeed, it looks like because of the \makecell I am using, the text beside is not where it should be. I have tried a lot of ...
  • 13
1 vote
1 answer
59 views

Top-align stackengine stacks

The title may be incorrect if I have misunderstood the problem. feel free to fix. Steven Segletes helpfully provided me with some latex in this answer which creates a row consisting of left, center, ...
0 votes
1 answer
31 views

Align vertically a two columns document

I am encountering issues with vertically aligning a two-column document. Occasionally, the alignment is incorrect in either the left or right column. I am also experiencing similar issues with figures,...
0 votes
1 answer
63 views

How to make rows containing images equidistant with tabularray?

Working with tabularray, I'm currently stuck trying to make rows that contain images equidistant from each other. For instance, having this grid of images: The images A, B, C are the ones that I ...
  • 103
0 votes
2 answers
45 views

How to align text with the bottom of another object

I have these chord-patterns and I want to add some text next to them. The problem is that it's aligned to the top. I feel like there should be an straight-forward way of aligning it to the bottom or ...
  • 3
0 votes
2 answers
29 views

How do I get the caption alone on the page preceding the figure?

I'm desperately trying to complete my dissertation and one of the requirements is to have the caption alone on the page preceding the figure, without any other text. I am currently using fltpage to ...
0 votes
1 answer
24 views

how to add set of code blocks in center of two column page

I hope you are doing very well. I am trying to add code the two the two column pages. I am using verbatim to add code to my papers. \documentclass[twocolumn,sigconf,natbib=false]{acmart} %\usepackage[...
5 votes
5 answers
311 views

Align Equations Including `cases`

I want a series of aligned equations, the last of which has two cases. See the figure for an example. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} a &= b \\ &...
  • 1,299
1 vote
2 answers
55 views

Vertically align symbols in the table

I want to create a table that is aligned vertically and horizontally. I use the following script How can I vertically align the symbols in the table? Currently, they are automatically aligned towards ...
  • 13
0 votes
3 answers
142 views

How to position two tabularray tables side by side in such a way that their top edges align?

A description of the problem I would like to present two tables of different row numbers side by side in such a way that the top edges of the tables' first rows would lie along the same (imaginary) ...
  • 10.7k
2 votes
3 answers
86 views

Top-aligned beamer frame: remove "automatic paragraph"

Update There is already a solution in @mickep's comment, which is \noindent. I am waiting for an answer from them that I can accept or I will soon write one myself that contains their solution. Thank ...
  • 51
2 votes
1 answer
47 views

How to stop justifying cell content and left align horizontally and middle align vertically? [duplicate]

As you can see on the image, the left column is justifying its content hence add uneven spaces between the content there. I am trying to keep the left column content vertically in the centre and ...
  • 133
4 votes
1 answer
56 views

Align two rows only using \phantom command

I want to achieve the following picture: What I have tried so far: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{matrix} \phantom{(n+{}}2^3-1^3\phantom{{}-1)^3}&=&3\...
  • 3,123
2 votes
2 answers
177 views

Vertical alignment between numbers and arrows

How would I be able to recreate the following picture: any help would be appreciated.
  • 69

1
2 3 4 5
73