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.

0
votes
1answer
29 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-...
12
votes
1answer
255 views
+100

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
82 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
76 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
119 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 ...
9
votes
1answer
897 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
82 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
111 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
78 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
69 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
34 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
63 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
498 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
59 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
64 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
118 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
28 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
443 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
947 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
67 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
129 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
216 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
43 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
290 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
110 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
853 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
204 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
101 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
30 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
132 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
260 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|...
4
votes
0answers
35 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
90 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
86 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
58 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
81 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
75 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
267 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
503 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
284 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
367 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
113 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 ...
12
votes
3answers
497 views

LuaLaTeX: Change kerning around “1” to simulate proportional figures

I have the problem that both the original Helvetica and the Neue Helevetica font families by Linotype, in their OpenType versions, seem to not have proportional figures, only tabular figures, where ...
4
votes
2answers
623 views

\overline with subscripts [duplicate]

I would like to write \overline{Y}_n in order to display the mean of Y. This yields: However when I do this there is a gap between the Y and the n. Using \bar{Y}_n yields: This avoids the gap ...
4
votes
1answer
81 views

Quotation mark and hyphenation problem when kerning manually

I'm trying to get a bit of extra spacing between my quotations and quotation marks (with a script), but have run into a problem demonstrated by the following code: \documentclass{article} \textwidth=...
8
votes
2answers
196 views

Adjusting kerning with LuaTeX and realscripts

I'm using the realscript package to get true super- and subscripts with LuaLaTex. However I'm not pleased with kerning of superscripts with the font I'm using, Linux Libertine. I've tried to adjust ...
6
votes
3answers
333 views

‘LaTeX’ logo with kerning issue and not scaling properly

I recently discovered that the \LaTeX command does not have proper kerning between the first ‘L’ and the ‘A’, the ‘A’ looks too thin (like fake smallcaps, simple downscaling). Also the logo doesn't ...
6
votes
2answers
165 views

obtain the same kerning after coloring as without coloring in math mode

In the code below, the kerning is different if I apply color and if I don't. I understand why it's happening, but how do I change the definition of the command \C so that the kerning is the same as ...