Questions tagged [baseline]
{baseline] is about questions relating to the shifting of or the alignment relative to the baseline of text, which is the line upon which most letters sit and below which descenders extend.
141 questions
1 vote
0 answers
65 views
In-text floats vs bottom floats: how to get consistent spacing?
Since the 2025-06-01 LaTeX kernel update, the new socket build/column/baselineattach lets us attach bottom floats using the baseline of the last text line. With \AssignSocketPlug{build/column/...
2 votes
4 answers
117 views
baseline of chemfig and chemname question
What I want to achieve is as below: It requires: The baseline of three materials keep middle Three chemname also aligned exactly I have the following code: \documentclass[border=5pt]{standalone} \...
6 votes
1 answer
207 views
Is that elegant method to change the baseline of this `vbox` to achieve auto wrap lines?
I want to apply egreg's solution here to apply to this question, but I get stuck by the baseline. \documentclass{article} \usepackage{showframe} \usepackage{array} \usepackage{lipsum} \makeatletter \...
1 vote
1 answer
118 views
Summation sign wrongly positioned on the baseline with JuliaMono
I’m using JuliaMono as my monospace font via \setmonofont. But for some reason the summation sign ∑ is incorrectly placed on the base line. Here is how it looks like with either LuaLaTeX or XeLaTeX: ...
0 votes
1 answer
66 views
\baselineskip inside tabular
Within a \tabular environment, in a cell with several lines, I cannot change the distance between text lines using \fontsize. With this code: \documentclass[a3paper]{article} \usepackage[margin={7mm,...
7 votes
2 answers
315 views
Is there better method to declare tikz picture with proper baseline and fontsize?
I want to use tikz to custom construct the following "steel" symbols: With my poor tikz practice, I get the following MWE: \documentclass{article} \usepackage{tikz} \newcommand*\steelA{\...
1 vote
1 answer
82 views
Songs package: alignment of song titles
I am compiling a songbook with the songs package. On most pages, the song titles are aligned, but in this case, the title of song no. 27 is positioned higher on the page than the song title of no. 28.:...
4 votes
1 answer
105 views
Why doesn't \typoscale scale the baseline of a text? (OpTeX)
I am trying to scale both the font and the baseline of a text but only the font gets scaled. This is the code I wrote: {\typoscale[500/500] my text my text my text my text my text my text my text my ...
2 votes
1 answer
88 views
Understanding the subscriptShiftDown and subscriptShiftUp OpenType Math parameters
As per Microsoft's Typography documentation, the subscriptShiftDown parameter has the description The standard shift down applied to subscript elements. Positive for moving in the downward direction. ...
1 vote
1 answer
61 views
Arabic text is too far below the baseline
I wish to include a few Arabic numbers in my document. I tried the package arabtex, but the numbers in arabic are below the baseline. Does anyone know how to fix this? A minimal example: \...
4 votes
2 answers
157 views
Vertically centered parbox and baseline mismatch
Is there a general formula for offsets of this kind? Or is this a minor bug in the compiler used? The version of pdfTeX (pdflatex) is 1.40.24. This book states that \parbox[c]{width}{text} vertically ...
1 vote
1 answer
92 views
How to vertically center text of various sizes within a table row?
I have a table containing text of various sizes. The reasons for this is that I would like to vertically stretch my table to fill up an entire page, and while doing so, increasing the font size in ...
3 votes
1 answer
131 views
How to vertically displace a word in a sentence?
I want to write the word CAR in a text slightly above of the line. How can I do it? \documentclass{article} \begin{document} I want the word CAR in this line, but a few millimeters above (that is, ...
1 vote
1 answer
118 views
how to get consistent linespacing between footnotes when using linespread (I know of setspace, but this is not an option)?
I use KOMASkript classes (but I also experience the problem with the standard classes): When I set the linespread greater 1 (in my example \linespread{1.09}) the baselineskip from one footnote to the ...
1 vote
1 answer
384 views
Colored box paragraph that stays on text grid
Is there any straightforward way to produce this kind of output with the distance between the baseline of the last line before the box and the baseline of the first line within the box as well as the ...