diff options
author | Karl Berry <karl@freefriends.org> | 2011-05-09 21:37:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-05-09 21:37:42 +0000 |
commit | 29d02c7946dd4aa52ef75975ea03a05017092075 (patch) | |
tree | 286baeb1a5a025302e0639f32f380d4b8bfe5837 /Master/texmf-dist/tex/latex/biblatex-ieee/ieee.bbx | |
parent | 999c65abbebaa30f36beb4f9ac812542458574b2 (diff) |
biblatex-ieee 1.0b (9may11)
git-svn-id: svn://tug.org/texlive/trunk@22384 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-ieee/ieee.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-ieee/ieee.bbx | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-ieee/ieee.bbx b/Master/texmf-dist/tex/latex/biblatex-ieee/ieee.bbx index e834dc61f96..4e6f3e6bd20 100644 --- a/Master/texmf-dist/tex/latex/biblatex-ieee/ieee.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-ieee/ieee.bbx @@ -8,7 +8,7 @@ %% --------------------------------------------------------------- %% -\ProvidesFile{ieee.bbx}[2011/04/07 v1.0a biblatex bibliography style] +\ProvidesFile{ieee.bbx}[2011/05/09 v1.0b biblatex bibliography style] % Load the standard style to avoid copy-pasting unnecessary material \RequireBibliographyStyle{numeric-comp} @@ -28,6 +28,7 @@ \DeclareFieldFormat{url}{\bibstring{url}\addcolon\space\url{#1}} % Simple modifications to punctuation, etc. +\renewcommand*\bibnamedash{\textemdash} \renewcommand*\intitlepunct{\addspace} \renewcommand*\newunitpunct{\addcomma\addspace} @@ -53,7 +54,33 @@ september = Sep\adddot , } +% Support for dashed author name replacement +\InitializeBibliographyStyle{\global\undef\bbx@lasthash} + +\newbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}} + % Bibliography macros +\newbibmacro*{author}{% + \ifboolexpr{ + test \ifuseauthor + and + not test {\ifnameundef{author}} + } + {% + \iffieldequals{fullhash}{\bbx@lasthash} + {\bibnamedash\addcomma\space} + {\printnames{author}}% + \usebibmacro{bbx:savehash}% + \iffieldundef{authortype} + {} + {% + \setunit{\addcomma\space}% + \usebibmacro{authorstrg}% + }% + } + {\global\undef\bbx@lasthash}% +} + \renewbibmacro*{bybookauthor}{% \ifnamesequal{author}{bookauthor} {} |