-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile_beamer.sh
executable file
·44 lines (38 loc) · 1.4 KB
/
compile_beamer.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
#!/usr/bin/bash
file=$1
# Get the filename
filename=${file%.*}
ext=${file##*.}
outfile="${file%.*}.pdf"
echo "Reading: $file"
echo "Making: $outfile"
# /usr/bin/pandoc --standalone qlearning.md --from=markdown --to=revealjs -s -o ./qlearning.html -V revealjs-url=./reveal.js -V center=false -V theme=moon --slide-level=2 --incremental --highlight-style=pygments --mathjax=https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
pandoc $file \
--from=markdown \
--to=beamer \
-o $outfile \
--standalone \
--incremental \
-V theme=Warsaw \
-V progress=true \
# --template=nicks_template.html \
# -V revealjs-url=./reveal.js \
# --slide-level=3 \
# --highlight-style=pygments \
# --mathjax=https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js \
# -V controls=true \
# -V slideNumber=true \
# -s, --standalone
# -f, --from=FORMAT
# -t, --to=FORMAT (e.g. revealjs, beamer)
# -V, --variable=KEY Set values. E.g.
# -V center=false
# -V history=false
# -V revealjs-url=../reveal.js
# -V theme=moon (for Reveal.js)
# -i, --incremental
# --slide-level=2 makes "#" be the main slide, and "##" be the subslide
# --slide-level=3 makes "##" be the main slide, and "###" be the subslide
# -V controls=BOOLEAN defines whether you show the controls in the bottom
# -V progress=BOOLEAN shows the progress bar in the bottom
# -V slideNumber=BOOLEAN shows the slide number