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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
20 views

Highlight underfull boxes

Overfull \hboxes can be highlighted/marked in the output document by enabling draft=true or overfullrule=true in the \documentclass settings. Furthermore, slightly overfull or underfull horizontal ...
  • 907
0 votes
0 answers
48 views

microtype + \babelposthyphenation: Why does lowering a hyphenation penalty at one position break the word at another position?

Running the code \documentclass[ngerman]{article} \textwidth=109mm \usepackage{fontspec} \usepackage[ngerman]{babel} \setmainfont{TeX Gyre Termes} \usepackage[babel=true,verbose=errors]{microtype} % \...
  • 43
2 votes
1 answer
77 views

Why does the microtype package shift the centering in a memoir-altered table of contents?

I created a table of contents that centers the parts and suppresses the page number entry. (See How would I center an entry in the table of contents and suppress the page number entry?) Update 1: I ...
2 votes
1 answer
34 views

Prevent loading microtype mt-fontname.cfg

I am using only lualatex, but I believe this question pertains to any engine. I have looked at the microtype docs (both user and code), and even looked in the package code, to no avail. Unless ...
  • 538
1 vote
1 answer
97 views

LuaLaTeX with OpenType and microtype, create microtype configuration on the fly?

I am using LuaLaTeX (>=2022), OpenType fonts, microtype. Platform is Linux. I have permission to write files in the same directory (or subdirectory) as my main *.tex document. I cannot use --shell-...
  • 538
5 votes
1 answer
110 views

Use \fauxsc if small caps not available

This is a follow-up to Use \fauxsc if small caps not avaiaible I need to use the Chivo font but, for unknown reasons, when package microtype is used, only the first invocation of \textsc works as ...
  • 3,842
1 vote
0 answers
60 views

How to add stretch or shrink (plus or minus) to imported graphics?

I am using the packages graphicsx, fontspec, and microtype. I have imported a scalable vector graphics .svg image into my document via \includegraphics[height=\heightof{0123456789}]{myimage.pdf} where ...
0 votes
0 answers
74 views

Why does the microtype protrusion feature sometimes lead to warnings and bad boxes?

I've prepared a MWE example to demonstrate the issue. In the MWE, I've loaded the microtype package with the default settings with the fontspec package with the original Charter font. When I compile ...
4 votes
1 answer
85 views

How to justify the last line of a footnote in microtype style?

(I’m using the microtype package.) I wanted to justify the last line of a footnote because it was very close to be full. Here is what it looked like: The first two lines are from the same footnote, ...
2 votes
1 answer
44 views

No protrusion into left margin with Nordic quotation marks with microtype, babel and csquotes

I want opening quotation marks to protrude into the left margin. And all is fine and dandy as long as I use English, but Nordic languages use \textquotedblright (”) for both opening and closing quotes....
  • 978
6 votes
1 answer
351 views

Can I use microtype locally?

I have some text which I am not allowed to change, but as it is it produces overfull boxes. Look at the following examples. \documentclass{article} \usepackage{csquotes} \begin{document} Examples of ...
  • 2,621
1 vote
0 answers
49 views

Unknown character microtype.cfg/397(protrusion) [duplicate]

My book in Ukrainian. I use font Kraskario. By compilation, get long list of error Package microtype Warning: Unknown slot number of character (microtype) `\'s' (microtype) ...
6 votes
1 answer
119 views

Why microtype adds small extra indentation at the first line of verbatim and how to remove it?

Here is the code: \documentclass{article} \usepackage{microtype} \begin{document} \begin{verbatim} +++ +++ +++ +++ \end{verbatim} \end{document} It renders as such (notice a small indentation at the ...
  • 11.2k
3 votes
1 answer
65 views

How to change space between all letters?

I want to change the default spacing between all letters in the document to be a little bigger. That is I want to be able to manually choose how far apart all letters should be. Should I change the ...
  • 217
0 votes
1 answer
22 views

How do I adjust kerning in my section macros

How do I insert \textls in my section macros to apply the kerning defined in my \microtype command? \documentclass[12pt]{article} \usepackage{titlesec} \usepackage[tracking = true, letterspace = 100]...
  • 217
2 votes
1 answer
60 views

When microtype is loaded, tabular's content displayed identically in ordinary tabular but not in tabularray's tabular

In the following MCE, “Foo : Bar” is displayed (almost) the same way both inside an ordinary tabular tabular and inside a tblr tabular: \documentclass[varwidth]{standalone} \usepackage{tabularray} % \...
2 votes
1 answer
54 views

Another font for italic, and Open Features

Xelatex I can set special font for italics so \setmainfont[ItalicFont={Ropa Mix PTT}]{Theano Old Style} I can set Open features, or Letter spacing so: \newfontfamily{\notefnt}{Slopes}[LetterSpace=8....
0 votes
0 answers
48 views

Strange interaction of \tagform@ and microtype

Consider the following example, in which I'm using \tagform@ to mimic the look of \eqref when trying to add a prime symbol to the equation number. \documentclass{article} \usepackage{amsmath} \...
  • 7,420
2 votes
0 answers
52 views

Cabin Font, Microtype, and Lualatex Produce Smallcaps---but not with Tracking=True

In the following MWE, I am using Cabin as the main font and compiling with lualatex. Remark: I do not believe that this is a duplicate with Smallcaps don't work if fontspec's microtype is used ...
  • 7,356
1 vote
0 answers
592 views

How to resolve this message, Package microtype Warning: Unable to apply patch `eqnum'

