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
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
69 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
58 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
  • 299
6 votes
1 answer
174 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
52 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
85 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
  • 751
0 votes
1 answer
48 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
  • 939
4 votes
1 answer
289 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
  • 41
11 votes
2 answers
567 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
597 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
26 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
70 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
142 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
72 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
  • 54.7k
0 votes
1 answer
49 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
  • 119
0 votes
0 answers
110 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
133 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
48 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
150 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
  • 101
3 votes
1 answer
83 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,243
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
161 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
106 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
  • 751
4 votes
1 answer
106 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,727
8 votes
2 answers
306 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
  • 14.8k
1 vote
1 answer
41 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
  • 8,796
2 votes
1 answer
87 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
18 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,250
0 votes
0 answers
50 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
334 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,620
1 vote
0 answers
33 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
  • 8,796
7 votes
2 answers
580 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,774
5 votes
3 answers
298 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
94 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
  • 466
1 vote
1 answer
53 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
185 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,727
3 votes
1 answer
131 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
  • 283
0 votes
1 answer
34 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
  • 283
2 votes
1 answer
40 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
  • 8,796
1 vote
0 answers
43 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
2 votes
2 answers
59 views

How can I consistently adjust kerning within and outside of subscripts?

I want to define a macro that shows an array access in a language like in C or Java. My first try looked like this: \newcommand{\accessI}[2]{#1\left[#2\right]} \[ \accessI{a}{i} \] I didn't like this ...
user1512263's user avatar
0 votes
0 answers
59 views

How do I define a macro that depends on the height of an argument?

I'd like to write a macro that surrounds an argument with two round parentheses which are correctly sized to the argument. Currently I'm using the following macro, \newcommand{\inpl}[1]{{\left(\kern-....
Gautam Chaudhuri's user avatar
1 vote
1 answer
71 views

Reduce the space between letter "f" and subscript that follows for Asana-Math (unicode-math)

Following the second part of this answer, I'm trying to do the similar thing for Asana-Math: reducing the space between letter "f" and the subscript that follows. However, my modified ...
Jinwen's user avatar
  • 8,226
3 votes
0 answers
94 views

Minor adjustment to math font kerning with unicode-math

I would like to use KpMath as my main math font, but also to use the letters and numbers from usual Palatino to match my main text. For this purpose, I replaced the letters and numbers from the font ...
Jinwen's user avatar
  • 8,226
0 votes
0 answers
104 views

Excessive space after italicized abbreviation

I often encounter the appearance of excessive space after an italicized abbreviation. In the example below, the first block of text yields too much space between the italicized abbreviation 2 Clem. ...
Charles's user avatar
  • 15
0 votes
1 answer
66 views

How to globally redefine kerning of \prime only when it encounters a left delimiter in math mode?

Here's my MWE: % !TEX program = lualatex \documentclass[preview,border={5mm 2.5mm 5mm 0mm},varwidth]{standalone} \usepackage{mathtools} \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]...
Farrel Ahmed's user avatar
1 vote
1 answer
102 views

Kerning for German «Guillemets» automatically input by csquotes

Kindly consider this MWE: %!TeX program = lualatex \documentclass{article} \usepackage[shorthands=off,main=ngerman,english]{babel} \usepackage{cochineal} \usepackage[german = guillemets]{csquotes} ...
Ingmar's user avatar
  • 6,680
3 votes
2 answers
451 views

Why does LaTeX neither break at nor hyphenate after a "user kern"?

When using the \kern command for user-defined kerns or the \, shorthand for small non-breaking spaces, this expands to a "userkern" node. At such nodes LaTeX doesn't break the line and the ...
keth-tex's user avatar
  • 466
8 votes
1 answer
410 views

Is there a way to add italic correction at the end of inline math?

I would like to add italic correction at the end of inline math, depending on the italic correction of the last math character. Here is a MWE showing why I would like to have that: %! TEX program = ...
red_trumpet's user avatar
5 votes
1 answer
305 views

How do I get italic correction in LuaLaTex with unicode-math and \left \right?

The story about italic correction in LuaLaTeX when using unicode-math seems to be an old one. However, the issue does not appear to be fixed. Here is what it looks like with unicode-math and without ...
red_trumpet's user avatar

1
2 3 4 5
8