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
4
votes
1answer
63 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
23 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{...
6
votes
2answers
315 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
33 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
38 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
28 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
42 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
24 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
59 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
30 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
31 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
112 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
44 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
54 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
52 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
95 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
60 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
37 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
58 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
82 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
55 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
1k 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
62 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
71 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
344 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 ...
5
votes
0answers
229 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
172 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
101 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
130 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
83 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
86 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
186 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
27 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
163 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
95 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
45 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 ...
5
votes
2answers
356 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
149 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
75 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
146 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 ...
6
votes
1answer
136 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
123 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
60 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
120 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
67 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
154 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
69 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
73 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
740 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) ...

1
2 3 4 5
7