This commit is contained in:
Dongdong Tian 2017-04-06 13:21:42 +08:00
parent 186b8f1da7
commit b72e51f2d1
2 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@ help:
%: Makefile %: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
# make sphinx support chinese with xelatex
xelatexpdf: Makefile latex xelatexpdf: Makefile latex
@echo "Runnning LaTeX files through xelatex..." @echo "Runnning LaTeX files through xelatex..."
cd $(BUILDDIR)/latex; latexmk -xelatex -shell-escape -interaction=nonstopmode cd $(BUILDDIR)/latex; latexmk -xelatex -shell-escape -interaction=nonstopmode

View File

@ -33,7 +33,7 @@
$ make html $ make html
$ firefox build/html/index.html& $ firefox build/html/index.html&
#. 编译生成PDF要求安装TeXLive 2015:: #. 编译生成PDF要求安装TeXLive 2016::
$ make xelatexpdf $ make xelatexpdf
$ evince build/latex/Makefile.pdf& $ evince build/latex/Makefile.pdf&
@ -41,7 +41,7 @@
sphinx中文支持 sphinx中文支持
-------------- --------------
sphinx和readthedocs网站默认是不支持中文的因为对 ``conf.py````Makefile`` 做了些许修改。详情参考 `sphinx生成中文PDF <http://seisman.info/chinese-support-for-sphinx.html>`_ `Commit 35288db <https://github.com/seisman/how-to-write-makefile/commit/35288dbcd859abf5107dd6900dca25f0d1b44db7>`_ sphinx和readthedocs网站默认是不支持中文的因为对 ``conf.py````Makefile`` 做了些许修改。详情参考 `sphinx生成中文PDF <http://seisman.info/chinese-support-for-sphinx.html>`_ 以及本项目中的 ``conf.py````Makefile`` 源码。
.. _`陈皓`: http://coolshell.cn/haoel .. _`陈皓`: http://coolshell.cn/haoel
.. _`Andriki`: http://andriki.com/mediawiki/index.php?title=Linux:%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E5%86%99Makefile .. _`Andriki`: http://andriki.com/mediawiki/index.php?title=Linux:%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E5%86%99Makefile