diff options
Diffstat (limited to 'presentations/taler-mdb-36c3/.template/mk_latexmkrc.sh')
-rwxr-xr-x | presentations/taler-mdb-36c3/.template/mk_latexmkrc.sh | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/presentations/taler-mdb-36c3/.template/mk_latexmkrc.sh b/presentations/taler-mdb-36c3/.template/mk_latexmkrc.sh new file mode 100755 index 0000000..fefbd72 --- /dev/null +++ b/presentations/taler-mdb-36c3/.template/mk_latexmkrc.sh @@ -0,0 +1,48 @@ +#!/bin/bash +# generate latexmkrc +# Author: Andreas HABEGGER <andreas.habegger> +# Date : 2017 +# Based on an idea by Albert Reiner. + +_FILE_PERM=644 + +OUTFILE=.latexmkrc # Name of the file to generate. + +OUTFILE="${_DESTINATION_DIR}/${OUTFILE}" + +# ----------------------------------------------------------- +# 'Here document containing the body of the generated script. +( +cat <<'EOF' +$dvi_previewer = 'start xdvi -watchfile 1.5'; +$ps_previewer = 'start gv --watch'; +$pdf_previewer = 'start xdg-open'; + +@cus_dep_list = (@cus_dep_list, "eps pdf 0 eps2pdf"); +sub eps2pdf { + system("epstopdf $_[0].eps"); } + +$latex = 'latex -interaction=nonstopmode -shell-escape'; + +$pdflatex = 'pdflatex -interaction=nonstopmode -shell-escape'; + +$bibtex_use = 2; + +EOF +) > $OUTFILE +# ----------------------------------------------------------- + +# Quoting the 'limit string' prevents variable expansion +#+ within the body of the above 'here document.' +# This permits outputting literal strings in the output file. + +if [ -f "$OUTFILE" ] +then + chmod ${_FILE_PERM} ${OUTFILE} +else + echo "Problem in creating file: \"$OUTFILE\"" +fi + + + +exit 0 |