nmfs-opensci / quarto_titlepages

A Quarto extension for making title and cover pages for PDF output.
https://nmfs-opensci.github.io/quarto_titlepages/
Creative Commons Zero v1.0 Universal
115 stars 20 forks source link

figure out multilingual support for Hindi #3

Open eeholmes opened 2 years ago

eeholmes commented 2 years ago

This approach should work but says can't find font. https://tr.overleaf.com/learn/latex/Multilingual_typesetting_on_Overleaf_using_polyglossia_and_fontspec

\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguages{hindi}
\usepackage{fontspec}
\newfontfamily\devanagarifont[Script=Devanagari]{Lohit Devanagari}
eeholmes commented 2 years ago

Most diacritics just seem to work without doing anything extra but Czech did not. This worked well for Czech but Hindi seems more complicated

\usepackage{babel}
\babelprovide[import,main]{czech}

Note the babel solution might be specific to xelatex engine.