Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [baseline]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
77 views

\setlength{\belowcaptionskip} is not the same as \vspace

Following my previous question, I noticed that adding \vspace{-0.5\baselineskip} right after the graphics insertion, does not gives the same exact result when comparing the output with \setlength{\...
user avatar
  • 298
2 votes
0 answers
53 views

Raise baseline for English in XeLaTeX in a bilingual document

Please see the MWE given below. \documentclass{article} % For bilingual document \usepackage{polyglossia} \usepackage{fontspec} % Bangla \setmainlanguage[numerals=Devanagari]{bengali} \newfontfamily\...
user avatar
  • 16.8k
26 votes
2 answers
2k views

Why is the 7 (Computer Modern italic) jumping out of the baseline in this code?

I have an issue I cannot explain to myself. Here is the code: \documentclass{scrartcl} \usepackage{tikz} \begin{document} \newcommand{\tikzmark}[4][]{\begin{tikzpicture}\node[inner sep=1pt,outer sep=...
user avatar
  • 4,286
1 vote
1 answer
60 views

How to keep base-line based distance before (tikz) environment?

I have an environment (tikzpicture) that tries to occupy a height equal to the multiple of the current line height / baselineskip (I need this to be pixel-perfect, so in a multicol-setup the baselines ...
user avatar
  • 1,852
0 votes
2 answers
22 views

Why does the linespacing apply only to the first line?

I am making my own title page(there are better ways), what I don't understand is for the line: {\fontsize{18pt}{25pt}\selectfont FOooo\\COOoooo\\Fooooo} Why only the first line respects the ...
user avatar
0 votes
0 answers
40 views

How to shrink the line spacing while using \scalebox under align environment?

I would like to put the deduction procedure inside the equation, and place the "=" symbol between each line, Just like this: Here is the code: % Engine: XeLaTeX \documentclass[10pt,...
user avatar
  • 1
0 votes
0 answers
32 views

Using two lowercase letters inside \textsc for a heading on the titlepage? (+ different baseline stretch on header?)

so I searched for some time now, but I did not find a thread addressing this problem. Guess noone wants lowercase letters in a \textsc heading, but me... The title of my thesis should be in \textsc ...
user avatar
  • 1
0 votes
2 answers
63 views

TikZ redefined \xrightarrow causes unequal line skip around the equation

I recently encountered some code redefining \xrightarrow etc. with tikz-cd to avoid possible issue with unicode-math. The code looks like this: \RequirePackage{tikz-cd} \newbox\xratbelow \newbox\...
user avatar
  • 5,279
7 votes
3 answers
492 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 ...
user avatar
  • 1,899
3 votes
2 answers
135 views

Vertical align of fractions inline and display mode (baseline?)

I was checking the solution here for make a small fraction. I get the fraction but I noticed that there is a variation in the vertical alignment in display mode and inline mode: \documentclass[12pt]{...
user avatar
  • 1,825
1 vote
0 answers
51 views

Two different fonts with two different baselines

I am mixing two (really, three) fonts together to get as close to a 'natural writing' experience for my students in slides that I produce. There are good reasons to have the writing be as natural as ...
user avatar
1 vote
1 answer
35 views

Aligning nodes in different tikzpictures

It is possible to align the baseline of two nodes in different tikzpictures. I have a tikz in an align environment as in the following example code \begin{align} &\tikz[remember picture]{\node(I){}...
user avatar
1 vote
1 answer
74 views

How to make baselines visible?

I want to show all baselines in all pages of my documentation. This question has been discussed in here, but the solutions provided don't work at all. I'm using pdflatex. Thank you very much!
user avatar
1 vote
1 answer
49 views

Inconsistent paragraph spacing with \parbox for custom design

I am working on a project that requires generating latex code programmatically from a JSON file, which contains a transcribed conversation. The design of the final goal is non-standard. It requires ...
user avatar
2 votes
2 answers
130 views

Tikz draw at (baseline + south west) combined

If i run \test{ap} and \test{ap} i get Here is the code \newcommand{\test}[1]{ \tikz[baseline=(arced node.base)]{ \node [inner sep=0pt, outer sep=0pt] (arced node) {#1}; \draw ...
user avatar
0 votes
1 answer
119 views

How to make vertical space in subscript the same for lower case letter and upper case letter?

In this example \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \[ t_{0} = k r_N + \frac{ (N-1)\phi }{2} \] \[ t_{0} = k r_n + \frac{ (N-1)\phi }{2} \] \end{document} ...
user avatar
  • 18.1k
0 votes
1 answer
50 views

Height/vertical distance between baseline and descenderline: how to measure?

Do someone know, how to measure the space between the baseline and descender line? And in general, is there a list with all those kind of measurements?
user avatar
0 votes
1 answer
46 views

Baseline Problem with zref & textblock (north west vs baseline)

Zref does calculate the coordinate of north west of P1 (= baseline of "some text"), which in my case is approx (50mm, 274mm) so if i make "uuuuuu" in Textblock with the same ...
user avatar
1 vote
1 answer
65 views

Adding Text on includepdf - margin/baseline problem!

If i put a short text it works fine. \put(200,300){short text}% If i put a long text it goes out of boundary. \put(200,200){long long long long long long long long long long long long text}% goes out ...
user avatar
7 votes
2 answers
267 views

Positioning punctuation to the bottom right of an equation

I'm writing a paper with tikz-based equations that look like this: I like to have punctuation after equations, but I think it would look better and be less confusing if the punctuation was at the ...
user avatar
  • 2,992
1 vote
1 answer
78 views

Dealing with variable-height fonts

I'm having problems using LaTeX to deal with a certain font that I'd like to use for an art project. I'm writing a basic document, but when I use this font to write normal text, the baseline ends up ...
user avatar
1 vote
1 answer
89 views

How can I automatically check, that \baselineskip is large enough?

When I set a font size and baselineskip, I have to take care, that the baselineskip is large enough for my font. Is there an automatic way to check this in LaTeX? Given the following example: \...
user avatar
  • 4,286
2 votes
1 answer
124 views

How can I adjust the baseline alignment of the tensor package?

I have a few issues with the alignment of the baselines when using the tensor package. Here is a MWE: \documentclass[12pt, a4paper]{book} \usepackage{tensor} \begin{document} \begin{equation} \...
user avatar
  • 169
1 vote
1 answer
582 views

\baselineskip for 10pt, 11pt and 12pt fonts

There looks like a mismatch between font height and \baselineskip: 10pt - 12.0pt (12.0pt) 11pt - 13.6pt (13.2pt) 12pt - 14.5pt (14.4pt) For example, if font height is 12pt, then \baselineskip should ...
user avatar
  • 597
0 votes
1 answer
116 views

Lined-paper line spacing, and redefining the math environment

(The description is kind of long, questions are at bottom) I'm currently using a lined-paper style, thus need all the contents to be strictly sticking to the line. I've changed the \baselineskip, have ...
user avatar
  • 5,279
2 votes
1 answer
54 views

Centering plots with baseline

Code: \documentclass[12pt]{article} \usepackage{pgfplots} \usepackage{float} \pgfplotsset{compat=1.17} \usepackage{tikz} \usepackage{siunitx} \usepackage{caption} \usetikzlibrary{shapes, arrows.meta, ...
user avatar
  • 1,427
2 votes
1 answer
93 views

What is the behaviour of \fontsize if baselineskip is below a certain value?

during my optimization process I found something spurious I cannot explain to myself and which I would like to understand. So with \fontsize you set the fontsize and the baselineskip. However the ...
user avatar
  • 4,286
4 votes
2 answers
223 views

Fixed vertical spacing between items

Is there a way to ensure that the vertical spacing between every item (line) in a list is exactly the same? I tried specifying the "itemsep", but the resulting spacing still depends on what characters ...
user avatar
0 votes
1 answer
83 views

Aligning minipages in lstlisting

I'm trying to use two minipages inside an lstnewenvironment and I'm struggling with top- aligning the two minipages. \lstnewenvironment{code} { \lstset{ language=Python, ...
user avatar
  • 97
1 vote
0 answers
276 views

LuaLaTeX: Align baselines in two column document (grid typesetting)

I'm typesetting a scientific book with a lot of sections, tables, figures and equations. The book is in two columns. My client asked me to ensure baselines of the text in both columns are aligned ...
user avatar
  • 136
0 votes
1 answer
143 views

Text baseline alignment in filled boxes using tikz

How do I align text in individual boxes to avoid getting results like the following where the second word is shifted up due to parts of the characters stretching below the baseline? Here's my MWE: \...
user avatar
  • 387
2 votes
1 answer
139 views

fontspec: how to keep baselineskip stable

Compare these two images:      On the left you have correct baselineskip on all line. On the right you have larger baselineskip for line 5 because of the acute accent on É (in Études). Looking into ...
user avatar
  • 1,750
1 vote
2 answers
123 views

Section heading with shaded background spanning \textwidth, with uniform baseline

I’m trying to adapt one of the answers to this question so that only the section text, and not the section number, has a coloured background. Unfortunately the use of \parbox seems to result in a non-...
user avatar
  • 3,816
0 votes
1 answer
139 views

How to set a fixed baseline that doesn't stretch for ascenders or descenders?

Given many lines of text from a parameter or \input file, that contain end-of-line tags, ascenders and descenders: \documentclass{minimal} \begin{document} % Some Code <Here> to disable TeX ...
user avatar
0 votes
0 answers
156 views

Problem with linespace and parskip and font size

I am writing a thesis template with properties like word template. in MS Wors: Font size=14pt, linespace=1.2, space before chapter/section/subsection title = 30pt/27pt/20pt. What I have done so far ...
user avatar
1 vote
1 answer
102 views

Snapping back to baseline in documents with facing pages

Usually the baseline in LaTeX's output is exactly continuous across pages, so that lines on the following pages appear as printed "on top" of each other when a page is turned. But that behaviour can ...
user avatar
6 votes
3 answers
360 views

How to insert \bigstar in section title with same baseline?

Minimal example: \documentclass{article} \usepackage{amssymb} \begin{document} STAR$\bigstar$METHODS \end{document} Aim:
user avatar
  • 67
0 votes
1 answer
49 views

Why does the \linespread in the preamble cause modifications on the leadings without utilizing the \selectfont?

My question is clear by the title. According to the "LATEX2e font selection" manual guide, the \selectfont should be followed by the command of \linespread. Does anything related carry on inside of \...
user avatar
  • 1,124
1 vote
1 answer
77 views

Problems with English and Persian baseline alignment

I have a document in English and Persian, and the Latin and Persian scripts don't quite line up along the baseline. I am using polyglossia, but xepersian didn't help me either. In the MWE below, I ...
user avatar
  • 2,155
0 votes
1 answer
49 views

Unable to create large spacing between lines in a paragraph with\setlength{\baselineskip}{10em}

Quoted from https://www.overleaf.com/learn/latex/Paragraph_formatting#Line_spacing: \baselineskip Is a length determining the minimum space between the bottom of two successive lines in a ...
user avatar
  • 2,897
6 votes
2 answers
404 views

Relationship between strut and baselineskip

Here, it is said that a strut is defined as: \rule[-.3\baselineskip]{0pt}{\baselineskip} However, if I do: \newlength{\strutheight} \settoheight{\strutheight}{\strut}\printlength{\strutheight} \...
user avatar
  • 4,263
5 votes
5 answers
860 views

Vertical Alignment of Matrices with spalign Package

I am using the spalign package to typeset matrices and systems of equations. Basically it just lets you use spaces (or commas) and semicolons instead of & and \\ when typing in matrices and ...
user avatar
  • 143
2 votes
1 answer
247 views

How to shift characters and numbers in math mode to make them vertically centered around the formula axis

In math mode, characters and numbers are placed on the baseline and develop upward and/or downward. How can they be centered vertically around the formula axis, as symbols such as + and = are? For ...
user avatar
10 votes
3 answers
578 views

Why does the baseline skip depend on the letters depth in some fonts?

I have some trouble with the line high using an OTF with fontspec package. The baseline skip of a line differs depending on the depth of the used letter. So for example a line containing a »g« is ...
user avatar
  • 1,436
4 votes
1 answer
142 views

Remove whitespace between baseline and symbol

Despite my naive anchor=center specification, these four symbols are not aligned by their center: \documentclass{standalone} \usepackage{tikz} \tikzset{x=1pt, y=1pt, z=1pt} \begin{document} \...
user avatar
  • 1,423
2 votes
1 answer
2k views

enforce total height of tcolorbox title

I have a few tcolorbox'es in my document and I want to make them all have title sections with the same height. But some of my titles have characters that go under the baseline and others don't. So, ...
user avatar
  • 265
5 votes
1 answer
382 views

How can I display baseline and create text on it?

I use the below structure for it: \documentclass[12pt]{article} \begin{document} \begin{minipage}[t]{.9\textwidth} \leavevmode\rlap {I want to stop the hrule, at the end of my text.} \rule{\textwidth}...
user avatar
1 vote
3 answers
229 views

Is there an easy way to align the baseline of the beginning of two columns?

When I do this \documentclass{article} \usepackage{multicol} \RequirePackage[utf8]{inputenc} \begin{document} \begin{multicols}{2} {\Large Équations} \columnbreak {\Large Calculs et raisonnements} ...
user avatar
  • 6,130
6 votes
2 answers
129 views

how can I avoid \underset shift following subscripts downwards

My example \documentclass[12pt]{amsart} \usepackage{amsmath} \begin{document} \[ \underset{\circ}{(\alpha_i)}^{\sigma}_n \] \[ \underset{\circ}{(\alpha_i)^{\sigma}_n} \] \end{document} yields I ...
user avatar
1 vote
1 answer
647 views

Baseline in TikZ default unit of length

Lately, I have been using the baseline argument in TikZ pictures, but I couldn't figure out what was the default unit of length. I know that the cm is the default unit for TikZ package, but it doesn't ...
user avatar