manuels / texlive.js

Compiling LaTeX (TeX live) in your browser
http://manuels.github.com/texlive.js/
GNU General Public License v2.0
1.25k stars 140 forks source link

arabic or persian support #54

Open aminify opened 6 years ago

aminify commented 6 years ago

how can we use it to export proper pdf containing arabic or persian text? for example consider following word: سلام

I used following code in sharelatex and it worked, but it showed errors with your library and the pdf was messed up: \documentclass[11pt,a4paper]{report} \usepackage[utf8]{inputenc} \usepackage[LFE,LAE]{fontenc} \usepackage[english,farsi]{babel} \begin{document} سلام \end{document}

by the way the error was this: ! LaTeX Error: Encoding scheme `LAE' unknown.

manuels commented 6 years ago

I checked on my debian system and it looks like you need to add the texlive-lang-arabic. Put these files (like .../texmf-dist/tex/latex/arabi/farsi.ldf) into their corresponding folder under the texlive directory and update texlive.js/texlive.lst.