{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

3
votes
0answers
61 views

How can I add extra kerning around — (en-dash) in XeTeX

Is there a way to define some extra kerning around the en-dash – (Unicode) or -- (TeX ligature), when it is surrounded by digits in XeTeX? For – I can use the inter char tons, but this doesn’t work ...
4
votes
2answers
973 views

Change vertical space in overset

How can I decrease the space in overset? I found this solution online, but it doesn't look quite like the original overset (note I know it is difficult to come up with a solution to handle all cases ...
6
votes
0answers
45 views

Unwanted kerning inside em-dash when using microtype

I'm using microtype together with XCharter font. I have to add some space around en-dash and this works perfectly. Now I introduced some em-dashes with '---' but these are rendered by pdflatex as an ...
2
votes
1answer
39 views

Adjust font features for certain font styles / weights in LuaLaTeX

Using LuaLaTeX I want to make use of Feature Files / lua code in order to adjust the kerning of certain glyph pairs, see the MWEs below. Since my kerning corrections may not be appropriate for the ...
9
votes
0answers
63 views

Properly breaking up ligatures using selnolig / LuaLaTeX

Currently I use the selnolig package together with LuaLaTeX to automatically break up ligatures. This works quite well regarding the fact that ligatures get broken up at the right places. Note however,...
15
votes
4answers
752 views

Typeset old Spanish abbreviation: center ending over period

For a modern edition of music from the seventeenth century Spanish empire, I need to typeset certain antiquated abbreviations in the manuscript sources. In this convention, the middle part of the word ...
10
votes
1answer
530 views

What do the commands inside the \LaTeX logo do?

I am trying to typeset a word in a similar fashion as the \LaTeX logo. I have found the code for the logo (given below in the MWE), but it uses many commands that I have never seen before, such as \z@ ...
5
votes
5answers
490 views

Small circle to be overwritten by text

How would I define a command that draws a small circle, centered at that position in the text, by which it is then overwritten. I would wish to produce something resembling the following image by a ...
4
votes
0answers
74 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
57 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
56 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
37 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
89 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
71 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
79 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 ...
103
votes
8answers
17k 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
94 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
89 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
182 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
641 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
384 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
105 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
96 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 ...
4
votes
3answers
7k 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
46 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
59 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
92 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
162 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
98 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
133 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
63 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
312 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 ...
4
votes
2answers
86 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
120 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
197 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
281 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 = true]{...
17
votes
3answers
463 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
483 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
233 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
75 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
70 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''} } { (E-...
20
votes
1answer
306 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
85 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
66 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
63 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
46 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~} \...