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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply