Questions tagged [kerning]
{kerning} is the process of adjusting the spacing between characters in a proportional font, usually to achieve a visually pleasing result.
372
questions
4
votes
2
answers
868
views
Change kerning between math characters (prime and left parenthesis) in ConTeXt
I use ConTeXt and Lucida OTF fonts, and I would like to adjust the kerning in math between the prime and the left parenthesis. Let us look at this example:
\startluacode
fonts.handlers.otf.addfeature ...
7
votes
4
answers
852
views
Disable kerning for math letters / CM fonts incoherent kerning for df and dj
The following example shows that, with default Computer Modern fonts, there is some kerning between ‘d’ and ‘f’, resp. between ‘d’ and ‘j’, when seen as mathematical variables:
\documentclass{minimal}...
2
votes
1
answer
349
views
LuaLaTeX: fonts.handlers.otf.addfeature kerning pairs with unexpected behaviour
So I tried to adapt this answer: https://tex.stackexchange.com/a/370469/75284 to all problematic neighbors of the narrow 1 and added the second group of kerning pairs, the ones that specify the ...
12
votes
3
answers
891
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 ...
4
votes
2
answers
2k
views
\overline with subscripts [duplicate]
I would like to write
\overline{Y}_n
in order to display the mean of Y. This yields:
However when I do this there is a gap between the Y and the n. Using
\bar{Y}_n
yields:
This avoids the gap ...
4
votes
1
answer
170
views
Quotation mark and hyphenation problem when kerning manually
I'm trying to get a bit of extra spacing between my quotations and quotation
marks (with a script), but have run into a problem demonstrated by the following
code:
\documentclass{article}
\textwidth=...
10
votes
2
answers
496
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 ...
8
votes
3
answers
1k
views
‘LaTeX’ logo with kerning issue and not scaling properly
I recently discovered that the \LaTeX command does not have proper kerning between the first ‘L’ and the ‘A’, the ‘A’ looks too thin (like fake smallcaps, simple downscaling). Also the logo doesn't ...
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 ...
3
votes
2
answers
2k
views
Vertical spacing using kern in a custom symbol
I've created a new symbol using the macro:
\documentclass{article}
\usepackage{amssymb}
\newcommand{\qc}{$\square$\kern-0.58em{s}}
\begin{document}
\qc
\end{document}
However I'd like the letter '...
4
votes
1
answer
365
views
How to fix side-bearing (e.g. add extra side-bearing) for a single character?
In the spirit of this answer, is it possible in LuaLaTeX 0.95 to adjust side-bearing of a single character (for instance by adding a extra side-bearing on the left of this one specific character, thus ...
13
votes
2
answers
646
views
Kerning of Hyphens
I am currently working on something which requires me to have a single letter in math mode followed by a hyphen, e.g. $p$-center.
For the most letters, it looks fine. However, if I use $p$ or $\rho$, ...
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 ...
4
votes
1
answer
223
views
Kerning problems for a composite character
I am trying to typeset a book that uses the diacritics used in Romanian language. As I have to use a specific font, I had to "construct" the characters using something like that:
\newcommand\chara {a}...
3
votes
1
answer
268
views
Radical spacing/kerning on script-r symbol
I have followed the directions on this page regarding how to make a script-r using the calligra font package. I'm decently pleased with how the script-r looks, but the kerning with radicals leaves a ...
1
vote
1
answer
285
views
Spacing in a multi-lettered subscript word is too large [duplicate]
I'm a new user of Latex and still trying to figure it out. Currently I have a problem where if I want to have a subscript which contains more than one letter, the spacing between the letters is too ...
20
votes
2
answers
2k
views
Why is the distance between plus or minus and the number different?
In the align below the last element of the first row is slightly off compared to the next rows. It looks like the root cause is mostly the distance between minus and zero, but also between the equal ...
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,...
3
votes
2
answers
383
views
Remove space in front of simple question mark in: (?)
Following, french typographic rules, LaTeX inserts a space in front of a question mark ?. No problem.
However, for the following sequence, (?), LaTeX sets a space in front of the question mark and is ...
8
votes
1
answer
723
views
Math kerning with non-math OpenType font
I am setting my thesis in Garamond Premier Pro, which does not have support for OpenType math. Still, by mixing and matching, I have managed to hack together something usable, but sometimes the ...
8
votes
1
answer
556
views
Forcing a ligature in "lowercase" small caps
Adobe Garamond Pro has a very nice swash Q ligature, but it only works for uppercase Q. Since "lowercase" small caps are still based on the uppercase letters, I would like to use this Q for all small ...
1
vote
0
answers
390
views
Kerning issue with luatex, Libertinus Serif, Source Code Pro fonts [closed]
With lualatex (version 0.95.0) I see incorrect kerning for the "tt" ligature when using "Source Code Pro" in conjunction with "Libertinus Sans" fonts:
\documentclass{article}
\usepackage{fontspec}
\...
1
vote
1
answer
629
views
automatically pleasant spacing in the dot product
A followup to transpose and dot superscripts spacing , What is the best symbol for vector/matrix transpose?, Get rid of useless space between a symbol and a following superscript \top, and similar:
...
2
votes
1
answer
164
views
Microtype kerning won't work with quotationmarks
To be clear it is possible to get it working generally and I have got it working in a minimal document. However I just can't get it to work in my actual thesis. I did not succeed in creating a true ...
3
votes
0
answers
59
views
Automatically reducing spacing before punctuation in math mode [duplicate]
It often happens that after a variable in math mode, some punctuation in text mode follows (both display and inline). Depending on what the variable letter was, the spacing between letter and ...
6
votes
3
answers
312
views
How to center the higher glyph(s) in a `\stackrel` or stretch the lower glyph?
I currently am using a relation
\newcommand{\Lsense}{\stackrel{\mathbb{L}^1}{=}}
but unfortunately, the \mathbb{L}^1 is not nicely centred over the = symbol.
I read some other answers that involve ...
6
votes
0
answers
154
views
MinionPro and csquotes spacing problem [closed]
I am using MinionPro with csquotes. I have noticed that when creating a quote within a quote with \enquote{\enquote{text}}, whereupon the outer double and the inner single quotation marks fall ...
1
vote
0
answers
190
views
Lualatex and kerning with minion pro [duplicate]
I'm trying to fix the kerning around the quote with a feature file. I looked at several answer and tried this one:
\documentclass[12pt]{article}
\usepackage[french]{babel}
\usepackage{filecontents,...
18
votes
1
answer
1k
views
Kerning a particular pair like "(j"
In my math document, I often use (j and in my current math font, the ( runs into the j. I don't really have problems with kerning elsewhere. I could replace (j by (\mkern2mu j, but is there a way to ...
13
votes
2
answers
420
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 \XeTeXinterchartoks, but this doesn’t work ...
12
votes
1
answer
359
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 ...
5
votes
1
answer
247
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 ...
17
votes
1
answer
469
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
4
answers
886
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 ...
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@ ...
5
votes
5
answers
752
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 ...
6
votes
0
answers
388
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
0
answers
73
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 ...
2
votes
2
answers
274
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
1
answer
386
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
1
answer
836
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}
1
vote
1
answer
88
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 ...
8
votes
1
answer
111
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.:
\...
6
votes
1
answer
680
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 ...
5
votes
1
answer
1k
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 ...
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 ...
11
votes
1
answer
551
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}
...
1
vote
2
answers
1k
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 ...
2
votes
1
answer
941
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 ...
8
votes
1
answer
333
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 ...