Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
make reveal.js presentation
#!/bin/bash
#
# Präsentations-Slides für den Contao Stammtisch München erzeugen
#
# Time-stamp: <2015-09-23 12:08:52 andreas>
TALK=extensions
# 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 [ ${FORMAT} == 'revealjs' ]
then
pandoc --to=${FORMAT} --standalone -V theme=${THEME} --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
# Folien mit "Beamer"
#HIGHLIGHT=tango
#pandoc --to=beamer ${TALK}.md -V theme:Szeged --highlight-style ${HIGHLIGHT} --output=${TALK}.pdf
# Normales Dokument (Article), da die Code-Schnipsel zu groß für Beamer-Folien sind
#pandoc ${TALK}.md --highlight-style ${HIGHLIGHT} --output=${TALK}.pdf
pandoc ${TALK}.md --output=${TALK}.pdf
echo "done!"
## EOF ##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment