forked from Anthchirp/bsg2tex
-
Notifications
You must be signed in to change notification settings - Fork 1
/
quoteliterature.sty
43 lines (36 loc) · 1.8 KB
/
quoteliterature.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
\ProvidesPackage{quoteliterature}[2016/10/21 v1.0 (Stefan Thöni)]
\RequirePackage{hyperref}
\RequirePackage{ifthen}
\RequirePackage{xparse}
\RequirePackage{scrbase}
\RequirePackage{pdftexcmds}
\RequirePackage{quotehelper}
\DeclareDocumentCommand{\getcitenum}{ m O{} O{} }{%
#1\ifthenelse{\equal{#2}{}}{}{,~§~#2}\ifthenelse{\equal{#3}{}}{}{~Rn.~#3}}
\DeclareDocumentCommand{\zitrn}{ O{} O{} }{%
§~#1\ifthenelse{\equal{#2}{}}{}{~Rn.~#2}}
\newcounter{powocount}
\DeclareDocumentCommand{\powokk}{ O{} O{} }{%
\stepcounter{powocount}\getcitenum{\ifthenelse{\equal{\value{powocount}}{1}}{Posser/Wolff, VwGO, 2. Aufl.}{Posser/Wolff}}[#1][#2]}
\DeclareDocumentCommand{\powo}{ O{} O{} }{%
(\powokk[#1][#2])}
\newcounter{lenskicount}
\DeclareDocumentCommand{\lenskikk}{ O{} O{} }{%
\stepcounter{lenskicount}\getcitenum{\ifthenelse{\equal{\value{lenskicount}}{1}}{Lenski, Parteiengesetz und Recht der Kandidatenaufstellung}{Lenski}}[#1][#2]}
\DeclareDocumentCommand{\lenski}{ O{} O{} }{%
(\lenskikk[#1][#2])}
\newcounter{ipsencount}
\DeclareDocumentCommand{\ipsenkk}{ O{} O{} }{%
\stepcounter{ipsencount}\getcitenum{\ifthenelse{\equal{\value{ipsencount}}{1}}{Ipsen, Parteiengesetz}{Ipsen}}[#1][#2]}
\DeclareDocumentCommand{\ipsen}{ O{} O{} }{%
(\ipsenkk[#1][#2])}
\newcounter{kericount}
\DeclareDocumentCommand{\kerikk}{ O{} O{} }{%
\stepcounter{kericount}\getcitenum{\ifthenelse{\equal{\value{kericount}}{1}}{Kersten/Rixen, Parteiengesetz und europäisches Parteienrecht}{Kersten/Rixen}}[#1][#2]}
\DeclareDocumentCommand{\keri}{ O{} O{} }{%
(\kerikk[#1][#2])}
\newcounter{prgecount}
\DeclareDocumentCommand{\prgekk}{ O{} O{} }{%
\stepcounter{prgecount}\getcitenum{\ifthenelse{\equal{\value{prgecount}}{1}}{Prütting/Gehrlein, ZPO~Kommentar, 8.~Auflage}{Prütting/Gehrlein}}[#1][#2]}
\DeclareDocumentCommand{\prge}{ O{} O{} }{%
(\prgekk[#1][#2])}