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
2
votes
1answer
23 views

Left vertical alignment of characters

In the following MCE, the characters don't start at the same (left) vertical line (look at the horizontal rule of "T"). \documentclass{article} \usepackage[showframe]{geometry} \ifpdftex \...
6
votes
1answer
53 views

Inline equations go off margin

My problem is that sometimes long inline equations go off the margin. For some of the equations, advice from a similar thread of using \raggedleft helped with most of the equations, but it does not ...
0
votes
1answer
19 views

Remove vertical spacing in wrapfigure (above/below hrule)

I want to use wrapfigure to contain an (align) environment. How do I remove the excessive vertical spacing above and below the \rule commands without using \vspace? I don't understand where this space ...
0
votes
0answers
30 views

Merge 3 sub-rows in a table

I have the following table : \begin{table}[h!] \begin{center} \begingroup \setlength{\tabcolsep}{6pt} % Default value: 6pt \renewcommand{\arraystretch}{4} % Default value: 1 \begin{tabular}{|c|c|} \...
1
vote
1answer
21 views

Single Thicker vertical lines both side of the text

I want vertical lines both sides of the text (please see attached image). The lines should increase according to number of rows. Please note this is not in the table
7
votes
3answers
125 views

How to align TikZ inline node's label with text outside?

(Once upon a time I knew this stuff, just a few years ago, but now...) How do I make node a and node b aligned with Text? Oh, and the rectangle should actuallybe filled and be "behind" the ...
0
votes
1answer
17 views

Creating a grid of images with a letter on the top left for each one

This is the code that I am using now \begin{figure} \centering \begin{tabularx}{\textwidth}{l c l c} a) & \includegraphics[width=0.46\textwidth]{Black.jpg} & b) & \...
1
vote
4answers
38 views

Vertically align two tables of different sizes

I have a table with too many columns and I don't want to present it in landscape. So my idea was to cut off some columns and start a new table below. Now I want the upper (longer) table to be centered ...
1
vote
0answers
26 views

Underscore vertical alignment with tikz

I would like to have an underscore aligned with other text inside a tikz array, but it is shown at middle of the box, as shown in this picture and it can be confused with an hyphen: This is my code: \...
1
vote
1answer
39 views

Align the Logo of University on the top left of the the title page

I want to align the logo of the university on the top left of the title page with four lines of text on the right and I tried every possible solution available here like the mini page but it doesn't ...
6
votes
4answers
206 views

How to vertically align cells using multirow and multicolumn?

first-time poster here. I've been beating my head against the wall for the past few hours trying to figure out how to display the table below the way I want it. I've gotten pretty close, but there are ...
2
votes
2answers
57 views

Put a Tikz downarrow between 2 cells in a table while keeping alignment

I want to have a tikz downarrow that matches any of the next 2 figures: My code with tikz puts the arrow, but breaks the alignment of elements in the first column. Code: \documentclass{article} \...
0
votes
1answer
30 views

vertical alignment of tabular environment inside description environment

I am using tabular environment inside a description environment like: \item[This is some description] \begin{tabular}{ll} apple: & 200g \\ pear: & 206g \\ banana: ...
0
votes
1answer
38 views

Positioning of vertical line in tabular environment

How can I adjust \begin{tabular}{@{}p{0.15\textwidth}|p{13cm}@{}} to adjust the vertical position of |? | is not aligned with the text that follows. Thanks in advance. Regards, Sean MWE: \...
1
vote
1answer
28 views

Shift title and author text up automatically to fit the margin?

I am trying to have a solution to shift the title page of an article up automatically (without having to set it up manually). Taking a look at the solution of Shift title and author text up? : \...
4
votes
2answers
138 views

Center vertically and horizontally content of cells in a table

I have an issue about the vertical and horizontal centering for the content of each cell in a table. Ideally, I want a fixed padding for each cell. Below the curent result : As you can see, the ...
8
votes
3answers
150 views

How to horizontally and vertically align a matrix of subfloats?

Assume you have a matrix of 2x2 tikz figures and you decide to use subfloats. The code \documentclass{report} \usepackage{subfig} \usepackage{tikz} \begin{document} \begin{figure}[ht!] \center ...
1
vote
1answer
28 views

