Questions tagged [microtype]
{microtype} is a package that provides a LaTeX interface to the micro-typographic features of pdfTeX, LuaTeX and XeTeX, most prominently, character protrusion and font expansion.
414
questions
1
vote
0
answers
39
views
Microtype confusion with both tracking and ligatures
I find section 5.3 of Microtype's documentation (v3.1b) confusing: about the no ligatures option, it starts by saying that "by default, ligatures in letterspaced fonts will be constructed as ...
9
votes
0
answers
115
views
lists, peek operations and microtype trouble
LaTeX's peek operations are a bit of a black box for me and I'm struggle to get microtype protrusion to behave in a custom list which has a peek operation at the beginning of it.
The following silly ...
1
vote
0
answers
56
views
error when using textls with fonts with spaces in the name with lualatex/texlive2024
Up until now, using the full name for fonts with lualatex worked fine in all cases. However since the update to TeXLive 2024, it produces an error when using \textls[]{}.
The following code produces ...
11
votes
1
answer
256
views
microtype messing with a table
I'm using longtable to typeset a glossary.
When microtype is enabled, it starts looking wrong as the first line of wrapped text in a cell gets shifted to the right.
MWE:
\documentclass{article}
\...
3
votes
0
answers
57
views
Interaction between microtype and rules
I've had a code for years to make the main title for handouts. Here's a MWE:
\documentclass{article}
\usepackage{microtype}
\newcommand{\myline}{\rule[0ex]{\textwidth}{.5ex}\\}
\begin{document}
\...
8
votes
1
answer
195
views
lua-ul underlines with unwanted gaps
I'd like to stretch a word using the command \textls from the microtype package and underline it using the package lua-ul.
Unfortunately I get an interupted line:
See the gap in the line under the ...
6
votes
2
answers
176
views
Why does microtype affect the spacing of custom sections when using titlesec?
In LuaLaTeX, I have the following code that allows for me to have a section that is not numbered, and that has the text centered, with smallcaps font style on. I thought the text looked a but not on ...
0
votes
1
answer
171
views
How to properly apply microtype footnote patch in an overleaf compiled document
I am trying to compile a document. This is my preamble/main.tex file.
\documentclass[10pt]{article} % 11pt font
\usepackage[%
colorlinks = true,
citecolor = blue,
linkcolor = blue,
urlcolor ...
7
votes
2
answers
311
views
Ligatures are not preserved by \textls letter spacing
Example:
\documentclass{article}
\usepackage{microtype}
\begin{document}
fi \textls[1]{fi}
\end{document}
Output:
Problem: the ligature is lost. How do I keep the ligature (preferably without ...
0
votes
1
answer
91
views
(LuaLaTeX) Why does text width between the same phrase in different sentences seem to be inconsistent when comparing these two examples?
I have these two examples of text that have both Cyrillic and Latin in them. It is for a personal thing I am working on, but I didn't realise that there was a bitnof an inconsistent feature with the ...
1
vote
0
answers
88
views
How to compress or stretch text within a group use \usepackage{microtype}
I can do this for small text lines.
How can I do the same for a group?
MWE:
% !TeX program = lualatex
%========================================
\documentclass[12pt]{article}
\usepackage[tracking=true]{...
2
votes
1
answer
95
views
Speed up macros involving `\text` when using `microtype` and `newtxmath`
I have the following macro that is invoked a lot (2871 for a document of 8 pages), because it is generated by a preprocessor:
\newcommand{\varid}[1]{\textbf{#1}}}
Using the profiler library of tikz, ...
0
votes
1
answer
244
views
!Argument of \MT@gobble@to@nil has an extra }
This is my first ever StackExchange question - please be gentle :) I have experience using Latex online on Overleaf but never locally, so I am completely new to this.
I am trying to use my university'...
2
votes
1
answer
83
views
Why do these ways to stretch an item of a list for the purpose of avoiding a horizontal overfull produce different results, and which way is proper™?
Consider the file mwe1.tex containing
\documentclass{article}
\usepackage{microtype}
\newcommand{\myStretch}{1.02em}%%% try out .99em to see the difference in the first item.
\hyphenation{longlong}
\...
0
votes
0
answers
72
views
Question regarding microtype package
I am using the inofficial thesis template from my university.
However, when I compile I get several warnings in the manner of
Package microtype Warning: tracking amount list `output.tex/85' will ...