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
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:
@ -17,6 +29,7 @@ In deinem Projekt fügst du an den anfang folgende Zeilen ein und füllst sie au
---
title:
date:
logo:
author:
name:
email:
@ -28,14 +41,14 @@ studium:
arbeit:
typ:
code:
tutor:
tutor: % Not includet now!
...
```
### Variablen
| Variable | Beschreibung | Optional |
| ------------ | ----------------------------------------------------- | -------- |
| Variable | Beschreibung | Optional |
|:-------------|:------------------------------------------------------|:---------|
| title | Titel der Arbeit/B-Prüfung | nein |
| author | Der Uhrheber der Arbeit, in der Regel dein Name | nein |
| matrikelnr | Deine Matrikelnummer | nein |

@ -36,6 +36,9 @@
\usepackage[subfigure,titles]{tocloft}
\usepackage[pdfpagelabels=true]{hyperref}
\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
$if(highlighting-macros)$
@ -74,7 +77,9 @@ $endif$
\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{\leftmark}{\rightmark}
\pagestyle{fancy}
@ -112,6 +117,8 @@ $endif$
\Huge
\textbf{$aufageb.typ$}\\
\vspace*{0.5cm}
$if(title)$\textbf{$title$}$endif$ \\
\vspace*{0.3cm}
\large
$if(aufgabe.code)$$aufgabe.code$$endif$ \\
\vspace*{1cm}
@ -130,12 +137,18 @@ $endif$
\end{center}
\pagebreak
% ----------------------------------------------------------------------------------------------------------
% Abstract
% ----------------------------------------------------------------------------------------------------------
$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$
% ----------------------------------------------------------------------------------------------------------
% Inhalt
% ----------------------------------------------------------------------------------------------------------
$for(include-before)$
$include-before$
@ -147,6 +160,7 @@ $if(colorlinks)$
\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
$endif$
\setcounter{tocdepth}{$toc-depth$}
% ----------------------------------------------------------------------------------------------------------
% Verzeichnisse
% ----------------------------------------------------------------------------------------------------------
@ -178,6 +192,7 @@ $if(lot)$$else$\rhead{VERZEICHNISSE}$endif$
\listoffigures
\pagebreak
$endif$
$if(abk)$
% ----------------------------------------------------------------------------------------------------------
% Abkürzungen
@ -202,7 +217,7 @@ $endif$
\renewcommand{\sectionmark}[1]{\markright{#1}}
\renewcommand{\subsectionmark}[1]{}
\renewcommand{\subsubsectionmark}[1]{}
\lhead{Lösung der Aufgabe: \thesection}
\lhead{Abschnitt \thesection}
\rhead{} %hier kann die rechte Seite der Kopfzeile editiert werden!
\onehalfspacing
@ -230,6 +245,11 @@ $if(biblatex)$
$endif$
% ----------------------------------------------------------------------------------------------------------
% Erklärung zur selbstständigkeit
% ----------------------------------------------------------------------------------------------------------
$if(insurance)$
\newpage
\thispagestyle{empty}
\begin{center}
@ -246,5 +266,6 @@ Hiermit versichere ich, dass ich meine Abschlussarbeit selbständig verfasst und
& \centering ($author$)\\
\end{tabular}
\end{minipage}
$endif$
\end{document}

Loading…
Cancel
Save