0

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?

2
  • 1
    That's a question for TeX SE: the trick is to find out how to do it in LaTeX (probably XeLaTeX or LuaLaTeX are your best bets - but don't quote me on that). Once you figure that out, then exporting from Org mode will be easy I think.
    – NickD
    Commented Aug 21, 2023 at 5:49
  • Realized that I had a typo #+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.
    – subhacom
    Commented Aug 21, 2023 at 6:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.