update
This commit is contained in:
		
							
								
								
									
										1
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								Makefile
									
									
									
									
									
								
							| @@ -19,6 +19,7 @@ help: | ||||
| %: 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 | ||||
|   | ||||
| @@ -33,7 +33,7 @@ | ||||
|    $ make html | ||||
|    $ firefox build/html/index.html& | ||||
|  | ||||
| #. 编译生成PDF(要求安装TeXLive 2015):: | ||||
| #. 编译生成PDF(要求安装TeXLive 2016):: | ||||
|  | ||||
|    $ make xelatexpdf | ||||
|    $ evince build/latex/Makefile.pdf& | ||||
| @@ -41,7 +41,7 @@ | ||||
| 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 | ||||
| .. _`Andriki`: http://andriki.com/mediawiki/index.php?title=Linux:%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E5%86%99Makefile | ||||
|   | ||||
		Reference in New Issue
	
	Block a user