{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

2
votes
1answer
55 views

Automatic kerning

With the font I am using, the f touches a following closing quotation mark. I am præventing that from happening by periodically replacing all instances of f' with f\,'. Is there a better way to do ...
1
vote
1answer
24 views

Adjust vertical alignment of square brackets of biblatex numeric style

I have the same problem with the vertical alignment of square brackets as described in this question. However, the only square brackets I have are the ones used for citations by the biblatex numeric ...
9
votes
1answer
70 views

\@ifnextchar breaks kerning when expanded

I've defined a macro for an initialism (abbreviation) with periods, making sure that an end-of-sentence period is not printed twice: \gp prints "G.P." and \gp. prints "G.P." Here's an M.W.E.: ...
0
votes
0answers
26 views

apply spacing rules of a usual character to a special one

My question is, in short: how to apply the spacing rules for the french guillemets «, » to the single guillemet ‹ and ›, when I enter them directly from the keyboard (or copy paste) ? the spacing ...
97
votes
8answers
14k 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 ...
4
votes
0answers
61 views

Invisible text (\phantom) with kerning?

In my answer to another question, I've used an upside-down A as a V-with-strikethrough character. After playing with it a bit, I've realized that this doesn't give appropriate kerning if the character ...
2
votes
0answers
48 views

BibLaTeX’s supercite superscript reference above punctuation

I’d like to have the superscript numbers for citation when using \autocite{} on top of the punctuation sign (comma or full stop only; obviously it won’t work properly with exclamation or quotation ...
8
votes
2answers
158 views

LuaLaTeX: No kerning within \operatorname when not loading lmodern package

Somewhere I read that fontspec uses Latin Modern by default, so I assumed that loading the lmodern package is not required anymore when using LuaLaTeX. But today I noticed that kerning does not seem ...
9
votes
2answers
581 views

How is the LaTeX 2e made?

I wanted to know how is the \LaTeXe symbol () made, I mean, the command definition of superscripts and subscripts on the "L", "A"... letters.
11
votes
1answer
372 views

bad kerning of italics in beamer

\documentclass{beamer} \begin{document} \begin{frame} ``Here is text that ends in \emph{italics!}'' \bigskip ``Here is text that ends in \emph{italics!}\kern1.5pt'' \end{frame} \end{document} ...
2
votes
2answers
58 views

Terrible kerning of double f in subscript of Latex [duplicate]

I'm "remastering" my PhD thesis which is in the fatigue of composite materials. A common term is the effective stress intensity factor, which is $ \Delta K_{eff} $ in LaTeX code. Unfortunately, when ...
6
votes
1answer
74 views

libertine/newtxmath: Spacing after italic f too small

When using the libertine package with newtxmath, the spacing after an italic "f" looks too small if a math character follows. Is there solution for this, apart from fixing all such occurrences ...
3
votes
3answers
1k views

1.5e-10 style scientific notation looks ugly in LaTeX math mode. How can I format it (kerning, etc) more nicely?

I've noticed that e-style (for example, 1.5e-10) scientific notation does not look especially nice in Latex math mode: (code used to generate the above image: $1.5e-10$) In particular, the width ...
3
votes
1answer
38 views

MinionPro kerning math mode and punction (comma)

I'm trying to write a short explantion of the quantities in a formula but I think the kerning doesn't really work. (or I'm wrong?)`. \documentclass[12pt]{scrreprt} \usepackage[T1]{fontenc} ...
1
vote
0answers
31 views

How to combine fnpct with offset-adjustable footcite command?

The tufts-book class provides a \sidenote-command with an optional offset parameter, that allows the sidenote to be vertically adjusted. I use biblatex' \footcite command to get citations in the ...
1
vote
0answers
55 views

Why does kerning work with LuaLaTex but not XeLaTex for the same font?

Consider the following MWE: \documentclass[varwidth]{standalone} \usepackage{ifluatex} \usepackage{ifxetex} \usepackage{metalogo} \usepackage{fontspec} \setmainfont{Bembo}[BoldFont = Bembo Bold] ...
3
votes
2answers
156 views

How to define letter-spacing of a custom environment?

Say I have: %defines a vertical bridge hand with seat name \newcommand{\hand}[5]{ \begin{minipage}[t]{1.0cm} \begin{tabbing} \textsc{#1} \= \\ \s\Hair\=#2 \\ \h \> #3 \\ \d \> #4 \\ \c \> #5 ...
5
votes
1answer
81 views

how to set spacing after \endash or — in Greek font (GFS Porson)?

In a former question I described the wrong spacing in Greek texts written in GFS Porson after -- (I though it depended on \,, which it does not as Ulrike Fischer noted). To sum it up: The spacing ...
3
votes
3answers
82 views

Typesetting exclamation+question+ellipsis (!.. ?.. ?!. !?.)

All of us know that we should use \dots instead of ... (three single dots). But how can I typeset correctly the combination of an exclamation mark with an ellipsis (!..) or a question mark with an ...
4
votes
0answers
38 views

Kerning issue in soul \hl with \emph

The text is little squashed when using \hl with \emph, but only with particular words which makes me think this is a kerning issue? \documentclass{article} \usepackage{color} \usepackage{soul} ...
6
votes
1answer
287 views

Can one kern math font euler.otf using lualatex and fontspec?

I am at it again... :) Using the http://github.com/khaledhosny/euler-otf/blob/master/euler.otf font, can one kern distance between T and P with Lualatex? Clearly, my attempt does not work... Could ...
3
votes
2answers
68 views

Interletter spacing in plain TeX

Is it possible globally to change the interletter spacing in plain TeX? (For some reason, the above is said not to meet some quality standard. Perhaps this helps.)
3
votes
1answer
114 views

Defining individual glyphs breaks kerning

When I create shortcuts for individual glyphs, no kerning is applied. \documentclass{article} \newcommand{\myF}{\textit{f}} \newcommand{\myA}{\textit{a}} \begin{document} \myF\myA\par \textit{fa} ...
4
votes
1answer
81 views

Remove space between characters

How can I remove the space between this \newcommand{\deref}{\ensuremath{\rightarrowtriangle}\xspace} $b\deref\mathbf{r}_S$ such that the arrow is as closest to the two surounding characters as ...
7
votes
1answer
208 views

Combine kerning, small caps, and tracking in luatex

As is known, luatex requires the fontspec option Renderer = Basic in order to display small caps when microtype's tracking = true is used. \documentclass{article} \usepackage[tracking = ...
17
votes
3answers
458 views

Restore kerning across empty groups

Context In my document, I attach a tooltip to the middle part of a word. To demonstrate this behavior, try mousing over just the letter V in the word AVA. Here is the implementation and usage of my ...
25
votes
1answer
465 views

Differences regarding kerning and ligaturing when using the MacTex2013 and MacTeX2014 versions of LuaLaTeX with .ttc fonts

This posting is a follow-up to the postings Can't generate ligatures with LuaLaTeX under MacTeX2014 and MacTeX2015 when using certain fonts and LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on ...
3
votes
2answers
175 views

Change kerning for `f'` in math mode

I want to adjust the kerning between f' in math mode (and other pairs) across the entire document. I found http://tex.stackexchange.com/a/219881/54601, which is exactly what I want but for text mode, ...
1
vote
1answer
57 views

change kerning of \texttt

I tried to use a font different than courier for monospaced fonts but none of this list (http://www.ctan.org/topic/font-mono) are available on my system - and as we work in a distributed system custom ...
1
vote
2answers
56 views

Tighten spacing in multiple-element subscripts that include primes and uppercase-Greek letters

My MWE compiled with pdfLaTeX: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{equation} \frac{ \Gamma_{v'J'\Lambda'} \Gamma_{v'J'\Lambda' \rightarrow\Lambda''} } { ...
20
votes
1answer
269 views

LuaTeX: Wrong/missing italic correction in TeXLive 2015 vs 2014

Italic correction for OTF math fonts seems to be broken in LuaTeX in TL15. MWE: \documentclass{article} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \begin{document} \begin{equation} ...
2
votes
0answers
18 views

Spacing issue with defined character [duplicate]

I needed a character that looks like a d with a bar through it, so I found this snippet of code. \newcommand{\dbar}{{\mathchar'26\mkern-12mu d}} This creates the right character, but it doesn't ...
0
votes
0answers
59 views

Kerning when inserting symbols from another font

I have a METAFONT that implements the shavian alphabet mapping ASCII characters to shavian glyphs, for example the t is the shavian letter 'tot'. I have mapped the shavian letter's unicode ...
1
vote
0answers
60 views

microtype in XeLaTeX [duplicate]

Currently microtype package supports only protrusion in XeLaTeX. Is there an option to use other micro-typography features (expansion, kerning, spacing, tracking) in XeLaTeX? Or should I forget about ...
1
vote
1answer
55 views

How to reduce space between words in gsm package

I used gms package (a special package of AMS, provided for their Graduate Studies in Maths serie) to write a math book. I got a problem with space, and then I want to narrow a line by reduce the ...
0
votes
1answer
38 views

How declare numeric constants with space without ~

I have written a document with some data that I must update at last minute. So I have created some newcommand: %-------------------------------- % Insert data here \newcommand{\srskm}{12,253~} ...
14
votes
2answers
238 views

How to globally add kerning between f and right parenthesis using TeX Gyre Termes?

I'm using TeX Gyre Termes as text font. On 2nd level enumerations, in the label corresponding to the letter f, the upper loop of the letter touches the upper tip of the right parenthesis, as ...
14
votes
2answers
316 views

Kerning and ligatures in upright math font with unicode-math

How can I get the kerning and ligatures of text mode in an upright math font with the unicode-math package loaded? 1. Without unicode-math Code: \documentclass{article} \begin{document} ...
3
votes
0answers
150 views

LaTeX kerning decisions

In his answer to this question, our friend @egreg explains: It happens that certain combination of letters have “bad” spacing. I have noticed this too. As I understand it, LaTeX is supposed to ...
23
votes
2answers
6k 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 ...
6
votes
1answer
132 views

CM fonts kerning in math superscripts

Using CM fonts with either a traditional engine or XeTeX, an expression such as $D^rf$ produces too much space between the r and the f in the output. It's easy to fix manually by inserting a \!. ...
1
vote
0answers
416 views

After updating to MacTeX 2013, font size and kerning of Monotype Corsiva are strange

I knew I probably shouldn't have upgraded, being not very experienced, I always have to wade through strange errors. However, this is really weird. Here's my example: %!TEX TS-program = lualatex ...
23
votes
1answer
540 views

Which common LaTeX Fonts come prepackaged with specific settings for Microtype?

For anyone interested in achieving the very best microtypography: Some fonts apparently come with microtype specific settings, other fonts don't, in which case microtype applies "Default" settings ...
5
votes
1answer
174 views

Kerning super- and subscripts “semantically”

I want to know if it's possible to change how LaTeX typesets superscripts and subscripts (separately, that is, not both at once) for an element where the default kerning doesn't cut it for me. Some ...
3
votes
0answers
43 views

Bad camelCase kern [duplicate]

What is the correct/best way to display camelCase such that an incorrect kern is not automatically applied between the words in the string? For example in the camelCase string: largestOfTwo The ...
22
votes
2answers
537 views

Tests for checking kerning and sidebearings

To test the kerning and sidebearings of digital fonts, Bringhurst suggests the following methods: To check the sidebearings typeset consecutive pairs of letters and check the symmetry. For the ...
14
votes
1answer
247 views

Kerning and ligatures in TeX without TeX

I am trying to get the same output as in this answer by topskip (an extended version with comments is presented in the TeX without TeX article). I am getting a paragraph consisting of 6 lines with ...
2
votes
1answer
122 views

Can Microtype Change the Kerning Between a Dot or Comma and a Footnotemark?

Relatet to this question: Is it possible to change the kerning between a punctuation mark and a footnotemark with microtype (or any other kerning-method)? (I know of package fnpct, but I would rather ...
2
votes
1answer
92 views

How can I use long identifiers in math mode with correct kerning?

I often write formulas with long identifier names. To get the kerning right I have to put the identifiers into \textit or something similar. For example this looks wrong: $\forall x \in Foo: \; ...
5
votes
2answers
179 views

How to adjust given lines automatically

Some of you may know the FlipBeamertheme by Phillip Tanedo (http://www.physics.uci.edu/~tanedo/files/code/FlipBeamerTemplate.pdf) I like the style of it's title. Tanedo used a picture: All three ...