Questions tagged [baseline]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
36 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,...
0
votes
0answers
15 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 ...
0
votes
2answers
48 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\...
7
votes
3answers
201 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 ...
3
votes
2answers
65 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]{...
1
vote
0answers
35 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 ...
1
vote
1answer
28 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){}...
1
vote
1answer
61 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!
1
vote
1answer
38 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 ...
2
votes
2answers
52 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 ...
0
votes
1answer
54 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} ...
0
votes
1answer
34 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?
0
votes
1answer
41 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 ...
1
vote
1answer
35 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 ...
7
votes
2answers
235 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
57 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
68 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
86 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} \...
1
vote
1answer
267 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
76 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
41 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
67 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
177 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
75 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
215 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
94 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
101 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
79 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
68 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
110 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
73 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
310 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
48 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
63 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
34 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
332 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} \...
5
votes
5answers
518 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
198 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
550 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
126 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
308 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
193 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
96 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
603 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
391 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
194 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
69 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
470 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
84 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 ...