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

font handling in lualatex for chinese and math fonts. #10

Open
kmccurley opened this issue Oct 17, 2022 · 3 comments
Open

font handling in lualatex for chinese and math fonts. #10

kmccurley opened this issue Oct 17, 2022 · 3 comments
Assignees

Comments

@kmccurley
Copy link
Member

it's a little unclear how fonts are handled in lualatex - I noticed when I compiled things from the command line that fonts were compiled and deposited in ~/.texlive2022 as compiled lua files, but these are not accessible when using --safer, so some characters get omitted. A good test case was provided to me by Ji Luo, who pointed at https://github.com/GeeLaw/ahbtr/paper I've been trying to figure out how to support Chinese, or at least simplified Chinese. It appears that we should be using the fontspec package with TTF fonts. Ideally we would pre-install those, maybe from the arphic-ttf package or the Noto Sans Simplified Chinese font.

@kmccurley
Copy link
Member Author

We might also consider loading the fandol fonts for Simplified Chinese.

@jwbos
Copy link
Collaborator

jwbos commented Dec 21, 2023

Let me investigate this one.

@jwbos jwbos self-assigned this Dec 21, 2023
@jwbos
Copy link
Collaborator

jwbos commented Dec 21, 2023

I don't think there is a problem. After some investigation it seems the best support for Chinese characters is using XeLaTeX. This font support can simply be enabled if the user then uses
\usepackage{xeCJK}
in their LaTeX sources. I tested this locally and writing to files, footer and author names work without any issue.

We need to add xecjk to the Dockerfile. I tested and everything seems to work.
I did not commit anything yet since xecjk seems to pull in a number of other packages and we need to update the supported packages page accordingly.

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

2 participants