Skip to main content

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
35 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 ...
Didier Verna's user avatar
9 votes
0 answers
109 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 ...
David Purton's user avatar
  • 26.4k
0 votes
0 answers
47 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 ...
ArTourter's user avatar
  • 17.5k
11 votes
1 answer
249 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} \...
Gamification's user avatar
3 votes
0 answers
55 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} \...
Sverre's user avatar
  • 20.8k
8 votes
1 answer
188 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 ...
Keks Dose's user avatar
  • 31.2k
6 votes
2 answers
173 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 ...
Felix Maldonado's user avatar
0 votes
1 answer
136 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 ...
Alex Poyser's user avatar
7 votes
2 answers
308 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 ...
user202729's user avatar
  • 7,503
0 votes
1 answer
90 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 ...
Felix Maldonado's user avatar
1 vote
0 answers
85 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]{...
Youra_P's user avatar
  • 1,128
2 votes
1 answer
94 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, ...
Sebastian Graf's user avatar
0 votes
1 answer
221 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'...
Andrew's user avatar
  • 3
2 votes
1 answer
82 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} \...
user avatar
0 votes
0 answers
67 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 ...
clearseplex's user avatar
2 votes
2 answers
72 views

Incomprehensible behavior with microtype \lsstyle

Microtype's \lsstyle seems to cause problems related to math mode, which have been the subject of a few questions already (I must confess to not understanding it all). I'm dealing with a behavior that ...
Rpy's user avatar
  • 133
2 votes
2 answers
75 views

Microtype plus eplain and portuguese

I am preparing a set of documents using eplain. The text is in portuguese, so I'd like to have proper hyphenation. At the same time, I would like to use microtypography enhancements. Here is my ...
Tássio's user avatar
  • 544
10 votes
1 answer
139 views

Microtype and Soul creates a thin white line after words

When using microtype and soul, if I highlight a text that continues on the next line, I get thin white lines after the words on the first line. Here is some code: \documentclass[a4paper, 12pt, twoside]...
user2712231's user avatar
4 votes
2 answers
183 views

microtype Tracking warning

To save space in tables, I want to reduce the tracking in the words. To do this I am using code from here. The code below works correctly and is displayed as expected, but for every occurence of \test ...
Chrisstar's user avatar
  • 173
0 votes
1 answer
68 views

Hyphen too wide in texttt when combined with microtype

I'm currently writing a paper with a lot of code references. I want to typeset class and method names using \texttt{}. I am explicitly indicating word splitting points using e.g. \texttt{Very\-Long\-...
Gutenberg's user avatar
4 votes
1 answer
129 views

Clash between packages: lastpage, babel and microtype

The following code causes an error when I try to compile it. \documentclass{book} \RequirePackage{lastpage} \RequirePackage[polutonikogreek]{babel} \RequirePackage[babel=true]{microtype} \begin{...
Colas's user avatar
  • 6,842
0 votes
1 answer
63 views

Error between microtype, hyperref, and listings when setting oldstylenums for listings

I am using the listings package for displaying source code, and want to reformat the numbering to use the oldstylenums. The problem comes when using microtype, as it throws errors for every line of ...
asbjos's user avatar
  • 43
3 votes
0 answers
112 views

OpenType case-senstive forms break microtype's protrusion for hyphens

By enabling the OpenType feature case-senstive forms ([Letters=Uppercase]), vertically lifted brackets, hyphens, or parentheses for example) via setmainfont with fontspec, I loose the protrusion for ...
archifont's user avatar
3 votes
1 answer
199 views

T1 font encoding, newtxtext, and microtype result in “Package microtype Info: Character `029' is missing”

Feeding \documentclass{article} \usepackage[T1]{fontenc} \usepackage{newtxtext} \usepackage{microtype} \begin{document} \textsc{}% doesn't matter what text we enter here \end{document} to pdflatex ...
user avatar
1 vote
0 answers
176 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 ...
albert's user avatar
  • 997
2 votes
1 answer
96 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 ...
AthanasiusOfAlex's user avatar
2 votes
1 answer
51 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 ...
user avatar
1 vote
1 answer
317 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-...
user avatar
5 votes
1 answer
125 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 ...
user94293's user avatar
  • 4,292
1 vote
0 answers
82 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 ...
User23456234's user avatar
  • 1,876
4 votes
1 answer
122 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, ...
SpleenRain's user avatar
2 votes
1 answer
54 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....
Fredrik P's user avatar
  • 1,418
6 votes
1 answer
448 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 ...
Niranjan's user avatar
  • 3,415
1 vote
0 answers
50 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) ...
Igor Yukhimenko's user avatar
6 votes
1 answer
137 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 ...
yegor256's user avatar
  • 12.1k
3 votes
1 answer
138 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 ...
curry's user avatar
  • 293
0 votes
1 answer
36 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]...
curry's user avatar
  • 293
2 votes
1 answer
88 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} % \...
Denis Bitouzé's user avatar
3 votes
1 answer
73 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....
Igor Yukhimenko's user avatar
0 votes
0 answers
59 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} \...
Jinwen's user avatar
  • 8,598
2 votes
0 answers
65 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 ...
DDS's user avatar
  • 9,500
2 votes
0 answers
1k 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 ...
eslingena's user avatar
6 votes
0 answers
309 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 ...
Gaussler's user avatar
  • 12.9k
6 votes
1 answer
430 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 ...
Paapaa's user avatar
  • 642
4 votes
1 answer
234 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), ...
Linear Christmas's user avatar
0 votes
2 answers
88 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}{\...
Jinwen's user avatar
  • 8,598
3 votes
1 answer
130 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 ...
Denis Bitouzé's user avatar
17 votes
2 answers
834 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 ...
Karl Berry's user avatar
  • 2,112
2 votes
1 answer
89 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} \...
johnny7's user avatar
  • 121
15 votes
0 answers
744 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 ...
Emily's user avatar
  • 221

1
2 3 4 5
9