some changes for better use

master
Sebastian Preisner 7 years ago
parent a3b1c93baf
commit cc32f16eaf

@ -6,7 +6,19 @@ Es integriert die Vorlage für B-Prüfungen in den Arbeitsablauf für Pandoc.
## Installation ## Installation
Kopiere die Vorlage in das Verzeichnis `/user/share/pandoc/data/templates`. Zur installation kannst du das entweder das Git Repository mithilfe von `git clone ssh://gogs@git.calyrium.org:2244/WBH/pandoc-b_pruefung.git` clonen oder die Datei `b-pruefung.tex` herunterladen. Danach kopierst du die Datei in das Verzeichnis `pandoc/data/templates`.
```
Linux:
sudo cp b-pruefung.tex /usr/share/pandoc/data/templates/wbh.tex
Mac:
Windows:
```
Nun kannst du mit hilfe von `pandoc -s -t wbh.tex -o output.pdf input.md` dein Markdown file in ein PDF mit der gegeben Vorlage umwandeln.
In deinem Projekt fügst du an den anfang folgende Zeilen ein und füllst sie aus: In deinem Projekt fügst du an den anfang folgende Zeilen ein und füllst sie aus:
@ -17,6 +29,7 @@ In deinem Projekt fügst du an den anfang folgende Zeilen ein und füllst sie au
--- ---
title: title:
date: date:
logo:
author: author:
name: name:
email: email:
@ -28,14 +41,14 @@ studium:
arbeit: arbeit:
typ: typ:
code: code:
tutor: tutor: % Not includet now!
... ...
``` ```
### Variablen ### Variablen
| Variable | Beschreibung | Optional | | Variable | Beschreibung | Optional |
| ------------ | ----------------------------------------------------- | -------- | |:-------------|:------------------------------------------------------|:---------|
| title | Titel der Arbeit/B-Prüfung | nein | | title | Titel der Arbeit/B-Prüfung | nein |
| author | Der Uhrheber der Arbeit, in der Regel dein Name | nein | | author | Der Uhrheber der Arbeit, in der Regel dein Name | nein |
| matrikelnr | Deine Matrikelnummer | nein | | matrikelnr | Deine Matrikelnummer | nein |

@ -36,6 +36,9 @@
\usepackage[subfigure,titles]{tocloft} \usepackage[subfigure,titles]{tocloft}
\usepackage[pdfpagelabels=true]{hyperref} \usepackage[pdfpagelabels=true]{hyperref}
\usepackage{helvet} \usepackage{helvet}
% This two Packages are needet for Pandoc Table support. Issue is opened: https://github.com/jgm/pandoc/issues/1023
\usepackage{longtable}
\usepackage{booktabs}
% Syntax Highligting with colors % Syntax Highligting with colors
$if(highlighting-macros)$ $if(highlighting-macros)$
@ -74,7 +77,9 @@ $endif$
\titlespacing{\section}{0pt}{12pt plus 4pt minus 2pt}{-6pt plus 2pt minus 2pt} \titlespacing{\section}{0pt}{12pt plus 4pt minus 2pt}{-6pt plus 2pt minus 2pt}
% Kopf- und Fusszeile % ----------------------------------------------------------------------------------------------------------
% Kopf und Fußzeile
% ----------------------------------------------------------------------------------------------------------
\renewcommand{\sectionmark}[1]{\markright{#1}} \renewcommand{\sectionmark}[1]{\markright{#1}}
\renewcommand{\leftmark}{\rightmark} \renewcommand{\leftmark}{\rightmark}
\pagestyle{fancy} \pagestyle{fancy}
@ -112,6 +117,8 @@ $endif$
\Huge \Huge
\textbf{$aufageb.typ$}\\ \textbf{$aufageb.typ$}\\
\vspace*{0.5cm} \vspace*{0.5cm}
$if(title)$\textbf{$title$}$endif$ \\
\vspace*{0.3cm}
\large \large
$if(aufgabe.code)$$aufgabe.code$$endif$ \\ $if(aufgabe.code)$$aufgabe.code$$endif$ \\
\vspace*{1cm} \vspace*{1cm}
@ -130,12 +137,18 @@ $endif$
\end{center} \end{center}
\pagebreak \pagebreak
% ----------------------------------------------------------------------------------------------------------
% Abstract
% ----------------------------------------------------------------------------------------------------------
$if(abstract)$ $if(abstract)$
\begin{abstract} \begin{abstract}
$abstract$ $abstract$
\end{abstract} \end{abstract}
$endif$ $endif$
% ----------------------------------------------------------------------------------------------------------
% Inhalt
% ----------------------------------------------------------------------------------------------------------
$for(include-before)$ $for(include-before)$
$include-before$ $include-before$
@ -147,6 +160,7 @@ $if(colorlinks)$
\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$} \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
$endif$ $endif$
\setcounter{tocdepth}{$toc-depth$} \setcounter{tocdepth}{$toc-depth$}
% ---------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------
% Verzeichnisse % Verzeichnisse
% ---------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------
@ -178,6 +192,7 @@ $if(lot)$$else$\rhead{VERZEICHNISSE}$endif$
\listoffigures \listoffigures
\pagebreak \pagebreak
$endif$ $endif$
$if(abk)$ $if(abk)$
% ---------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------
% Abkürzungen % Abkürzungen
@ -202,7 +217,7 @@ $endif$
\renewcommand{\sectionmark}[1]{\markright{#1}} \renewcommand{\sectionmark}[1]{\markright{#1}}
\renewcommand{\subsectionmark}[1]{} \renewcommand{\subsectionmark}[1]{}
\renewcommand{\subsubsectionmark}[1]{} \renewcommand{\subsubsectionmark}[1]{}
\lhead{Lösung der Aufgabe: \thesection} \lhead{Abschnitt \thesection}
\rhead{} %hier kann die rechte Seite der Kopfzeile editiert werden! \rhead{} %hier kann die rechte Seite der Kopfzeile editiert werden!
\onehalfspacing \onehalfspacing
@ -230,6 +245,11 @@ $if(biblatex)$
$endif$ $endif$
% ----------------------------------------------------------------------------------------------------------
% Erklärung zur selbstständigkeit
% ----------------------------------------------------------------------------------------------------------
$if(insurance)$
\newpage \newpage
\thispagestyle{empty} \thispagestyle{empty}
\begin{center} \begin{center}
@ -246,5 +266,6 @@ Hiermit versichere ich, dass ich meine Abschlussarbeit selbständig verfasst und
& \centering ($author$)\\ & \centering ($author$)\\
\end{tabular} \end{tabular}
\end{minipage} \end{minipage}
$endif$
\end{document} \end{document}

Loading…
Cancel
Save