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
2answers
26 views

Vertical alignment of headers and footers with fancyhdr

I have seen this, this and this questions and tried all the solutions in the answers. None of them has worked so far. \documentclass[11pt,a4paper]{article} \usepackage[ngerman]{babel} \usepackage{...
0
votes
3answers
52 views

How to align an epigraph?

I have the following code \setlength{\epigraphwidth}{0.425\textwidth}\epigraph{quote 1}{\textit{1}} \setlength{\epigraphwidth}{0.425\textwidth}\epigraph{quote 2}{\textit{2}} \lipsum Which gives me ...
4
votes
4answers
346 views

fine-tuning `array` environment for writing system of equations

I have heard that the array environment can be highly customized, but I am confusing in writing the following system (this system is from Lagrange's method of variation of parameters for linear ODEs) ...
2
votes
1answer
19 views

Fixing table position between pause

I am trying to show the first half of a table, then click and show some text, then click and have the text go away and show the second half of the table. I have gotten it to work with pause, but what ...
2
votes
3answers
61 views

Table with even row heights and vertical alignment

I'm unable to get the following table to have even row heights with vertical alignment \renewcommand\tabularxcolumn[1]{m{#1}} ... \begin{table} \renewcommand*{\arraystretch}{1} \begin{...
0
votes
0answers
21 views

Vertical alignment of Fitch-style environment in a table

I am trying to make a vertical alignment of a Fitch-style environment in a table. The package I use is fitch.sty and the code is given in Selinger Fitch. Here's my code: \documentclass{article} \...
1
vote
1answer
32 views

Display standard deviation below value in tabularx with siunitx

I am trying to display in a table the standard deviation below the value in brackets. For the alignment of the numbers I use siunitx. Since I have some long descriptions in the first column, I use ...
1
vote
2answers
36 views

Align multiple choice letter to top of tikzpicture

I desire to have the letter aligned to the top of the figure. I am unsure how to do this. I believe the choices environment is similar to that of an enumerate environment, but I am unsure how to ...
2
votes
1answer
55 views

How to Realign a Horizontal Stack with the Above Item

Consider the MWE \documentclass{article} \textheight 8.25in \textwidth 4.75in \usepackage{scalefnt} \usepackage{amsmath,amssymb} %\blacksquare\hspace*{.7em} \usepackage{stackengine,xcolor,lipsum} \...
2
votes
1answer
57 views

Why does not `\makecell` provide proper vertical alignment for this particular line?

I am trying to align table cell contents using \makecell. I see it is very strange that (in the same table), one row aligns vertically as intended but the other does not. I want the words 'Component' ...
3
votes
2answers
68 views

Vertically centred equation number in multiline equation while maintaining alignment with other equations in flalign environment

How do I centre the equation number of a single multiline equation in a flalign environment while maintaining alignment with other equations at the equals sign? Basically, I want this \documentclass{...
-1
votes
1answer
34 views

White space + margins + alignment problem

I'm using overleaf to write my thesis but I found two problems in the template as illustrated in the attached image. 1- Long white space at the beginning of main pages (abstract, declaration, ...
0
votes
1answer
39 views

Creating minipage of required height

I'm failing to understand how to properly create a minipage of a required height: \documentclass{article} \usepackage{standalone} \usepackage{tikz} \usepackage{amsmath} \usepackage{amssymb} \begin{...
2
votes
2answers
43 views

Vertical alignment of overline

I would like to have the horizontal lines aligned vertically in next document \documentclass{standalone} \begin{document} \Huge $\overline{z\,z'} = \overline{z} \, \overline{z'}$ \end{document} The ...
1
vote
0answers
16 views

Putting aligned items in the index

I'm trying to write a text but at the beginning, in the index, the items don't appear rightly aligned. It appears as: My code is: \usepackage{ebgaramond} \usepackage[latin1]{inputenc} \usepackage{...
1
vote
1answer
46 views

How to Get PdfLatex to Display a 2-Page Output on a Single Page

The following code (for example) \documentclass{book} \textheight 5.25in \usepackage{lipsum} %\usepackage[all]{nowidow} \begin{document} \LARGE \chapter*{Chapter 1} \lipsum[2] \end{document} ...
1
vote
1answer
31 views

Aligning the items in the enumerate on right side

\documentclass{beamer} \usetheme{Warsaw} \usepackage{minibox} \usepackage{amssymb} \usepackage{multicol} \usepackage{nicematrix} \usepackage{forest} \usepackage{tasks} \usepackage{cellspace} \...
3
votes
2answers
151 views

Vertical text alignment in latex table

I have created the following table. I need rows "Text", "Same here" and "I want this to align vertically" to be vertically aligned. I have searched similar questions, ...
2
votes
1answer
48 views

How to vertically align the contents of cells in NiceTabular?

I am trying to to vertically align cells contents in NiceTabular when they get significantly different heights. However, \adjustbox and makecell do not seem to work (neither does \adjustbox and \Block)...
3
votes
1answer
45 views

How to use vfil inside tabularx

The \vfils in the following mwe seem to have no effect: \documentclass{article} \usepackage{tabularx} \usepackage{lipsum} \begin{document} \begin{tabularx}{\linewidth}{XX} \lipsum[1] & a \vfil ...
6
votes
3answers
265 views

Fixing the alignment of table with equations and images

My desired features for the table alignment are: The cell sizes should be auto-adjustable according to the contents. Every table cell content should be vertically and horizontally center-aligned. The ...
2
votes
1answer
85 views

How to Center a Sentence at the Center of a Bclogo

I would like to automatically center a sentence within a Bclogo box; that is, I would like to place the sentence such that its center lies (technically) at the midpoint of the diagonal endpoints of ...
0
votes
1answer
43 views

Whole Page Strikethrough with Variable length

Context: I'm working on recreating the AANZFTA CoO in LaTeX, which contains a list of varying length. I use longtblr to make it travel across multiple pages, and use a fancyfooter for the declaration ...
2
votes
1answer
42 views

Lower subscript height without breaking sqrt

I'd like to align the subscript of E_m with the subscript of E_m^\dagger. Unfortunately, I can't find a solution that both aligns the subscripts and that does not break the alignement of the \sqrt ...
1
vote
1answer
27 views

Why does adding a \label at the beginning of a \parbox affect its layout?

I was surprised to notice that adding a \label at the beginning of a parbox changed the layout of its contents: \documentclass{article} \begin{document} A\parbox[t]{3em}{\tiny B\\C} (no label) A\...
1
vote
3answers
49 views

Vertically moving figure in minipage

I want to put plot 5 figures in a specific way like this: For this I use the following code in LaTeX: \begin{figure}[h!] \captionsetup[subfigure]{labelformat=empty} \begin{minipage}[b]{.3\...
0
votes
2answers
91 views

How to align icon and nodes?

I'm relatively new to LaTeX. I want to vertically align an icon and few nodes. Also, I want the text inside them to be centered. Here is my code- \small\faCalendar~\forcsvlist{\makenodes}{x,X,x,y} ...
1
vote
2answers
56 views

Vertically align individual cells in a table without disrupting interline spacing

I've been test driving David Carlisle's solution to vertically aligning individual cells in a table, but I find that it disrupts the vertical spacing to the row above (see MWE below). Is there some ...
0
votes
1answer
27 views

How to write comments over a specific segment of text? [duplicate]

I have a number 9999...99955 and I would like to specify how many 9s there are in total by writing over the number using brackets to segment the text. Like this
0
votes
1answer
61 views

How to get rid of a long vertical gap coming above and below an equation coming at some places!

I am preparing part of a big latex report. At some places, I see unnecessary additional vertical space around equations. When I try it individually with short text, it works fine. Somehow, I suspect ...
0
votes
1answer
28 views

vertical alignment of custom symbol [duplicate]

I defined the following command \newcommand{\bigast}{\mathop{\Huge \mathlarger{\mathlarger{*}}}} Unfortunately, its vertical alignment is a bit too high I tried fixing it with \raisebox{} but couldn'...
0
votes
1answer
31 views

Absolute vertical positioning of marginnote

I am using the "marginnote" package in a document as shown in the following example: \documentclass{report} \usepackage{marginnote} \begin{document} Richard of York gave battle in vain.\...
0
votes
1answer
42 views

Moderncv Cover Letter in banking style: align address automatically with phone number

I have searched the web but did not find a solution yet. I am using the cover letter template of the moderncv package in banking style. Currently, my modification of the cover letter looks like where ...
3
votes
3answers
41 views

imakeidx package making table lose alignment when \index{} is used

My table was aligned very nicely, until I started trying to add indices to my book. The index at the end is loading fine, but the tables where I used the \index method inside of lose their vertical ...
0
votes
1answer
47 views

LaTex with wrong graph arrangement (Wrong position)

I want to build LaTex like the first photo but I make it become the second. What is the method to fit the code to the first graph? Thanks for your help. \documentclass[12pt]{article} \usepackage{...
0
votes
0answers
24 views

RMarkdown to PDF using Fancyhdr - Control spacing after headrule

am creating a series of PDFs in an RMarkdown loop, and can't figure out how to control the spacing between the lines created with \headrule and the start of the text within the r chunk. My attempts ...
2
votes
2answers
56 views

Add vertical space in tabular cells

I am attempting to reproduce an existing typeset table. The following code produces this table. I have not been able to correct the second and third cell vertical spacing in the header row. Thanks in ...
3
votes
3answers
110 views

Correct way to get underset alignement

I am currently trying to get this kind of alignement : By using the aligned-overset package, i have managed to come up with : This is tedious and not very good : %%%%%%%%%%% préambule %%%%%%%%%%% % ...
1
vote
0answers
28 views

Vertical alignment with prftree, tikz and beamer

If you compile the following code, you can notice that transitioning from slide 1 to slide 2 causes the pre-existing figure in slide 1 to slightly move upwards. I'd like to keep it fixed in place, ...
3
votes
1answer
84 views

Why does using tabular inside of chemfig's chemname alter the vertical position of the text?

chemfig offers the \chemname command that allows us to add an annotation (name, number,...) to a chemical compound. To save space and avoid repetition when dealing with similar compounds, "R&...
0
votes
1answer
29 views

Alignment/Placement of Text using Fancyhdr

I am using a solution provided by egreg here: Vertical align text next to image in rhead without influencing the positioning of lhead I'm extremely new to LaTeX and am working in RStudio to replicate ...
1
vote
2answers
60 views

How to increase the width of the table heading row and keep the content in the centre of row?

\documentclass[11pt]{elsarticle} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tabularx} \usepackage{array} \makeatletter \newcommand{\thickhline}{% \noalign {\ifnum 0=`}\fi \hrule height ...
2
votes
1answer
42 views

Subequations and boxed with \hline

I've a trouble with this code: \newcommand{\Tonde}[1]{\left(#1\right)} \newcommand{\Quadre}[1]{\left[#1\right]} \begin{subequations} \begin{align} z^1=|z|^1\Tonde{\cos\theta+i\sin\theta}^1&=|z|\...
1
vote
2answers
36 views

Aligning five text elements vertically on two separate lines

I'm looking to align five text elements from two separate lines vertically with one another so that the five elements on top act as labels for the text below them. I have tried to do so using \hfill ...
0
votes
3answers
58 views

How to draw a long line in math mode?

As the question described, how to implement the picture below in LaTeX ? Which package should I use?
1
vote
1answer
29 views

Lettrine slightly misaligned with text different fontsize

I have this code: \usepackage[a5paper, total=5in, 7.5in]{geometry} \usepackage{setspace} \usepackage{lettrine} \begin{document} \lettrine[lines=4]{\color{albastru} \textquotedbl S}{} {\fontsize{20}{...
1
vote
0answers
20 views

Horizontal and vertical positioning of text in thumb index

I am trying to ensure that the letters in thumb index are centered both horizontally and vertically and have a trouble adjusting the size of the thumb index or setting centering within it. ...
1
vote
2answers
54 views

Align Baseline of Text with TikZ Picture, before at North, after at East

Curious how you'd go about doing something that results in the following with TikZ: I thought I'd try something like this: Here is some text to wrap \begin{tikzpicture}[baseline={([yshift={-\ht\...
2
votes
1answer
39 views

Using vspace for vertical spacing of text properly

As a rank newbie to LaTeX I have cobbled together 3 or 4 snippets from this site to make a calendar, as follows: \documentclass{article} \begin{document} \noindent % p is for paragraph length \begin{...
0
votes
1answer
23 views

Vertical alignment problems with bracketMatrixstack from tabstackengine

I came across this pretty nifty command to easily create matrices, that I found here. However, when I tried to use it with \vdots and \ddots, I ran into some vertical alignment issues. Here is the ...

1
2 3 4 5
68