-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.sh
executable file
·69 lines (56 loc) · 1.26 KB
/
make.sh
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
#
# Präsentations-Slides für den Contao Stammtisch München
TALK=slides
# Javascript Framework für die Slides
FORMAT=revealjs
## #FORMAT=S5
## #FORMAT=Slidy
## #FORMAT=DZSlides
## #FORMAT=Slideous
# Für FORMAT=revealjs
#THEME=beige
THEME=black
#THEME=blood
#THEME=league
#THEME=moon
###THEME=night
#THEME=serif
#THEME=simple
#THEME=sky
#THEME=solarized
#THEME=white
# Syntax-Highlighting Style
#HIGHLIGHT=pygments
#HIGHLIGHT=kate
HIGHLIGHT=espresso
#HIGHLIGHT=haddock
#HIGHLIGHT=tango
#HIGHLIGHT=zenburn
if [ ! -d reveal.js ]
then
echo "Bitte erst reveal.js von https://github.com/hakimel/reveal.js"
echo "herunterladen und im Verzeichnis reveal.js installieren!"
exit
fi
if [ ${FORMAT} == 'revealjs' ]
then
pandoc \
--to=${FORMAT} \
--section-divs \
--standalone \
--variable theme=${THEME} \
--variable slideNumber="true" \
--variable controls="true" \
--variable center="false" \
--highlight-style ${HIGHLIGHT} \
${TALK}.md \
--output=${TALK}.html
sed -i '' -e "s/simple.css/${THEME}.css/" ${TALK}.html
else
pandoc --to=${FORMAT} --standalone ${TALK}.md --output=${TALK}.html
fi
# PDF für den Druck (Handouts)
pandoc ${TALK}.md --highlight-style ${HIGHLIGHT} --output=${TALK}.pdf
echo "done!"
## EOF ##