scripts for Markdown -> pandoc -> latex -> pdf presentations

master
gutmet 2018-12-08 17:35:50 +01:00
parent 7d06f75d19
commit 94573db73d
2 changed files with 34 additions and 0 deletions

11
presbuild Executable file
View File

@ -0,0 +1,11 @@
# build a presentation from a markdown file via pandoc and latex beamer
if [ -z $1 ]; then
echo "needs name"
exit 1
fi
outfile="${1%.md}.pdf"
pandoc "$1" -t beamer -o "$outfile"
xdg-open "$outfile"

23
presinit Executable file
View File

@ -0,0 +1,23 @@
# init a presentation .md
if [ -z $1 ]; then
echo "needs name"
exit 1
fi
read -p "Title? " title
read -p "Author? " author
echo "\
---
title: $title
author: $author
colortheme: magpie
---
# First slide
Foobar
" > "$1"
$EDITOR "$1"