-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdo.bash
More file actions
53 lines (46 loc) · 1.2 KB
/
do.bash
File metadata and controls
53 lines (46 loc) · 1.2 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
sdir=slides
#subj=hg2052
pushd .
cd $sdir
#for slide in `ls hg8011-*.tex`
# do
# base=`basename $slide .tex`
# echo Processing ${base}
# #latexmk -pdf -xelatex ${base}
# ## clean up
# #rm *.aux *.bbl *.blg *.log *~ *.dvi *.ps *.pdf
# done
for slide in `ls lexi-*.tex`
do
base=`basename $slide .tex`
echo Processing ${base}
latexmk -pdf -xelatex ${base}
## clean up
#rm *.aux *.bbl *.blg *.log *~ *.dvi *.ps *.pdf
done
for slide in `ls tut-*.tex`
do
base=`basename $slide .tex`
echo Processing ${base} --- questions
ln -sf without.tex answers.tex
latexmk -silent -xelatex ${base}
mv "${base}.pdf" "${base}-questions.pdf"
echo Processing ${base} --- answers
ln -sf with.tex answers.tex
latexmk -silent -xelatex ${base}
mv "${base}.pdf" "${base}-answers.pdf"
## clean up
#rm *.aux *.bbl *.blg *.log *~
done
popd
### copy changed slides
rsync -av --ignore-times slides/tut*questions.pdf docs/pdf
#htmldoc --duplex --color --fontsize 12 --webpage -f /home/bond/papers/Outlines/${subj}-outline.pdf www/index.html
echo
echo Updated all slides: check the index.html is up to date
echo
echo Please commit any changes
echo
echo
git status
echo