Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [kerning]

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

1
vote
0answers
20 views

Proper kerning in case the symbol with a subscript is a glossary term and a superscript is another glossary term

Continuing How to get glossary terms to properly typeset subscripts/superscripts?, let's consider the following input: \documentclass{book} \usepackage{fontspec} \usepackage[ngerman]{babel} \...
5
votes
2answers
228 views

Kerning for subscripts of \sigma?

Is there any way to reduce the distance inside σ₀ and between \sigma and its subscript in general in the following setup automatically? That is, each time you type in \sigma_0 (or \sigma_1 etc.), you ...
3
votes
1answer
135 views

Kerning numbers of endnotes

The management of kerning appears in LaTeX not so effective in the case of note numbers. A magnificent solution for footnotes has been provided by David Purton in this thread: Lining numbers for ...
2
votes
2answers
60 views

Alternative of `\rule` in ConTeXt for lifting `\hat` slightly up

In ConTeXt, I want to lift a \hat slightly up, since \hat is too low and touches the variable. Now, this post is exactly what I want. It suggests: \hat{\rule{0ex}{1.2ex}\mkern-3mu x}_{t+1} However, ...
4
votes
1answer
75 views

Kerning with parentheses

Given the MWE below, one can see that the spacing around the parentheses is rather awkward. The opening parenthesis is too close to \cos and \sin, and too far away from the \omega. The closing ...
4
votes
1answer
85 views

Glyph collision in newtxtext

I would like to avoid programmatically what, to my eyes, is a collision between the italic glyphs for "g" followed by "f" with the newtxtext package. Inserting a kern value between the two of them in ...
3
votes
1answer
106 views

Kerning (with realscripts) not in footnotes marker

