diff options
author | Karl Berry <karl@freefriends.org> | 2016-10-08 23:35:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-10-08 23:35:44 +0000 |
commit | 251de2b9d157c836ea7ac00129814c1f57e32cf1 (patch) | |
tree | 35fd9cb9b627f1887d83dbd3cb0669b777a1dd40 /Master/texmf-dist/tex/latex/biblatex-lni | |
parent | 0e25a365d04f0f281f06e0b65397b61142501b12 (diff) |
biblatex-lni (8oct16)
git-svn-id: svn://tug.org/texlive/trunk@42236 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-lni')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-lni/LNI-english.lbx | 21 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-lni/LNI-ngerman.lbx | 22 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-lni/LNI.bbx | 286 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-lni/LNI.cbx | 18 |
4 files changed, 347 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-lni/LNI-english.lbx b/Master/texmf-dist/tex/latex/biblatex-lni/LNI-english.lbx new file mode 100644 index 00000000000..a13ec9e5951 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-lni/LNI-english.lbx @@ -0,0 +1,21 @@ +% LNI --% +% +% Copyright (c) 2016 Lukas C. Bossert +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +\ProvidesFile{LNI-english.lbx} +[\LNI@lbxid] +\InheritBibliographyExtras{english} + + +\DeclareBibliographyStrings{% + inherit = {english}, + in = {{In}{In}} +} +\endinput
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/biblatex-lni/LNI-ngerman.lbx b/Master/texmf-dist/tex/latex/biblatex-lni/LNI-ngerman.lbx new file mode 100644 index 00000000000..c73e3391cfb --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-lni/LNI-ngerman.lbx @@ -0,0 +1,22 @@ +% LNI --% +% +% Copyright (c) 2016 Lukas C. Bossert +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. + +\ProvidesFile{LNI-ngerman.lbx} +[\LNI@lbxid] + +\InheritBibliographyExtras{ngerman} + +\DeclareBibliographyStrings{% + inherit = {ngerman}, + urlseen = {{Stand}{Stand}} +} +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-lni/LNI.bbx b/Master/texmf-dist/tex/latex/biblatex-lni/LNI.bbx new file mode 100644 index 00000000000..c68ac5844ee --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-lni/LNI.bbx @@ -0,0 +1,286 @@ +\def\LNI@date{2016-10-07} +\def\LNI@version{0.1} +\def\LNI@bbxid{\LNI@date\space v\LNI@version\space biblatex-LNI bibliography style (LCB/GD)} +\def\LNI@cbxid{\LNI@date\space v\LNI@version\space biblatex-LNI citation style (LCB/GD)} +\def\LNI@lbxid{\LNI@date\space v\LNI@version\space biblatex-LNI localization (LCB/GD)} + +\ProvidesFile{LNI.bbx}[\LNI@bbxid] +\RequireBibliographyStyle{alphabetic} +\AtBeginDocument{% + \urlstyle{sf}% + \typeout{* * * LNI * * *} + + %Thin spaces between initials + %http://tex.stackexchange.com/a/11083/9075 + \renewrobustcmd*{\bibinitdelim}{\,} + + %Keep first and last name together in the bibliography + %http://tex.stackexchange.com/a/196192/9075 + \renewcommand*\bibnamedelimc{\addnbspace} + \renewcommand*\bibnamedelimd{\addnbspace} + + %Do not put "vd" in the label, but put it at "\citeauthor" + %Source: http://tex.stackexchange.com/a/30277/9075 + \makeatletter + \AtBeginDocument{\toggletrue{blx@useprefix}} + \AtBeginBibliography{\togglefalse{blx@useprefix}} +} + +\def\LNIversion{\LNI@version} +\def\LNIdate{\LNI@date} +\ExecuteBibliographyOptions{% + bibencoding = utf8, + sortcites = true, + giveninits = true, + useprefix = false, + maxbibnames = 99, + maxcitenames = 3, + eprint = true, + url = true, + doi = false, + isbn = true, + backref = false +} +\DeclareRedundantLanguages{ngerman}{german,ngerman,austrian,naustrian} +\DeclareRedundantLanguages{english,american}{english,american,british,% + canadian,australian,newzealand,USenglish,UKenglish} +\DeclareLanguageMapping{ngerman}{LNI-ngerman} +\DeclareLanguageMapping{english}{LNI-english} + +\DeclareNameAlias{sortname}{family-given} +\DeclareNameAlias{author}{sortname} +\DeclareNameAlias{editor}{sortname} +\DeclareNameAlias{byeditor}{sortname} +\DeclareNameAlias{translator}{sortname} + +\DeclareDelimFormat[bib]{nametitledelim}{\nametitledelim} + +\renewcommand*{\nametitledelim}{\addcolon\addspace} +\renewcommand*{\newunitpunct}{\addcomma\space} +\renewcommand{\multinamedelim}{\addsemicolon\space} +\renewcommand{\finalnamedelim}{\multinamedelim} +\newcommand*{\volnumdelim}{\addslash} +\newcommand*{\aftertitledelim}{\addperiod\addspace} + +\newbibmacro*{publisher+location}{% + \printlist{publisher}% + \newunit% + \printlist{location}% + \newunit} + +\newbibmacro*{author+others/translator+others}{% + \ifboolexpr{ + test \ifuseauthor + and + not test {\ifnameundef{author}} + } + {\usebibmacro{author+others}} + {\usebibmacro{translator+others}}} + +\renewbibmacro*{event+venue+date}{% + \printfield{eventtitle}% + \newunit + \printfield{eventtitleaddon}% + \ifboolexpr{ + test {\iffieldundef{venue}} + and + test {\iffieldundef{eventyear}} + } + {} + {\setunit*{\addspace}% + \printfield{venue}% + \setunit*{\space}% + \printeventdate}% + \newunit} + +\newbibmacro*{in+editor+maintitle/booktitle}{% + \printtext{\bibstring{in}}% + \setunit{\addspace}% + \printtext[parens]{\usebibmacro{editor+others}}% + \setunit{\nametitledelim}\newblock + \usebibmacro{maintitle+booktitle}} + +\DeclareLabelalphaTemplate{ + \labelelement{ + \field[final]{shorthand} + \field{label} + \field[strwidth=2,strside=left,noalphaothers=true,ifnames=1]{labelname} + \field[strwidth=1,strside=left]{labelname} + } + \labelelement{ + \field[strwidth=2,strside=right]{year} + } +} + + +\DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \ifnameundef{author} + {\usebibmacro{editor}} + {\usebibmacro{author}}% + \setunit{\nametitledelim}\newblock% + \usebibmacro{title}% + \setunit{\aftertitledelim}% + \usebibmacro{publisher+location}% + \printfield{year}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{inproceedings}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\nametitledelim}\newblock + \usebibmacro{title}% + \setunit{\aftertitledelim}% + \usebibmacro{in+editor+maintitle/booktitle}% + \newunit% + \usebibmacro{event+venue+date}% + \setunit{\aftertitledelim}\newblock + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit + \printfield{volumes}% + \setunit{\addperiod\space}\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \printlist{organization}% + \newunit + \usebibmacro{publisher+location}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit% + \usebibmacro{date}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{inbook}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\nametitledelim}\newblock + \usebibmacro{title}% + \setunit{\aftertitledelim}% + \usebibmacro{in+editor+maintitle/booktitle}% + \setunit{\aftertitledelim}\newblock + \printfield{edition}% + \newunit + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{publisher+location}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \usebibmacro{date}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{article}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\nametitledelim}\newblock + \usebibmacro{title}% + \setunit{\aftertitledelim}%\newblock + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{bytranslator+others}% + \newunit\newblock + \printfield{version}% + \newunit\newblock + \usebibmacro{journal}% + \setunit*{\addspace}% + \iffieldundef{series} + {} + {\newunit + \printfield{series}% + \setunit{\addspace}}% + \printfield{volume}% + \printtext{\volnumdelim}% + \printfield{number}% + \setunit{\addspace}% + \usebibmacro{issue}% + \newunit + \usebibmacro{byeditor+others}% + \newunit + \usebibmacro{note+pages}% +\newunit + \usebibmacro{date}% + \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 + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + + +% Remove all emphasis and enquoting +\DeclareFieldFormat*{booktitle}{#1} +\DeclareFieldFormat*{journaltitle}{#1} +\DeclareFieldFormat*{title}{#1} +\DeclareFieldFormat{urldate}{\addcomma\addspace \bibstring{urlseen}\addcolon\addspace#1} +\endinput +%% End of file `LNI.bbx'. diff --git a/Master/texmf-dist/tex/latex/biblatex-lni/LNI.cbx b/Master/texmf-dist/tex/latex/biblatex-lni/LNI.cbx new file mode 100644 index 00000000000..cbf199efdb0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-lni/LNI.cbx @@ -0,0 +1,18 @@ +\ProvidesFile{LNI.cbx}[\LNI@cbxid] + \RequireCitationStyle{alphabetic} + +%enable hyperlinked author names when using \citeauthor +%source: http://tex.stackexchange.com/a/75916/9075 +\DeclareCiteCommand{\citeauthor} + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}} + {\ifciteindex + {\indexnames{labelname}} + {}% + \printtext[bibhyperref]{\printnames{labelname}}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\endinput +%% End of file `LNI.cbx'.
\ No newline at end of file |