提交 fcf96d1f 编写于 作者: V Vadim Pisarevsky

build PDF out of rst docs

上级 5d125a7d
#!/bin/bash
LANGUAGES="${LANGUAGES:=c cpp py}"
mkdir -p $LANGUAGES
tput clear
python latex.py ../online-opencv.tex $LANGUAGES || exit
for D in $LANGUAGES
do
echo $D
mkdir -p _build/latex/$D
cp conf.py $D
cp mymath.sty _build/latex/$D
TEXINPUTS=$PWD: sphinx-build -w $D/sphinx.errors -D "lang=$D" -b latex -d _build/doctrees/$D $D _build/latex/$D
(cd _build/latex/$D && rm *.aux *.toc *.log && pdflatex opencv.tex)
done
......@@ -200,3 +200,5 @@ pngmath_latex_preamble = '\usepackage{mymath}\usepackage{amsmath}\usepackage{bbm
# 'http://docs.python.org/': None,
# }
intersphinx_mapping = {}
latex_elements = {'preamble': '\usepackage{mymath}\usepackage{amssymb}\usepackage{amsmath}\usepackage{bbm}'}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册