Skip to main content

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
11 votes
3 answers
2k views

Is "double-lowercase-L" a ligature (Computer Modern Italic)?

Consider the following MWE: \documentclass{minimal} \begin{document} Which kerning do you prefer? \bigskip \emph{well willow wallow wellington} % \verb+ <--- Version 1, default kerning+ \...
mathmandan's user avatar
1 vote
1 answer
41 views

How to make hyphen not be left aligned in ConTeXt in Vietnamese?

I have a weird issue regarding hyphen. When I write using hyphens in Vietnamese, the hyphen sometimes is left-aligned. Changing fonts replaces the hyphens that are error but not remove them completely....
Adrik Ivanov's user avatar
0 votes
2 answers
68 views

How to format multi-letter subscripts in math mode?

I have a document whose main font is a sans serif font (Arial if you must know), but whose math mode uses a serif font. They look quite different. So far, my documents which don't switch looks like ...
Zak's user avatar
  • 175
3 votes
3 answers
197 views

Punctuation kerning with luatexja and Simplified Chinese Script

I'm dissatisfied with the results of how babel renders CJK scripts (it's hard to get protrusion and punctuation kerning looking nice and lines can break before punctuation—some of these issues can be ...
David Purton's user avatar
  • 26.4k
4 votes
2 answers
97 views

Adding \kern to Thai language in babel breaks line breaking

