-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Soul underlining gobbles some characters if --pdf-engine=xelatex #9920
Comments
The issue extends to other commands supplied by (I tested this on XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) loading soul 2023-06-14 v3.1) |
Maybe it should be fixed within |
The
I'm not sure whether Instead, I wonder whether pandoc could intelligently change soul's font. A very quick approach could be
One could also do something like this:
This would solve part of the issue. But a more intelligent setting would be needed in case a phrase is underlined that can not be printed in the document's |
Not sure. Have you tried contacting soul's maintainer about the issue for suggestions? The font changing idea seems promising but I am too ignorant about what is going on in soul to make the change confidently. For the near future, I think a viable workaround is to use lualatex if you're writing Hungarian. (Does |
The usage of
\ul
fromsoul
for underlining can be problematic if the PDF output is generated using XeLaTeX (even with recent releases from 2024). soul's font does not provide some characters outside the base Latin character set, like the Hungarianő
(Latin small o with double acute) or stacked diacritics likeȭ
(o with tilde and macron). Stacked diacritics appear in many diverse languages around the world. These characters not available insoul
will then be gobbled and erroneously removed from the output.LaTeX's primitive
\underline
as well as\uline
fromulem
do not have these issues.There are several solutions I could imagine:
ulem
andsoul
in the same document. This way,soul
could still be used for highlighting butulem
(via\usepackage[normalem]{ulem}
) used for strikeout, underline, etc.soul
conditionally if highlighting in use. Also loadulem
conditionally if strikeout, underlining, etc., in useThe text was updated successfully, but these errors were encountered: