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
3answers
32 views

Solid vertical line passing through cells

I am attempting to create a table with the following layout: and the code generating the table: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{table}[h] \begin{center} \...
0
votes
1answer
24 views

Change baseline of text

Is there a way to change the baseline of different text with different font sizes so that they are vertically center-aligned? In the MWE \documentclass{article} \begin{document} Hello {\small Hello} ...
5
votes
3answers
97 views

Aligning the entries of two matrices vertically

When it comes to matrix multiplication AB=C, it becomes easier to visualize everything if I put B on top of C. However, when the actual entries vary in length, matrices B and C fail to align ...
1
vote
3answers
44 views

Aligning text in enumerate environment

I would like to align the text in the left so all of the four texts start in the same position, just like seen in the picture below. I've used the enumerate environment. Thank you in advance!
0
votes
0answers
14 views

Why is there whitespace below a center environment, but not when using \centering? [duplicate]

I am trying to typeset some content to the top of the page and some to the bottom of the page and both should be centered. Initially I tried this: \documentclass{scrbook} \usepackage{showframe} \...
3
votes
1answer
38 views

How to Vertically Center Arrow?

\documentclass{article} \usepackage{amssymb} \usepackage{tikz} \begin{document} \begin{itemize} \item \textbf{HEAPIFY(A, 7)}\\ \begin{tikzpicture} \node{4} child ...
0
votes
1answer
18 views

Alignment problem in curriculum

