Stack Exchange Network

Stack Exchange network consists of 174 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.

3
votes
1answer
87 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
34 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
70 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
28 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}...
5
votes
1answer
115 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
49 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
34 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
281 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
92 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
83 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
139 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
928 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
86 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
114 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
87 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
72 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
110 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
36 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
69 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
510 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
63 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
67 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
125 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 ...
0
votes
0answers
30 views

Kerning acronyms in math mode like in normal text

Can I get acronyms like KL/LD nicely lining up in math without manually tweaking kerning? Using \mathit/\textit/\text seems inferior semantically (it diverges from the rest of math material if one ...
6
votes
3answers
445 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 ...
2
votes
2answers
1k 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
68 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
143 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
62 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
255 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
45 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
318 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
116 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
891 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
221 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
105 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
32 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
145 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
274 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
40 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
92 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
87 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
60 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
85 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
80 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 ...
1
vote
1answer
296 views

Kerning between $\uptau$ and subscript?

I'm trying to get a $\uptau$ with a right-hook at the bottom: \documentclass{article} \usepackage{upgreek} \begin{document} $\tau_X$ $\uptau_X$ \end{document} Unfortunately, there doesn't seem ...
12
votes
4answers
511 views

Make negative spacing between letters and make them darker on the overlapping parts

I want to make number of the chapter to be as big as the paper. This is what I have achieved so far. What I want is to make negative spaces between letters, so they overlap and the overlapping part ...
4
votes
2answers
309 views

Change kerning between math characters (prime and left parenthesis) in ConTeXt

I use ConTeXt and Lucida OTF fonts, and I would like to adjust the kerning in math between the prime and the left parenthesis. Let us look at this example: \startluacode fonts.handlers.otf.addfeature ...
5
votes
4answers
378 views

Disable kerning for math letters / CM fonts incoherent kerning for df and dj

The following example shows that, with default Computer Modern fonts, there is some kerning between ‘d’ and ‘f’, resp. between ‘d’ and ‘j’, when seen as mathematical variables: \documentclass{minimal}...
2
votes
1answer
119 views

LuaLaTeX: fonts.handlers.otf.addfeature kerning pairs with unexpected behaviour

So I tried to adapt this answer: https://tex.stackexchange.com/a/370469/75284 to all problematic neighbors of the narrow 1 and added the second group of kerning pairs, the ones that specify the ...