How to set up vertical alignment of numbering at longtable column

I have this longtable: \documentclass[12pt, a4paper, onecolumn, oneside, final]{report} \makeatother \usepackage{array} \setlength\extrarowheight{4pt} \usepackage{tabto} \newenvironment{tabs}[1] {\...
4
votes
3answers
94 views

How to align two tables

\begin{document} %first table \renewcommand{\arraystretch}{1.1} \centering \begin{tabular}{r l l} \hline \hline \rowcolor[RGB]{77,77,77}\color {white}BAZA & \color{white}BROJNI SISTEM &...
1
vote
1answer
32 views

List of equations and related meaning - align environment

I'm trying to write a centered list of equations with the related meaning on their right side. I'm using {align*} to do the job, but I get several errors when I try to compile the document. Here the ...
1
vote
1answer
26 views

Latex Beamer Slides alignment

Is there a command \commandname, such that if you write \begin{frame} Latex code 1 \commandname{mylabel} Latex code 2 \end{frame} \begin{frame} Latex code 3 \commandname{mylabel} Latex code 4 \end{...
0
votes
2answers
29 views

Large table in Latex gets cut off when outputting to PDF?

I haven't worked with much Latex syntax so I'm not quite sure what stylization changes I need to make here. I have a large piece of Latex as such: \documentclass{article} \usepackage{longtable} \begin{...
2
votes
1answer
54 views

Suggestions to align vertically derivates and partial derivates

For my book I have this MWE: \documentclass[a4paper,12pt]{article} \usepackage{newtxtext,newtxmath} \begin{document} Sapendo che $\xi=\xi(x,t)\in Y_{00}$, \[\left[\xi\frac{\partial f^{0}}{\partial \...
3
votes
1answer
32 views

array, horizontal space/ margin

How can I make the horizontal space between the vertical line and the percent symbol disappear? \documentclass[a4paper,fontsize=13pt]{scrartcl} \usepackage[english, main=ngerman]{babel} \usepackage[...
1
vote
1answer
25 views

Make different slides line up

Let us say that you have the following in your presentation: \begin{frame} Identical text \end{frame} \begin{frame} \begin{equation} \mathbb R \end{equation} Identical text \begin{...
1
vote
1answer
56 views

Line up items in lists in different columns of a table

I have seen several questions like this and the corresponding answers, whereas this is the most promising. However that aligns vertically the top of both lists. I would like each item of the list to ...
1
vote
2answers
31 views

Vertical center alignment of multirow-content inside multicolumn

I'm having trouble getting the text in the multirow column vertically aligned at the center. \documentclass{article} \usepackage{array} \usepackage{booktabs} \usepackage{multirow} \begin{document} \...
2
votes
2answers
35 views

displayed equation immediately after an \item, want it to not leave a blank line

I have an enumerate environment where each item is just a single displayed equation. This starts on a new line so the "(a)" ends up on a blank line. Can I make the displayed equation not ...
0
votes
1answer
23 views

How to make a parametric equation of surface with curly brace

I want to write the intervals for t and u on the left side like this but that is only one equation and when I try \[\begin{cases} x = sin(u)cos(t) \\ y = sin(u)sin(t) \\ z = cos(u) \end{cases} { 1 &...
0
votes
0answers
18 views

Problem with multirow and an image

I am having trouble trying to make a tabularx table that contains a photo and has text at the other side of the page. Right now the photo overflows the text and is no longer being contained in the ...
1
vote
3answers
34 views

Vertically align split table

I have a table that is too broad for a two-column page. Therefore, I have broken it into two parts: \documentclass{eusflat2021} \begin{table}[ht] \begin{center} \vspace{1ex} \begin{tabular}{|c|c|c|c|...
2
votes
2answers
48 views

table formatting in terms of length and breadth

MWE: \documentclass{article} \usepackage{amsmath} \usepackage{multirow} \begin{table}[] \caption{} \label{tab:my-table} \begin{tabular}{|c|c|c|c|c|c|c|} \hline \multirow{2}{*}{A} & \multirow{2}{*}{...
0
votes
0answers
30 views

Using tcolorbox to create information boxes within side margins produces vertical spacing issues

I'm fairly new to working with LaTeX but I already very much enjoy using it. One of my latest ideas was creating a small side box, which contains informations regarding a section (I use this for a ...
1
vote
1answer
37 views

Align text under variables

Is there any easy way to align the conditions under the equation? As you can see the less equal zero condition is not vertically aligned. \documentclass[border=10pt]{standalone} \usepackage[utf8]{...
1
vote
0answers
33 views

How to align vertically two figures in subcaption environment?

As shown in the following code, I have two subfigures: \documentclass[12pt,twoside]{book} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{...
2
votes
1answer
35 views

fancyhead Left and Right [L] [R], not algining vertically with tabula

My head has "\leftmark \ \rightmark" as the left header, and a 2 row tabular as the right header. However these do not vertically align with each other. If i remove the tabular and just put ...
0
votes
2answers
44 views

Understanding minipages alignment

I know this might be repeated in Understanding minipages - aligning at top. But I could just not make sense from those answers. The code in MWE I have is a bit different and simpler. This code was ...
1
vote
0answers
34 views

Standard with respect to super+subscript

I had an annoying problem with primes - since two automatically turn into quotation marks, and I had some double and triple primed variables, I introduced the textprime solution from here by egreg - ...
2
votes
1answer
41 views

How to align minipages really to the top?

I have this minimal example: \documentclass[a4paper,12pt]{article} \usepackage{graphicx} \usepackage{xcolor} \begin{document} \noindent\fcolorbox{red}{green}{ \noindent\begin{minipage}[t]{10cm} ...
2
votes
3answers
59 views

vertical alignment of tikzpicture with text

I would like to use underbrace in order to clarify some text and after some searching I found a solution using the Tikz package. However I am having some trouble with the vertical alignment. Here is a ...
2
votes
1answer
44 views

\left \right give inproper vertical spacing in fouriernc font

Here is a minimalist example \documentclass{article} \usepackage{fouriernc} \begin{document} $\mathbb{E} [x \mid y ] $ \end{document} The result looks like this: But if I use \left and \right, i.e.,...
0
votes
1answer
38 views

Fixing the alignment on a neural network diagram

I am working on some simple neural network diagrams, but am having some trouble getting the alignment to work. Can anyone help me with figuring out how to get the alignment to work correctly for the ...
3
votes
0answers
26 views

Huge vertical gap between bibliography entries on the left column [closed]

I'm writing a 2-column document in latex. In my references section, the entries on the left column have a huge vertical gap between them as seen in the picture below. What's the cause of this, and ...
0
votes
1answer
45 views

Remove wide empty spaces between rows in a longtable environment

I need to reduce the spacing between the two rows as indicated by the arrows in the figure. I tried complying with the following: \documentclass{article} \usepackage{array,booktabs} \usepackage{...
5
votes
2answers
42 views

How to table element center vertically?

Good night, friends. How can I leave the elements (figures) in the table vertically aligned? Follow the code below: \begin{landscape} \begin{figure}[!h] \centering \caption{Vistas em perspectiva das ...
4
votes
2answers
85 views

How do I align a third node below the exact middle of a horizontal line between two nodes situated above?

I have found these two answers which are similar to mine. However, my problem requires me to adjust the vertical distance between a horizontal line and the north point of a node, due to the different ...
4
votes
2answers
117 views

How to align fraction with a hat in the denominator

When I write \frac{1}{f} \frac{1}{\hat{f}} I get the following I would like the two f's to be vertically aligned, but instead the second one dips lower. Is there something like \phantom to put an ...
2
votes
2answers
37 views

Align content top with beamer (and metropolis)

I'm having trouble aligning content top with Beamer even when I add the class option t. Ideally, I would like my content to be flushed to the same vertical height irrespective of what content I start ...
0
votes
0answers
23 views

How to set the same length between paragraphs when there is a verbatim box?

What I want is to have 1em of distance between the paragraph and the verbatim box and 1em after the verbatim box and the next paragraph. I am using Rstudio with Knitr and PDFLatex. This is what I have ...
0
votes
1answer
34 views

How to get equal line and paragraph spacing with flushbottom?

I've written two novels so far using LaTeX, however I've had to take great pains to use flushbottom to produce even line/paragraph spacing (I had an obsession with getting the lines on opposing pages ...

1
2 3 4 5
66