I would like to align in a tide way the right bit of these references... I'm stucked, I don't understand how can I solve this. \documentclass[10pt,a4paper]{article} \usepackage[margin=0.5in]{...
0
votes
2answers
21 views

Photo in curriculum in top right corner

I just need to add the photo in my curriculum, I have absolutely no idea on how to place it in the top right corner. I tried with \smash, but it had no effect whatsoever... documentclass[10pt,a4paper]...
0
votes
1answer
42 views

Vertically centering the text in a table [closed]

So I have a table like: \usepackage{array} \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \begin{tabular}{C{3cm}C{2.3cm}C{2.3cm}C{2.3cm}} & \textbf{Case 1}...
0
votes
1answer
21 views

Inserting a figure below a text without starting a new page

I'd like to insert a figure at the end of a page without that this figure appears in the next page. The last text of the page is the following and the figure should go below this text: \documentclass[...
2
votes
1answer
24 views

Vertical alignment with tcbimage comment

Consider the following MWE and its output: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{skins,listings} \newtcblisting{test}{listing side comment, tcbimage comment={example-image....
1
vote
2answers
24 views

\hrulefill with vertical alignment of the line as in dashes

\hrulefill vertically aligns the line at the bottom of the text. There is also \xrfill in the package xhfill which raises the line, but it is raised too much for my esthetics. What I'm looking for is ...
0
votes
0answers
41 views

Tikz aligning elements by their anchor positions

i found a lot of information about the positioning on Nodes, but i couldn't really apply the solutions to my problem. I have two nodes defined in a seperate file. The left one has an anchor RD1 and ...
0
votes
2answers
29 views

multicolumn row in table with extra alignment

I have a table with three rows and four columns. Each entry of the first row is centered text and there is no \hrule underneath. The next row is more centered text. Because there is no \hrule ...
0
votes
1answer
23 views

I probably have problem with float specifiers? But I cant figure out what can be wrong

so basically, the last .tex file is annoying me greatly. This one is included between two more files, (one of them includes 6 sidetables), and my problem is that LaTeX (or the arguments I put in ...
1
vote
2answers
68 views

Vertical Alignment of `lim`/`sup`/`inf`

Personally, I'm not keen on the look of $\displaystyle \lim_{n \to \infty} f(x + an)$. (Why does TeX.SE not compile TeX??) It looks weird to me having lim on the same level as f yet the n \to \infty ...
0
votes
2answers
28 views

Explaining \begin{tabularx}{*} commands to align text and images in a table

I am trying to vertically align my text and images in a table. I have seen several feeds where this question is addressed, however I am still battling to understand how the \tabularx{}{} command is ...
0
votes
1answer
29 views

fancyhdr : vertical alignment of left header

I am trying to reproduce the following without the comments in green and blue : The LaTeX code I am using is as follows : \documentclass[11pt, letterpaper]{letter} \usepackage[includeheadfoot,...
0
votes
3answers
59 views

PGFPlots: problem in several graphs alignment

my issue is related with this previous one: Problem with graphs alignment using pgfplots and subfig packages. I adopted the recommended commands height and ymax/ymin to adjust the yaxis scale (and ...
0
votes
1answer
28 views

Vertical alignment of \makecell header

I have some issues with the vertical alignment of \makecell headers for a longtable. Basically, what I'm trying to achieve is that the single lettera A, B and E are vertically centered while the other ...
0
votes
1answer
24 views

Add dots in a specific position inside tikzpicture

I have written the following code: \documentclass[margin=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{matrix,calc} \begin{document} \begin{tikzpicture}[every node/.style={anchor=north east,...
0
votes
0answers
26 views

Remove Vertical Indentation in Tables

I have been using the tabular function with specific width columns that fill the page as so: \begin{tabular}{@{} p{0.18\textwidth}|p{0.82\textwidth}} I then wanted to have the first column to be ...
9
votes
1answer
128 views

KOMA-Script book too large bottom margin

I have written a book in KOMA-Script. I really trust Markus Kohm about his views on typesetting, especially margins, and I don't want to use heavy artillery such as geometry package. I set it all just ...
1
vote
2answers
39 views

Get rid of undesired vertical spacing within single footnotes (and footcites that are displayed at the bottom of the page) due to setspace settings

I am writing a thesis and added some old code to achieve a citation style, in which a short citation is placed at the bottom of the page together with additional footnotes. This requires the manyfoot ...
1
vote
1answer
38 views

Correct Usage of Alignat — Partial Overlapping

I am struggling with a certain usage of alignat. (I appreciate that there is lots of material online on the usage, but even with that I am unable to solve this.) Let me give a MWE. \documentclass[]{...
0
votes
1answer
26 views

how to bring a vertical line in table and content go in second line in same cell when using tabularx packkage

I want to bring a vertical line in table here is the code I have. This is a thesis which uses a template which can be seen here with full source code. In my latex implementation of table \...
0
votes
0answers
22 views

Measure last row height in a table

I'm trying to figure out how to measure the last row height in a table for vertical alignment purposes. I thought something like this could help me : \begin{tabular}{ll} Example & Example\\ \...
6
votes
5answers
464 views

How do you center in the align environment?

I frequently see two-line alignments where the first line specifies the domain and codomain of maps and the second line describes how the maps act on elements, for example in the following sequence: ...
6
votes
2answers
174 views

Problem with aligned environment in latex?

Why does [X] does not display? X would appear if I removed the brackets. Is that a bug? \begin{equation} \begin{aligned} [X] &= 1\\ [Y] &= 2, \end{aligned} \end{equation}
1
vote
1answer
24 views

scrlttr2 - Change vertical height of header on second page for multiline subject

I want to use a multiline subject in scrlttr2 and want to update the vertical distance on the second page between the headerline and the text. With one line it looks like this: With two lines it ...
0
votes
1answer
27 views

Aligning vertical dots in a chunk of equations

I understand that similar questions have been posed before, but somehow, I do not know how to fit the answers into the context of the problem that I am facing. Specifically, I have the following ...
9
votes
4answers
243 views

Aligning nested cases vertically

I am trying to get something like the following: However, the code that I currently have makes the first brace too large vertically. It looks like this: Is there any way to amend this? Any ideas ...
0
votes
1answer
22 views

How to modify \question and \part environment on a new line in Exam Class

I am trying to understand Exam Class on LaTeX. So far the documentation has been helpful however I don't know how to modify the structure of \question \part and subparts in a that I want. This is ...
4
votes
5answers
232 views

Aligned vector, matrix, vector, multiplication

I already have something that looks good to me, but the latex implementation is hideous. Any ideas for how this could be done in a cleaner way? \[ \frac{dz}{dt} = \raisebox{1.02em} {$ ...
0
votes
1answer
33 views

Align \blacksquare

How can I align the \blacksquare symbol to \Circle?
1
vote
2answers
50 views

Vertically align text inside a Tikz node

I want to keep an image and a word about it, right next to it, inside a node. I want to align the text in the middle (i.e. it should be on the line connecting the midpoints of the vertical sides of ...
0
votes
0answers
12 views

Aligning subfigure captions using package subcaption

I have a problem on subfigure captions not being aligned due to the images' height being different. Using the following snippet: \usepackage{subcaption} \begin{figure} \begin{subfigure}{0.5\...
0
votes
2answers
40 views

Table cells content is not centered

I have the following code: \newcolumntype{Z}{>{\centering\arraybackslash}m{2.5cm}} \newcolumntype{S}{>{\centering\arraybackslash}m{0.5cm}} \begin{table*}[htbp] \caption{Table Type Styles} \...
0
votes
1answer
34 views

Multi column table doesn't always align

I would like the first table to end where the fourth column of the second table starts. Sizes are 9+1+2.5+2.5 cm for the first table and 9+1+5+1 cm for the second one. I get better (but not perfect) ...
4
votes
2answers
68 views

Alignment (left, center, right) in a complex table

I'm encountering issues creating a complex table (i.e. using the multirow package). I'm new to creating (complex) tables and I have trouble aligning the content of the cells as I would like. Here's ...
0
votes
1answer
24 views

Center text vertically in a table with multiple lines

I tried to improve the following table as can be seen in the screenshot below, the output is mostly what I want. Is there any reason the text is not centered vertically when it spans over multiple ...
3
votes
3answers
97 views

Middle vertical alignment instead of top alignment in table

I am trying to align the text in my table in the middle instead of the top. As seen in the figure below, the words "Longitudinal Derivatives", "Lateral Derivatives", "Dimensional" and "Non-Dimensional"...
0
votes
1answer
32 views

How to exactly center the figure according to the text?

I have produced the following page: I am tryng to exactly center the figure according to the text above and below. I have already tried the \centering and begin{center}... options and nothing worked. ...
0
votes
0answers
21 views

table of contents vertical spacing [duplicate]

Trying to write a paper and this larger vertical white space will not go away. How do I get rid of it or at least move the list up? The code I'm using is: \documentclass[12pt]{report} % I cut all ...
0
votes
1answer
17 views

Including multiple graphics in tabularx

I'm trying to add five Pictures into a document. As one of those images is vertical, i would like to put two horizontal images beneath each other, put the vertical image into the center, and then add ...
2
votes
1answer
30 views

Automatically break a very large formula through multiple pages, using package `breqn`

I have a document which contains very large sets, consisting of hundreds of large numbers, which have to be represented as products of their prime factors. So I need to use dseries* environment of the ...
2
votes
1answer
38 views

Long Chemfig reaction scheme in two lines above each other

The reaction scheme shown below is to long to fit in one line. I would like to place the two left compounds atop one another, so the + is in the middle between them, vertically centered with the arrow....
1
vote
1answer
18 views

authblk package and footnote style

I am happy with the authblk package. However, when there are multiple affiliations (with the footnote style), I would like to be able to add a bit of vertical space between each of them. This does not ...
1
vote
0answers
31 views

Horizontally and vertically center columns in longtable

Given the following longtable: \documentclass[11pt,a4paper]{report} \usepackage[margin=0.5cm]{geometry} \usepackage{array,multirow,longtable, lipsum} \begin{document} Text First Line \vspace{23cm} \...
0
votes
1answer
25 views

How to put address in the same level?

\documentclass[a4paper,12pt]{article} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage{ragged2e} \begin{document} \begin{flushleft} \textbf{Riyam ...

1
2 3 4 5
60