RTD not used

This commit is contained in:
Dongdong Tian 2018-03-03 16:54:14 +08:00
parent e8e971a560
commit 08e7f5c772
2 changed files with 16 additions and 48 deletions

View File

@ -41,11 +41,6 @@
$ make latexpdf
$ evince build/latex/Makefile.pdf&
sphinx中文支持
--------------
sphinx和readthedocs网站默认是不支持中文的因为对 ``conf.py````Makefile`` 做了些许修改。详情参考本项目中的 ``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
.. _`Sphinx`: http://sphinx-doc.org/

View File

@ -150,33 +150,6 @@ htmlhelp_basename = 'Makefiledoc'
# -- Options for LaTeX output ---------------------------------------------
latex_engine="xelatex"
if on_rtd:
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
'papersize': 'a4paper',
# The font size ('10pt', '11pt' or '12pt').
'pointsize': '11pt',
# Additional stuff for the LaTeX preamble.
'preamble': r'''
\hypersetup{unicode=true}
\usepackage{CJKutf8}
\DeclareUnicodeCharacter{00A0}{\nobreakspace}
\DeclareUnicodeCharacter{2203}{\ensuremath{\exists}}
\DeclareUnicodeCharacter{2200}{\ensuremath{\forall}}
\DeclareUnicodeCharacter{2286}{\ensuremath{\subseteq}}
\DeclareUnicodeCharacter{2713}{x}
\DeclareUnicodeCharacter{27FA}{\ensuremath{\Longleftrightarrow}}
\DeclareUnicodeCharacter{221A}{\ensuremath{\sqrt{}}}
\DeclareUnicodeCharacter{221B}{\ensuremath{\sqrt[3]{}}}
\DeclareUnicodeCharacter{2295}{\ensuremath{\oplus}}
\DeclareUnicodeCharacter{2297}{\ensuremath{\otimes}}
\begin{CJK}{UTF8}{gbsn}
\AtEndDocument{\end{CJK}}
''',
}
else:
latex_elements = {
'papersize' : 'a4paper',
'utf8extra' : '',