Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.01k stars 957 forks source link

How to unify the Asian font and Latin font? #326

Closed krahets closed 1 year ago

krahets commented 1 year ago

I followed the build script provided in langage-chinese/build.sh with CJKmainfont="Noto Sans SC.

# No lang option (-V lang=zh) here because Chinese is unsupported in polyglossia and babel.
pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings --pdf-engine "xelatex" -V CJKmainfont="Noto Sans SC"

The output is great overall! But the English char is a little bigger than the Chinese char. I'm wondering about how to unify the Latin font and Asian font. Thanks!

image
raiots commented 1 year ago

Same issue, how do you solve it? Thanks.

krahets commented 1 year ago

@raiots Try to use another font such as Noto Sans Serif

raiots commented 1 year ago

fixed it, thanks a lot! I was thought there is someway to specific set fonts for English lol.

krahets commented 1 year ago

fixed it, thanks a lot! I was thought there is someway to specific set fonts for English lol.

Same as your thoughts.