summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-publist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-11-30 21:48:16 +0000
committerKarl Berry <karl@freefriends.org>2018-11-30 21:48:16 +0000
commit10b8702e8b19735324a53494aa3f9312147bf1e7 (patch)
tree1676d43265fa176b87292627ab0feb8e4c77a5eb /Master/texmf-dist/tex/latex/biblatex-publist
parent6cb6bb4e14d1047d4c14719b41b3bdb09aafdaf1 (diff)
biblatex-publist (30nov18)
git-svn-id: svn://tug.org/texlive/trunk@49283 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-publist')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx130
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx4
2 files changed, 128 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx b/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx
index d86d8f5c3a5..4b61d0bfaa1 100644
--- a/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx
@@ -25,8 +25,8 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\def\bpl@version{1.12}
-\def\bpl@rdate{2018/11/25}
+\def\bpl@version{1.13}
+\def\bpl@rdate{2018/11/30}
\ProvidesFile{publist.bbx}[\bpl@rdate\space v.\bpl@version\space
biblatex bibliography style (JSP)]
@@ -137,9 +137,15 @@
pagetracker=true,
labelnumber,
useprefix=false,
- sorting=ydnt,
defernumbers=true}
+% Default sorting depends on plauthorhandling
+\if@hlauthor%
+ \ExecuteBibliographyOptions{sorting=ydnt}
+\else
+ \ExecuteBibliographyOptions{sorting=ydt}
+\fi
+
% Execute these options only with the standard base style
\ifbpl@standardbasestyle
\ExecuteBibliographyOptions{%
@@ -927,12 +933,128 @@
}
}
+% Sorting schemes without name
+
+% Sorting year (descending), title
+\DeclareSortingTemplate{ydt}{
+ \sort{
+ \field{presort}
+ }
+ \sort[final]{
+ \field{sortkey}
+ }
+ \sort[direction=descending]{
+ \field[strside=left,strwidth=4]{sortyear}
+ \field[strside=left,strwidth=4]{year}
+ \literal{9999}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+}
+
+% Consider the whole date (year-month-day)
+% Sorting date (descending), title
+\DeclareSortingTemplate{ddt}{
+ \sort{
+ \field{presort}
+ }
+ \sort[final]{
+ \field{sortkey}
+ }
+ \sort[direction=descending]{
+ \field[strside=left,strwidth=4]{sortyear}
+ \field[strside=left,strwidth=4]{year}
+ \literal{9999}
+ }
+ \sort[direction=descending]{
+ \field[padside=left,padwidth=2,padchar=0]{month}
+ \literal{00}
+ }
+ \sort[direction=descending]{
+ \field[padside=left,padwidth=2,padchar=0]{day}
+ \literal{00}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+}
+
+% Sorting year (descending), month, day, title
+\DeclareSortingTemplate{ydmdt}{
+ \sort{
+ \field{presort}
+ }
+ \sort[final]{
+ \field{sortkey}
+ }
+ \sort[direction=descending]{
+ \field[strside=left,strwidth=4]{sortyear}
+ \field[strside=left,strwidth=4]{year}
+ \literal{9999}
+ }
+ \sort{
+ \field[padside=left,padwidth=2,padchar=0]{month}
+ \literal{00}
+ }
+ \sort{
+ \field[padside=left,padwidth=2,padchar=0]{day}
+ \literal{00}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+}
+
+% Sorting date (ascending), title
+\DeclareSortingTemplate{dt}{
+ \sort{
+ \field{presort}
+ }
+ \sort[final]{
+ \field{sortkey}
+ }
+ \sort{
+ \field[strside=left,strwidth=4]{sortyear}
+ \field[strside=left,strwidth=4]{year}
+ \literal{9999}
+ }
+ \sort{
+ \field[padside=left,padwidth=2,padchar=0]{month}
+ \literal{00}
+ }
+ \sort{
+ \field[padside=left,padwidth=2,padchar=0]{day}
+ \literal{00}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+}
+
+
%
% Mappings (biber)
%
-% Correctly sort pubstates.
+% Add a dummy constant shortauthor in order to
+% ignore author constellation on extralabel assignment.
+\if@hlauthor
+\else
+\DeclareSourcemap{
+ \maps[datatype=bibtex]{
+ \map[overwrite]{
+ \step[fieldset=shortauthor, fieldvalue={1111}]
+ }
+ }
+}
+\fi
+% Correctly sort pubstates.
\DeclareStyleSourcemap{
\maps[datatype=bibtex]{
\map{
diff --git a/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx b/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx
index 4ee28fe014a..a2a20dcfa26 100644
--- a/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx
@@ -26,8 +26,8 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\def\bpl@version{1.12}
-\def\bpl@rdate{2018/11/25}
+\def\bpl@version{1.13}
+\def\bpl@rdate{2018/11/30}
\ProvidesFile{publist.cbx}[\bpl@rdate\space v.\bpl@version\space
biblatex citation style (JSP)]