提交 44e3b017 编写于 作者: A Aston Zhang

Chinese language hack

上级 5f903d5a
......@@ -57,8 +57,7 @@ pdf: $(DEPS) $(OBJ) $(PDFIMG)
sed -i s/\.svg/\.pdf/ $(TEX)
sed -i s/\}\.gif/\_00\}.pdf/ $(TEX)
sed -i s/{tocdepth}{0}/{tocdepth}{1}/ $(TEX)
sed -i s/\renewcommand{\\\\figurename}{Fig.}/\renewcommand{\\\\figurename}{}/ $(TEX)
sed -i s/\renewcommand{\\\\tablename}{Table}/\renewcommand{\\\\tablename}{}/ $(TEX)
sed -i s/{\\\\releasename}{发布}/{\\\\releasename}{}/ $(TEX)
cd build/_build/latex && \
buf_size=10000000 xelatex gluon_tutorials_zh.tex && \
buf_size=10000000 xelatex gluon_tutorials_zh.tex
......
......@@ -91,7 +91,7 @@ release = '0.6'
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = zh_CN
language = 'zh_CN'
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
......@@ -250,6 +250,10 @@ latex_elements = {
\setCJKmainfont{Source Han Serif SC Medium}
\setCJKsansfont{Source Han Sans HW SC}
\setCJKmonofont{Source Han Sans HW SC}
\addto\captionsenglish{\renewcommand{\chaptername}{}}
\addto\captionsenglish{\renewcommand{\contentsname}{目录}}
''',
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
......@@ -268,7 +272,7 @@ latex_elements = {
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'gluon_tutorials_zh.tex', '使用MXNet/Gluon来动手学深度学习',
(master_doc, 'gluon_tutorials_zh.tex', '动手学深度学习',
author, 'manual'),
]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册