-
Notifications
You must be signed in to change notification settings - Fork 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
Offers a config option to choose the default LaTeX engine #2513
Comments
The default font setup is to use T1 encoded 8bit fonts Times, Helvetica and Courier (via package Quoted from http://www.texdev.net/2015/01/
Besides, neither XeLaTeX not LuaLaTeX render mathematics exactly as classic TeX: there are (subtle) differences. Arguably this is however marginal and possibly not much relevant to typical Sphinx projects. Thus should be kept in mind that But I am not sure there are LuaLaTeX is still at times undergoing drastic changes, and currently the switch from |
Just an add-on regarding using I misleadingly said I was not aware if some fonts were universally found on all OSs, I had forgotten that |
regarding the OP, I forgot to comment the obvious: one can already do |
Note that I put a fully working xelatex configuration for sphinx in #1923, including preamble with font setup, utf8 input and polyglossia etc. Would that be useful as an example? I think it would be fairly reasonable to default to Tex Gyre Termes, given that it's in all common TeX distributions. It's certainly present in Debian/Ubuntu, and in TeXLive/MacTeX/MikTeX. |
I've used the following myself:
@rleigh-dundee I didn't need to set fonts explicitly. Should I have? |
@cpitclaudel I don't think they need setting explicitly, but if you don't then you get the OpenType version of Computer Modern (or at least, I think that was the case last time I tried it). I might be wrong on that count--I set this up back in 2012 and haven't played with the settings much since. |
Now I proposed the new config value Please try and review this. |
Now I propose the default settings for LuaLaTeX and XeLaTeX at #3064. |
Now #3064 is merged into master branch. Thank you for comments! |
Sphinx currently uses two LaTeX engines:
latex
andpdflatex
. They are called from the mainMakefile
with the ruleslatex
andlatexpdf
.I read some users would like to use a different engine such as
lualatex
orxelatex
. I don't think adding a new recipe on the main Makefile is a good solution. Instead I would add a latex option to choose both the LaTeX engine and the build options.Moreover, I would choose the default engine to be
latexmk -xelatex
since this Perl script will automatically rebuild the latex file if needed.The text was updated successfully, but these errors were encountered: