mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
build PDF out of rst docs
This commit is contained in:
parent
5d125a7d8b
commit
fcf96d1fad
17
doc/latex2sphinx/buildall_pdf
Normal file
17
doc/latex2sphinx/buildall_pdf
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/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,
|
# 'http://docs.python.org/': None,
|
||||||
# }
|
# }
|
||||||
intersphinx_mapping = {}
|
intersphinx_mapping = {}
|
||||||
|
|
||||||
|
latex_elements = {'preamble': '\usepackage{mymath}\usepackage{amssymb}\usepackage{amsmath}\usepackage{bbm}'}
|
||||||
|
Loading…
Reference in New Issue
Block a user