diff options
author | Karl Berry <karl@freefriends.org> | 2012-09-09 22:52:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-09-09 22:52:43 +0000 |
commit | 1163c621e5c54d761a2d340fdd258e3a90038233 (patch) | |
tree | 3da5762defbc0a64b6312afbd9c8f6284441a83a /Master/texmf-dist/tex/latex/biblatex-trad | |
parent | 7796e9dcc40d30a60f61601a41f852aed47696ff (diff) |
biblatex-trad (9sep12)
git-svn-id: svn://tug.org/texlive/trunk@27629 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-trad')
10 files changed, 563 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-trad/trad-abbrv.bbx b/Master/texmf-dist/tex/latex/biblatex-trad/trad-abbrv.bbx new file mode 100644 index 00000000000..7868341bda2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-trad/trad-abbrv.bbx @@ -0,0 +1,68 @@ +%% Copyright (c) 2012 Marco Daniel +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. +\ProvidesFile{trad-abbrv.bbx}[2012/09/09] + +\RequireBibliographyStyle{trad-standard} + +\ExecuteBibliographyOptions{% + maxnames = 99 , % set the maximum number of authors + sorting = nty , % sorting name - title - year + dateabbrev = true , % no short form of dates + abbreviate = true , + labelnumber= true , +} + +\DeclareNameFormat{abbrv}{% + \usebibmacro{name:first-last}{#1}{#4}{#6}{#8}% + \usebibmacro{name:andothers}} +\DeclareNameAlias{default}{abbrv} + + +\DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}} +\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}} +\DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} + +\defbibenvironment{bibliography} + {\list + {\printtext[labelnumberwidth]{% + \printfield{prefixnumber}% + \printfield{labelnumber}}} + {\setlength{\labelwidth}{\labelnumberwidth}% + \setlength{\leftmargin}{\labelwidth}% + \setlength{\labelsep}{\biblabelsep}% + \addtolength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}}% + \renewcommand*{\makelabel}[1]{\hss##1}} + {\endlist} + {\item} + +\defbibenvironment{shorthands} + {\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]{\hss##1}}} + {\endlist} + {\item} + +\DeclareBibliographyDriver{set}{% + \entryset + {\ifbool{bbx:subentry} + {\printfield[bibentrysetcount]{entrysetcount}% + \setunit*{\addnbspace}} + {}} + {}% + \newunit\newblock + \usebibmacro{setpageref}% + \finentry} + + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-trad/trad-abbrv.cbx b/Master/texmf-dist/tex/latex/biblatex-trad/trad-abbrv.cbx new file mode 100644 index 00000000000..d1c66e456a9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-trad/trad-abbrv.cbx @@ -0,0 +1,10 @@ +%% Copyright (c) 2012 Marco Daniel +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. +\ProvidesFile{trad-abbrv.cbx}[2012/09/09] + +\RequireCitationStyle{numeric} + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-trad/trad-alpha.bbx b/Master/texmf-dist/tex/latex/biblatex-trad/trad-alpha.bbx new file mode 100644 index 00000000000..0002d56dc3f --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-trad/trad-alpha.bbx @@ -0,0 +1,57 @@ +%% Copyright (c) 2012 Marco Daniel +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. +\ProvidesFile{trad-alpha.bbx}[2012/09/09] + +\RequireBibliographyStyle{trad-standard} + +\ExecuteBibliographyOptions{% + maxnames = 99 , % set the maximum number of authors + sorting = anyt , % sorting alphlabel-name-title year + dateabbrev = false , % no short form of dates + abbreviate = false , + labelalpha = true , + maxalphanames = 99, +} + + +\DeclareNameAlias{author}{default} +\DeclareNameAlias{editor}{default} +\DeclareNameAlias{translator}{default} + +\DeclareFieldFormat{labelalphawidth}{\mkbibbrackets{#1}} +\DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} + + +\defbibenvironment{bibliography} + {\list + {\printtext[labelalphawidth]{% + \printfield{prefixnumber}% + \printfield{labelalpha}% + \printfield{extraalpha}}} + {\setlength{\labelwidth}{\labelalphawidth}% + \setlength{\leftmargin}{\labelwidth}% + \setlength{\labelsep}{\biblabelsep}% + \addtolength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}}% + \renewcommand*{\makelabel}[1]{##1\hss}} + {\endlist} + {\item} + +\defbibenvironment{shorthands} + {\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} + {\item} + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-trad/trad-alpha.cbx b/Master/texmf-dist/tex/latex/biblatex-trad/trad-alpha.cbx new file mode 100644 index 00000000000..a97fc217f0f --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-trad/trad-alpha.cbx @@ -0,0 +1,12 @@ +%% Copyright (c) 2012 Marco Daniel +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. +\ProvidesFile{trad-alpha.cbx}[2012/09/09] + +\RequireCitationStyle{alphabetic} + +\endinput + + diff --git a/Master/texmf-dist/tex/latex/biblatex-trad/trad-plain.bbx b/Master/texmf-dist/tex/latex/biblatex-trad/trad-plain.bbx new file mode 100644 index 00000000000..332f2c77046 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-trad/trad-plain.bbx @@ -0,0 +1,62 @@ +%% Copyright (c) 2012 Marco Daniel +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. +\ProvidesFile{trad-plain.bbx}[2012/09/09] + +\RequireBibliographyStyle{trad-standard} + +\ExecuteBibliographyOptions{% + maxnames = 99 , % set the maximum number of authors + sorting = nty , % sorting name - title - year + dateabbrev = false , % no short form of dates + abbreviate = false , + labelnumber= true , +} + +\DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}} +\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}} +\DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} + +\defbibenvironment{bibliography} + {\list + {\printtext[labelnumberwidth]{% + \printfield{prefixnumber}% + \printfield{labelnumber}}} + {\setlength{\labelwidth}{\labelnumberwidth}% + \setlength{\leftmargin}{\labelwidth}% + \setlength{\labelsep}{\biblabelsep}% + \addtolength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}}% + \renewcommand*{\makelabel}[1]{\hss##1}} + {\endlist} + {\item} + +\defbibenvironment{shorthands} + {\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]{\hss##1}}} + {\endlist} + {\item} + +\DeclareBibliographyDriver{set}{% + \entryset + {\ifbool{bbx:subentry} + {\printfield[bibentrysetcount]{entrysetcount}% + \setunit*{\addnbspace}} + {}} + {}% + \newunit\newblock + \usebibmacro{setpageref}% + \finentry} + + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-trad/trad-plain.cbx b/Master/texmf-dist/tex/latex/biblatex-trad/trad-plain.cbx new file mode 100644 index 00000000000..83c8fbecc5f --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-trad/trad-plain.cbx @@ -0,0 +1,10 @@ +%% Copyright (c) 2012 Marco Daniel +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. +\ProvidesFile{trad-plain.cbx}[2012/09/09] + +\RequireCitationStyle{numeric} + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-trad/trad-standard.bbx b/Master/texmf-dist/tex/latex/biblatex-trad/trad-standard.bbx new file mode 100644 index 00000000000..b33e9d3f0ee --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-trad/trad-standard.bbx @@ -0,0 +1,264 @@ +%% Copyright (c) 2012 Marco Daniel +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. +\ProvidesFile{trad-standard.bbx}[2012/09/09] + +\RequireBibliographyStyle{standard} + +\providebool{bbx:subentry} + +\DeclareBibliographyOption{subentry}[true]{% + \setbool{bbx:subentry}{#1}} + +\DeclareNameAlias{author}{default} +\DeclareNameAlias{editor}{default} +\DeclareNameAlias{translator}{default} + +% new commmands and redefinitions +\newcommand*{\volumenumberdelim}{} % delim between number and volume +\renewcommand*{\intitlepunct}{\addspace} % after the bibstring in +\renewcommand*{\newunitpunct}{\addperiod\space} +\newcommand*{\newcommaunit}{\setunit{\addcomma\space}} +\renewcommand*{\labelnamepunct}{\addperiod\space} +\renewcommand*{\subtitlepunct}{\addperiod\space} + +% Field formating +\DeclareFieldFormat*{title}{#1} +\DeclareFieldFormat[book,inbook,manual,phdthesis,proceedings]% + {title}{\mkbibemph{#1}} + +\DeclareFieldFormat*{number}{\mkbibparens{#1}} +\DeclareFieldFormat[incollection]{number}{\biblclstring{number}~#1} + +\DeclareFieldFormat{edition}{% + \ifinteger{#1} + {\mkbibordedition{#1}~\bibstring{edition}} + {\MakeLowercase{#1}~\bibstring{edition}}} + +\DeclareFieldFormat{chapter}{\biblcstring{part}~#1} + +\DeclareFieldFormat[article]{pages}{{#1}} + +\DeclareFieldFormat[book]{series}{\mkbibemph{#1}} + +% Seting the bibliography drivers: +\DeclareBibliographyDriver{article}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{bytranslator+others}% + \newunit\newblock + \printfield{version}% + \newunit\newblock + \usebibmacro{journal+issuetitle}% + \newunit + \usebibmacro{byeditor+others}% + \newunit + \printfield{note}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{maintitle+title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \usebibmacro{book:series+number}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% + \usebibmacro{finentry}} + + +\DeclareBibliographyDriver{incollection}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \usebibmacro{byeditor+others}% + \newcommaunit\newblock + \usebibmacro{maintitle+booktitle}% + \newunit\newblock + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit + \printfield{volumes}% + \newcommaunit\newblock + \usebibmacro{series+number}% + \newcommaunit\newblock + \usebibmacro{chapter+pages}% + \setunit{\addperiod\space} + \usebibmacro{publisher+location+date}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \newunit\newblock + \printfield{note}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% + \usebibmacro{finentry}} + +\renewbibmacro*{journal+issuetitle}{% + \usebibmacro{journal}% + \setunit*{\addcomma\space}% + \iffieldundef{series} + {} + {\newunit + \printfield{series}% + \setunit{\addspace}}% + \usebibmacro{volume+number+pages+eid}% + \newcommaunit +% \setunit{\addspace}% + \usebibmacro{issue+date-parens}% + \setunit{\addcolon\space}% + \usebibmacro{issue}% + \newunit} + +\newbibmacro*{volume+number+pages+eid}{% + \printfield{volume}% + \setunit*{\volumenumberdelim}% + \printfield{number}% + \setunit{\addcolon} + \printfield{pages}% + \newcommaunit% + \printfield{eid}}% + + +\renewbibmacro*{byeditor+others}{% + \ifnameundef{editor} + {} + {% + \printnames[byeditor]{editor}% + \setunit{\addcomma\space}% + \usebibmacro{editorlstr}% + \clearname{editor}% + \newunit}% + \usebibmacro{byeditorx}% + \usebibmacro{bytranslator+others} +} + + +\newbibmacro*{editorlstr}{% +\printtext{% + \ifboolexpr{ + test {\ifnumgreater{\value{editor}}{1}} + or + test {\ifandothers{editor}} + }% + {\biblstring{editors}}% + {\biblstring{editor}}}% +} + +\renewbibmacro*{series+number}{% + \printfield{number}% + \setunit*{\addspace}% + \usebibmacro{in:}% + \printfield{series}% + \newunit} + +\newbibmacro*{book:series+number}{% + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \printfield{number}% + \setunit*{\addspace}% + \iffieldundef{series}{}% + {\space\bibstring{ofseries}\space\printfield{series}}% + \newunit +} + +\renewbibmacro*{volume+number+eid}{% + \printfield{volume}% + \setunit*{\volumenumberdelim}% + \printfield{number}% + \setunit{\addcomma\space}% + \printfield{eid}% +} + +\renewbibmacro*{publisher+location+date}{% + \printlist{publisher}% + \setunit*{\addcomma\space}% + \printlist{location}% + \setunit*{\addcomma\space}% + \newcommaunit + \printfield{edition}% + \newcommaunit + \usebibmacro{date}% + \newunit} + + + +\newbibmacro*{issue+date-parens}{% + \printtext{% + \iffieldundef{issue} + {\usebibmacro{date}} + {\printfield{issue}% + \setunit*{\addspace}% + \usebibmacro{date}}}% + \newunit} + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-trad/trad-standard.cbx b/Master/texmf-dist/tex/latex/biblatex-trad/trad-standard.cbx new file mode 100644 index 00000000000..ebaf41fadaa --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-trad/trad-standard.cbx @@ -0,0 +1,8 @@ +%% Copyright (c) 2012 Marco Daniel +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. +\ProvidesFile{trad-standard.cbx}[2012/09/09] + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-trad/trad-unsrt.bbx b/Master/texmf-dist/tex/latex/biblatex-trad/trad-unsrt.bbx new file mode 100644 index 00000000000..81a2ef70394 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-trad/trad-unsrt.bbx @@ -0,0 +1,62 @@ +%% Copyright (c) 2012 Marco Daniel +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. +\ProvidesFile{trad-unsrt.bbx}[2012/09/09] + +\RequireBibliographyStyle{trad-standard} + +\ExecuteBibliographyOptions{% + maxnames = 99 , % set the maximum number of authors + sorting = none , % sorting none + dateabbrev = false , % no short form of dates + abbreviate = false , + labelnumber= true , +} + +\DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}} +\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}} +\DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} + +\defbibenvironment{bibliography} + {\list + {\printtext[labelnumberwidth]{% + \printfield{prefixnumber}% + \printfield{labelnumber}}} + {\setlength{\labelwidth}{\labelnumberwidth}% + \setlength{\leftmargin}{\labelwidth}% + \setlength{\labelsep}{\biblabelsep}% + \addtolength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}}% + \renewcommand*{\makelabel}[1]{\hss##1}} + {\endlist} + {\item} + +\defbibenvironment{shorthands} + {\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]{\hss##1}}} + {\endlist} + {\item} + +\DeclareBibliographyDriver{set}{% + \entryset + {\ifbool{bbx:subentry} + {\printfield[bibentrysetcount]{entrysetcount}% + \setunit*{\addnbspace}} + {}} + {}% + \newunit\newblock + \usebibmacro{setpageref}% + \finentry} + + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-trad/trad-unsrt.cbx b/Master/texmf-dist/tex/latex/biblatex-trad/trad-unsrt.cbx new file mode 100644 index 00000000000..8bc900992a8 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-trad/trad-unsrt.cbx @@ -0,0 +1,10 @@ +%% Copyright (c) 2012 Marco Daniel +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. +\ProvidesFile{trad-unsrt.bbx}[2012/09/09] + +\RequireCitationStyle{numeric} + +\endinput |