-
-
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
Consider adding XeTeX support in LaTeX generation in quickstart mode for a better support for East Asian languages. #894
Comments
From Jan Ulrich Hasecke on 2014-01-29 16:58:59+00:00 I would appreciate an option to have a XeLaTeX or LuaLaTeX option in the Makefile. This would make it easy to use many more system fonts like OpenType Fonts etc. |
I've added these lines into the Makefile and it works for me: xelatex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running XeLaTeX files through xelatex..."
sed -i s/pdflatex/xelatex/ $(BUILDDIR)/latex/Makefile
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@echo "xelatex finished; the PDF files are in $(BUILDDIR)/latex." |
You can get better utf-8 support and better font support with a little more work, for example: Having such support enabled by default with sphinx would be a great improvement; currently many unicode characters in the sphinx text render fine as HTML but are mangled by pdflatex; with the above you get much better support. |
👍 |
+1 |
I added |
Great! Thanks! |
I adapted the code from the fix to sphinx-doc/sphinx#894.
Not sure if adding static entries on the Makefile is a good solution I think the best solution would be to use |
What about if you want to use/test the different LaTeX engines? The
+1 |
That sounds good. But it requires much refactoring to do that. |
I looked at the LaTeX writer/builder and I think I can do some rework, but I need some time to understand the code (which is not very documented). Here what I would like to improve:
I am not sure I can keep it fully backward compatible, but I can do my best... So about the Makefile, I would keep the original sphinx makefile with two rules: When is the |
I'm glad to hear that. We always needs your help :-) Yes, there are many things we have to do.
Sorry, I don't know that. @shimizukawa Do you have any plan to 1.5? |
I'm confused by this change: although this adds a rule to call xelatex, the generated .tex files are not xelatex-compatible, are they? They use inputenc, fontenc, and babel instead of polyglossia. Did I miss something? |
For now, I have no idea for about 1.5 release. I want to release this autumn. |
@cpitclaudel I don't know what is xelatex-compatible. but now we can build the generated .tex files using xelatex command, and can customize the settings using
Of course, I know the generated .tex file is not optimized for XeTeX as you said. So we have to discuss about it and become it better. |
It's easy to generate pdf from xetex.
and the minimal template looks like below:
and the problem with latex's babel, Chinese and Japanese don't need it and are not supported.
The text was updated successfully, but these errors were encountered: