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

learn more… | top users | synonyms

27
votes
2answers
1k views

Is there a way to automatically change kerning between commas/full stops and footnote marks?

This question led to a new package: fnpct Following up on my question on the kerning of footnote marks after punctuation marks, I'd like to know if there is a way to achieve the kerning of ...
75
votes
6answers
8k views

Prettiest way to typeset “C++” (cplusplus)?

Writing "C++" in plain text results in an ugly setting, as the '+' signs are too big and too spaced: I've seen around the web several marcos for typesetting the "C++" symbol, ranging from mild ...
13
votes
1answer
3k views

Margin kerning in Xe(La)TeX for TeXlive 2010: how to enable?

I'm using the pre-release testing version of TeXlive 2010. From what I understand from the TeXlive Guide, a new feature is that support for magin kerning has been added to XeTeX. From what I can ...
26
votes
2answers
2k views

Is there a way to adjust kerning for a specific character combination?

Is it possible to tell (La)TeX to adjust the kerning of a specific character combination? For example, suppose I want !! to be typeset as !\kern 1.2pt!, just like ff is automatically turned into a ...
25
votes
2answers
2k views

An example of changing kerning of a font in LuaLaTeX

LuaLaTeX, through the luaotfload package, is able to dynamically add and modify features and properties of a font. This is performed by using the FeatureFile option in fontspec when loading a font; ...
10
votes
2answers
852 views

Kerning issue with Adobe Garamond Pro: XeTeX or font file to blame ?

I have run into a strange kerning issue, limited to the German letter pair Wä, when using the Adobe Garamond Pro font with XeTeX. The document looks great except for that particular pair. But see for ...
9
votes
4answers
155 views

Configurable spacing after \dots