While using elsarticle-num.tex, I tried to disable hyphenation and make text in justifying alignment (horizontal-alignment) as MS-Word. \usepackage{microtype} is fine to make less hyphenation, there ...
5 votes
0 answers
195 views

Microtypography status in LuaTeX

According to this table from the microtype manual, the current support of microtypography in the TeX engines is as follows: Nevertheless, TeX.SX is full of LuaTeX workarounds in specific cases for ...
  • 12.2k
5 votes
1 answer
244 views

How to set the "correct" tracking with fontspec and microtype (LuaLaTeX)

I'm using LuaTeX with Garamond Premier font. For some reason, enabling tracking from microtype package changes the tracking of small caps quite considerably. Maybe too much? See the pictures: With ...
  • 633
4 votes
1 answer
205 views

How to limit scope of microtype's letterspacing command \textls to non-math environment?

Package microtype has the command \textls to manipulate letterspacing in an ad hoc manner. While its use is usually frowned upon by typographists, according to microtype's user manual (p 23 footnote), ...
0 votes
2 answers
66 views

Extra horizontal space with titlesec's runin style and microtype

Consider the following example: \documentclass{article} \usepackage{titlesec} \usepackage{parskip} \usepackage{microtype} \titleformat{\section}[runin]{}{}{0pt}{} \titlespacing{\section}{0pt}{\...
  • 7,420
3 votes
1 answer
64 views

footnote inside csquotes' blockquote: fails if microtype is loaded

The following MCE: \documentclass{article} \usepackage{csquotes} % \usepackage{microtype} \begin{document} \blockquote{foo\footnote{bar.}.} \end{document} compiles like a charm but it is not the case ...
16 votes
2 answers
717 views

Is there microtype support for plain TeX?

Is there code to make the microtypography primitives, particularly font expansion, usable with the plain TeX format running with native PDF-output engines (namely pdfTeX and LuaTeX)? I don't think the ...
  • 1,778
1 vote
1 answer
80 views

Indentation/protrusion of first line in redefined quote with microtype

MWE: \documentclass{article} \usepackage{microtype} \renewenvironment{quote} {\list{}{\leftmargin0.5cm \rightmargin0cm} \item\relax\fontsize{9.8pt}{11.4pt}\selectfont} {\endlist} \begin{document} \...
  • 111
15 votes
0 answers
377 views

Optimising microtype for variable fonts

One can find the following passage on p. 27 of the microtype package documentation: Don’t use too large a value for expansion. Font expansion is a feature that is supposed to enhance the typographic ...
  • 311
1 vote
1 answer
134 views

Roman numerals in TOC are not in smallcaps - microtype problem with memoir

I'm using the memoir class for typesetting a book. In the \frontmatter I have a chapter with a section and a subsection. My problem is that, in the TOC, the page number of the chapter appears in ...
1 vote
1 answer
217 views

Overrunning Sentences within Emphasized Text When Using Microtype and Compiling with Lualatex [closed]

Consider the code which is to be compiled with Lualatex: \documentclass{book} \usepackage{lipsum} \usepackage[tracking=true]{microtype} \begin{document} \large \emph{\lipsum[1]} \end{document} which ...
  • 7,356
1 vote
1 answer
78 views

\blx @keyaliases@1 entry could not be found in the database

The compilation of the following MCE: \documentclass{article} \usepackage{titleps} % \usepackage{microtype} \usepackage{biblatex} \usepackage{lipsum} \addbibresource{biblatex-examples.bib} \...
2 votes
1 answer
98 views

Activate microtype-Protrusion for superscript old style numbers with LuaLaTex

I’ve been playing around with microtype’s protusion-capabilities and LuaLaTeX, but faced a problem regarding old-style superscript numbers. The regular numbers protrude. This code \documentclass{...
  • 646
2 votes
0 answers
173 views

Microtype warnings (~100) with fontsetup (NewComputerModern)

I have been using the microtype package together with the fontsetup package. The document seems to compile normally. Protrusion and expansion also seem to be working, but I usually get around 100 ...
0 votes
0 answers
55 views

Problem using acmart class with smartref package

I use the smartref package. I would like to use it together with \documentclass{acmart}, but I get an error message when I run LaTeX on the document below for the second time. The error is on the ...
  • 1
2 votes
1 answer
170 views

Microtype quotation marks in itemize not aligned properly at begin of an item

A fellow LaTeX user ran into a problem using quotations inside an itemize/enumerate environment. When using automatic quotation marks from csquotes at the beginning of an item, the quotation mark is ...
3 votes
1 answer
4k views

\usetagform incompatible with microtype?

It seems that \usetagform in mathtools package is incompatible with microtype package as can be seen in the following MWE: \documentclass[10pt]{article} \usepackage{microtype} \usepackage{mathtools} \...
0 votes
0 answers
167 views

Using custom sans serif fonts with pdfLaTex to facilitate microtype usage

I'm currently making an unofficial thesis/dissertation template for my college. There are some caveats to such an endeavour because of my college's formatting guidelines. One challenge is that the ...
4 votes
0 answers
45 views

Microtype package v 3.0a with documentclass `book` in \maketitle: bug [duplicate]

I found a bug when I use microtype package v 3.0a with documentclass book in \maketitle macro. % !TeX program = pdflatex % !TeX encoding = utf8 \documentclass{book} \usepackage{microtype} \title{My ...
  • 5,296
9 votes
1 answer
385 views

\maketitle has stopped working, despite backing up data

Out of the blue I have started receiving the following errors (despite loading up previous versions of my files and/or bib. files from the cloud): Runaway argument? {\scantokens { \Huge {\bfseries {\@...
2 votes
3 answers
163 views

microtype won't work in theorem environment, using Times New Roman

I'm using microtype package in my document. However, it won't fit to margin the text into the definition environment. Here is the code: \documentclass[letterpaper]{article} \usepackage[protrusion=true]...
3 votes
0 answers
423 views

Overfull \vbox in list of figures since MiKTeX update

Since updating my MikTeX distribution, I am getting an overfull \vbox warning in the list of figures when the microtype package is loaded and the entry expands over more than a single line, as shown ...
  • 101
4 votes
1 answer
102 views

How to turn off microtype temporarily?

As a temporary workaround for the conflict between microtype and ctex, I need to disable microtype around the command \scshape. In old versions, there is a key disable for this (see this answer): \...
  • 7,420
1 vote
1 answer
189 views

microtype, csquotes active quotes and itemize interaction

I've met today a bad interaction between microtype, csquotes autoquotes, and the itemize environment, essentially leading to a "forgotten \endgroup" error. A MWE: \documentclass{article} \...
  • 12.9k
5 votes
0 answers
168 views

Closing quotation marks don't protrude into the right margin of bibliography with biblatex

I like how the microtype package handles character protrusion when I compile my LaTeX documents with LuaLaTeX. But I have noticed that this doesn't seem to work properly in the bibliography that the ...
  • 978
1 vote
1 answer
114 views

Conflict between microtype and syntax packages

While using the syntax package together with microtype, I stumbled on a strange error: Missing font identifier.<to be read again>\chardef <TEST> ::= ` Missing number, treated as zero.<...
  • 350
4 votes
1 answer
238 views

\textls (from microtype) not working consistently for things in math mode

In the following code: \documentclass{article} \usepackage[letterspace= -150]{microtype} \usepackage{amsmath} \DeclareFontFamily{U}{BOONDOX-calo}{\skewchar\font=45 } \DeclareFontShape{U}{BOONDOX-calo}...
  • 701
8 votes
2 answers
494 views

Using polyglossia, microtype and newcomputermodern with LuaLaTeX results in "0.0.0.0.0" being added

Using the packages polyglossia, microtype and newcomputermodern when compiling with LuaLaTeX leads to ".0.0.0.0.0" being added. This occurs at the beginning of the document and with section ...
  • 135
5 votes
1 answer
263 views

LuaLaTeX: ctex and microtype together produce errors when using "\scshape"

Consider the following MWE, to compile with LuaLaTeX: %! TEX program = lualatex \documentclass{article} \RequirePackage[fontset=fandol]{ctex} \usepackage{microtype} \begin{document} {\scshape Some ...
  • 7,420
2 votes
1 answer
42 views

Line-width distributed letter-spacing with \newcommand macros

I am using the soul package to produce "distributed" text. That is, text that is automatically spaced such that it fills the entire line. This works great, but now what I want to do is use a ...
4 votes
0 answers
186 views

What are the pros and cons of using microtype or LuaTeX's inbuilt microtypography features?

Both the microtype package and LuaLaTeX appear to offer the ability to use protrusion and expansion for microtypographic improvement. However, as a recent convert to LuaLaTeX, I'm quite confused as ...
  • 521

1
2 3 4 5
8