Plz, consider the following code: \documentclass[a4paper,12pt]{article} \usepackage{fontspec} \usepackage{realscripts} \usepackage[english]{babel} \babelfont[english]{rm}[Ligatures=TeX,Numbers={...
0
votes
0answers
41 views

Kerning with `realscripts` and LuaLaTex

If I use lining superscript numbers for footnotes with realscripts package, I realize that it uses locally \addfontfeature, so there is no kerning. Please, consider this trivial case: \documentclass[...
5
votes
1answer
80 views

How to fix scrlayer-scrpage / microtype kerning issue?

I am experiencing a weird interaction between scrlayer-scrpage package from Koma Script and a custom microtype setting. I am using scrartcl class together with Minion Pro font and scrlayer-scrpage. I ...
2
votes
1answer
37 views

Weird formatting in a smaller created empty set symbol

A while back I created my own sort of emptyset symbol because the "not equal" slash didn't line up and it annoyed me. So I defined my own emptyset via \DeclareMathOperator{\vempty}{{\centernot{\Circle}...
6
votes
1answer
126 views

XeLaTeX produces wrong ellipsis

Consider this MWE: \documentclass{article} \begin{document} \textellipsis\ / \ldots\ / … / ... \end{document} With pdfLaTeX, I get this result: While XeLaTeX produces this: The kerning is ...
1
vote
0answers
53 views

Kerning of superscripted recto, verso and full stop/comma in biblatex-dw

I've created three commands for biblatex-dw to typeset \recto \verso and \rectoverso references. If one of these commands is followed by a full stop or comma the horizontal spacing between the ...
0
votes
1answer
38 views

How to kern kpfont integrals? [duplicate]

kpfont integrals have a lot of empty space both on the left and on the right ever with smashoperator: How do I kern the function "into" the integral and reduce the white space of the left document-...
13
votes
1answer
316 views

Unclarities about Microtype's default options

I delved deeper into the details of the microtype package to get the best results and perhaps not the safest results. Four things are still unclear after reading the manual, hence a post here. (1) ...
4
votes
1answer
104 views

LuaLaTeX + unicode-math results in wrong \mkern and \mskip

In a personal package I tested \mkern and \mskip for different values using pdfLaTeX and LuaLaTeX, I discovered that the spacing using \mkern0mu and \mskip0mu seems to leave a negative space of -1.1mu....
1
vote
1answer
89 views

typesetting spaces in initials in German texts

Assuming you are preparing a German text (say, to be published with Springer), what would be a "standard" way to typeset spaces in a name, say, Edsger Wybe Dijkstra, in which the initials are ...
11
votes
1answer
148 views

Is there a LuaLaTeX solution to adjust superscript kerning on large delimiters?

Superscripts can sit very far from large parentheses, more for some fonts than others. I am seeking a Lua-based solution to adjust the kerning of math superscripts on delimiters. Here is an example ...
11
votes
1answer
993 views

Fix ugly kerning in equation subscript

I'm beautifying some HW solutions for the upcoming semester, and came across a kerning issue \documentclass[]{article} \usepackage{amsmath} \begin{document} \[C_{in} \ \ C_{out} \ \ C_{eff}\] \end{...
5
votes
1answer
93 views

Underline part of a word while preserving kerning

The usual ways of underlining text (or at least the ones I know of: be it with \underline or e.g. the soul package) break kerning when used with part of a word. My current solution consists of a two-...
2
votes
0answers
117 views

Set global non-ligature kerning with selnolig

Similar to this question I want to use selnolig but I don't like the fact that in words containing fl without ligature these two letters are too close together. Like in Mico's answer I want to use ...
3
votes
1answer
90 views

Why user-defined whatsit kicks out kerning?

I ran in to trouble marking math content (in this example I'll be talking about simple superscript) with user-defined whatsit. Font kerning does not appear if whatsit is in between characters where ...
1
vote
0answers
87 views

Which controls the kerning and position of superscript/subscript, LaTeX or font itself?

I want to adjust the global kerning (and also the position) of superscript and subscript when using some particular font in math mode. I know the kerning between letters is designed in the font itself,...
6
votes
1answer
114 views

How can I improve the kerning of citation footnotes made with natbib?

I'm writing an article that requires the natbib package for citations, and I'm using the super and compress options. Right now I'm "manually" placing the citation outside of punctuation, as in Hello ...
2
votes
0answers
39 views

pdfLaTeX solution to en dash kerning around numbers with newtx font

I often write number ranges using en dashes, e.g. 1--2. However, I've noticed that whenever I encounter the number 4 on the right end of an en dash, the two characters appear so close to each other it ...
0
votes
0answers
75 views

Fixing bad kerning in an Adobe font

I own a couple of "professional" fonts from Adobe that shipped with the Creative Suite that I purchased some years ago. In my search for a nice text font for use in correspondence and longer texts, I ...
16
votes
2answers
531 views

Automatically apply a kern rule for all characters that follow a specific character

I am writing some text using the \calligra font and there are some specific instances where I want to manually reduce the kerning between letters. See the MWE below. I have reduced the kerning ...
0
votes
0answers
67 views

When (and why) to use manual kerning for mathematical content?

I recently asked here, a question about the choice of OpenType Unicode fonts for my PhD thesis. After considering the comments and answers to the question, I decided to use Libertinus for both text ...
4
votes
1answer
69 views

Kerning of pairs with LuaTeX for babel shorthands

I want to make use of the pairwise kerning of this answer: https://tex.stackexchange.com/a/370469/75284 using fonts.handlers.otf.addfeature to adjust the kerning of character pairs with the hyphen -. ...
6
votes
1answer
129 views

Kerning of MinionPro footnotefigures with microtype

I am using the MinionPro package and with the option footnotefigures. When this option is active, special glyphs are used for footnotes, which look a bit thicker than normal numbers. However, the ...
6
votes
3answers
447 views

Letters' kerning space so different?

I'm wondering what is happening here: Why is the third line getting so much squeezed to the left? Is the kerning of the letter Z really so much less than Y and X? This is happening in a longtable ...
4
votes
2answers
2k views

mathmode spacing shorter than \quad? [duplicate]

Is there a way to get a spacing which is half or quarter the length of \quad in mathmode? Maybe there's an easy way to define a shortcut for such command?
0
votes
0answers
72 views

Kerning issue between the letters “f” and “i” [duplicate]

I noticed that after compiling a document using TeXWorks and PDFLaTeX (I made a clean install less than a month ago) there seems to be a strange kerning issue whenever "f" and "i" appear next to each ...
2
votes
1answer
149 views

Xelatex, Minion Pro and Italian apostrophe kerning

I know there are plenty of questions about it but after way too much searching I couldn't find a working fix. Some only work with lualatex, some with \usepackage{MinionPro}, some don't even compile... ...
2
votes
2answers
63 views

Small gap around \color{}

I'd like to change the color of a few letters in a word. I use the following commands: ... \color{g}a\color{d}way ..., or ... a\color{g}way \color{d} ... Here, d is the default color, g is defined ...
3
votes
2answers
282 views

[T1]{fontenc}, [utf8]{inputenc} and {microtype}: Kerning does not work

My code looks as follows: \documentclass[12pt,a4paper]{report} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[activate={true,nocompatibility},final,...
0
votes
1answer
46 views

Working with kerning commands in token lists

I have written some commands that are supposed to simplify the typesetting of derivations from a formal grammar. \documentclass{article} \usepackage{lmodern} \usepackage{xparse} \usepackage{amsmath} ...
2
votes
1answer
370 views

Kerning after variable names with multiple letters

This question is related to Two letter variable names and Multiple letters without spacing in Math [duplicate], but it seems to me that the answers to these questions do not fully solve my problem. ...
4
votes
1answer
124 views

XeLaTeX italic/quote kerning problem

I'm using xelatex. I would like, I think, to alter the kerning between certain italic/math characters, and apostrophes and quotation marks. Here's my problem: \documentclass[a4paper,12pt]{minimal} \...
14
votes
2answers
935 views

Discretionary hyphen destroys kerning and ligature

Consider the following example (plain TeX format): VA fi\par V\-A f\-i \bye I tried TeX, pdfTeX, XeTeX, and LuaTeX, but the second line looks the same as the first line only when using LuaTeX. My ...
1
vote
1answer
235 views

nth root kerning problem with unicode-math font override

I am using both \mathscr and \mathcal to different meanings and expecting different characters to appear. I recently switched to XeTeX and started using new fonts (TeX Gyre Pagella in this example) ...
1
vote
2answers
110 views

Why is there a conflict between \kern and this Separator & customized-Tooltips command

Because the MWE below uses the line LINE 1: \def\anyX#1{#1} %%% OK it compiles without a hassle. If one replaces LINE 1 with the (also included in the MWE) following line (but uncomment it): LINE ...
0
votes
1answer
33 views

LaTeMplate macro based on LaTeX macro

I am trying to produce yet another LaTeX-like macro. It was supposed to based entirely on the original LaTeX combination with one little change, and to just work fine. Long story short, it didn't. As ...
3
votes
0answers
170 views

Automatic letterspacing of capitals

I have a very large text corpus that I am fine-tuning for typography among other things. From what I know, abbreviations, such as ACAB, need to be letterspaced. I have found somewhat convincing ...
14
votes
2answers
284 views

Kerning with selnolig

You can use the selnolig package to break up inappropriate ligatures automatically. For example, 'leaflet' should arguably not have an fl-ligature, and this can be prevented with \nolig{leaflet}{leaf|...
6
votes
0answers
45 views

Can I kern classes in luatex?

fg can be kerned thus \documentclass{article} \usepackage{fontspec} \directlua { fonts.handlers.otf.addfeature { name = "ktest", type = "kern", data = { ["f"] ...
4
votes
1answer
95 views

Kerning between f and footnote mark

Adapting code from an answer by U. Fischer, I hoped this might fix a problem with the footnote marks in IM Fell, which touch a preceding f. But it doesn't. How should this be done? \documentclass{...
1
vote
0answers
92 views

Bad math kerning in classicthesis if math is in the chapter title [closed]

With classicthesis as in the example-bundle given by Miede. I only add some math to one of the chapter-titles and some math (shown below) to the body text. When math in the title of the chapter is ...
0
votes
1answer
63 views

How to Fix Protruding Em Dash (Koma Book Class)

I have a single line in a text that ends with an em dash that protrudes into the margin. I've tried to cut the line with \\; I've tried LuaLaTeX; I've tried enclosing the line with \sloppy{bad line ...
2
votes
0answers
86 views

Quotation marks too close with newtxtext

I couldn't find anything regarding my question. I found that the quotation marks are too close to the text, especially with the newtxtext font I use. It's most visible at the closing quotes after ...
3
votes
1answer
82 views

Letterspacing in a colorbox in beamer

Preparing a beamer presentation with my own template, I wanted to change for a single slide that the foot line gets a white background (because I have a graphic that exceeds the margins). So I changed ...