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
3 votes
3 answers
77 views

Vertical alignment between two lines of text

I'd very much appreciate a bit of help on this subject. I am trying to obtain an alignment between those two lines as shown in the picture below. I can only manage to do it like this : I also tried ...
user avatar
0 votes
0 answers
21 views

Why \vspace in itemize environment will produce extra unwanted space when the line is full?

I wish to use \vspace with after key in enumitem to add extra spacing after itemize environment. However, I found that when the last line in itemize environment is full, \setlist{after=\vspace*{1ex}} ...
user avatar
0 votes
0 answers
30 views

Newest version of luatexja interferes with vertical alignment of text

Today when I was compiling a document, I found that the header was mis-aligned. After a bit debugging, it seems to be the package luatexja (version 20220807) that is causing the problem. Below is a ...
user avatar
  • 6,566
1 vote
2 answers
68 views

Vertical alignment broken with graphics in tabularray

Example: \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \usepackage{mwe} \usepackage{graphicx} \usepackage{tabularray} \UseTblrLibrary{varwidth} \newcommand{\mymacro}{This macro expands \\...
user avatar
1 vote
1 answer
23 views

How to align caption of minipage side-by-side with equation and image?

I have two side-by-side minipages, where the left is an equation and the right is an image. I am trying to align the first line of the captions, but cannot find the right setting after checking the ...
user avatar
  • 381
0 votes
0 answers
28 views

Vertically align multi-line text in tabular with makecell

I have a table with line-breaked cells (using \makecell) and want to align the content vertically. The ``makecell'' command has an optional parameter for that -- however, only horizontal, not vertical ...
user avatar
  • 351
2 votes
1 answer
27 views

IEEEeqnarray - Centred numbering

I love IEEEeqnarray, but after searching through Stack I haven't found a good solution for grouping equations under a single number which is vertically centred with the rest of the equations. ...
user avatar
0 votes
0 answers
10 views

Problem with References section vertical align

Good day to all Problem is, that when latex have more than 2 pages of references, page that contain only references (without title "References", 2nd in this case) ending before the bottom of ...
user avatar
3 votes
1 answer
89 views

Compilation error when using &

Code Consider the following example: \documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \newcommand{\tegn}[1]{\mathcolor{red}{#1}} \begin{document} \begin{align} 1 &= 1 \\ ...
user avatar
1 vote
3 answers
35 views

How to remove overbraces from vertical equation alignment

I am trying to use an overbrace, like this one: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation*} \begin{cases} \dot{\hat{x}}(t)\,=\,\overbrace{f(\hat{x}(...
user avatar
1 vote
2 answers
43 views

Math mode: square bracket strange behaviour

Can you see as the content is not aligned with square brackets? \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \[ \left[ \dfrac{1}{\dfrac{\mathrm{L}^3}{\mathrm{t}}} \right] \] \...
user avatar
1 vote
1 answer
18 views

Change vertical alignment mid-frame

I have three important points that I want to make in succession on one frame, appearing slide by slide. The second point needs some clarification though, so I want to interject with a slide that ...
user avatar
  • 13
0 votes
1 answer
39 views

How to align the content of this table?

I'm struggling with the alignment of the content of this table. I want that the content of each cell of the first column to be centered vertically or at least to remove the white space at the top of ...
user avatar
  • 1
2 votes
2 answers
81 views

What is creating vertical space in the first two columns?

I'm using the vwcol package, which I know has issues processing stuff that isn't plain text. Is there something I could do to fix the vertical spacing? \begin{vwcol}[widths={0.35,0.35,0.3}] \...
user avatar
1 vote
1 answer
45 views

ConTeXt - weird vertical alignment in multicolumn enumeration

When I type math in a multicolumn enumeration, there is a gap in vertical alignment if I use fractions or matrices. \startitemize[ columns, three] \item $\frac{x^2-4}{\sqrt{x}-\sqrt{2}}$ \item ...
user avatar
1 vote
1 answer
25 views

Vertical aligning in minipage with picture and text

Can someone explain me why on my left minipage the text is not aligned at the top and how I get could it aligned at the top? \begin{minipage}[t]{0.45\textwidth}\vspace{0pt} Wie viele Zahlen aus $G$ ...
user avatar
  • 63
2 votes
3 answers
279 views

How can I make these numbers center aligned?

How can I make these numbers center aligned in the row? Also please suggest if you see something better to imporve it. (I also wonder if vertical lines look good or not or should I remove them) EDIT:...
user avatar
  • 443
1 vote
2 answers
20 views

How do I vertically center the text in a single cell next to multi-line 'makecell' cells in a tabular environment with variable widths?

Below is a simplified example table I have: The code being: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{makecell} \begin{document} \begin{table}[h] \begin{tabular}{|c|c|c|c|c|c|...
user avatar
1 vote
3 answers
58 views

Centre TikZ figure vertically (\vspace*{fill} does not work)

I want to print a lined page with a gap in the middle that should be in the centre of the page vertically. This is my code: \documentclass[landscape]{article} \usepackage[paperheight=320mm, paperwidth=...
user avatar
0 votes
1 answer
32 views

Align numbers in each column in a Summary Statistics table

I am struggling to vertically align all numbers in each column. Now the numbers in rows "Earnings(RMB)" and "Spouse Earnings(RMB)" stand out. Thank you! What I have: \documentclass{...
user avatar
0 votes
2 answers
34 views

Vertical positioning of cell content inside a tabular environment (top-alignment)

Background I'm using Overleaf (compiler = XeLaTeX; TexLive version 2021) to write a document. In it, I put tables that I transfer from Excel into TablesGenerator.com that I then drop into my Overleaf ...
user avatar
  • 215
0 votes
0 answers
16 views

Vertical centering using \longtable together with \parbox and in-table equations with enumeration [solved]

I am writing a multipage table using the \longtable package, and it includes equations within the cells of one columns. Since I want to preserve the document equation enumeration for later referencing ...
user avatar
  • 139
1 vote
3 answers
50 views

Adjusting tikzpicture baseline to be flush

I have two minipages one which encloses a tikz picture. I'd like these to have the same baseline. i.e. I would like the minipages to be flush at the top. By default this doesn't happen: \...
user avatar
0 votes
2 answers
58 views

Universal method for put y label at middle of y axis

As the title suggests, I would like to know if there is a "universal" method to position the label of the ordinate axis horizontally to its left and vertically to its center. In other words, ...
user avatar
1 vote
1 answer
19 views

How to center merged cells vertically in a table and stretch the merged border to cover all of the cell?

I am using the code: \definecolor{atlas}{RGB}{11,128,195} \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \begin{table}[H] \centering \begin{tabular}{| l | C{2cm} ...
user avatar
0 votes
1 answer
30 views

Vertical alignment in cell of longtable

I am using a longtable where I'd like to align the content of a specific cell vertically to the top. So far, I only found examples for tabularx which seem to made use of \cmidrule. But this does not ...
user avatar
  • 159
0 votes
1 answer
31 views

Align concent in table cells

I am a little stuck with my tables. I'd like to display Use-Case description and would like to align content in my table. I tried various options, but it's always messing it up. Would be great if ...
user avatar
  • 159
0 votes
2 answers
44 views

Top align images in subfigure/minipage with adjustbox when one caption spills over to next line

I am trying to use the adjustbox package to vertically align two subfigures (which, as I understand, are minipages). \documentclass{beamer} \usepackage{subcaption} \usepackage{adjustbox} \begin{...
user avatar
  • 1
0 votes
1 answer
15 views

Alignment of dates in `\cventry` in moderncv

When putting education, we have an expected date which is too long and I'm not sure how to make a right alignment in \cventry. What I have is \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{...
user avatar
0 votes
0 answers
21 views

All tables are centered but flushed to the right, cant center by any means

The issue at hand is, since I had to increase fontsize (that worked perfectly) but now my tables are centered but flushed to the right side of the page and the columns of the right side are out of ...
user avatar
  • 13
1 vote
0 answers
21 views

How to Selectively Adjust the Position of the Footnote Mark in a Chapter Title [duplicate]

Consider the code \documentclass[12pt]{book} \usepackage{perpage} \MakePerPage{footnote} %the perpage package command \renewcommand{\thefootnote}{\fnsymbol{footnote}} \usepackage{moresize} \...
user avatar
  • 5,445
0 votes
0 answers
22 views

Vertically center the content of some cell in a table

I'm writing a research paper in latex and I'm having trouble formatting a table. I'm making a full-page table and I can't figure out how to vertically center the contents of some cells. This question ...
user avatar
  • 1
0 votes
2 answers
66 views

Vertical alignment tabularray when r=1 not working

I'm using tabularray to create a table cause it was supposed to be simple to configure the alignment of the cells. Especially, I want to use the vertical alignment to center the text in specific cells....
user avatar
  • 3
1 vote
1 answer
24 views

Setting @fptop and @fpbot doesn't change default float alignment on a float only page

I am using figure* in twocolumn document to make listings and tikz diagrams take the space of both columns. I am very new to latex, so maybe there is a reason why I shouldn't do it. Still, I am ...
user avatar
0 votes
0 answers
37 views

Inferring the baseline height and bounding box widths of characters/text/equations in the 'standalone' environment

I am writing a mathematics visualisation tool using C++ and OpenGL, and want to incorporate LaTeX text and equations. I was initially looking for a C++ library to directly render LaTeX text/equations ...
user avatar
  • 204
1 vote
0 answers
26 views

Enotez: align number with heading

By default, enotez produces a listing with the numbers a bit "too much" to the left, i.e., to the left of the corresponding heading. See for example its own manual, on p. 10: http://mirrors....
user avatar
  • 555
0 votes
2 answers
38 views

Vertically align first image in a 3 image combination [optex]

Following the tip from the answer here, I could align three (sub)figures: \def\figure#1#2{\vbox{\hbox{\picw=.45\hsize \inspic{#1.jpg}}\medskip\hbox{\qquad#2}}} \hbox to\hsize{\figure{S10} {(a) Bird}\...
user avatar
1 vote
2 answers
32 views

How to align the bottom of arrays with blkarray and subcaption

I want to align the bottom of two arrays placed side by side. I can see that the problem comes from the extra spacing between the right array and the legend and that comes from the \\ of line 3, but ...
user avatar
0 votes
1 answer
28 views

How can I align two cases (two automatically indexed equations)?

How can I align these cases? I also want to keep the equations indexed automatically. I saw some previous topics on this but I wonder if it can be done without changing too much the code (not rewrite ...
user avatar
  • 443
1 vote
2 answers
46 views

Trouble aligning a Rightarrow in a forest environment

I am trying to draw two forest and I've been able to. What I'd like to add now is a Equivalence arrow (\Leftrightarrow) in the middle of those, but well aligned. Currently I have the following code: \...
user avatar
  • 311
0 votes
2 answers
43 views

Misaligned side by side pictures - how to resolve?

I am trying to put 4 figures but they are getting missaligned. How can I fix this? \documentclass{article} \usepackage[utf8]{inputenc} % allow utf-8 input \usepackage[T1]{fontenc} % use 8-bit T1 ...
user avatar
  • 233
1 vote
0 answers
53 views

SPACE BETWEEN TABLE AND TEXT

I have a table which I created in this way: \begin{table}[] \begin{tabular}{lllll} \hline \textlatin{ID} &\textlatin{ Name} & \textlatin{Type} & \textlatin{Label} ...
0 votes
1 answer
54 views

How to vertically position the page number at the height of a TikZ picture in a footer?

In the following picture, my page number is higher than my rectangle. I'd like the page number to be lower. Really lower. The best for me would be to have both the rectangle and the page number ...
user avatar
  • 114
0 votes
2 answers
45 views

Align the text vertically centered in the cell of Table

I am new to latex. I am trying to make a table in such a way that the text in the cell should be centered vertically. \documentclass[12pt, a4paper]{article} \usepackage[a4paper, ...
user avatar
0 votes
1 answer
63 views

How to move text to middle of a page

How do I move text and header to the middle of a page? I have tried using vspace but I think that is wrong. This is the code. \documentclass{article} \usepackage[utf8]{inputenc} \date{May 2022} \...
user avatar
  • 3
3 votes
2 answers
94 views

Line breaks and vertical alignment in tables

I am struggling with line breaks and horizontal and vertical centering in my tables. I am trying to get an automatic line break for "Synthetic Control Group Sample A" in Table 1 and for &...
user avatar
  • 57
0 votes
2 answers
50 views

How do I remove this offset from the top?

\documentclass[14pt,a4paper,oneside]{extarticle} \usepackage[left=30mm,right=15mm,top=20mm,bottom=20mm,bindingoffset=0mm]{geometry} \setcounter{page}{2} \renewcommand{\baselinestretch}{1.5} \...
user avatar
1 vote
1 answer
29 views

tikz: automatic anchor point

Can you see label "prodotti"? \documentclass{article} \usepackage{float} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{figure}[H] \...
user avatar
0 votes
1 answer
34 views

Changing the Default Vertical Page Position for a group of New Chapters with Patchcmd Command

I am using the patchcmd command in the preamble to specify a vertical position default for where new (unnumbered) chapters should begin on the page: \makeatletter \patchcmd{\@makeschapterhead}{\vspace*...
user avatar
2 votes
2 answers
105 views

How to center-align the numbering, vertically, in the enumerate environment?

Imagine you have an enumerate environment and one of the items spans many lines. Normally, the numbering (e.g., 1., 2., 3., ...) is aligned with the top of the item, i.e., the first line. How can I ...
user avatar

1
2 3 4 5
70