RTD not used
This commit is contained in:
parent
e8e971a560
commit
08e7f5c772
@ -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/
|
||||
|
@ -150,34 +150,7 @@ 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 = {
|
||||
latex_elements = {
|
||||
'papersize' : 'a4paper',
|
||||
'utf8extra' : '',
|
||||
'inputenc' : '',
|
||||
@ -193,7 +166,7 @@ else:
|
||||
\renewcommand\familydefault{\ttdefault}
|
||||
\renewcommand\CJKfamilydefault{\CJKrmdefault}
|
||||
''',
|
||||
}
|
||||
}
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title,
|
||||
|
Loading…
x
Reference in New Issue
Block a user