chg: [build] make handout version of MISP training slides to allow the trainers

to add note in their side and produce automatically handout slides.

The headers are included in the header of the slides

~~~
\usepackage{pgfpages}
\setbeameroption{show notes on second screen=right}
~~~

A new directory with handout is used to store those slides.
pull/20/head
Alexandre Dulaunoy 2022-02-10 10:39:57 +01:00
parent ecba41937a
commit e7304bb66c
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,8 @@
slidedecks=("0-intro-shorter" "0-misp-introduction-to-information-sharing" "1-misp-usage" "1.2-misp-integration" "1.1-misp-viper-integration" "1.2.1-misp-integration-mail2misp" "2-misp-administration" "3-misp-taxonomy-tagging" "3.1-misp-modules" "3.2-misp-galaxy" "3.3-misp-object-template" "6.0-misp-dashboard" "a.0-contributing" "a.1-devintro" "a.2-pymisp" "a.3-misp-feed" "a.4-best-practices" "a.5-decaying-indicators" "a.5-bis-decaying-indicators-light-version" "a.6-forensic" "a.7-rest-API" "b.1-best-practices-in-threat-intelligence" "a.8-dev-hands-on" "a.9-restsearch-dev" "a.10-galaxy-2.0" "a.11-misp-data-model" "a.a-widget-dev" "b.2-turning-data-into-actionable-intelligence" "b.5-turning-data-into-actionable-intelligence-training" "4-misp-standard" "a.b-cli" "a.c-deployment")
mkdir output
mkdir output/handout
export TEXINPUTS=::`pwd`/themes/
echo ${TEXINPUTS}
for slide in ${slidedecks[@]}; do
@ -16,8 +18,14 @@ for slide in ${slidedecks[@]}; do
pdflatex slide.tex
pdflatex slide.tex
rm *.aux *.toc *.snm *.log *.out *.nav *.vrb
sed '12 i \\\\usepackage{pgfpages}\n\\setbeameroption{show notes on second screen=right}' slide.tex >slide_handout.tex
pdflatex slide_handout.tex
pdflatex slide_handout.tex
rm *.aux *.toc *.snm *.log *.out *.nav *.vrb
cp slide.pdf ../output/${slide}.pdf
cp slide_handout.pdf ../output/handout/${slide}_handout.pdf
rm slide.pdf
rm slide_handout.pdf
if test -f "slide_nl.tex"; then
cp slide_nl.pdf ../output/${slide}_nl.pdf
rm slide_nl.pdf