Xe(La)TeX is still useful for these languages, but more specialised TeX engines are available, specifically designed for typesetting CJK languages-such as pTeX for typesetting Japanese. If you’re looking to typeset Chinese, Japanese and Korean, have a look at these articles: ![]() Here, we will discuss polyglossia because an increasing number of Overleaf users wish to typeset documents using a diverse range of languages and scripts. Recent versions of babel support font selection with XeLaTeX using the \babelfont mechanism however, a suitable version of babel is not yet available on Overleaf. These examples can be found in the Overleaf Gallery: How to Write Multilingual Text with Different Scripts in LaTeX on Overleaf and Multilingual "Thank-You". These properties make them a natural choice for typesetting multilingual or non-Latin documents in LaTeX, producing outputs like these: The XeTeX and LuaTeX engines can directly read/process UTF-8 encoded text consequently, they offer native support for Unicode-they can also work with TrueType and OpenType fonts directly. Some packages-such as inputenc, fontenc, babel, arabtex-exist to support pdfTeX for typesetting non-Latin languages and scripts, but not all glyphs and characters may be supported or rendered correctly in the output PDF, even if you’ve used the utf8 or utf8x option with inputenc.įor an in-depth discussion of UTF-8, Unicode encoding and the XeTeX/LuaTeX engines, the Overleaf article Unicode, UTF-8 and multilingual text: An introduction is a fascinating read. Using pdfTeX makes typesetting certain languages in LaTeX very complicated, especially those that do not use a Latin-based script. ![]() This article provides an overview of typesetting multilingual documents on Overleaf using the XeLaTeX (or LuaLaTeX) compiler in conjunction with the fontspec and polyglossia LaTeX packages.įor many, if not most, users their default choice of TeX engine is pdfTeX, which, unlike XeTeX and LuaTeX, does not have a built-in capability to read UTF-8 encoded text files.
0 Comments
Leave a Reply. |