jupyter-farsi
jupyter-farsi copied to clipboard
Problem during converting to pdf
Hello there!
Thank you so much for sharing your code. I know it's from three years ago, but I really appreciate what you've shared. I'm a big fan of using Jupyter Notebook for my scientific work, and I also need to write comments in Persian.
I followed your suggestion and tried your method, and it worked well in the web view. However, I encountered an issue when I tried to convert it to PDF – all the Persian words became hidden.
I was hoping you could kindly help me out with this problem. Your assistance would mean a lot to me. Thanks in advance!
Warm regards, Basit
This could have a number of reasons. Can you share the xelatex logs (generated by the last command)?
Also make sure you have XB Niloofar font installed.
Hi Thank you for your response.
this is comments i get from executing (make) in directory: `make
alias xetex='xelatex'; jupyter nbconvert --to=pdf --template-file=~/.local/share/jupyter/nbconvert/templates/latex-farsi/index.tex.j2 Persian_font.ipynb; unalias xetex
[NbConvertApp] Converting notebook Persian_font.ipynb to pdf
/home/baset/.local/lib/python3.10/site-packages/nbconvert/utils/pandoc.py:51: RuntimeWarning: You are using an unsupported version of pandoc (3.1.6).
Your version must be at least (1.12.1) but less than (3.0.0).
Refer to https://pandoc.org/installing.html.
Continuing with doubts...
check_pandoc_version()
[NbConvertApp] Writing 19906 bytes to notebook.tex
[NbConvertApp] Building PDF
[NbConvertApp] Running xelatex 3 times: ['xelatex', 'notebook.tex', '-quiet']
[NbConvertApp] Running bibtex 1 time: ['bibtex', 'notebook']
[NbConvertApp] WARNING | bibtex had problems, most likely because there were no citations
[NbConvertApp] PDF successfully created
[NbConvertApp] Writing 9997 bytes to Persian_font.pdf
`
also i checked with font app that XB Niloofar is installed.
Regards, Basit
Can you attach the ipynb and the latex sources? Also please specify the OS you're using (and the version, if applicable)
I'm using ubuntu 22.10 sorry but I don't understand your meaning of latex sources. here is all my files: https://github.com/AbdulbasitAgh/Test