sphinx 1.5.0 增加了 latex_engine 选项

This commit is contained in:
Dongdong Tian
2017-04-07 21:54:18 +08:00
parent b81719e8bf
commit 5fcd2bd44c
3 changed files with 2 additions and 9 deletions

View File

@@ -10,7 +10,6 @@ BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@echo " xelatexpdf to make LaTeX files and run them through xelatex"
.PHONY: help Makefile
@@ -18,9 +17,3 @@ help:
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
# make sphinx support chinese with xelatex
xelatexpdf: Makefile latex
@echo "Runnning LaTeX files through xelatex..."
cd $(BUILDDIR)/latex; latexmk -xelatex -shell-escape -interaction=nonstopmode
@echo "xelatex finished; the PDF files are in $(BUILDDIR)/latex."