Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF creation build failure for Gujarati language #2620

Closed
cyberorg opened this issue Jan 28, 2017 · 4 comments
Closed

PDF creation build failure for Gujarati language #2620

cyberorg opened this issue Jan 28, 2017 · 4 comments

Comments

@cyberorg
Copy link

Details

Building pdf fails with many of these kind of errors:
! Package inputenc Error: Unicode char \u8:ત not set up for use with LaTeX.

Building epub and html completes successfully.

Expected Result

PDF build should complete successfully

Actual Result

PDF build failure

@humitos
Copy link
Member

humitos commented Feb 23, 2017

@cyberorg where you able to build the PDF in your own computer? I just downloaded the code and was able to build the HTML but I had a different problem with the PDF:

******** ERROR !! PLEASE UPDATE titlesec.sty !!********
******** THIS VERSION SWALLOWS SECTION NUMBERS.********.

@cyberorg
Copy link
Author

Yes, using this in conf.py

latex_elements = {
'preamble': '''

\usepackage{fontspec}
\setsansfont{FreeSans}
\setromanfont{FreeSerif}
\setmonofont{FreeMono}
''',
}
and then running the following:

make -e SPHINXOPTS="-D language='gu'" latex
cd build/latex/
xelatex *.tex

This creates the pdf.

@humitos
Copy link
Member

humitos commented Feb 26, 2017

I see. That seems to be a very custom way to generate your PDF file which is not setup in RTD. You could try to do some magic in your conf.py that RTD will execute by you and try different options.

@humitos humitos added the Support Support question label Feb 26, 2017
@cyberorg
Copy link
Author

cyberorg commented Feb 26, 2017

Using xelatex instead of pdflatex seems to be the only way to generate pdfs of "non-english" language, I am sure this affects every Indian languages(there are 15 official ones) and all other languages using unicode characters.

Is there way to add that magic of using xelatex in place of pdflatex to conf.py?

Here is the less custom option that also works, we just need option to set PDFLATEX=xelatex on readthedocs:

make PDFLATEX=xelatex -e SPHINXOPTS="-D language='gu'" latexpdf

This issue is duplicate of #1556

@agjohnson agjohnson removed the Support Support question label Feb 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants