Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
2answers
26 views

Vertical alignment of nested aligns

I would like to align a rather complicated formula, consisting of an (outer) optimization problem with several (inner) constraint blocks, which should be aligned around equal signs. I have opted to ...
2
votes
0answers
69 views

Problem with vertical alignment of a multicolumn listing in a tcolorbox

Consider the following test code: % ---------------------------------------------------------------------------- % % Files \begin{filecontents*}{empty\jobname.cpp} \end{filecontents*} \begin{...
2
votes
2answers
51 views

Place `tikzpicture` on the left of the text

Background I’d like to write a LuaLaTeX document for the Roman Catholic Liturgy of the Holy Week (from the Psalm Sunday through Easter Sunday). I do this in Slovak language (here’s a pdf that uses ...
1
vote
1answer
20 views

Strange listing alignment behaviour with and without a frame

Consider the following code which does an alignment experiment with listings. We are interested in the behaviour aboveskip and belowskip with and without a frame. % -----------------------------------...
2
votes
3answers
65 views

Centre cell vertically in tabularx across multiple multiline rows

Consider this example: \documentclass{report} \usepackage{tabularx} \usepackage{lipsum} \usepackage{multirow} \renewcommand{\tabularxcolumn}[1]{m{#1}} \begin{document} \begin{tabularx}{0.5\linewidth}{...
3
votes
2answers
133 views

Centre cell vertically in tabularx [duplicate]

Consider this example: \documentclass{report} \usepackage{tabularx} \usepackage{lipsum} \begin{document} \begin{tabularx}{0.5\linewidth}{lX} A & \lipsum[1][1-2] \\ \end{...
3
votes
3answers
84 views

Centre cell contents vertically

Consider this example: \documentclass{article} ...
1
vote
1answer
32 views

vertical aligning

\documentclass{amsart} \usepackage[utf8]{inputenc} \usepackage{genyoungtabtikz} \usepackage{ytableau} \newtheorem{example}{Example} \begin{document} \begin{example} Let $\tau=\Yboxdim{16pt}\young(7241,...
0
votes
0answers
37 views

Centering within a template

I am using DeCorte template for Resume https://ctan.org/pkg/res?lang=en. I am trying to put some text in the center of the document by \documentclass[margin, line]{res} \begin{document} \begin{...
2
votes
1answer
29 views

Only first item of enumerate in paracol environment not vertically aligned

MWE: \documentclass[11pt]{book} \usepackage{paracol} \begin{document} \begin{paracol}{2} \switchcolumn[1]* \section*{Heading in Language 1} \switchcolumn[0] \section*{Heading in Language ...
3
votes
2answers
102 views

Implementation of “clouds” for notes in the text [duplicate]

It is hard to describe what I want in a setence, better take a look on how I usually write down (lecture) notes. I want to point your attention to these little "clouds" which contain some useful, but ...
1
vote
1answer
30 views

Aligning \includestandalone{} graphs

I have these two standalone bar graphs that are identical in size, but when I \includestandalone{} them, to insert them into my main document, I can't for the life of me get them to line up. If I put ...
1
vote
1answer
20 views

Longtable word alignment issues

Some problems with my table. I managed to poach ideas from this entry: Make list of sentences in table break normally and created this longtable (without using tabularx). It works ... okay-ish. Here ...
0
votes
1answer
32 views

Colorboxes within in Paracols at the end of the page

I am currently implementing a dynamic PDF-creator. Therefore I need to be the last two columns of the paracol env. always at the end (bottom) of the page. Is there any way which achieves this? It ...
4
votes
1answer
23 views

pgfplotstable adding vertical space between fractions

MWE % stand-alone file to test writing a table in pgfplotstable \documentclass{book} \usepackage{booktabs,multirow} % required \usepackage{pgfplotstable} \pgfplotsset{compat=1.16} \begin{document} %\...
0
votes
2answers
41 views

How to align the lines on the left

Consider the code \begin{align*} (pq+q-3)^2-(3pq+p+q-6)(pq+q-3)+2(p^2q^2+p^2q+pq^2-7pq+p+q+2)\\ =&\;(p^2q^2+q^2+9+2pq^2-6q-6pq) +(-3p^2q^2-p^2q-pq^2+6pq-3pq^2-pq-q^2+6q+9pq+3p+3q-18)\\+2(p^2q^...
0
votes
1answer
38 views

How do I align the equations to the left?

The following is the full code that produces the image shown below: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{amsthm} \usepackage{amsmath} \...
3
votes
2answers
77 views

Flowchart structure arrows are hidden

I'm new to this latex forum and with the help of the online platform tried to create a flowchart for my work. The code is quoted below. It would be a great help if the following codes are rectified to ...
2
votes
2answers
103 views

How to align top tables row?

I have this simple latex table, I want to align top rows(Day, Min Temp, Max Temp) top. How Can I do it ? \begin{tabular}{ | l | l | l | p{8cm} |} \hline Day & Min Temp & Max Temp &...
2
votes
1answer
54 views

How to put a box and use columns to separate arrows

I am using the following resources: The multicols environment of Draw a set of arrows using a palette of colors. The box of How to put a long piece of text in a box? MWE: \documentclass{article} \...
2
votes
3answers
2k views

How do I align (1) and (2)?

The following code \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{amsthm} \usepackage{amsmath} \usepackage[left=1.5in, right=1.5in, top=0.5in]{geometry} ...
2
votes
0answers
84 views

ConTeXt marginal images and notes

I am writing a Textbook with much marginal notes and even images in the margin to explain words. I think it works best to use consequently the same command for text and images: \margintext. I want ...
1
vote
1answer
72 views

tcolorbox: Vertically center title box

I'd like to vertically center the title of a box on the top rule of the box. Unfortunatley I can't seem to find a way to calculate the height of the title box dopending on the title text and margins. ...
0
votes
0answers
12 views

Vertically justifying chapter number and name

My thesis chapter are currently displayed as the image above, and I would like them to show as the image below, that is vertically justifying the name of the chapter according to the size of the ...
0
votes
0answers
17 views

Aligning numbers in table

when I run this code, the number beyond E[\pi] are slightly moved to the right, while the percentages are centered. Is there anyway to have both centered, while the numbers under E[\pi] are still ...
2
votes
1answer
27 views

verbatim-environment inside group implies unwanted paragraph-break. Why? How to avoid?

When I wrap a verbatim-environment into an additional group, a new paragraph will be started after that group. (In the example below, \parindent-glue is inserted before the YYY when \begingroup and \...
3
votes
2answers
54 views

Aligning individual characters/glyphs like a monospace font

You know how most fonts and typography in general have characters/glyphs of various widths? Like if you compare a regular font: A E I O U Z X C V B a e i o u z x c v b They don't quite ...
1
vote
1answer
42 views

How to adjust the position of a number in an enumerated list?

So I've been experimenting with Latex as it'll apparently be useful for the next year of my degree, and I've come across the following issue with enumerated lists. \begin{enumerate}[label=(\roman*)] ...
0
votes
0answers
11 views

space between legend images of variable length and text entries

I have a two-column legend with variable image entries, namely solid lines and markers used in a scatter plot. I left aligned the legend content, but while this option aligns the text entries to the ...
4
votes
1answer
35 views

How to vertically align (center) components in a chemical reaction?

is there a way to somehow align the components [-M-] and the arrow so that everything is vertically centered? Thank you in advance! \documentclass{article} \usepackage{chemfig} \begin{document} \...
1
vote
2answers
39 views

Vertical alignment of arrow between images

I'm struggling with template given for my article. I've got four images and I'd like to place right arrow between them. Problem is that arrows should be in the middle instead of at the bottom. \...
2
votes
4answers
43 views

How can I align minipages by their absolute top, rather than their uppermost baseline?

I have two minipages side-by-side, and one is of a larger font size than the other – this is to produce a title. However, the baselines of the minipages are aligned, and not the top. I would prefer ...
0
votes
1answer
27 views

Overlay of tcbitems are not well aligned

I'd like to be able to overlay several tables made from raster/tcbitems. I tried several methods to do that, but none of them work for me. There is always a margin somewhere that is wrong. This ...
2
votes
1answer
37 views

How to get \baselineskip instead of \lineskip when using a stored box?

Consider this code: \documentclass{article} \begin{document} \pagestyle{empty} \def\contents{% \parindent = 0pt \LARGE \strut \raise\baselineskip \vtop {% {\Large\smash{...
0
votes
2answers
55 views

Any suggestions on how to make this prettier?

Any ideas how to make these description in the last line prettier without losing information? I mean it will be fine the way it is, but it is quite suprising what nice things you sometimes are unaware ...
3
votes
1answer
25 views

pgfplots: How to align legends of multigraph diagram?

Assumed we have the following MWE to display various graphs in one single diagram. Minimum working example (MWE): \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=...
0
votes
0answers
33 views

problem given by decimal alignment in latex tabu table with bold numbers

I'd like to have a table aligned by decimal point. I'm using tabu instead of table for exploit rowfont because I need row with smaller character. I've read different post on dcolumn and siunitx ...
1
vote
1answer
52 views

How to move the skills, hobbies and languages details in the “Designer's CV” template

I'm using this CV template found on ShareLaTeX/Overleaf site (source: http://www.howtotex.com/): %%% LaTeX Template: Designer's CV %%% %%% Source: http://www.howtotex.com/ %%% Feel free to distribute ...
2
votes
1answer
19 views

Labelling multiple lines of equations with a single label

I want to latex that equation 14.5. With labelling. But couldn't do it for several hours. So Any help will be appreciated. Thanks
4
votes
2answers
108 views

How to insert elective subjects section within a diagram

This is and addendum of the "Ingredients" section posted on a previous question: How to draw a diagram of custom subject correlativities. We need two more ingredients: Make an elective subject. We ...
2
votes
1answer
32 views

Figure and Table not aligned

I'm trying to align a table and a figure in Latex, but I`m not getting the results I want. I followed this answer : Table and figure side-by-side with independent captions This is the code I used \...
4
votes
1answer
76 views

Align figure on a grid by it's top edge

I'm trying to place figures in a book that I'm typesetting. Most of them end up at the top of a page. I'd like my captions to use smaller font with a smaller line spacing than the main text of the ...
0
votes
0answers
15 views

Beamer : Do not center vertically text in frame [duplicate]

I am using the beamer class and consider the following frame: \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize} \item blabla \end{itemize} \end{frame} \end{document} It appears ...
4
votes
1answer
44 views

Bad alignment with minipages, enumerate and doclicense

I've noticed that the content of the minipage environments is not correctly aligned in the following MWE: \documentclass{article} \usepackage{doclicense} \begin{document} \begin{minipage}[t]{.5\...
0
votes
2answers
28 views

How to get uniform vertical space space after section title

I have encountered a problem when working with minipages. Consider the following example. \documentclass{article} \usepackage{mdframed} \begin{document} \begin{minipage}[t]{0.45\textwidth} \...
6
votes
1answer
203 views

How to draw a diagram of custom subject correlativities

I need to create a large diagram i.e. a diagram of custom subject correlativities but I am not able to do certain things. To do this I am going to use TikZ. Ingredients The ingredients are: A title....
0
votes
0answers
26 views

Math Symbol Horizontal Alignment

I'm now using TeX Gyre Pagella for text and TeX Gyre Pagella Math for math, with unicode-math package. But it seems that the math symbols are not in correct positions, compared with letters or numbers ...
3
votes
2answers
55 views

How do I raise a figure (placed with wrapfig) to be flush with the top of a paragraph?

I am using the wrapfig package to place a figure with text wrapped around it. Here is a minimal example, with a screenshot of the relevant part of the output below: \documentclass{book} \usepackage{...
3
votes
2answers
54 views

Tabular environment - text vertically positions itself by bottom of tikz picture in adjacent cell

I would like to get my text (actually a matrix) to vertically center itself in its cell. Instead, it centers itself based on where the bottom of the tikz picture in the adjacent cell lies. This adds ...
0
votes
0answers
33 views

section in-line numbering and vertical spacing with the titlesec package

I am writing a class file for a template with very specific requirements. One of those requirements is that a section title must be bolded, centered, and be written in single-spacing with a single-...