THIS FORUM IS DEPRECATED

It will be disabled at any point in the future. Please post your discussions to any of these alternative available channels:

* GitHub Discussions: https://github.com/Zettlr/Zettlr/discussions
* Zettlr Subreddit: https://www.reddit.com/r/Zettlr
* Discord: https://discord.gg/PcfS3DM9Xj

# Export pdf with words in classical Greek, or arabic, hebrew...

Examples:

ἀδιάφορα

שָׁלוֹם (shalom)

سلام‎ (salām)

how to do it?

• 34VLC,

This should give you enough to get pointed in the right direction, based on what worked for me. In your markdown document you can write the text this way (one for latex to pdf and the other for html):

\textsanskrit{आदि}आदि{=html}
\textgreek{ἄλλος}ἄλλος{=html}


You will need to make sure you have the appropriate fonts installed. In my example for sanskrit and greek, I used Shobhika and GFS Artemisia.

You will need to have the latex packages fontspec and polyglossia installed.

Finally you will need to edit your tex template or create a custom tex template. I renamed and edited the zettlr export.tex template found here and then pointed to it in Zettlr's pdf preferences:

https://github.com/Zettlr/Zettlr/blob/master/source/main/assets/export.tex


Finally, these were the edits I made to the export.tex template, which I put just before the \begin{document} statement:

\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguages{sanskrit, greek} %% or other languages
\newfontfamily\devanagarifont[Script=Devanagari]{Shobhika}
\newfontfamily\greekfont{GFS Artemisia}


Hope this helps you in your journey,
Mat

• edited July 2021

Thank You Mat.

What am I not doing right?

dēlectāre

ἀδιάφορα

ἄλλος

πολυμαθία

Сельское общество

Hebrew and Arabic do not work

You can see my .tex