Questions tagged [baseline]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
2answers
56 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 ...
1
vote
1answer
47 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 ...
1
vote
1answer
58 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: \...
2
votes
1answer
76 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} \...
0
votes
1answer
139 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 ...
0
votes
1answer
44 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 ...
2
votes
1answer
33 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, ...
2
votes
1answer
48 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 ...
4
votes
2answers
167 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 ...
0
votes
1answer
58 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, ...
1
vote
0answers
172 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 ...
0
votes
1answer
90 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: \...
2
votes
1answer
77 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 ...
1
vote
2answers
52 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-...
0
votes
1answer
50 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 ...
0
votes
0answers
73 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 ...
1
vote
1answer
51 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 ...
6
votes
3answers
271 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:
0
votes
1answer
46 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 \...
1
vote
1answer
58 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 ...
0
votes
1answer
31 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 ...
6
votes
2answers
274 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} \...
4
votes
4answers
345 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 ...
2
votes
1answer
170 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 ...
10
votes
3answers
532 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 ...
4
votes
1answer
118 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} \...
2
votes
1answer
1k 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, ...
5
votes
1answer
254 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}...
1
vote
3answers
173 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} ...
6
votes
2answers
78 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 ...
1
vote
1answer
552 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 ...
4
votes
1answer
313 views

How to make baseline visible?

I found this nice page with notes on LaTeX: https://unix4lyfe.org/tex-notes/#entry26 It gives this sample code: \def\vhb#1{\vbox{\hbox{#1}}} A vbox: \vbox{\vhb{eight}\vhb{gnat}} and a vtop: \vtop{\...
0
votes
1answer
172 views

How can I set up the space in the end of the minipage environment with baselineskip automatically?

In the below code, how can I set up the space in the end of the minipage environment with baselineskip automatically? Actually I don't want use to \vspace... and the same command, and also I want to ...
1
vote
1answer
68 views

A simple table with a (baseline?) problem

I am trying to make a simple table with vertical centering, but after I compile there is a larger vertical space between "She" and "He" in the output. I have taken the table down to its simplest and ...
4
votes
1answer
374 views

baselineskip param of \fontsize doesn't add space between my lines

I'm setting baselineskip to a multiple of 4 times the fontsize and it's having not much of a difference from 1.2. At 1.2 the text collides as well. I'm making a flashcard app, so the text should be ...
0
votes
0answers
77 views

\baselineskip changes values between different computers, even using same Tex editor

My problem is that my .tex file contains many \baselineskip and these seem to have a value that changes between different computers. That's what happens in practice: I work on a computer at work using ...
1
vote
1answer
83 views

Section title exactly on the line above the following paragraph

I am trying to position section titles on the line above the following paragraph. By redefining the space above and below, I get two distinct undesirable outcomes: 1: The extra space pushes the bottom ...
1
vote
0answers
44 views

Why are two radicals set at different heights? [duplicate]

In typesetting the following in a, \sqrt[n]{a \cdot b} = \sqrt[n]{a} \cdot \sqrt[n]{b} … the second radical is being typeset higher than the first: Why? And how can I fix it? MWE: \...
6
votes
2answers
785 views

Set baseline from coordinates in a standalone TikZ image

I include the TikZ image "One-Point.tex" inside an aligned environment in an equation. However, since it's not exactly the same height above and below the center of the loop, it's not vertically ...
1
vote
0answers
89 views

Baseline alignment on BOTH pages

A friend of mine said to me that my (almost) finished Ph.D thesis would look much better if my baselines were always aligned (between left and right pages). How can i do that ? The picture is a ...
3
votes
2answers
255 views

Use of \small to resize a math display affects the baselinestretch of the preceding paragraph

This question is related to this one: I have this code: \documentclass[11pt]{article} \pagestyle{empty} \usepackage{blindtext} \renewcommand{\baselinestretch}{1.1} \usepackage{amsmath} \...
0
votes
3answers
239 views

Vertically aligning text and equation in two minipages

I have two minipages next to each other, the first one containing text that describes an equation, and the second one containing the actual equation. I want to align the text vertically so that the ...
5
votes
1answer
155 views

\vfill with descenders (flush baseline to bottom)

Is there a way to shift the baseline of dome text to the page bottom, i.e. with ignoring descenders? Actually I thought this is the case with \vfill but it isn't … \documentclass{scrartcl} \...
4
votes
1answer
356 views

Get depth from a generated PNG with chemfig package

I generate PNG images from latex code to display in web/mobile applications. The general flow is: Client makes an API call with the formula I should render I wrap the formula in a preamble and run ...
1
vote
2answers
203 views

Text got misaligned after psfrag replacement took place in .eps

I need to translate to translate texts in eps files. For this i use psfrag package like this: \documentclass[12pt]{article} \usepackage{psfrag} \usepackage[dvips]{graphicx,color} \usepackage[utf8]{...
4
votes
2answers
6k views

Break size-symmetry of `\frac{}{}`

If my fraction has a taller numerator than denominator, e.g.: \frac{\begin{array}{c} t\\a\\l\\l\\ \end{array}}{small} I like the way it is still adjusted to the baseline. However, something weird ...
1
vote
1answer
118 views

PsPicture baseline

When compiling the following MWE with LaTeX->PS->PDF, the psframe ist aligned correctly to the baseline. Using auto-pst-pdf and PDFLaTeX, I get the following unwanted gaps. pst-pdf doesn't work either....
5
votes
2answers
606 views

TikZ: using nodes inside nodes

I am trying to nest nodes like this: \usemodule[tikz] \usetikzlibrary{arrows, positioning} \starttext \starttikzpicture[font=\tt, remember picture] \node (add-entry) {entry}; \node[right=...
2
votes
2answers
357 views

Vertically align text to fraction line in equation with nested fractions

I am trying to get output that would look like this: The MWE I attached works well for equations with non-nested fractions or without fractions. The problem arises when I have equations with nested ...
2
votes
2answers
1k views

Change \baselineskip to match other fontsize than currently used

I want to increase the \baselineskip size to the one used with \normalsize. So if I use a \tiny size, I want the spacing between the lines to match the spacing between the lines in \normalsize. I don'...