summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-ieee
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-05-09 21:37:42 +0000
committerKarl Berry <karl@freefriends.org>2011-05-09 21:37:42 +0000
commit29d02c7946dd4aa52ef75975ea03a05017092075 (patch)
tree286baeb1a5a025302e0639f32f380d4b8bfe5837 /Master/texmf-dist/tex/latex/biblatex-ieee
parent999c65abbebaa30f36beb4f9ac812542458574b2 (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')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-ieee/ieee.bbx29
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-ieee/ieee.cbx2
2 files changed, 29 insertions, 2 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}
{}
diff --git a/Master/texmf-dist/tex/latex/biblatex-ieee/ieee.cbx b/Master/texmf-dist/tex/latex/biblatex-ieee/ieee.cbx
index 35e0a7ea9dd..b5c5a15c33e 100644
--- a/Master/texmf-dist/tex/latex/biblatex-ieee/ieee.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-ieee/ieee.cbx
@@ -8,7 +8,7 @@
%% ---------------------------------------------------------------
%%
-\ProvidesFile{ieee.cbx}[2011/04/07 v1.0a biblatex citation style]
+\ProvidesFile{ieee.cbx}[2011/05/09 v1.0b biblatex citation style]
\RequireCitationStyle{numeric-comp}