Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
45 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 ...
Andre's user avatar
  • 101
1 vote
1 answer
265 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 ...
keth-tex's user avatar
  • 452
0 votes
0 answers
15 views

Can I use the \adjustbaseline command (provided by luatexja package) for "yoko" mode?

More specifically, how can I create a command similar to \adjustbaseline in "yoko" mode?
lllllf010083's user avatar
0 votes
1 answer
39 views

Question on overlapping tabular

In my attempt to understand (very specific) nuances of LaTeX, I have a follow-up question to Question on overlapping parbox (concerning the baseline grid when a parbox is introduced). When backing up ...
zgrizz's user avatar
  • 149
1 vote
2 answers
91 views

Aligning cells to baseline in nested tabularray

How can I align cells by their baselines if tabularray tblr environments are nested? I've seen several answers recommending tabularray and thought I'd try it out, but the package does several things ...
cfr's user avatar
  • 206k
3 votes
1 answer
56 views

Circuitikz adjust label baseline position with european resistors using hooks or custom components

I'm trying to figure out a way to position labels inside european resistors. I'm aware of the answer here, but I think the solution is a bit too complicated to use. I have figured out the following ...
ttsc's user avatar
  • 415
0 votes
1 answer
41 views

Equal spacing between equations using align or gather

Is there an option for equal spacing between equations with and without fractions? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{section}{title} text \begin{gather} a + ...
Sylvia's user avatar
  • 485
1 vote
1 answer
51 views

How to change word size and baseline documentclass in latex without affecting table

I'm almost finished with my paper, but I realized that I need to have 1.5 line spacing and 12pt font size. When I switch from \documentclass[table]{article} to \documentclass[table, 12pt]{article} and ...
Ferdaus's user avatar
  • 11
1 vote
2 answers
56 views

Trying to vertically 3 align fractions - one has a hidden rule

Im attempting to align the X12 over X12 with the fractions. It looks OK until I make the text LARGE then the vertical alignment is off - I think I need to change the baseline for the X12 over X12 but ...
Durutti's user avatar
  • 11
1 vote
2 answers
62 views

Tabularray Can't adjust vertical space

I'm creating a longtblr, using the package tabularray. When trying to reduce the vertical space, using rowsep = 0pt it better, but not the same as a normal table. Here is an MW: \documentclass[12pt]{...
JJP's user avatar
  • 81
2 votes
1 answer
126 views

Arabic text go under baseline when vocalisation diacritics (tashkil) is used

