Questions tagged [kerning]

{kerning} is the process of adjusting the spacing between characters in a proportional font, usually to achieve a visually pleasing result.

Filter by
Sorted by
Tagged with
1
vote
0answers
51 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
33 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
53 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
73 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
38 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
954 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
41 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
57 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
295 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 ...
0
votes
0answers
57 views

How to change subscripts and superscripts kerning on the font level depending on the characters involved?

Consider the input: \documentclass{article} \pagestyle{empty} \usepackage{mathtools}\mathtoolsset{mathic=true} \usepackage[math-style=ISO]{unicode-math} \setmathfont[Ligatures=TeX]{texgyretermes-math....
5
votes
0answers
154 views

Spacing, delimiter, and Libertinus Math

I would like to have a command that stretches the common delimiters according to the content. The standard \sin\left( is known to have a bad spacing, the packages https://ctan.org/pkg/mathtools and ...
1
vote
1answer
112 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
80 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
112 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
67 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 ...
2
votes
0answers
66 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
93 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
24 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
141 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 $\...
2
votes
2answers
63 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 ...
2
votes
1answer
42 views

Add kerning correction before capital V

Kerning correction works if the capital letter is in front of the small letter. The other way round spaces seems uneven. Take for example the space between the e and V in the word PeVatron. It seems ...
1
vote
0answers
37 views

Proper kerning in case the symbol with a subscript is a glossary term and a superscript is another glossary term

Continuing How to get glossary terms to properly typeset subscripts/superscripts?, let's consider the following input: \documentclass{book} \usepackage{fontspec} \usepackage[ngerman]{babel} \...
5
votes
2answers
316 views

Kerning for subscripts of \sigma?

Is there any way to reduce the distance inside σ₀ and between \sigma and its subscript in general in the following setup automatically? That is, each time you type in \sigma_0 (or \sigma_1 etc.), you ...
3
votes
1answer
145 views

Kerning numbers of endnotes

The management of kerning appears in LaTeX not so effective in the case of note numbers. A magnificent solution for footnotes has been provided by David Purton in this thread: Lining numbers for ...
2
votes
2answers
70 views

Alternative of `\rule` in ConTeXt for lifting `\hat` slightly up

In ConTeXt, I want to lift a \hat slightly up, since \hat is too low and touches the variable. Now, this post is exactly what I want. It suggests: \hat{\rule{0ex}{1.2ex}\mkern-3mu x}_{t+1} However, ...
3
votes
1answer
123 views

Kerning with parentheses

Given the MWE below, one can see that the spacing around the parentheses is rather awkward. The opening parenthesis is too close to \cos and \sin, and too far away from the \omega. The closing ...
4
votes
1answer
109 views

Glyph collision in newtxtext

I would like to avoid programmatically what, to my eyes, is a collision between the italic glyphs for "g" followed by "f" with the newtxtext package. Inserting a kern value between the two of them in ...
3
votes
1answer
117 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={...
0
votes
0answers
55 views

Kerning with `realscripts` and LuaLaTex

If I use lining superscript numbers for footnotes with realscripts package, I realize that it uses locally \addfontfeature, so there is no kerning. Please, consider this trivial case: \documentclass[...
5
votes
1answer
111 views

How to fix scrlayer-scrpage / microtype kerning issue?

I am experiencing a weird interaction between scrlayer-scrpage package from Koma Script and a custom microtype setting. I am using scrartcl class together with Minion Pro font and scrlayer-scrpage. I ...
2
votes
1answer
52 views

Weird formatting in a smaller created empty set symbol

A while back I created my own sort of emptyset symbol because the "not equal" slash didn't line up and it annoyed me. So I defined my own emptyset via \DeclareMathOperator{\vempty}{{\centernot{\Circle}...
6
votes
1answer
140 views

XeLaTeX produces wrong ellipsis

Consider this MWE: \documentclass{article} \begin{document} \textellipsis\ / \ldots\ / … / ... \end{document} With pdfLaTeX, I get this result: While XeLaTeX produces this: The kerning is ...
1
vote
0answers
61 views

Kerning of superscripted recto, verso and full stop/comma in biblatex-dw

I've created three commands for biblatex-dw to typeset \recto \verso and \rectoverso references. If one of these commands is followed by a full stop or comma the horizontal spacing between the ...
0
votes
1answer
57 views

How to kern kpfont integrals? [duplicate]

kpfont integrals have a lot of empty space both on the left and on the right ever with smashoperator: How do I kern the function "into" the integral and reduce the white space of the left document-...
14
votes
1answer
583 views

Unclarities about Microtype's default options

I delved deeper into the details of the microtype package to get the best results and perhaps not the safest results. Four things are still unclear after reading the manual, hence a post here. (1) ...
4
votes
1answer
139 views

LuaLaTeX + unicode-math results in wrong \mkern and \mskip

In a personal package I tested \mkern and \mskip for different values using pdfLaTeX and LuaLaTeX, I discovered that the spacing using \mkern0mu and \mskip0mu seems to leave a negative space of -1.1mu....
2
votes
1answer
95 views

typesetting spaces in initials in German texts

Assuming you are preparing a German text (say, to be published with Springer), what would be a "standard" way to typeset spaces in a name, say, Edsger Wybe Dijkstra, in which the initials are ...
11
votes
1answer
242 views

Is there a LuaLaTeX solution to adjust superscript kerning on large delimiters?

Superscripts can sit very far from large parentheses, more for some fonts than others. I am seeking a Lua-based solution to adjust the kerning of math superscripts on delimiters. Here is an example ...
11
votes
1answer
1k views

Fix ugly kerning in equation subscript

I'm beautifying some HW solutions for the upcoming semester, and came across a kerning issue \documentclass[]{article} \usepackage{amsmath} \begin{document} \[C_{in} \ \ C_{out} \ \ C_{eff}\] \end{...
6
votes
2answers
199 views

Underline part of a word while preserving kerning

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 word. My current solution consists of a two-...
2
votes
0answers
128 views

Set global non-ligature kerning with selnolig

Similar to this question I want to use selnolig but I don't like the fact that in words containing fl without ligature these two letters are too close together. Like in Mico's answer I want to use ...
3
votes
1answer
109 views

Why user-defined whatsit kicks out kerning?

I ran in to trouble marking math content (in this example I'll be talking about simple superscript) with user-defined whatsit. Font kerning does not appear if whatsit is in between characters where ...
1
vote
0answers
138 views

Which controls the kerning and position of superscript/subscript, LaTeX or font itself?

I want to adjust the global kerning (and also the position) of superscript and subscript when using some particular font in math mode. I know the kerning between letters is designed in the font itself,...
7
votes
1answer
128 views

How can I improve the kerning of citation footnotes made with natbib?

I'm writing an article that requires the natbib package for citations, and I'm using the super and compress options. Right now I'm "manually" placing the citation outside of punctuation, as in Hello ...
2
votes
0answers
50 views

pdfLaTeX solution to en dash kerning around numbers with newtx font

I often write number ranges using en dashes, e.g. 1--2. However, I've noticed that whenever I encounter the number 4 on the right end of an en dash, the two characters appear so close to each other it ...
16
votes
2answers
607 views

Automatically apply a kern rule for all characters that follow a specific character

I am writing some text using the \calligra font and there are some specific instances where I want to manually reduce the kerning between letters. See the MWE below. I have reduced the kerning ...
0
votes
0answers
75 views

When (and why) to use manual kerning for mathematical content?

I recently asked here, a question about the choice of OpenType Unicode fonts for my PhD thesis. After considering the comments and answers to the question, I decided to use Libertinus for both text ...
4
votes
1answer
90 views

Kerning of pairs with LuaTeX for babel shorthands

I want to make use of the pairwise kerning of this answer: https://tex.stackexchange.com/a/370469/75284 using fonts.handlers.otf.addfeature to adjust the kerning of character pairs with the hyphen -. ...
6
votes
1answer
144 views

Kerning of MinionPro footnotefigures with microtype

I am using the MinionPro package and with the option footnotefigures. When this option is active, special glyphs are used for footnotes, which look a bit thicker than normal numbers. However, the ...
6
votes
3answers
460 views

Letters' kerning space so different?

I'm wondering what is happening here: Why is the third line getting so much squeezed to the left? Is the kerning of the letter Z really so much less than Y and X? This is happening in a longtable ...

1 2 3 4 5 6