Text Formatting(soul or soulutf8) + microtype = ☇

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
user49915
Posts: 81
Joined: Wed Apr 17, 2019 12:51 pm

(soul or soulutf8) + microtype = ☇

Post by user49915 »

Continuing https://github.com/latex3/babel/issues/ ... -598474037 and https://github.com/latex3/babel/issues/ ... -598530361 here (as the issue is unrelated to babel), consider feeding
\documentclass{article}
\usepackage{microtype}
\usepackage{soul}

% this is the default for textsterling and it works
\DeclareTextCommandDefault{\textsterling}{\UseTextSymbol{TS1}{\textsterling}}
\DeclareTextSymbol\textsterling{TS1}{163}

% this one fails also fails if I point to OT1
% the moment microtype is added

\DeclareTextCommandDefault{\textsterling}{\UseTextSymbol{T1}{\textsterling}}
\DeclareTextSymbol\textsterling{T1}{191}

\begin{document}
\pounds

\hl{a b \pounds{} c}
\end{document}

to pdflatex. The error message you get is "! Package soul Error: Reconstruction failed."

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply