I have an org mode file with a mix of Bengali and English text, which I got to work using Adib Hasan's solution here:
#+LATEX_HEADER: \usepackage[banglamainfont=Kalpurush, banglattfont=Akaash, feature=0, changecounternumbering=0]{latexbangla}
Now I also want to add Devanagari script in the same document. But anything written in Devanagari ends up as empty squares. I also found this, and tried mixing the two:
#+LATEX_HEADER: \usepackage[banglamainfont=Kalpurush, banglattfont=Akaash, feature=0, changecounternumbering=0]{latexbangla}
#+LATEXT_HEADER: \setmainlanguage{sanskrit}
#+LATEXT_HEADER: \setotherlanguage{english}
#+LATEXT_HEADER: \setmainfont[Script=Devanagari]{Devanagari MT}
#+LATEXT_HEADER: \newfontfamily\devanagarifontsf[Script=Devanagari]{Devanagari MT}
to no avail. sanskrit
in \setotherlanguage
doesn't work either. In the resulting LaTeX file only the latexbangla
line stays and the rest are discarded. How can I get all these scripts to work together?
#+LATEXT_HEADER:
should have been#+LATEX_HEADER:
, which caused these to be ignored in the export. After that I had to explicitly put the Sanskrit text within \textsanskrit{...} following the overleaf guide on multilingual typesetting.