-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmath_test.sh
More file actions
37 lines (29 loc) · 783 Bytes
/
math_test.sh
File metadata and controls
37 lines (29 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
name=math_test
rm -rf "${name}_html.html ${name}_pandoc.html sphinx-rootdir" # clean
doconce format latex $name
doconce ptex2tex $name
latex $name
latex $name
dvipdf $name
cp $name.pdf ${name}_latex.pdf
doconce format html $name
cp $name.html ${name}_html.html
doconce sphinx_dir dirname=sphinx-rootdir-math $name
python automake_sphinx.py
doconce format pandoc $name
# Do not use pandoc directly because it does not support MathJax enough
doconce md2html $name.md
cp $name.html ${name}_pandoc.html
doconce format pandoc $name
doconce md2latex $name
latex $name
latex $name
dvipdf $name
cp $name.pdf ${name}_pandoc.pdf
#exit 0
for name in "${name}_html.html ${name}_pandoc.html sphinx-rootdir/_build/html/math_test.html"
do
echo $name
google-chrome $name
done