LaTeX adds some space after the ellipsis \textellipsis. This is enhanced by ellipsis package, which only adds space before certain characters (and also gives the option to configure “easily” the ...
4
votes
3answers
135 views

Macro to be used in a \section command that has no effect in the table of contents

I need a macro that is executed only in the main document (within a section title) and then disappears (for the table of contents). A minimal example where this occurs is this: ...
37
votes
2answers
991 views

Improved kerning in fractions?

Question How can I apply selective kerning within the numerator and denominator of an inline fraction? Specifically, I'd like to: Tighten kerning after the numerator if it ends in 7 Loosen kerning ...
17
votes
1answer
278 views

Is there a method just write `---` to get an em-dash, putting thinspace both before and after it?

Is there a method just write --- to get an em-dash, putting a thinspace both before and after it? The situation about break is similar with the original ---.
24
votes
4answers
943 views

Kerning between bold and non-bold text

I'd like to write a word in bold followed by a comma and a non-bold word, like this: \textbf{why}, blah If I just write why, TeX inserts a kern to shift the comma a little closer to the "y". But ...
9
votes
3answers
310 views

Fixing fonts with LuaTeX feature files

Bringhurst urges us in Chapter 10 of The Elements of Typographic Style: Version 4.0 to fix the font files if needed. See below a summary of the chapter using the section titles. Bringhurst suggests ...
15
votes
1answer
790 views

How to fix kerning of comma/colon after quotes?

How to fix kerning of comma/colon after quotes? Hello, I’m a relative newbie in latex and am trying to reduce the space between closing quotes and colon/comma, but by a general way in the preamble, ...
10
votes
1answer
323 views

Space between the two slashes in “http://” too big

I'm using a lot of links with http:// in my document, but the two slashes are too much separated, I'd like them to be more near each other. How do I do this, in a neat way? I'm using a sans-serif ...
7
votes
2answers
4k views

Problem formatting a subscript in math mode

$\nu_{\rm FWHM}$ prints FWHM too large. But when I try: $\nu_{\mbox{\tiny FWHM}}$ the size is okay but the kerning looks wrong. What is the best way to make a compact little FWHM subscript tag ...
9
votes
1answer
1k views

The kerning option of microtype

I wonder what the kerning option of the microtype package does? In the manual it says that kerning=true will give additional kerning. But how? Is this something that has to be specified in addition to ...
17
votes
2answers
4k views

How to properly typeset footnotes/superscripts after punctuation marks?

I find the spacing of footnote marks after punctuation marks quite unsatisfactory, especially with sans serif fonts and compared to the spacing after letters. Example follows: I came up with a ...
12
votes
3answers
266 views

non-invasive kerning/spacing modification: what options are there?

Once in a while, you may want to (1) adjust or create a kerning pair (or, better yet, kerning class) in a font, or (2) adjust a particular glyph's sidebearings. examples of scenario (1) would include ...
15
votes
2answers
348 views

How to reduce the space between two slashes when using \url?

This is a follow-up question to Space between two slashes. Bianca Lobo's answer (defining a \twobar command with proper kerning) is nice; however, it doesn't work in the argument of the \url command ...
8
votes
1answer
345 views

Kerning for arabic digits?

In most fonts, arabic digits have nonproportional width, meaning that 1 and 8 have exactly the same width even if the former has a smaller natural width. This is good for typesetting tables, but in ...
11
votes
2answers
3k views

How to use \widthof as parameter to \kern

I sometimes encounter a problem when I attempt to use \widthof from the calc package, and don't know why. In the past I have just worked around it using a two step process of defining a \newdimen{} ...
15
votes
2answers
214 views

siunitx not using kerning units correctly ahead of a sentence-ending dot (period, full stop)

If the unit is the final character in a sentence, the sentence-ending dot is not kerned correctly. MWE: \documentclass{article} \usepackage{siunitx} \usepackage{mathpazo} \begin{document} ...
12
votes
3answers
795 views

Redefine apostrophes to prevent bad kerning

The apostrophe in Adobe’s Minion Pro font has a kerning that is much too tight for typesetting French, where sequences of letters like l’a or d’e or j'a are common. One solution I found is to wrap ...
8
votes
2answers
199 views

Three emdashes bound together

In many bibliography styles repeating authors are indicated with three emdashes, forming a single line. This works well with some fonts, while for others it leaves gaps: ...
11
votes
2answers
247 views

Should a negative kern be added after a degree symbol if followed by punctuation?

Not sure why I have not noticed this before, but spacing between a degree unit and punctuation seems strange as shown in red. Should a manual \kern be added (as shown in blue)? Code: ...
10
votes
2answers
113 views

Correct kerning of hyperlinks in math mode

I use hyperlinks in math mode to if a reader does not read my thesis sequentially and finds a very arcane symbol somewhere, he may just click it and go to where it is defined. However, adding links ...
10
votes
2answers
264 views

Uneven spacing around a hyphen in sans-serif?

I am used to writing the names of categories in sans-serif. Thus, for the category of R-modules, I have been using $R\textrm{-}\textsf{Mod}$ However, the kerning/spacing this produces has never ...
9
votes
1answer
205 views

Kerning between V and / in Palatino and Euler

Edit 1 I made the test with real palatino font and Neo-Euler, with the same result (As far as I can see) \documentclass{standalone} \usepackage{fontspec} \setmainfont[] {PalatinoLTStd-Roman.otf} ...
8
votes
1answer
1k views

Move a combining character with both \raisebox and \kern

The font I'm using, Linux Libertine O, is not able to properly combine a circumflex (U+0302) with a preceding vowel symbol that has a macron (e.g. U+014D): \documentclass[17pt]{extarticle} ...
7
votes
1answer
214 views

Using the charter font, F followed by a full stop looks like an E. What should I do?

Here is a screenshot of my document: On the second line, there is an instance of "CNF." which totally looks like "CNE" to me (because the dot takes the place of the serif on the feet of an E). I'm ...
7
votes
2answers
743 views

Make apostrophe closer to letter

I am using the lettrine package to typeset capitals. When there is an apostrophe with a capital L, the spaces look quite ugly. I would like to achieve something like the following: I've already set ...
4
votes
0answers
125 views

LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on Mac OS)

I'm probably missing something obvious. I'm using MacTeX 2014. I want to use the font Optima that ships with the Mac OS (10.8.5) -- it is a .ttc font. If I typeset the following TeX file I get no ...
4
votes
2answers
763 views

Spacing too large with exponents and big Oh

What's the correct way to typeset the following to get the normal spacing you would expect were you to, for example, write the terms out by hand. \documentclass[a4paper,11pt]{article} ...
3
votes
1answer
69 views

Control the dots separation in math and text

I know how to control the spacing of the \textellipsis command. But I can't figure it out how to do so globally in all the versions of mathtools' \*dots. My idea is to use a global symbol … to use ...
3
votes
1answer
577 views

Zapf Chancery and placing a k next to a g

So, I was playing with fonts and found one really nice. It's just that I ran into trouble trying to write the word Background (quite a common word, eh?) using it. The k and the g extend into each ...