diff options
author | Karl Berry <karl@freefriends.org> | 2012-07-23 23:34:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-07-23 23:34:51 +0000 |
commit | 583a3069ae795f9f25310af8d14d12d385b60348 (patch) | |
tree | dd32605d149adc6638977eeb3042cfb2ca4694c9 /Master/texmf-dist/tex/latex/historische-zeitschrift/bbx | |
parent | f7191a3abc2d21dd2a71306921870243953794f3 (diff) |
historische-zeitschrift 1.0 (11jun12)
git-svn-id: svn://tug.org/texlive/trunk@27124 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/historische-zeitschrift/bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/historische-zeitschrift/bbx/historische-zeitschrift.bbx | 81 |
1 files changed, 41 insertions, 40 deletions
diff --git a/Master/texmf-dist/tex/latex/historische-zeitschrift/bbx/historische-zeitschrift.bbx b/Master/texmf-dist/tex/latex/historische-zeitschrift/bbx/historische-zeitschrift.bbx index 627c48edd6a..0a052105cda 100644 --- a/Master/texmf-dist/tex/latex/historische-zeitschrift/bbx/historische-zeitschrift.bbx +++ b/Master/texmf-dist/tex/latex/historische-zeitschrift/bbx/historische-zeitschrift.bbx @@ -1,19 +1,24 @@ -% historische-zeitschrift.bbx, Dominik Waßenhoven 2008 +% historische-zeitschrift.bbx, Dominik Waßenhoven 2012 -\ProvidesFile{historische-zeitschrift.bbx}[2010/10/18 v0.9a HZ bibliography style] +\ProvidesFile{historische-zeitschrift.bbx}[2012/06/11 v1.0 HZ bibliography style] -\@ifpackagelater{biblatex}{2010/02/14} +\@ifpackagelater{biblatex}{2011/11/13} {} {\PackageError{biblatex} {Outdated 'biblatex' package} {The version of the 'historische-zeitschrift' style\MessageBreak - you are using requires biblatex v0.9 or later.\MessageBreak + you are using requires biblatex v1.7 or later.\MessageBreak You are using: '\csuse{ver@biblatex.sty}'.\MessageBreak This is a fatal error. I'm aborting now.}% \endinput} \ExecuteBibliographyOptions{pagetracker} +\DeclareBibliographyOption{dashed}[true]{% + \ifstrequal{#1}{true} + {\renewbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}} + {\renewbibmacro*{bbx:savehash}{}}} + \newtoggle{bbx:url} \newtoggle{bbx:doi} \newtoggle{bbx:eprint} @@ -31,8 +36,17 @@ eprint=false } -\DeclareBibliographyAlias{reference}{collection} -\DeclareBibliographyAlias{inreference}{incollection} +\newbibmacro*{bbx:savehash}{% + \savefield{fullhash}{\bbx@lasthash}} + +\newbibmacro*{bbx:dashcheck}[2]{% + \ifboolexpr{ + test {\iffieldequals{fullhash}{\bbx@lasthash}} + and + not test \iffirstonpage + } + {#1} + {#2}} %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% Reformatting %%%%% @@ -97,12 +111,16 @@ {\mkbibparens{\bibstring{editor}}}} \renewbibmacro*{editor}{% - \ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}} - {\ifthenelse{\iffieldequals{namehash}{\bbx@lasthash}\AND - \NOT\iffirstonpage} + \ifboolexpr{ + test \ifuseeditor + and + not test {\ifnameundef{editor}} + } + {\usebibmacro{bbx:dashcheck} {\bibnamedash} - {\printnames{editor}\addspace% <- ORIGINAL: \addcomma\space - \savefield{namehash}{\bbx@lasthash}}% + {\printnames{editor}% + \setunit{\addspace}% <- ORIGINAL: \addcomma\space + \usebibmacro{bbx:savehash}}% \usebibmacro{editorstrg}% \clearname{editor}} {\global\undef\bbx@lasthash}} @@ -117,7 +135,7 @@ \NOT\iffirstonpage} {\bibnamedash} {\printnames[upshape]{editor}\addspace - \savefield{namehash}{\bbx@lasthash}}% + \usebibmacro{bbx:savehash}}% \usebibmacro{editorstrg}% \clearname{editor}} {\global\undef\bbx@lasthash}} @@ -196,41 +214,20 @@ %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% \DeclareFieldFormat{shorthandwidth}{#1} -\renewcommand*{\thebibitem}{\item} -\renewcommand*{\thelositem}{\item} -\setlength{\bibitemsep}{0pt} - -\renewenvironment*{thebibliography} - {\list - {} - {\setlength{\leftmargin}{\bibhang}% - \setlength{\itemindent}{-\leftmargin}% - \setlength{\itemsep}{\bibitemsep}% - \setlength{\parsep}{\bibparsep}}} - {\endlist} - -\renewenvironment*{theshorthands} - {\list - {\printfield[shorthandwidth]{shorthand}} - {\setlength{\labelwidth}{\shorthandwidth}% - \setlength{\leftmargin}{\labelwidth}% - \setlength{\labelsep}{\biblabelsep}% - \addtolength{\leftmargin}{\labelsep}% - \setlength{\itemsep}{\bibitemsep}% - \setlength{\parsep}{\bibparsep}% - \renewcommand*{\makelabel}[1]{##1\hss}}} - {\endlist} \InitializeBibliographyStyle{% \global\undef\bbx@lasthash} \renewbibmacro*{author}{% - \ifthenelse{\ifuseauthor\AND\NOT\ifnameundef{author}} - {\ifthenelse{\iffieldequals{namehash}{\bbx@lasthash}\AND - \NOT\iffirstonpage} + \ifboolexpr{ + test \ifuseauthor + and + not test {\ifnameundef{author}} + } + {\usebibmacro{bbx:dashcheck} {\bibnamedash} {\printnames{author}% - \savefield{namehash}{\bbx@lasthash}}} + \usebibmacro{bbx:savehash}}}% {\global\undef\bbx@lasthash}} \newbibmacro*{maintitle+title}{% @@ -323,6 +320,10 @@ %%%%% Bibliography Driver %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% +\DeclareBibliographyAlias{reference}{collection} +\DeclareBibliographyAlias{inreference}{incollection} +\DeclareBibliographyAlias{review}{article} + \DeclareBibliographyDriver{shorthands}{% \usedriver {\DeclareNameAlias{sortname}{default}} |