summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-12-08 17:15:13 +0000
committerKarl Berry <karl@freefriends.org>2012-12-08 17:15:13 +0000
commitac0067a9ffc6534a03b8c126727dbe09ba71d405 (patch)
tree2288c9a6587792001c8c935ea889937c27bb313a /Master/texmf-dist/tex
parent130457728f6f5634765b617b640ee5c793c9ae6f (diff)
biblatex-ieee (5dec12)
git-svn-id: svn://tug.org/texlive/trunk@28468 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-ieee/ieee-alphabetic.bbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-ieee/ieee-alphabetic.cbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-ieee/ieee.bbx7
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-ieee/ieee.cbx83
4 files changed, 89 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-ieee/ieee-alphabetic.bbx b/Master/texmf-dist/tex/latex/biblatex-ieee/ieee-alphabetic.bbx
index 1d2d1fc2752..0a33df2122d 100644
--- a/Master/texmf-dist/tex/latex/biblatex-ieee/ieee-alphabetic.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-ieee/ieee-alphabetic.bbx
@@ -8,7 +8,7 @@
%% ---------------------------------------------------------------
%%
-\ProvidesFile{ieee-alphabetic.bbx}[2012/10/12 v1.1d biblatex bibliography style]
+\ProvidesFile{ieee-alphabetic.bbx}[2012/12/04 v1.1e biblatex bibliography style]
\RequireBibliographyStyle{ieee}
diff --git a/Master/texmf-dist/tex/latex/biblatex-ieee/ieee-alphabetic.cbx b/Master/texmf-dist/tex/latex/biblatex-ieee/ieee-alphabetic.cbx
index 401cb7264d8..19a6b36c05a 100644
--- a/Master/texmf-dist/tex/latex/biblatex-ieee/ieee-alphabetic.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-ieee/ieee-alphabetic.cbx
@@ -8,7 +8,7 @@
%% ---------------------------------------------------------------
%%
-\ProvidesFile{ieee-alphabetic.cbx}[2012/10/12 v1.1d biblatex citation style]
+\ProvidesFile{ieee-alphabetic.cbx}[2012/12/04 v1.1e biblatex citation style]
\RequireCitationStyle{alphabetic}
diff --git a/Master/texmf-dist/tex/latex/biblatex-ieee/ieee.bbx b/Master/texmf-dist/tex/latex/biblatex-ieee/ieee.bbx
index 8abafe14943..79eb8196824 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}[2012/10/12 v1.1d biblatex bibliography style]
+\ProvidesFile{ieee.bbx}[2012/12/04 v1.1e biblatex bibliography style]
% Load the standard style to avoid copy-pasting unnecessary material
\RequireBibliographyStyle{numeric-comp}
@@ -20,7 +20,7 @@
minnames = 3,
sorting = none
}
-\DeclareQuotePunctuation{.,}
+\uspunctuation
% Custom field formats
\DeclareFieldFormat[patent]{number}{\mkonepagegrouped{#1}}
@@ -32,6 +32,9 @@
\DeclareFieldFormat[report]{title}{\mkbibquote{#1\isdot}}
\DeclareFieldFormat{url}{\bibstring{url}\addcolon\space\url{#1}}
+% Brackets around labels in the bibliography
+\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}
+
% Simple modifications to punctuation, etc.
\renewcommand*\bibnamedash{\textemdash\textemdash}
\renewcommand*\intitlepunct{\addspace}
diff --git a/Master/texmf-dist/tex/latex/biblatex-ieee/ieee.cbx b/Master/texmf-dist/tex/latex/biblatex-ieee/ieee.cbx
index 497c7427a15..55134d78afc 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}[2012/10/12 v1.1d biblatex citation style]
+\ProvidesFile{ieee.cbx}[2012/12/04 v1.1e biblatex citation style]
\RequireCitationStyle{numeric-comp}
@@ -18,6 +18,87 @@
sorting = none
}
+% Putting brackets around each citation number is a two-part
+% operation. First, remove them from around the whole citation by
+% redeclaring here.
+\DeclareCiteCommand{\cite}%
+ {\usebibmacro{cite:init}%
+ \usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}%
+ \usebibmacro{postnote}}
+
+% The second part if more awkward. To add brackets, we cannot use labelnumber
+% as the biblatex kernel does not do a great job on the difference between it
+% and labelnumberwidth! So instead we tackle the issue here, but that means
+% a bit of copy-paste work.
+\renewbibmacro*{cite:comp:comp}{%
+ \ifboolexpr{
+ ( test {\iffieldundef{prefixnumber}} and test {\ifundef\cbx@lastprefix} )
+ or
+ test {\iffieldequals{prefixnumber}{\cbx@lastprefix}}
+ }
+ {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}}
+ {\savefield{entrykey}{\cbx@lastkey}%
+ \savefield{labelnumber}{\cbx@lastnumber}%
+ \addtocounter{cbx@tempcnta}{1}}
+ {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}-1}
+ {}
+ {\usebibmacro{cite:dump}%
+ \ifnumgreater{\value{cbx@tempcntb}}{-1}
+ {\multicitedelim}
+ {}%
+ \printtext[bibhyperref]{%
+ \printfield{prefixnumber}%
+ \printfield[brackets]{labelnumber}}}}}
+ {\usebibmacro{cite:comp:end}}%
+ \setcounter{cbx@tempcntb}{\thefield{labelnumber}}%
+ \savefield{prefixnumber}{\cbx@lastprefix}}
+
+\renewbibmacro*{cite:comp:end}{%
+ \usebibmacro{cite:dump}%
+ \ifnumgreater{\value{cbx@tempcntb}}{-1}
+ {\multicitedelim}
+ {}%
+ \printtext[bibhyperref]{%
+ \printfield{prefixnumber}%
+ \printfield[brackets]{labelnumber}}}
+
+\renewbibmacro*{cite:comp:inset}{%
+ \usebibmacro{cite:dump}%
+ \ifnumgreater{\value{cbx@tempcntb}}{-1}
+ {\multicitedelim}
+ {}%
+ \printtext[bibhyperref]{%
+ \printfield{prefixnumber}%
+ \printfield[brackets]{labelnumber}%
+ \printfield{entrysetcount}}%
+ \setcounter{cbx@tempcntb}{-1}}
+
+\renewbibmacro*{cite:comp:shand}{%
+ \usebibmacro{cite:dump}%
+ \ifnumgreater{\value{cbx@tempcntb}}{-1}
+ {\multicitedelim}
+ {}%
+ \printtext[bibhyperref]{\printfield{shorthand}}%
+ \setcounter{cbx@tempcntb}{-1}}
+
+\renewbibmacro*{cite:dump}{%
+ \ifnumgreater{\value{cbx@tempcnta}}{0}
+ {\ifnumgreater{\value{cbx@tempcnta}}{1}
+ {\bibrangedash}
+ {\multicitedelim}%
+ \bibhyperref[\cbx@lastkey]{%
+ \ifdef\cbx@lastprefix
+ {\printtext[prefixnumber]{\cbx@lastprefix}}
+ {}%
+ \printtext[brackets]{\cbx@lastnumber}}}
+ {}%
+ \setcounter{cbx@tempcnta}{0}%
+ \global\undef\cbx@lastprefix}
+
%%
%% Copyright (C) 2011,2012 by
%% Joseph Wright <joseph.wright@morningstar2.co.uk>