Questions tagged [kerning]

{kerning} is the process of adjusting the spacing between characters in a proportional font, usually to achieve a visually pleasing result.

Filter by
Sorted by
Tagged with
2 votes
1 answer
102 views

Kerning against space, which model is the most suitable one?

Many professional fonts contain kerning instructions between the space (U+0020, the character) and other characters. These kerns help the pages achieve a more balanced typographical colour. For ...
  • 9,383
4 votes
2 answers
165 views

Why is kerning not applied when mixing OpenType character variants (swashes) with regular characters?

I am using an OpenType Font (OTF) that provides a number of character variants, for example variants of B, E, H with swirls, tails etc. The variants are accessed through the OpenType features "...
  • 894
0 votes
0 answers
89 views

Finishing math with a period (part 2)

Related: Finishing math with a period I believe of the two options \[|f(x)-(y)|<\epsilon\text{.}\] or \[|f(x)-(y)|<\epsilon.\] the first one is correct. However, a problem that was brought up (...
3 votes
1 answer
93 views

Can I change the bounding box of the digit 1?

This is a follow-up to Is this horizontal alignment correct?. In short, I would to print the text 100 µm visually centered on a scale bar. The problem with this is the digit 1 has the same wide ...
  • 5,282
1 vote
1 answer
59 views

Kerning based on the length of Text

I am using the flagderiv package for proofs but it has no way of putting text before the line number so I have just used \kern to put the text where I want it, but this then misaligns the comments. ...
  • 35
1 vote
1 answer
81 views

Macros as argument for pgf parser

As continuation for answer on this question: Kerning with xcolor There is first attempting define kerning macros for whole word with colored first letter, without parenthesis: (in more programmer-...
  • 391
2 votes
3 answers
373 views

Booktabs Cell Coloring Overflow and Position Bias

I want to fill booktabs table cells in a custom manner. I did two examples as below, one with kerning and the other is straight booktabs table. The first problem is in both tables, coloring that is ...
4 votes
1 answer
146 views

Kerning with xcolor

My question, in variants, I saw, asked many times here, but I can't solve problem. If we use \textcolor{FirstLetter}SecondAndOtherLettersOfWord, we lost font kerning between first and second letters. ...
  • 391
7 votes
1 answer
521 views

What do \vec{\mkern0mu x} and \vec{{} x} mean?

In the following posts and many other besides [0] [1], I've seen people use \vec{\mkern0mu x}, \vec{{} x}, and variants thereof to adjust the vector arrow's kerning. How do these work? What's the ...
  • 884
3 votes
1 answer
110 views

txfonts kerning when exiting inline math mode

I noticed strange behavior, when a hyphen follows inline math mode, if I am using the txfonts package. If I use the Computer Modern font, the kerning of these two cases, while not precisely the same, ...
2 votes
1 answer
60 views

Why is there a different kern between delimiters and math characters compared to their italic text character?

Occasionally, I like to typeset lists using the $\left< ... \right>$ notation in order to account for larger contents. I noticed that there is a difference in kerning toward the closing ...
0 votes
1 answer
129 views

Having asterisk above and not inline in code listings [duplicate]

I want to writing code listings with asterisk in-line not above line. That is something like this: But when I tried this: \documentclass{article} \usepackage{listings} \begin{document} \begin{...
1 vote
1 answer
120 views

Problem with custom font feature for addition kerning in OpenType font

I try to add some custom kerning to an OpenType font used with fontspec under lualatex. The real-world example uses the Brill fonts, but as they are not part of TeX Live I use Libertinus in the ...
  • 919
4 votes
2 answers
91 views

Normalizing space after stacked characters in LaTeX: Typesetting o͘

I am attempting to typeset the o͘ character in LaTeX by stacking a raised period on top of the letter o. The spacing for the results I've achieved is inconsistent, as you can see in the below ...
  • 317
4 votes
1 answer
147 views

How to extend (or kern) a subtitle to the text width?

I have a subtitle that is almost as large as the text width. For aesthetical purposes, I would like to strech it a bit so it covers the whole text width, and be more harmonious with the picture below ...
  • 2,054
1 vote
0 answers
40 views

How to reformat "f" labelling in tasks package so the right side has more kerning space

I have a working solution to the problem posed here for other packages such as enumitem, but I require a solution that works in the tasks package, which is not nearly as flexible. \documentclass{...
5 votes
2 answers
541 views

Why do I have to put braces around my macro for subscripts / indices?

I want to define a macro \ind which let's me set in math mode a subscript in upright letters and when starred (\ind*) in italic letters. Additionally, an optional argument allows me to adjust the ...
1 vote
0 answers
50 views

Kerning modification in a sbox

I tried to adapt the solution given by Egreg to have Roman numerals over- and underlined (Roman numerals with over- and underline). However, I run into a problem when I reduce the kerning for Roman ...
  • 427
1 vote
0 answers
109 views

Kerning of Chinese characters interacts with hyperref

I have a problem with Chinese punctuation. In some situations the dot appears on a separate line. I have been able to track the problem down to hyperref: \documentclass[10pt]{scrbook} \usepackage{...
0 votes
1 answer
78 views

\kern after \linebreak doesn't work

MWE: \documentclass[a4paper]{article} \usepackage[margin=30mm]{geometry} \usepackage{xcolor} \begin{document} \noindent this is good that is food this is good that is food this is good that is food ...
  • 627
3 votes
0 answers
198 views

Specifying kerning for math fonts

I'd like to manually fix some longstanding spacing issues between certain pairs of capital letters in Latin Modern Math, such as UF and YX. Because these pairs represent actual products, I'd rather ...
1 vote
0 answers
29 views

How can I change the kerning of all relations in script styles?

Let's say that I am dissatisfied with the lack of horizontal spacing around relations in scriptstyle and scriptscriptstyle. I would like to \mkern them by 1mu on either side, because I think that ...
3 votes
1 answer
110 views

Turn off auto-insertion of italic correction (undesired extra kerning)

The LaTeX2e font selection manual states Commands defined by \DeclareTextFontCommand automatically take care of any necessary italic correction (on either side). So running the following example \...
  • 9,383
1 vote
1 answer
156 views

stix2 changes spacing in mathrm

Compare \documentclass{article} \usepackage{stix2} \begin{document} $$\mathrm{Var}$$ \end{document} to the same example without the \usepackage{stix2}. With stix2: Without stix2: With stix2, the ...
  • 629
0 votes
0 answers
62 views

Change kerning for specific letter combinations P- and P--

I'm looking for an easy way to globally change the kerning for the following character pairs: P- and P-- I am using bitstream-charter as a font through the mathdesign package and the hyphen is ...
  • 1
4 votes
1 answer
204 views

Kerning ligatures with font-feature in luatex

Manipulating fonts is somewhat daunting, and usually too much for me, so I restrict myself to a few things. I use Duffner's EB Garamond -- his original version from his website. I'm a bit puzzled by ...
  • 646
2 votes
1 answer
62 views

Globally define kerning of math letter

Is it possible to have a kerning reconfiguration in the preamble to allow a small amount of whitespace for specific letters. In this example, I would want right space to the right of g and f when ...
5 votes
0 answers
108 views

LuaTeX: OpenType staircase kerning (MATH kerning) has opposed effect than expected

This is a follow up question to a previous reported font problem. Compiling the following MWE with LuaLaTeX \documentclass{article} \usepackage{unicode-math} \setmathfont{LibertinusMath-Regular.otf}[...
  • 1,065
0 votes
0 answers
75 views

Adjusting spacing in mathdesign

I like mathdesign package, but spacing between some letters looks pretty awful, for example, look at the letter A: I've found the solution here: Make Characters Active via Macro in Math Mode. So, ...
3 votes
0 answers
141 views

Subscript strangely spaced: Bug in font Libertinus or LuaTex engine? Possible quick and dirty fix?

Compile this MWE with LuaLaTeX \documentclass{article} \usepackage{libertinus} \begin{document} \(w_j q^j\) \end{document} The result is: IMHO, the space between "w" and its subscript "j" is too ...
  • 1,065
2 votes
0 answers
77 views

Imitate poster typography

So I am trying to recreate the following poster (or something similar) My problem is obtaining the right typography and spacing. In particular I am having problems finding a good way to avoid hyphens....
0 votes
0 answers
50 views

Setting global Luatex Umath primitives for an entire multi-page document

I would like to modify a \Umath* primitive for the entirety of the Lualatex document, containing multiple. It seems that using \makeatletter \AtBeginDocument{% \check@mathfonts \Umathsubsupvgap\...
  • 401
1 vote
2 answers
76 views

Add space between italic/smallcaps glyph and upright parenthesis

I'm typesetting a document where unavoidably there are upright parentheses in the middle of italic or smallcaps words, like th(is) \textit{th}(\textit{is}) (or the same with \textsc). In only these ...
  • 620
4 votes
1 answer
108 views

RTL constructed script can't be typeset properly in LuaLaTeX?

I have a grammar for one of my constructed languages, which uses its own right-to-left script. In my font for this script, I have the glyphs mapped to the Private Use Area and rely on wrapping text in ...
  • 171
4 votes
3 answers
357 views

New command to change vertical space in overset doesn't work

I want to reduce the vertical space between a symbol and a letter that are above each other. I have the following code, using a new command $\oset$ that gives exactly the output I need. But ...
  • 213
16 votes
1 answer
7k views

what is \kern good for

What is \kern instruction good for and how is it defined? I cannot find it in Knuth's book TeXbook.
  • 1,812
5 votes
0 answers
280 views

Context aware kerning in siunitx with per-mode?

Assume I want to type in the units for irradiance (radiant flux (power) received by a surface per unit area). I can do this as follows \si[per-mode=symbol]{\watt\per\m\squared} However, the kerning ...
1 vote
1 answer
208 views

Math kerning for entire document

My question today is: How can I adjust the kerning for the math environment of the entire document? I am aware of the typical ways to add space, including \, etc., but I was hoping to make the spaces ...
  • 21
6 votes
3 answers
896 views

What does TeX do to make text more beautiful? (Answer: four things.)

This original question was: Are fonts rendered more beautifully with LaTeX than with other systems, such as Word? The larger question really is: Beyond overall document layout, what specifically ...
6 votes
0 answers
337 views

Spacing, delimiter, and Libertinus Math

The issue is possibly going to be reviewed once the version of TeX Live has been installed. I would like to have a command that stretches the common delimiters according to the content. The standard \...
  • 4,529
2 votes
1 answer
452 views

Proper kerning of \{f\} \sigma_0 in TeX Gyre Termes Math

Continuing https://chat.stackexchange.com/rooms/97632/discussion-between-marcel-kruger-and-mdayq6, running lualatex on \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} % \...
user avatar
2 votes
1 answer
309 views

>{\kern-\tabcolsep} does not work in p-columns

If you colourise a row in a table, @{} does not remove the colour from the side bearings, as demonstrated in below figure. To remove the colour, you may direct a kern into the table column using >{...
  • 20.2k
5 votes
1 answer
189 views

Prime too close to f in Garamond Math

Here \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} % luatex \setmainfont{EB Garamond} \setmathfont{Garamond Math} \begin{document} Test \(\mathrm{Df'_2}\). \end{document}...
  • 3,296
0 votes
1 answer
230 views

Conditional kerning with custom characters

I have been reading answers to latex questions for the past while in order to address an issue I am having. I am using a font that contains symbols and mapping the symbols to a latex command. For this ...
3 votes
0 answers
172 views

Kerning in italic contractions when using EB Garamond

I'm using EB Garamond to typeset some text and find that the kerning in italic contractions can be a bit generous for my taste. Consider this MWE: \documentclass{article} \usepackage{ebgaramond-maths}...
  • 2,723
0 votes
1 answer
774 views

Math mode character spacing

I am writing a solution to a geometry exercise. I use $AB$ for the length of the line, or arc, from A to B. This results in a larger than desired spacing between the two characters. I can 'fix' it ...
  • 315
0 votes
0 answers
34 views

Narrower kerning of symbols generated by Tikz [duplicate]

I'm using LaTeX to render a set of custom glyphs. Each glyph is perfectly rectangular, at a 3.5 x 5 aspect ratio, and they're defined something like this (the following example just lines the borders ...
6 votes
2 answers
235 views

How to ignore kerning of underbrace in math mode

Is there a way to instruct LaTeX to ignore the text in the \underbrace for purposes of kerning the equation in math mode? \begin{align} &x \underbrace{(4-3y)}_ {\text{Positive $\...
  • 193
2 votes
2 answers
390 views

How can I force resized mathmode symbols to respect fontsize changes?

I want to make a latex symbol that contains a resized math symbol using \scriptscriptsize. However, when the scope containing the symbol is subject to a font resize, the \scriptscriptsize-ed symbol is ...
2 votes
1 answer
65 views

Add kerning correction before capital V

Kerning correction works if the capital letter is in front of the small letter. The other way round spaces seems uneven. Take for example the space between the e and V in the word PeVatron. It seems ...

1
2
3 4 5
8