Questions tagged [kerning]
{kerning} is the process of adjusting the spacing between characters in a proportional font, usually to achieve a visually pleasing result.
324
questions
7
votes
2answers
423 views
Default kerning around hyphens is ugly
I have noticed that default kerning of hyphenated words (like "Finite-Valued") looks like this:
e-V
As you can see, the hyphen is too close to the e and too far away from the V. Is there a ...
1
vote
1answer
69 views
ConTeXt: Letterspacing in style alternative
I want to create a new style alternative, which would allow me to change the text and font (to uppercase bold in this example) while also increasing the letterspacing. However, trying to do this leads ...
2
votes
1answer
40 views
Kerning against space, which model is the most suitable one?
Many professional fonts contain kerning instructions between the space (U+0020, the character) and other characters. These kerns help the pages achieve a more balanced typographical colour. For ...
4
votes
2answers
107 views
Why is kerning not applied when mixing OpenType character variants (swashes) with regular characters?
I am using an OpenType Font (OTF) that provides a number of character variants, for example variants of B, E, H with swirls, tails etc. The variants are accessed through the OpenType features "...
3
votes
1answer
59 views
Can I change the bounding box of the digit 1?
This is a follow-up to Is this horizontal alignment correct?. In short, I would to print the text 100 µm visually centered on a scale bar. The problem with this is the digit 1 has the same wide ...
1
vote
1answer
39 views
Kerning based on the length of Text
I am using the flagderiv package for proofs but it has no way of putting text before the line number so I have just used \kern to put the text where I want it, but this then misaligns the comments.
...
1
vote
1answer
45 views
Macros as argument for pgf parser
As continuation for answer on this question: Kerning with xcolor
There is first attempting define kerning macros for whole word with colored first letter, without parenthesis:
(in more programmer-...
2
votes
3answers
129 views
Booktabs Cell Coloring Overflow and Position Bias
I want to fill booktabs table cells in a custom manner. I did two examples as below, one with kerning and the other is straight booktabs table. The first problem is in both tables, coloring that is ...
3
votes
1answer
90 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.
...
7
votes
1answer
315 views
What do \vec{\mkern0mu x} and \vec{{} x} mean?
In the following posts and many other besides [0] [1], I've seen people use \vec{\mkern0mu x}, \vec{{} x}, and variants thereof to adjust the vector arrow's kerning.
How do these work? What's the ...
3
votes
1answer
39 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
1answer
45 views
Why is there a different kern between delimiters and math characters compared to their italic text character?
Occasionally, I like to typeset lists using the $\left< ... \right>$ notation in order to account for larger contents. I noticed that there is a difference in kerning toward the closing ...
0
votes
1answer
34 views
Having asterisk above and not inline in code listings
I want to writing code listings with asterisk in-line not above line.
That is something like this:
But when I tried this:
\documentclass{article}
\usepackage{listings}
\begin{document}
\begin{...
1
vote
1answer
34 views
Problem with custom font feature for addition kerning in OpenType font
I try to add some custom kerning to an OpenType font used with fontspec under lualatex. The real-world example uses the Brill fonts, but as they are not part of TeX Live I use Libertinus in the ...
4
votes
2answers
70 views
Normalizing space after stacked characters in LaTeX: Typesetting o͘
I am attempting to typeset the o͘ character in LaTeX by stacking a raised period on top of the letter o. The spacing for the results I've achieved is inconsistent, as you can see in the below ...
4
votes
1answer
86 views
How to extend (or kern) a subtitle to the text width?
I have a subtitle that is almost as large as the text width. For aesthetical purposes, I would like to strech it a bit so it covers the whole text width, and be more harmonious with the picture below ...
1
vote
0answers
30 views
How to reformat “f” labelling in tasks package so the right side has more kerning space
I have a working solution to the problem posed here for other packages such as enumitem, but I require a solution that works in the tasks package, which is not nearly as flexible.
\documentclass{...
5
votes
2answers
357 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 ...
1
vote
0answers
37 views
Kerning modification in a sbox
I tried to adapt the solution given by Egreg to have Roman numerals over- and underlined (Roman numerals with over- and underline).
However, I run into a problem when I reduce the kerning for Roman ...
1
vote
0answers
47 views
Kerning of Chinese characters interacts with hyperref
I have a problem with Chinese punctuation. In some situations the dot appears on a separate line. I have been able to track the problem down to hyperref:
\documentclass[10pt]{scrbook}
\usepackage{...
0
votes
1answer
29 views
\kern after \linebreak doesn't work
MWE:
\documentclass[a4paper]{article}
\usepackage[margin=30mm]{geometry}
\usepackage{xcolor}
\begin{document}
\noindent this is good that is food this is good that is food this is good that
is food ...
2
votes
0answers
54 views
Specifying kerning for math fonts
I'd like to manually fix some longstanding spacing issues between certain pairs of capital letters in Latin Modern Math, such as UF and YX. Because these pairs represent actual products, I'd rather ...
1
vote
0answers
26 views
How can I change the kerning of all relations in script styles?
Let's say that I am dissatisfied with the lack of horizontal spacing around relations in scriptstyle and scriptscriptstyle. I would like to \mkern them by 1mu on either side, because I think that ...
3
votes
1answer
66 views
Turn off auto-insertion of italic correction (undesired extra kerning)
The LaTeX2e font selection manual states
Commands defined by \DeclareTextFontCommand automatically take care of any necessary italic correction (on either side).
So running the following example
\...
0
votes
0answers
32 views
How to set kerning in a combination of macros with a fixed character in between
I am working on a scholarly edition, the critical apparatus uses letters as identifiers: a) sth. If an apparatus entry spans more than one word in the original, it should be a–a) sth.
There can be ...
1
vote
1answer
53 views
stix2 changes spacing in mathrm
Compare
\documentclass{article}
\usepackage{stix2}
\begin{document}
$$\mathrm{Var}$$
\end{document}
to the same example without the \usepackage{stix2}.
With stix2:
Without stix2:
With stix2, the ...
0
votes
0answers
35 views
Change kerning for specific letter combinations P- and P--
I'm looking for an easy way to globally change the kerning for the following character pairs:
P- and P--
I am using bitstream-charter as a font through the mathdesign package and the hyphen is ...
4
votes
1answer
147 views
Kerning ligatures with font-feature in luatex
Manipulating fonts is somewhat daunting, and usually too much for me, so I restrict myself to a few things. I use Duffner's EB Garamond -- his original version from his website. I'm a bit puzzled by ...
2
votes
1answer
47 views
Globally define kerning of math letter
Is it possible to have a kerning reconfiguration in the preamble to allow a small amount of whitespace for specific letters.
In this example, I would want right space to the right of g and f when ...
4
votes
0answers
63 views
LuaTeX: OpenType staircase kerning (MATH kerning) has opposed effect than expected
This is a follow up question to a previous reported font problem. Compiling the following MWE with LuaLaTeX
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{LibertinusMath-Regular.otf}[...
0
votes
0answers
55 views
Adjusting spacing in mathdesign
I like mathdesign package, but spacing between some letters looks pretty awful, for example, look at the letter A:
I've found the solution here: Make Characters Active via Macro in Math Mode. So, ...
3
votes
0answers
101 views
Subscript strangely spaced: Bug in font Libertinus or LuaTex engine? Possible quick and dirty fix?
Compile this MWE with LuaLaTeX
\documentclass{article}
\usepackage{libertinus}
\begin{document}
\(w_j q^j\)
\end{document}
The result is:
IMHO, the space between "w" and its subscript "j" is too ...
1
vote
0answers
66 views
Imitate poster typography
So I am trying to recreate the following poster (or something similar)
My problem is obtaining the right typography and spacing. In particular I am having problems finding a good way to avoid hyphens....
0
votes
0answers
41 views
Setting global Luatex Umath primitives for an entire multi-page document
I would like to modify a \Umath* primitive for the entirety of the Lualatex document, containing multiple. It seems that using
\makeatletter
\AtBeginDocument{%
\check@mathfonts
\Umathsubsupvgap\...
1
vote
2answers
60 views
Add space between italic/smallcaps glyph and upright parenthesis
I'm typesetting a document where unavoidably there are upright parentheses in the middle of italic or smallcaps words, like th(is) \textit{th}(\textit{is}) (or the same with \textsc). In only these ...
4
votes
1answer
88 views
RTL constructed script can't be typeset properly in LuaLaTeX?
I have a grammar for one of my constructed languages, which uses its own right-to-left script. In my font for this script, I have the glyphs mapped to the Private Use Area and rely on wrapping text in ...
2
votes
3answers
96 views
New command to change vertical space in overset doesn't work
I want to reduce the vertical space between a symbol and a letter that are above each other. I have the following code, using a new command $\oset$ that gives exactly the output I need. But ...
7
votes
1answer
2k views
what is \kern good for
What is \kern instruction good for and how is it defined?
I cannot find it in Knuth's book TeXbook.
4
votes
0answers
89 views
Context aware kerning in siunitx with per-mode?
Assume I want to type in the units for irradiance (radiant flux (power) received by a surface per unit area). I can do this as follows
\si[per-mode=symbol]{\watt\per\m\squared}
However, the kerning ...
1
vote
1answer
92 views
Math kerning for entire document
My question today is: How can I adjust the kerning for the math environment of the entire document? I am aware of the typical ways to add space, including \, etc., but I was hoping to make the spaces ...
5
votes
3answers
426 views
What does TeX do to make text more beautiful? (Answer: four things.)
This original question was: Are fonts rendered more beautifully with LaTeX than with other systems, such as Word?
The larger question really is: Beyond overall document layout, what specifically ...
6
votes
0answers
261 views
Spacing, delimiter, and Libertinus Math
The issue is possibly going to be reviewed once the version of TeX Live has been installed.
I would like to have a command that stretches the common delimiters according to the content. The standard \...
1
vote
1answer
221 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}
% \...
2
votes
1answer
136 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 >{...
5
votes
1answer
146 views
Prime too close to f in Garamond Math
Here
\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math} % luatex
\setmainfont{EB Garamond}
\setmathfont{Garamond Math}
\begin{document}
Test \(\mathrm{Df'_2}\).
\end{document}...
0
votes
1answer
102 views
Conditional kerning with custom characters
I have been reading answers to latex questions for the past while in order to address an issue I am having. I am using a font that contains symbols and mapping the symbols to a latex command. For this ...
3
votes
0answers
102 views
Kerning in italic contractions when using EB Garamond
I'm using EB Garamond to typeset some text and find that the kerning in italic contractions can be a bit generous for my taste. Consider this MWE:
\documentclass{article}
\usepackage{ebgaramond-maths}...
0
votes
1answer
262 views
Math mode character spacing
I am writing a solution to a geometry exercise. I use $AB$ for the length of the line, or arc, from A to B. This results in a larger than desired spacing between the two characters. I can 'fix' it ...
0
votes
0answers
30 views
Narrower kerning of symbols generated by Tikz [duplicate]
I'm using LaTeX to render a set of custom glyphs. Each glyph is perfectly rectangular, at a 3.5 x 5 aspect ratio, and they're defined something like this (the following example just lines the borders ...
6
votes
2answers
179 views
How to ignore kerning of underbrace in math mode
Is there a way to instruct LaTeX to ignore the text in the \underbrace for purposes of kerning the equation in math mode?
\begin{align}
&x
\underbrace{(4-3y)}_
{\text{Positive $\...