{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

4
votes
0answers
48 views

Alegreya font kerning problems

I have a question, whether there is some possibility to adjust kerning around some specific symbols without caring what symbols will be written next. Also, could I possibly adjust kerning only for ...
2
votes
0answers
56 views

How to write text in style LaTeX is written? [duplicate]

I want to write text not in English but some other font and language in same manner as \LaTeX writes. i.e. some characters are raised some low, with kerning and all that. I am using XeTeX since I ...
1
vote
1answer
53 views

How can I read kerning data from tfm file [closed]

I am writing dvi processor. I can get font width, height, parse dvi with one bug. TeX relies on dvi processor to insert kern between a row of chars. I do not have the kern values. They are in ...
2
votes
0answers
20 views

Subscript kerning for specific letters in XeLaTeX

I have used the following code, which is a minor modification of @egreg's code provided in Making f active in math mode, to change the subscript kerning for specific letters (e.g. f in this example). ...
2
votes
1answer
36 views

Redefine hbar to work in super- or subscripts

I can redefine the \hbar command to use the "h" from the current math font as follows \renewcommand{\hbar}{\raisebox{.5ex}{\rotatebox{15}{--}}\hspace{-0.5em}h} For example in Times New Roman this ...
1
vote
1answer
77 views

Spacing between letters (ligature)

I noticed today how the spacing between letters are for fl/fi. Is this good a sign of typography? MWE: \documentclass{article} \begin{document} fluid - Fluid fish - Fish \end{document}
2
votes
1answer
61 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
29 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
77 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
29 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 ...
101
votes
8answers
16k 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
80 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
77 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
176 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
632 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
382 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
80 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
93 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
5k 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
44 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
50 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
80 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
160 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
95 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
120 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
58 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
305 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
78 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
117 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} ...
6
votes
1answer
155 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
269 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
461 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
476 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
210 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
73 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
69 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
297 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
78 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
63 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
60 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
45 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~} ...
15
votes
2answers
256 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
359 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
197 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 ...
24
votes
2answers
7k 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
148 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 \!. ...
2
votes
0answers
463 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
614 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
210 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 ...