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 | |
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')
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-trad/README.txt | 15 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-trad/biblatex-trad.pdf | bin | 0 -> 364386 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-trad/biblatex-trad.tex | 139 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-trad/trad-abbrv.bbx | 68 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-trad/trad-abbrv.cbx | 10 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-trad/trad-alpha.bbx | 57 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-trad/trad-alpha.cbx | 12 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-trad/trad-plain.bbx | 62 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-trad/trad-plain.cbx | 10 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-trad/trad-standard.bbx | 264 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-trad/trad-standard.cbx | 8 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-trad/trad-unsrt.bbx | 62 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-trad/trad-unsrt.cbx | 10 |
13 files changed, 717 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-trad/README.txt b/Master/texmf-dist/doc/latex/biblatex-trad/README.txt new file mode 100644 index 00000000000..2ac1afc48b4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-trad/README.txt @@ -0,0 +1,15 @@ +================================================================ +Implementation of the tradition bibliography styles into +biblatex. + +================================================================ +The current development is available at github: +https://github.com/marcodaniel/mdframed + +================================================================ +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. + diff --git a/Master/texmf-dist/doc/latex/biblatex-trad/biblatex-trad.pdf b/Master/texmf-dist/doc/latex/biblatex-trad/biblatex-trad.pdf Binary files differnew file mode 100644 index 00000000000..eb54bd7ff73 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-trad/biblatex-trad.pdf diff --git a/Master/texmf-dist/doc/latex/biblatex-trad/biblatex-trad.tex b/Master/texmf-dist/doc/latex/biblatex-trad/biblatex-trad.tex new file mode 100644 index 00000000000..0b372a6e904 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-trad/biblatex-trad.tex @@ -0,0 +1,139 @@ +% TEX root = path/to/root_file.tex +% !TEX program = arara +% !TEX encoding = utf8 +% !TEX spellcheck = en_GB +% arara: pdflatex: {synctex: true} +%: Start Header +\documentclass{ltxdockit}[2011/03/25] +\usepackage{btxdockit} +\usepackage[utf8]{inputenc} +\usepackage[american]{babel} +\usepackage[strict]{csquotes} +\usepackage{shortvrb} +\usepackage{pifont} +\usepackage{libertine} +\usepackage[scaled=0.8]{beramono} +\usepackage{microtype} +\lstset{basicstyle=\ttfamily,keepspaces=true} +\KOMAoptions{numbers=noenddot} +\addtokomafont{paragraph}{\spotcolor} +\addtokomafont{section}{\spotcolor} +\addtokomafont{subsection}{\spotcolor} +\addtokomafont{subsubsection}{\spotcolor} +\addtokomafont{descriptionlabel}{\spotcolor} +\pretocmd{\cmd}{\sloppy}{}{} +\pretocmd{\bibfield}{\sloppy}{}{} +\pretocmd{\bibtype}{\sloppy}{}{} + + +\MakeAutoQuote*{<}{>} +\MakeShortVerb{\|} + + +\newcommand*{\biber}{Biber\xspace} +\titlepage{% + title={The \sty{biblatex-trad} Package}, + subtitle={Traditional bibliography styles for \sty{biblatex}}, + url={}, + author={Marco Daniel}, + email={marco.daniel@mada-nada.de}, + revision={0.1}, + date={9. Sep 2012}} + +\hypersetup{% + pdftitle={The biblatex-trad Package}, + pdfsubject={Traditional bibliography styles for biblatex}, + pdfauthor={Marco Daniel}, + pdfkeywords={tex, latex, bibtex, bibliography, references, citation}} + + +\newrobustcmd*{\Deprecated}{% + \textcolor{spot}{\margnotefont Deprecated}} +\newrobustcmd*{\DeprecatedMark}{% + \leavevmode\marginpar{\Deprecated}} +\newrobustcmd*{\BiberOnly}{% + \textcolor{spot}{\margnotefont Biber only}} +\newrobustcmd*{\BiberOnlyMark}{% + \leavevmode\marginpar{\BiberOnly}} +\newrobustcmd*{\BibTeXOnly}{% + \textcolor{spot}{\margnotefont BibTeX only}} +\newrobustcmd*{\BibTeXOnlyMark}{% + \leavevmode\marginpar{\BibTeXOnly}} + +\hyphenation{% + star-red + bib-lio-gra-phy + white-space +} + +\begin{document} + +\printtitlepage +\tableofcontents + + +\section{Introduction}\label{sec:int} + +The package \sty{biblatex-trad} is a contribution to the great package \sty{biblatex}. + +It provides the implementation of the traditional bibliography styles (\sty{plain}, +\sty{unsrt}, \sty{alpha} and \sty{abbrv}) as a style for \sty{biblatex}. + +\subsection{Motivation}\label{subsec:int:mot} + +The package is motivated by a question at \tex-\latex Stack Exchange \glqq \href{http://tex.stackexchange.com/}{How to emulate the traditional BibTeX styles (plain, abbrv, unsrt, alpha) as closely as possible with biblatex?} + +\subsection{Requirements} + +The usage of the styles requires \sty{biblatex} 2.0 or newer. + +\subsection{License} + +Copyright \textcopyright\ 2006--2012 Marco Daniel. Permission is granted to copy, distribute and\slash or modify this software under the terms of the \lppl, version 1.3.\fnurl{http://www.ctan.org/tex-archive/macros/latex/base/lppl.txt}. + + +\subsection{Feedback}\label{subsec:int:feb} + +Please use the \sty{biblatex-trad} project page on GitHub to report bugs and submit feature requests.\fnurl{https://github.com/marcodaniel/trad-biblatex} + +If you do not want to report a bug or request a feature but are simply in need of assistance, you might want to consider posting your question on the \texttt{comp.text.tex} newsgroup or \tex-\latex Stack Exchange.\fnurl{http://tex.stackexchange.com/questions/tagged/biblatex} + +\section{Usage} + +\sty{biblatex-trad} isn't a standalone package. As described in \secref{sec:int} it's +a small collection of styles. So you can load the styles as follows: + +\begin{lstlisting}[style=latex]{} +\usepackage[style=XXX]{biblatex} +\end{lstlisting} +The available styles are listet below. +\begin{marglist} + +\item[trad-plain] Implementation of the standard style \sty{plain} +\item[trad-unsrt] Implementation of the standard style \sty{unsrt} +\item[trad-alpha] \BiberOnlyMark Implementation of the standard style \sty{alpha} +\item[trad-abbrv] Implementation of the standard style \sty{abbrv} + +\end{marglist} + +After loading the style you can use all options provided by the package \sty{biblatex}. + +\section{Limitation} + +Up to know the entry types \bibtype{BOOK}, \bibtype{ARTICLE} and \bibtype{INCOLLECTION} are +setup. + +\section{Revision History} +\label{apx:log} + +\begin{changelog} + +\begin{release}{0.1}{2012-09-09} +\item First upload +\end{release} + +\end{changelog} +\end{document} + +\endinput + 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 |