Skip to content
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

Better support for non-ASCII characters when LuaLaTeX or XeLaTeX is used? #255

Open
nad opened this issue Oct 10, 2017 · 4 comments
Open

Comments

@nad
Copy link

nad commented Oct 10, 2017

The fonts chosen by acmart have little support for non-ASCII characters when LuaLaTeX or XeLaTeX is used. For instance, consider the following UTF8-encoded file:

\documentclass{acmart}

\tracinglostchars=2

\begin{document}

$a^2$$$ $\forall$

\end{document}

If I process this file using lualatex, then the following warnings are printed:

Missing character: There is no ∀ (U+2200) in font LinLibertineT-tlf-ot1!
Missing character: There is no ∀ (U+2200) in font LinLibertineT-tlf-t1!

With xelatex I get the following warnings:

Missing character: There is no ∀ in font LinLibertineT-tlf-t1!
Missing character: There is no ∀ in font LinLibertineT-tlf-ot1!

The problem can be partially fixed by using fontspec:

\usepackage[no-math]{fontspec}
\setmainfont{Linux Libertine O}

Now the first occurrence of is typeset, but not the second one. If I remove the no-math option, then the second occurrence is also typeset, but not in the same way as $\forall$, and the digit 2 is also typeset in a different way.

Is there some way to use fontspec (and perhaps unicode-math) to provide support for a large set of additional characters, without changing the appearance of characters that are currently supported?

@bracevac
Copy link

One solution: Consider using the libertinus font package, which fixes bugs in Libertine and adds a proper math font version compatible with unicode-math. You will need to change the corresponding lines in acmart.sty of course.

@borisveytsman
I wonder if the ACM would consider using the libertinus package instead of libertine+newtxmath (or at least add a package option).
That would make xetex/luatex/unicode-math users happy.

I would love to write conference papers with unicode-math, but only if there is no technical obstacle in ACM's publication processes. E.g., would it work to submit a camera ready based
on a custom acmart that just swaps the font? The fonts are practically identical, but the embedded font names might differ.

@arthuraa
Copy link

It would be great to see unicode-math supported properly in acmart. I've already had a few issues preparing camera-ready versions to circumvent this limitation.

@rionda
Copy link
Contributor

rionda commented Jun 15, 2020

+1. Better support for Lua and unicode-math would be a good idea.

@Blaisorblade
Copy link
Contributor

Filed #398 on the libertinus switch, hoping it'll get more attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants