Questions tagged [kerning]
{kerning} is the process of adjusting the spacing between characters in a proportional font, usually to achieve a visually pleasing result.
107
questions
41
votes
3
answers
8k
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 ...
180
votes
11
answers
69k
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 ...
43
votes
2
answers
4k
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 footnote ...
12
votes
3
answers
1k
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 ...
30
votes
2
answers
3k
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; e....
14
votes
1
answer
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 tell,...
53
votes
2
answers
3k
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
1
answer
2k
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, ...
9
votes
1
answer
722
views
Underline part of a word while preserving kerning
This question led to a new package:
lua-ul
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 ...
8
votes
2
answers
3k
views
Capital letter expanded letter space kerning
I am using the following code
\usepackage{microtype,textcase}
\textls*[110]{\textbf{\MakeUppercase{Specialties}}}
I would like to achieve even letter spacing. Unfortunately, the kerning of the "ALT"...
5
votes
2
answers
541
views
Why do I have to put braces around my macro for subscripts / indices?
I want to define a macro \ind which let's me set in math mode a subscript in upright letters and when starred (\ind*) in italic letters. Additionally, an optional argument allows me to adjust the ...
71
votes
2
answers
1k
views
Is it always best practice to not include text punctuation in inline math mode?
It has been pointed out on this site, e.g. here by egreg, that text punctuation doesn't belong to the formula in inline math. I've been following this practice for a long time, so I write for all $v\...
18
votes
2
answers
7k
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 ...
18
votes
2
answers
560
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|...
14
votes
3
answers
1k
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 ...
12
votes
4
answers
2k
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 ...
11
votes
2
answers
2k
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
2
answers
1k
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.
2
votes
1
answer
452
views
Proper kerning of \{f\} \sigma_0 in TeX Gyre Termes Math
Continuing https://chat.stackexchange.com/rooms/97632/discussion-between-marcel-kruger-and-mdayq6, running lualatex on
\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
% \...
20
votes
1
answer
1k
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 ---.
17
votes
3
answers
24k
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 on ...
11
votes
3
answers
2k
views
How can I redefine \int to put a negative space after the integral sign, but keep the limits properly set?
I'd like to modify the \int command such that it adds an automatic negative space, e.g. \! after the integral sign. Preferentially, I'd like to be able to not edit any of my code, so cleverly ...
10
votes
2
answers
495
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 ...
9
votes
2
answers
644
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 ...
8
votes
1
answer
914
views
charter and siunitx: either the kerning is bad, or the micro doesn't follow the surrounding text shape. What can I do?
I'm using Charter (with the mathdesign package) for my main text font.
As mathdesign isn't doing a good job at kerning (see "NOP." and "DEF." in MWE), I'm additionally loading the charter package as ...
6
votes
2
answers
348
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 ...
4
votes
3
answers
222
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:
\documentclass[12pt]{...
3
votes
1
answer
149
views
Kerning (with realscripts) not in footnotes marker
Plz, consider the following code:
\documentclass[a4paper,12pt]{article}
\usepackage{fontspec}
\usepackage{realscripts}
\usepackage[english]{babel}
\babelfont[english]{rm}[Ligatures=TeX,Numbers={...
1
vote
2
answers
212
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 ...
27
votes
4
answers
2k
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 ...
25
votes
1
answer
586
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 ...
21
votes
1
answer
1k
views
Can one change the (ugly) MinionPro apostrophe kerning value with a macro?
If we compare these three text lines
Linné's naming scheme.
{Linné'}s naming scheme.
{{Linné}'}s naming scheme.
typeset them in MinionPro, and look at the final pdf
we note that only the last ...
17
votes
1
answer
468
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,...
14
votes
2
answers
4k
views
Victory symbol in Salamanca
In Salamanca, Spain, it was customary when you finished your PhD degree in the city's University ---which is one of the oldest in Europe--- to write in the wall a kind of graffiti, as shown here:
...
13
votes
1
answer
4k
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 ...
12
votes
3
answers
890
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 ...
11
votes
1
answer
2k
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@ ...
11
votes
1
answer
1k
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 ...
8
votes
1
answer
294
views
Is there a way to add italic correction at the end of inline math?
I would like to add italic correction at the end of inline math, depending on the italic correction of the last math character. Here is a MWE showing why I would like to have that:
%! TEX program = ...
7
votes
1
answer
737
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 ...
6
votes
2
answers
553
views
Kerning against word space in LuaTeX
AFAIK word space in TeX work more or less like a glue instead of a real character. So it is not possible to kern a character with the space, e.g., to make the pair such as f<space>T to stay ...
5
votes
1
answer
1k
views
Symbol with overline and subscript leads to wrong kerning
I stumbled over a problem, which I assume should be quite common, but I couldn't find a satisfying answer (e.g. this and this are not what I am looking for).
I'd like to get an overline over a symbol,...
5
votes
3
answers
1k
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
1
answer
146
views
Kerning with xcolor
My question, in variants, I saw, asked many times here, but I can't solve problem.
If we use \textcolor{FirstLetter}SecondAndOtherLettersOfWord, we lost font kerning between first and second letters.
...
3
votes
1
answer
387
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...
...
3
votes
1
answer
110
views
txfonts kerning when exiting inline math mode
I noticed strange behavior, when a hyphen follows inline math mode, if I am using the txfonts package.
If I use the Computer Modern font, the kerning of these two cases, while not precisely the same, ...
2
votes
1
answer
309
views
>{\kern-\tabcolsep} does not work in p-columns
If you colourise a row in a table, @{} does not remove the colour from the side bearings, as demonstrated in below figure.
To remove the colour, you may direct a kern into the table column using >{...
2
votes
2
answers
390
views
How can I force resized mathmode symbols to respect fontsize changes?
I want to make a latex symbol that contains a resized math symbol using \scriptscriptsize. However, when the scope containing the symbol is subject to a font resize, the \scriptscriptsize-ed symbol is ...
42
votes
2
answers
14k
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 little ...
19
votes
1
answer
480
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}
...