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

PDF build failed because of Unicode characters ♁ or ⤶ #729

Open
astrojuanlu opened this issue May 30, 2022 · 4 comments
Open

PDF build failed because of Unicode characters ♁ or ⤶ #729

astrojuanlu opened this issue May 30, 2022 · 4 comments

Comments

@astrojuanlu
Copy link

I am trying to build #724 locally with some astronomical symbols, but I get these errors:

! Package inputenc Error: Unicode character ♁ (U+2641)                                                                 
(inputenc)                not set up for use with LaTeX.

I see several ways online to address it, but generally they involve using extra packages like https://mirrors.rit.edu/CTAN/macros/latex/contrib/wasysym/wasysym.pdf or doing some hackery. What would be the best way forward here?

@astrojuanlu astrojuanlu changed the title PDF build failed because of PDF build failed because of Unicode characters ♁ May 30, 2022
@astrojuanlu
Copy link
Author

Also happening with others like ⤶ (trying to use it to communicate line continuation in wide code outputs)

@astrojuanlu astrojuanlu changed the title PDF build failed because of Unicode characters ♁ PDF build failed because of Unicode characters ♁ or ⤶ May 30, 2022
@astrojuanlu
Copy link
Author

cc @jorgepiloto

@deniederhut
Copy link
Member

We might be able to declare a new unicode character (e.g. following https://en.m.wikibooks.org/wiki/LaTeX/Special_Characters), but this will depend on us having that glyph in our font files, which we might not.

@stefanv
Copy link
Member

stefanv commented Mar 13, 2024

Perhaps also try compiling with XeTeX instead of pdflatex.

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

3 participants