When an Arabic text is vocalized (using the diacritics called tashkil), the whole line sometimes goes below the expected baseline. Here is an example with the following MWE: \documentclass[12pt,...
fauve's user avatar
  • 2,531
1 vote
1 answer
44 views

how do I space things in a node in tikz?

I want to be able to add more space between the z and w in their node. I tried bigskip and other things (including redefining baselineskip), and the two words (in the original document) still seem ...
kloop's user avatar
  • 9,764
1 vote
2 answers
91 views

A square root sign starting at the baseline

When typing a square root sign sometimes it looks a little bit ugly when the lower part reaches beyond the baseline: \documentclass{standalone} \begin{document} The expression \( \sqrt{x} \) is ...
Andreas Knobloch's user avatar
0 votes
1 answer
53 views

Spacing between parboxes distributed unevenly

I'm fairly new to Latex and not sure, if the solution to my problem is an obvious one. I'm trying to get the spacing between the lines of those parboxes to be distributed evenly; the same distance ...
melodyscat's user avatar
1 vote
1 answer
125 views

How to determine the space between a `hrule` and the next baseline?

I would like to draw a hrule and have a precise control on the vertical space bewteen the line and the baseline of the text under the line. On the following image, one can see that the space between ...
Colas's user avatar
  • 6,842
3 votes
4 answers
300 views

Problem with a TikZcd between curly braces

I was trying to answer a question but the TikZcd I would like to typeset is not well vertically positioned between the curly braces (the red lines are drawn to better show the problem): \documentclass{...
CarLaTeX's user avatar
  • 64.5k
2 votes
1 answer
158 views

Reducing the Amount of Vertical Space Between the Lines of a TOC Subsection Entry

Consider the code \documentclass[12pt]{book} \usepackage[showframe,paperwidth=5.5in,paperheight=8.25in]{geometry} \textwidth=4in \textheight=6.40in \voffset -7pt \usepackage{tocloft} \renewcommand{\...
DDS's user avatar
  • 9,500
1 vote
2 answers
213 views

Positioning a horizontal rule with respect to baselines

I am implementing a document design and I noticed that I am struggling to get the right distance between a rule and two test paragraphs. I have created a document class based on on article class, but ...
Robert Manson-Sawko's user avatar
2 votes
1 answer
43 views

Draw connected boxes with common height around letters/words in text

(There are a few related questions, e.g. this and this.) I want to accomplish the following: enclose some words of the text into boxes, with all those words vertically aligned as they were truly just ...
Enlico's user avatar
  • 2,612
1 vote
0 answers
57 views

Text alignment in minipage with tikzpicture

Using 3 minipages, while in the second one is a tikz, will produce the text part not aligned to each other (see red line). Is there o solution without vspace/tabular/multicols etc. to align the ...
Bilal Yilmaz's user avatar
0 votes
1 answer
94 views

So what's the right way to set the preferred line spacing? Changing default line spacing in Book returns underfull \vbox warnings

Simple task: book-class document, 12pt font size, 6x9 page size. With the default book settings (I don't really know what's the default line spacing in book-class document) the document is typeset ...
tryingout's user avatar
  • 115
0 votes
2 answers
66 views

TikZ: Draw under base line and keep the normal spacing between lines

Problem I want to achieve a command for tied lyrics like in lilypond. Now I have it nearly working, but the downside is, that the tikz picture effects the spacing between the lines, which adds too ...
Guest's user avatar
  • 131
2 votes
1 answer
42 views

Maximum height of inline object that does not alter interline

I would like to know what's the maximum height of an object that does not mess with the interline. I naively thought that if my object height is \baselineskip everything would have looked alright, but ...
Atcold's user avatar
  • 1,737
2 votes
3 answers
313 views

Adjusting tikzpicture baseline to be flush

I have two minipages one which encloses a tikz picture. I'd like these to have the same baseline. i.e. I would like the minipages to be flush at the top. By default this doesn't happen: \...
Sriotchilism O'Zaic's user avatar
0 votes
0 answers
89 views

Inferring the baseline height and bounding box widths of characters/text/equations in the 'standalone' environment

I am writing a mathematics visualisation tool using C++ and OpenGL, and want to incorporate LaTeX text and equations. I was initially looking for a C++ library to directly render LaTeX text/equations ...
niran90's user avatar
  • 204
1 vote
2 answers
908 views

How to make acmart stop complaining about \baselinestretch?

I have a document in acmart style, which uses some old package. This package modifies baselinestretch somehow. In the end, I see this in the log: Class acmart Error: An attempt to redefine \...
yegor256's user avatar
  • 12.1k
0 votes
1 answer
1k 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{\...
tush's user avatar
  • 1,145
2 votes
0 answers
105 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\...
Masroor's user avatar
  • 18k
28 votes
3 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=...
TobiBS's user avatar
  • 5,260
1 vote
1 answer
193 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 ...
TeXter's user avatar
  • 1,912
0 votes
2 answers
29 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 ...
Dhruv Thakkar's user avatar
0 votes
2 answers
122 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\...
Jinwen's user avatar
  • 8,598
8 votes
3 answers
1k 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 ...
Enlico's user avatar
  • 2,612
3 votes
2 answers
374 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]{...
juanuni's user avatar
  • 2,029
2 votes
0 answers
138 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 ...
Rob Niemeyer's user avatar
1 vote
1 answer
46 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){}...
Luca Benatti's user avatar
1 vote
1 answer
255 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!
belmont richter's user avatar
1 vote
1 answer
61 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 ...
Darien Brito's user avatar
2 votes
2 answers
567 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 ...
Bilal Yilmaz's user avatar
1 vote
1 answer
398 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} ...
Nasser's user avatar
  • 20.3k
0 votes
1 answer
230 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?
Bilal Yilmaz's user avatar
0 votes
1 answer
74 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 ...
Bilal Yilmaz's user avatar
1 vote
1 answer
179 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 ...
Bilal Yilmaz's user avatar
7 votes
2 answers
337 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 ...
N. Virgo's user avatar
  • 4,289
1 vote
1 answer
219 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 ...
user119767's user avatar
1 vote
1 answer
282 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: \...
TobiBS's user avatar
  • 5,260
2 votes
1 answer
279 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} \...
Pxx's user avatar
  • 179
2 votes
1 answer
2k 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 ...
Cyker's user avatar
  • 667
0 votes
1 answer
218 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 ...
Jinwen's user avatar
  • 8,598
2 votes
1 answer
120 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, ...
Superman's user avatar
  • 1,625