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.

0
votes
1answer
62 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 ...
0
votes
0answers
22 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
2answers
114 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 $\...
2
votes
2answers
40 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
1answer
39 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
vote
0answers
24 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
268 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
63 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, ...
3
votes
1answer
83 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
88 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
109 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
43 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
88 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
43 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
127 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
54 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
40 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-...
14
votes
1answer
353 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
117 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....
2
votes
1answer
93 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
170 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
1k 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{...
6
votes
1answer
148 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
120 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
91 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
95 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
116 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
40 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 ...
16
votes
2answers
546 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
68 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
72 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
133 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
450 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
75 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
155 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
306 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
49 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
436 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
126 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
970 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
245 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
117 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
193 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
291 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
49 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
107 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{...