Commit 471439f6 authored by Gerion Entrup's avatar Gerion Entrup
Browse files

Add template for Promovierendenvertretung

Only works with deprecated/makepdf.sh for now.
parent 4951e691
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
if [ $# -lt 1 ]; then
echo "USAGE: ./makepdf.sh [--fsr] protokoll.{md|txt|...}"
echo "USAGE: ./makepdf.sh [--fsr|--promo] protokoll.{md|txt|...}"
exit 1
fi
if [ "$1" = "--fsr" ]; then
F="fsr"
shift
elif [ "$1" = "--promo" ]; then
F="promo"
shift
else
F="finf"
fi
pandoc "$1" --template="../templates/pandoc.${F}.tex" -o "${1/${1##*.}}"pdf
PROTOCOL="$(readlink -f $1)"
OUTPUT="${PROTOCOL##*/}"
OUTPUT="${PWD}/${OUTPUT%.*}.pdf"
cd ${SCRIPT_DIR}/.. && pandoc "${PROTOCOL}" --template="templates/pandoc.${F}.tex" -o "${OUTPUT}"
\documentclass[halfparskip, 10pt, a4paper, DIV17, smallheadings]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[automark]{scrpage2}
\usepackage{lmodern}
\usepackage{xspace}
\usepackage{ngerman}
\usepackage[dvipsnames]{xcolor}
\usepackage{eurosym}
\usepackage{graphicx}
\usepackage{titlesec}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{hyperref}
%\setcounter{secnumdepth}{0}% % Turns off numbering for sections
\titleformat{\section}{\bfseries}{}{0em}{}
\titleformat{\subsection}[block]{\bfseries}{TOP \arabic{subsection}: }{0em}{}
\titleformat{\subsubsection}{\bfseries}{}{0em}{}
\titleformat{\paragraph}{\bfseries}{}{0em}{}
\DeclareUnicodeCharacter{20AC}{\euro}
% remove pandoc tightlist shit
\def\tightlist{}
\hypersetup{
pdfauthor={$protokollant$},
pdftitle={Protokoll der Sitzung Promovierendenvertretung der LUH vom $datum$},
pdfkeywords={Promovierendenvertretung, LUH, Leibniz Universität Hannover, Hannover},
bookmarks=true,
colorlinks=true,
urlcolor=Blue,
hyperindex=true}
\parindent0mm
\begin{document}
\clearscrheadfoot
\pagestyle{scrheadings}
\vspace*{-1cm}
\hfill
\includegraphics[width=0.3\linewidth]{templates/img/LUH_logo.pdf}
\hspace*{-13pt}
\smallskip
\pagestyle{scrheadings}
\begin{footnotesize}
\begin{minipage}{.49\linewidth}
Promovierendenvertretung,\\ Leibniz Universität Hannover \\
Welfengarten 1 \( \bullet \) 30167 Hannover
\end{minipage}
\begin{minipage}{.50\linewidth}
\begin{flushright}
E-Mail: \href{mailto:promovierendenvertretung@uni-hannover.de}{\color{black}promovierendenvertretung@uni-hannover.de} \\
\end{flushright}
\end{minipage}
\end{footnotesize}
\setfootsepline{.4pt} \cfoot{Promovierendenvertretung, LUH \hfill \pagemark \hfill Sitzung der Promovierendenvertretung vom $datum$}
\bigskip
\section*{Protokoll der Sitzung der Promovierendenvertretung der LUH vom $datum$}
$body$
\bigskip
\bigskip
Protokoll: $protokollant$
\end{document}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment