summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-luh-ipw/bbx/standard-luh-ipw.bbx
blob: 039ad2b63f4856dfc48ad3d50bf519f45ac4ef2f (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
% standard-luh-ipw.bbx, Oliver Heins (heins@sopos.org) 2011

\ProvidesFile{standard-luh-ipw.bbx}[2011/11/01 v0.1 bibliography style for use with biblatex 1.x]

\DeclareBibliographyOption{ipwstrict}[true]{%
  \ExecuteBibliographyOptions{noemphtitle=#1,yearnotinparens=#1}}

\newtoggle{bbx:noemphtitle}
\DeclareBibliographyOption{noemphtitle}[true]{%
  \settoggle{bbx:noemphtitle}{#1}}

\newcommand{\mkbibvolume}[1]{\bibstring{jourvol}\adddot~#1}

\DeclareLanguageMapping{english}{english-luh-ipw}
\DeclareLanguageMapping{german}{german-luh-ipw}

\renewcommand*{\bibleftparen}{{\upshape (}}
\renewcommand*{\bibrightparen}{{\upshape )}\midsentence}
\renewcommand*{\bibleftbracket}{{\upshape [}}
\renewcommand*{\bibrightbracket}{{\upshape ]}\midsentence}
%\renewcommand*{\subtitlepunct}{\iffieldundef{subtitle}{}{\newunitpunct}}
\renewcommand*{\labelnamepunct}{\addcolon\space}
\renewcommand*{\nametitledelim}{\addcolon\space}

\DeclareFieldFormat{origyear}{\mkbibparens{\upshape{#1}}}
\DeclareFieldFormat[article,periodical]{volume}{\mkbibvolume{#1}}% volume of a journal
\DeclareFieldFormat[article,periodical]{issue}{% volume of a journal
  \ifnumerals{#1}
    {\addcomma\space\bibstring{issue}\adddot~#1}
    {\printtext[parens]{#1}}} 

%% Wenn die Option emphtitle=false, werden die Titel nicht hervorgehoben
\DeclareFieldFormat{citetitle}{\iftoggle{bbx:noemphtitle}{#1}{\mkbibemph{#1}}}
\DeclareFieldFormat
  [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
  {citetitle}{\iftoggle{bbx:noemphtitle}{#1\isdot}{\mkbibquote{#1\isdot}}}
\DeclareFieldFormat{booktitle}{\iftoggle{bbx:noemphtitle}{#1}{\mkbibemph{#1}}}
\DeclareFieldFormat{journaltitle}{\iftoggle{bbx:noemphtitle}{#1}{\mkbibemph{#1}}}
\DeclareFieldFormat{issuetitle}{\iftoggle{bbx:noemphtitle}{#1}{\mkbibemph{#1}}}
\DeclareFieldFormat{maintitle}{\iftoggle{bbx:noemphtitle}{#1}{\mkbibemph{#1}}}
\DeclareFieldFormat{title}{\iftoggle{bbx:noemphtitle}{#1}{\mkbibemph{#1}}}
\DeclareFieldFormat
  [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
  {title}{\iftoggle{bbx:noemphtitle}{#1\isdot}{\mkbibquote{#1\isdot}}}


%% -> vor 'number' (z.B. ', Nr. ')
\newcommand*{\journumstring}{%
  \addcomma\space%
  \bibstring{number}%
  \addnbspace}

%% Formatierung bei Zeitschriften
\renewbibmacro*{volume+number+eid}{%
  \setunit{\addcomma\space}%
  \printfield{eid}%
  \iffieldundef{number}
  {}
  {\setunit{\addcomma\addspace\journumstring}%
   \printfield{number}}%
  \iffieldundef{volume}
    {\iffieldundef{month}
      {}
      {\setunit{\addcomma\space}}}%
    {\setunit{\addcomma\space}%
     \printfield{volume}%
     \iffieldundef{date}
       {}
       {\printtext[parens]{\printfield{date}}}}
  \newunit\newblock
  \setunit{\addcomma\space}%
  \printfield{eid}}


\endinput