RTD not used
This commit is contained in:
parent
e8e971a560
commit
08e7f5c772
@ -41,11 +41,6 @@
|
|||||||
$ make latexpdf
|
$ make latexpdf
|
||||||
$ evince build/latex/Makefile.pdf&
|
$ evince build/latex/Makefile.pdf&
|
||||||
|
|
||||||
sphinx中文支持
|
|
||||||
--------------
|
|
||||||
|
|
||||||
sphinx和readthedocs网站默认是不支持中文的,因为对 ``conf.py`` 和 ``Makefile`` 做了些许修改。详情参考本项目中的 ``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
|
||||||
.. _`Sphinx`: http://sphinx-doc.org/
|
.. _`Sphinx`: http://sphinx-doc.org/
|
||||||
|
@ -150,50 +150,23 @@ htmlhelp_basename = 'Makefiledoc'
|
|||||||
|
|
||||||
# -- Options for LaTeX output ---------------------------------------------
|
# -- Options for LaTeX output ---------------------------------------------
|
||||||
latex_engine="xelatex"
|
latex_engine="xelatex"
|
||||||
if on_rtd:
|
latex_elements = {
|
||||||
latex_elements = {
|
'papersize' : 'a4paper',
|
||||||
# The paper size ('letterpaper' or 'a4paper').
|
'utf8extra' : '',
|
||||||
'papersize': 'a4paper',
|
'inputenc' : '',
|
||||||
|
'cmappkg' : '',
|
||||||
# The font size ('10pt', '11pt' or '12pt').
|
'fontenc' : '',
|
||||||
'pointsize': '11pt',
|
'releasename' : 'By SeisMan@GitHub',
|
||||||
|
'release' : '',
|
||||||
# Additional stuff for the LaTeX preamble.
|
'babel' : r'''\usepackage[english]{babel}''',
|
||||||
'preamble': r'''
|
'preamble' : r'''
|
||||||
\hypersetup{unicode=true}
|
\usepackage{ctex}
|
||||||
\usepackage{CJKutf8}
|
\parindent 2em
|
||||||
\DeclareUnicodeCharacter{00A0}{\nobreakspace}
|
\setcounter{tocdepth}{3}
|
||||||
\DeclareUnicodeCharacter{2203}{\ensuremath{\exists}}
|
\renewcommand\familydefault{\ttdefault}
|
||||||
\DeclareUnicodeCharacter{2200}{\ensuremath{\forall}}
|
\renewcommand\CJKfamilydefault{\CJKrmdefault}
|
||||||
\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' : '',
|
|
||||||
'inputenc' : '',
|
|
||||||
'cmappkg' : '',
|
|
||||||
'fontenc' : '',
|
|
||||||
'releasename' : 'By SeisMan@GitHub',
|
|
||||||
'release' : '',
|
|
||||||
'babel' : r'''\usepackage[english]{babel}''',
|
|
||||||
'preamble' : r'''
|
|
||||||
\usepackage{ctex}
|
|
||||||
\parindent 2em
|
|
||||||
\setcounter{tocdepth}{3}
|
|
||||||
\renewcommand\familydefault{\ttdefault}
|
|
||||||
\renewcommand\CJKfamilydefault{\CJKrmdefault}
|
|
||||||
''',
|
|
||||||
}
|
|
||||||
|
|
||||||
# Grouping the document tree into LaTeX files. List of tuples
|
# Grouping the document tree into LaTeX files. List of tuples
|
||||||
# (source start file, target name, title,
|
# (source start file, target name, title,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user