Files
FYS-STK4155/doc/src/Bayesian/makepdf.sh
T
Christian Forssen 82795f8761 More text in the Bayesian chapter.
- long example with single-parameter estimate using bayesian (and frequentist) approaches.
- python code and figures for this example (single photon count)
- added text on several aspects of parameter estimation, in particular credible intervals.

- coin flipping experiment, text and figures added.

- Removed some unicode characters and published various formats.
2018-03-13 14:43:54 +01:00

49 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
set -x
function system {
"$@"
if [ $? -ne 0 ]; then
echo "make.sh: unsuccessful command $@"
echo "abort!"
exit 1
fi
}
if [ $# -eq 0 ]; then
echo 'bash make.sh slides1|slides2'
exit 1
fi
name=$1
rm -f *.tar.gz
opt="--encoding=utf-8"
# Note: Makefile examples contain constructions like ${PROG} which
# looks like Mako constructions, but they are not. Use --no_mako
# to turn off Mako processing.
opt="--no_mako"
rm -f *.aux
# Ordinary plain LaTeX document
rm -f *.aux # important after beamer
system doconce format pdflatex $name --minted_latex_style=trac --latex_admon=paragraph $opt
system doconce ptex2tex $name envir=minted
# Add special packages
doconce subst "% Add user's preamble" "\g<1>\n\\usepackage{simplewick}" $name.tex
doconce replace 'section{' 'section*{' $name.tex
pdflatex -shell-escape $name
pdflatex -shell-escape $name
mv -f $name.pdf ${name}-minted.pdf
cp $name.tex ${name}-plain-minted.tex
# Publish
dest=../../pub
if [ ! -d $dest/$name ]; then
mkdir $dest/$name
mkdir $dest/$name/pdf
fi
cp ${name}*.pdf $dest/$name/pdf