If I add a \kern in Thai text, it seems to break line breaking. (Disclaimer: I don't read or write Thai.) How can I fix this? (I'm using \kern to add a little bit of unbreakable space, so happy with ...
David Purton's user avatar
  • 26.4k
1 vote
1 answer
47 views

How to manually kern the first character in enumerate to imitate microtype?

This \kern does not move the quotation mark to the left. What am I doing wrong? \documentclass{memoir} \begin{document} \begin{enumerate} \item \kern-0.2em``Lorem ipsum dolor sit amet, consectetur ...
Anna's user avatar
  • 837
3 votes
1 answer
62 views

UrlFont and kerning

How to set the UrlFont in a way that the kerning is correct? \documentclass[10pt,twoside]{scrbook} \usepackage{fontspec} \usepackage[hyphens]{xurl} \def\UrlFont{\itshape} \usepackage[colorlinks,...
hjele's user avatar
  • 155
0 votes
2 answers
70 views

Add spaces between letters of a word

In xelatex or lualatex, how can I get pararaphs to stretch words with tiny spaces within words as the last resort of typesetting? It seems that everyone just wants tiny little hspace of fixed size ...
Tad Pole's user avatar
2 votes
1 answer
105 views

The horizontal gap/kern before the comma is too large with unicode-math

The following minimal example is stripped down from the sentence, “Let (𝑇, ≤) be a poset.” Feeding lualatex or xelatex with \documentclass{standalone} %\usepackage[math-style=ISO]{unicode-math} \...
AlMa1r's user avatar
  • 541
1 vote
1 answer
30 views

How can I have fnpct kern \cite superscripts like it kerns \footnote?

fnpct seems to do an excellent job adjusting the kerning between periods/commas and footnote symbols. This AdaptNote command does switch positions with interpunction, but does no kerning. Can I use ...
Anna's user avatar
  • 837
0 votes
0 answers
23 views

wider overall kerning for emphasis [duplicate]

Some older texts use wider kerning to emphasise text (see picture). I would like to mimic that in LaTeX. Is it possible to set up an environment (like \bf or \em) that does this?
tomdeneckere's user avatar
1 vote
1 answer
78 views

How to loop through ligtable in Metafont?

In roman.mf the kerning is defined for the Computer Modern Roman fonts. I would like to write the ligtable definitions more efficiently but everything I try is wrong: % With macro def group_kerning(...
Weißer Kater's user avatar
1 vote
1 answer
65 views

How to reduce white space inside “𝑌.” automatically?

Feeding \documentclass{article} \pagestyle{empty} %\usepackage[slantedGreek,subscriptcorrection]{newtx}% this is what I use with many of other packages in a non-minimal example. %% Text skips with ...
AlMa1r's user avatar
  • 541
6 votes
1 answer
182 views

How to achieve consistent spacing in `derivative`s?

When compiling: \documentclass{article} \usepackage{derivative} \begin{document} \noindent \[\pdv{P}{r}\] \[\pdv{T}{r}\] \[\pdv{X}{r}\] \end{document} one gets: where it is clear ...
Matthias's user avatar
1 vote
0 answers
54 views

Why does my TexMaker output have this terrible kerning?

I am writing a research article using TexMaker. The article uses the following packages as preamble: \ifx\directlua\undefined\ifx\XeTeXcharclass\undefined \usepackage[utf8]{inputenc} ...
Niki Di Giano's user avatar
6 votes
0 answers
95 views

Why is the kerning of italic "Ex-Vivo" messed up?

When typesetting "Ex-Vivo" in italic, there is large apparent spacing between the dash and the V. Does this mean that my LaTeX setup is misconfigured, or am I expected to set the kerning ...
Anna's user avatar
  • 837
0 votes
1 answer
54 views

Hyperlink in math mode with correct spacing for flexible use with subscripts and superscripts

I want to use hyperlinks in math mode without changing the spacing or kerning. I.e., I want to define a command \mathhyperref similar to Correct kerning of hyperlinks in math mode but more flexible (I ...
Jakob's user avatar
  • 1,003
5 votes
1 answer
345 views

(Staircase) Kerning in display math

Simple problem: spacing in math mode can often be awkward, especially with large fences and super- or sub- scripts. Usually, this amounts to exponents being too far from the parenthesized expression, ...
Akioweh's user avatar
  • 51
11 votes
2 answers
579 views

Why are these sentences in Libertine so cramped and what can I do about it?

Recently I was writing a document in LaTeX using Linux Libertine. Overall I love this font, but I found a strange case of italicized text where there is almost no space between the word of and a ...
user134824's user avatar
8 votes
3 answers
633 views

Palatino kerning issue

There are a number of digital versions of Palatino: Palatino LT Pro, Book Antiqua, TeX Gyre Pagella, Domitian and FPL Neu. In a number of these (which include the version I am using) there is a ...
user avatar
0 votes
0 answers
30 views

How to apply glue in addition to the standard kern of the font?

Continuing How to add or remove space in math mode with 50% stretching and shrinking? and feeding \documentclass{article} \pagestyle{empty} %% Math skips with glue being half of the modulus of the ...
user avatar
4 votes
1 answer
77 views

Horizontal space before spanning left bracket

All is in the title: I want to get rid of this horizontal space that comes before a \left[ square bracket spanning multiple rows. See MWE and picture. MWE \documentclass[12pt,a4paper,twoside,openright]...
Vincent Krebs's user avatar
2 votes
1 answer
221 views

opentype math font kern

The original Computer Modern Math Italic font has a modest amount of kerning listed in its TFM metrics (largely for punctuation, but also for some exceptions like lower case d). But when I use Latin ...
dmaxwell's user avatar
2 votes
1 answer
80 views

Bad kerning in \emph{Kerning}. How to improve?

When writing about Kerning, the word "Kerning" itself is a bad example, esp. when emphasised. Is there a way to improve the kerning between "K" and "e" once for all in a ...
AlexG's user avatar
  • 55.4k
0 votes
1 answer
50 views

How to typeset compound math letters as in mcCullagh and Nelder?

The following is taken from McCullagh and Nelder's Generalized Linear Models (1989), page 54: How could I typeset the "compound symbols" $\alpha\beta$ and $uv$ with the letters squished ...
bert's user avatar
  • 159
0 votes
0 answers
113 views

Bad horizontal alignment in tabularray or tabularx

The second column is not properly aligned to the left in both tabularry and tabularx environments MWE: \documentclass[10pt, a4paper, parskip=half]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{...
fuj36840's user avatar
  • 550
3 votes
2 answers
138 views

How to redefine the \partial command to adjust the kerning (as suggested by Michael Spivak)?

Michael Spivak talked about this issue in his Math Font Quiz: (Original article: https://tug.org/pracjourn/2006-3/distract/mathquizAnswers.pdf) In Latin Modern (and in Computer Modern Unicode as ...
XCG-2's user avatar
  • 43
0 votes
1 answer
49 views

Typesetting + sign as if a letter

In Baxter's transcription of Middle Chinese, there is an ASCII-friendly version, which uses only te 26 Latin letters as well as a + sign (standing for ɨ). Assume I wish to typeset specifically this ...
Alexander Z.'s user avatar
1 vote
1 answer
195 views

Kerning with Lualatex

This is a recurring topic, but I haven't found a satisfactory and up-to-date answer. I apologize for any redundancy. I'd like to use Hoefler Text within Linux/Tex Live. I installed the font as a ...
jfk's user avatar
  • 91
3 votes
1 answer
87 views

Inconsistent kerning in units when using detect-all

When using the siunitx v3 option detect-all, the space between prefix and unit changes when in text mode. See the yellow markings in the image below, where the space between k and V is very small in ...
Fritz's user avatar
  • 6,323
2 votes
0 answers
54 views

Kerning and page number problem after \foreignlanguage in xelatex

While I use xelatex or lualatex, it seems that language rules remain in effect after the end of \foreignlanguage{...}{...} while \begin{otherlanguage}{...}...\end{otherlanguage} works as expected. Am ...
kerzol's user avatar
  • 191
0 votes
2 answers
181 views

Add extra kerning before certain punctuation in Babel, but not for the typewriter font

I want to add extra kerning before exclamation marks, question marks, colons, semicolons, etc. and extra kerning before and after en and em dashes. My current code is based off of this answer. The ...
Amarakon's user avatar
  • 165
2 votes
0 answers
240 views

How can I make a smaller negative space than \!?

I noticed that the spacing in "(A" in my document looks too wide. I tried adjusting it with "(!A", but that looks too thin. How can I make a negative space that's thinner than \!? (...
Anna's user avatar
  • 837
4 votes
1 answer
109 views

Acro Package Bug with Kerning

I've observed that the acro package bugs out the kerning. It makes the kerning pair apply incorrectly after the acronym. In my MWE, the second word in each pair has incorrect kerning. I've added an ...
User23456234's user avatar
  • 1,886
9 votes
2 answers
354 views

Adjust italic correction for a math symbol for subscripts

I am using the DejaVu math font and noticed that the zero in f_0 is very far away from the f. % !TeX program = lualatex \documentclass{article} \usepackage{unicode-math} \setmathfont{texgyredejavu-...
schtandard's user avatar
  • 15.4k
1 vote
1 answer
42 views

Vertical Kerning Between the Footnoteline and First Footnote in a Tikzpicture

This is related to How to Change the Color of the Footnoteline and Footnotemark Beneath within a Tikzpicture Consider the code \documentclass[12pt]{book} \textwidth=5in \textheight=3.50in \usepackage[...
DDS's user avatar
  • 9,768
2 votes
1 answer
106 views

Weird kerning after apostrophe

I want to use the ETbb font in my document, but there is one thing in particular that is weird about it. The spacing after an apostrophe is sometimes too much. I do not know if this is intentional, ...
Amarakon's user avatar
  • 165
1 vote
0 answers
21 views

Want equal spaces between repeating symbols in mathmode, how I disable kerning? [duplicate]

Trying to get equal spacing between repeating characters in mathmode. I tried using the microtype package and use the DisableLigatures function, it should disable kerning and would expect equal spaces ...
Timtico's user avatar
  • 2,260
0 votes
0 answers
55 views

Spacing for typewriter font looks off without fulflexing option in lstlisting [duplicate]

I'm trying to get the spacing and font to look clean in my lstlisting output window. Right now, if I enable the columns=fullflexible option, it makes the font truly monospaced and it perfectly aligns ...
TheProgrammer's user avatar
7 votes
2 answers
345 views

Fix Kerning Internal to a Unicode Character

Is there any way to drill down into the code that defines, for example, Ἄ to fix the kerning of the diacritics? It's worse in ebgaramond; it's not very much better in computer modern. \documentclass{...
commonhare's user avatar
  • 2,670
1 vote
0 answers
35 views

Looking for Global Solution to Insufficient Apostrophe Kerning with Cabin

In How to Increase the Space Between a Letter and Its Apostrophe with Cabin, it was suggested that in order to increase the kerning between a letter and the adjoining apostrophe, one may use \mbox{'} ...
DDS's user avatar
  • 9,768
7 votes
2 answers
581 views

How to give hints to fix kerning of "Two" in sffamily

Is there any way to improve sffamily kerning globally? (for example in my document preamble; I really don't want to edit font files or system settings) The Tw combination looks awful; Two is even ...
Jason S's user avatar
  • 2,880
5 votes
3 answers
302 views

Why does \showbox display kerns in two different ways?

Suppose I \showbox'd the TeX logo and the word "We", thus: \setbox0=\hbox{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125em X We}\showbox0 In the result, there are two different representations ...
Marnanel Thurman's user avatar
2 votes
0 answers
96 views

Lua(La)TeX does not kern at discretionaries following ligatures?

\documentclass{book} \usepackage[usenglish]{babel} \usepackage{fontspec} \directlua{ fonts.handlers.otf.addfeature { name = "testkern", type = "kern", ...
keth-tex's user avatar
  • 452
1 vote
1 answer
55 views

Wrong spacing with math mode inside sl in plain TeX

Here is a minimal example of a problem I encounter sometimes: {\sl Let $\cal U$ be} \bye In the output U is much closer to "Let" than to "be". Is there an equivalent to the italic ...
user avatar
3 votes
1 answer
190 views

Allow Line Breaking Without Affecting Kerning

I'm trying to get LaTeX to allow a line break after an ellipsis. The problem is that, when I type \allowbreak after \ldots, the kerning between the ellipsis and the next immediate character is messed ...
User23456234's user avatar
  • 1,886
3 votes
1 answer
145 views

How to change space between all letters?

I want to change the default spacing between all letters in the document to be a little bigger. That is I want to be able to manually choose how far apart all letters should be. Should I change the ...
curry's user avatar
  • 293
0 votes
1 answer
37 views

How do I adjust kerning in my section macros

How do I insert \textls in my section macros to apply the kerning defined in my \microtype command? \documentclass[12pt]{article} \usepackage{titlesec} \usepackage[tracking = true, letterspace = 100]...
curry's user avatar
  • 293
2 votes
1 answer
41 views

Expanded Letter Space Kerning Algorithm Not Working with French Accents

Consider the code \documentclass{book} \usepackage{xcolor} \usepackage{scalerel} \usepackage{scalefnt} % Spaceout Algorithm \def\theLetterSpace{0.5pt} \def\theWordSpace{1.5\LocalLetterSpace} \...
DDS's user avatar
  • 9,768
1 vote
0 answers
46 views

Italic maths in italic text, inconsistent spacing?

Consider the following example \documentclass{article} %\usepackage{lua-visual-debug} \begin{document} \Huge \textit{I I $I$ I I} %\showlists \end{document} It produces five italic ...
JoJoModding's user avatar

1
2 3 4 5
9