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.
3,940 questions
4
votes
4
answers
206
views
Vertical centering in table cells
I'm trying to typeset the following table. I'm having trouble with the vertical centering of each cell's contents, plus the obvious horizontal alignments. ChatGPT's numerous attempts were all ...
5
votes
2
answers
111
views
Unexpected tabular vertical alignment
I'm having a difficult time understanding the vertical alignment of columns of tables created via tabular.
My Code
\documentclass{article}
\usepackage{array}
\begin{document}
\begin{tabular}{ | p{2....
4
votes
1
answer
66
views
In ltx-talk make text body not vertically centered
In ltx-talk the default is for body text to be vertically centered. How to instead make it display always starting from the page top? Vertical centering makes the text jump around when I use the \...
5
votes
2
answers
205
views
Increase vertical spacing for the boxed choice in enumext
I'm using the enumext package to create multiple-choice questions.
In my case, the answer labels are boxed letters, produced using the wrap-label key.
The issue is that the boxed letters appear too ...
4
votes
3
answers
116
views
Vertical alignment of equations inside tabularx
I'm trying to put multiple numbered equations into one line to save space. One way to do this is to put the equations inside a tabularx table. However, when I try to put an equation environment inside ...
5
votes
1
answer
140
views
Why is stretch glue ignored on pages with top or bottom floats?
I am experimenting with custom page-building logic by redefining \@texttop and \@textbottom (which determine the behavior of \flushbottom and \raggedbottom), and I need to access the value of \...
4
votes
2
answers
151
views
Why does forest baseline alignment seem to stop, once drawing circles around each node?
Situation
While working on this forest-based solution I was puzzled by the vertical alignment, once I draw circles around the nodes.
So for test purposes I copied said basic tree three times:
left: ...
4
votes
3
answers
217
views
How to ensure a text starts exactly at the left margin of the text area?
In the following MCE, there is a small space between the left margin of the text area and the “F” of “Foo”. Hence, the “F” and the red horizontal rule below this text aren't vertically aligned. How to ...
3
votes
3
answers
196
views
Producing the sums outside of the 3x3 Magic Square
How can I align the column of sums outside of this 3x3 magic square? I've coursed through different variations of code, but I can't seem to get it correct. Kindly see the photo below. The 15s ...
2
votes
1
answer
68
views
How to centrally align grid in tcolorbox interior
I'm making a test using the exam class and wish to have answer boxes with a grid background for my students to write their responses. I'm doing this with a custom tcolorbox. I'm wondering why my grid ...
3
votes
1
answer
41
views
tblr within a tblr is vertically aligning middle (ignoring cells={h}) as seen when using two nested tblrs of differing height in different cells
When I nest tblrs within a tblr cell and there are tblrs nested within a different cell on the same row of the parent tblr, the cell which has a lower total height of nested tblrs will display its ...
1
vote
1
answer
38
views
why does nesting a tblr within a tblr cell push down the contents of the other cells in that row using tabularray?
I'm trying to use a tblr nested within another tblr's cell. The full extent of what I use in the nested tblr has been stripped down for the sake of this MWE. But this shows the issue where the first ...
0
votes
0
answers
18
views
Biblatex descending order of references with numeric style: wrong vertical alignment if more than 10 entries and multiples bibliographies
This is a follow up of Biblatex descending order of references with numeric style: wrong vertical alignment if more than 10 entries.
The answer of this question, based on biblatex's locallabelwidth, ...
3
votes
1
answer
75
views
Vertical alignment of lower parts of `tcolorbox`es
I use tcolorboxes to showcase projects. The title gives the project name, the upper part contains an eye catcher, and the \tcblower part lists project partners.
The heights of the upper parts of the ...
3
votes
3
answers
193
views
What is the correct way to adapt slash height to the operators?
In display mode I have a formula of the form $x / y$ where x and y are formulas containing integrals, so they are taller. What is the right (not hack) way to make the slash automatically adapt to the ...