diff options
author | Andreas Müller <andreas.mueller@ost.ch> | 2021-09-28 14:27:37 +0200 |
---|---|---|
committer | Andreas Müller <andreas.mueller@ost.ch> | 2021-09-28 14:27:37 +0200 |
commit | 1a8e870f8f4c7e9d402ab7b867699ed999fec7dc (patch) | |
tree | 153f3c8d24c580db8c19ffc30d5879bd50705536 /vorlesungen/setup | |
parent | analogie-Abschnitt (diff) | |
download | SeminarSpezielleFunktionen-1a8e870f8f4c7e9d402ab7b867699ed999fec7dc.tar.gz SeminarSpezielleFunktionen-1a8e870f8f4c7e9d402ab7b867699ed999fec7dc.zip |
slide infrastructure for MathSem
Diffstat (limited to '')
-rw-r--r-- | vorlesungen/setup | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vorlesungen/setup b/vorlesungen/setup new file mode 100644 index 0000000..a6f5539 --- /dev/null +++ b/vorlesungen/setup @@ -0,0 +1,35 @@ +#! /bin/bash +# +# setup -- prepare a new topic +# +if [ $# -lt 2 ] +then + echo "not enough arguments" + echo "usage: setup number topic" + echo "Files will be in <number>_<topic>, <topic>-handout, MathSem-<number>-<topic>.tex" + exit 1 +fi + +topic=${2} +number=`printf %02d ${1}` +directory=${number}_${topic} + +if [ -d ${directory} ] +then + echo ${directory} already exists + exit 1 +fi + +mkdir ${directory} + +cp 00_template/common.tex ${directory} +cp 00_template/slides.tex ${directory} + +sed -e "s/xxx/${topic}/g" -e "s/yyy/${number}/g" 00_template/Makefile \ + > ${directory}/Makefile +sed -e "s/xxx/${topic}/g" -e "s/yyy/${number}/g" 00_template/handout.tex \ + > ${directory}/${topic}-handout.tex +sed -e "s/xxx/${topic}/g" -e "s/yyy/${number}/g" 00_template/presentation.tex \ + > ${directory}/MathSem-${number}-${topic}.tex + + |