-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
latex_engine = 'xelatex' if language != 'ja' else 'platex' #4150
Comments
Unfortunately Sphinx does not support configuration per languages. Please use BTW, I made very simple extension to realize your idea: I wish this helps you. |
Note: |
This will have to be ported to cpython Doc/conf.py, if we find a way to do it cleanly. For the moment, it looks like we don't know the language in conf.py so it's hard, see: sphinx-doc/sphinx#4150 (comment)
@tk0miya Thanks for the clarification. We're currently using |
Subject: I can either build french or japanese but not both with the same
conf.py
Problem
Building PDFs for the cPython documentation works for french using xelatex and for japanese with platex, but while initializing latex_engine value we don't have access to the language value.
I'd like to configure something like:
But we're giving language from a script via the makefile using the form
-D language=fr
.Maybe we're doing it the wrong way, and by doing it more naturally we would not enconter this issue? Maybe we should pass latex_engine from the makefile too and have the
'xelatex' if language != 'ja' else 'platex'
in our script?Reproducible project / your project
Environment info
The text was updated successfully, but these errors were encountered: