summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-05-25 22:33:02 +0000
committerKarl Berry <karl@freefriends.org>2018-05-25 22:33:02 +0000
commit9aca642c8eb1b2492394e0b9c04209ba1805e321 (patch)
tree66780f71bfd9f38557646cd629eea94f81b8a08f /Master/texmf-dist/tex
parentcb61d6c63a3041cb8330026476b606ad5cc54508 (diff)
biblatex-socialscienceshuberlin (25may18)
git-svn-id: svn://tug.org/texlive/trunk@47839 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-socialscienceshuberlin/german-socialscienceshuberlin.lbx20
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-socialscienceshuberlin/socialscienceshuberlin.bbx123
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-socialscienceshuberlin/socialscienceshuberlin.cbx19
3 files changed, 162 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-socialscienceshuberlin/german-socialscienceshuberlin.lbx b/Master/texmf-dist/tex/latex/biblatex-socialscienceshuberlin/german-socialscienceshuberlin.lbx
new file mode 100644
index 00000000000..1649ea085c9
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-socialscienceshuberlin/german-socialscienceshuberlin.lbx
@@ -0,0 +1,20 @@
+% socialscience-huberlin --%
+% Copyright (c) 2018 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{german-socialscience-huberlin.lbx}%
+ [\sshu@lbxid]
+\InheritBibliographyExtras{ngerman}
+
+\DeclareBibliographyStrings{%
+ inherit = {ngerman},
+ editor = {{Hg\adddot}{Hg\adddot}},
+ editors = {{Hg\adddot}{Hg\adddot}},
+ }
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/biblatex-socialscienceshuberlin/socialscienceshuberlin.bbx b/Master/texmf-dist/tex/latex/biblatex-socialscienceshuberlin/socialscienceshuberlin.bbx
new file mode 100644
index 00000000000..2616292db89
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-socialscienceshuberlin/socialscienceshuberlin.bbx
@@ -0,0 +1,123 @@
+% socialsciences|huberlin --%
+% Copyright (c) 2018 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.
+\def\sshu@date{2018/05/24}
+\def\sshu@version{0.0.1}
+\def\sshu@bbxid{\sshu@date\space v\sshu@version\space biblatex-socialsciences|huberlin bibliography style (LCB)}
+\def\sshu@cbxid{\sshu@date\space v\sshu@version\space biblatex-socialsciences|huberlin citation style (LCB)}
+\def\sshu@lbxid{\sshu@date\space v\sshu@version\space biblatex-socialsciences|huberlin localization (LCB)}
+
+\ProvidesFile{socialscienceshuberlin.bbx}[\sshu@bbxid]
+\RequireBibliographyStyle{ext-authoryear}
+
+\AtBeginDocument{%
+ \urlstyle{same}%
+ \typeout{* * * socialsciences|huberlin * * *}
+}
+\def\socialscienceshuberlinversion{\sshu@version}
+\def\socialscienceshuberlindate{\sshu@date}
+
+\ExecuteBibliographyOptions{%
+ innamebeforetitle=true,
+ autocite=inline,
+ isbn=false,
+}
+%-----------------------
+\newtoggle{bbx:colornames}
+
+\DeclareBibliographyOption{colornames}[true]{%
+ \csuse{toggle#1}{bbx:colornames}}
+
+\DeclareFieldFormat{pages}{#1}
+\DeclareFieldFormat{postnote}{\mknormrange{#1}}
+\DeclareFieldFormat{multipostnote}{\mknormrange{#1}}
+\DeclareFieldFormat{biblabeldate}{#1}
+\DeclareFieldFormat{origdate}{\mkbibbrackets{#1}}
+\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
+\DeclareDelimFormat{editortypedelim}{\addspace}
+\DeclareDelimFormat[bib,biblist]{innametitledelim}{\addcomma\space}
+\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}
+\DeclareFieldFormat*{title}{#1}
+\DeclareFieldFormat[book]{title}{\mkbibemph{#1}}
+
+\RequirePackage{xcolor}
+\definecolor{sshuberlincolor}{cmyk}{1, .50, .10, .01} %default
+
+
+\renewcommand*{\labelnamepunct}{\addcolon\space}
+\renewcommand*{\volnumdelim}{\space}
+\renewcommand{\postnotedelim}{\addcolon\space}
+
+
+\DeclareRedundantLanguages{german}{german,ngerman,austrian,naustrian}
+\DeclareRedundantLanguages{english,american}{english,american,british,%
+ canadian,australian,newzealand,USenglish,UKenglish}
+\DeclareLanguageMapping{german}{german-socialscienceshuberlin}
+
+
+% get origdates after date
+\renewbibmacro*{date+extradate}{%
+ \iffieldundef{labelyear}
+ {}
+ {\printtext[\blx@delimcontext labeldate]{%
+ \iflabeldateisdate
+ {\printdateextra}
+ {\printlabeldateextra}}
+ \iffieldequalstr{labeldatesource}{orig}
+ {}
+ {\printorigdate}}}
+
+% https://tex.stackexchange.com/a/364192/98739
+\DeclareNameFormat{color-family-given}{%
+ \ifgiveninits
+ {\usebibmacro{name:color:family-given}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:color:family-given}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+ \usebibmacro{name:andothers}}
+
+\newbibmacro*{name:color:family-given}[4]{%
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \textcolor{red}{%
+ \ifdefvoid{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \mkbibnamefamily{#1}\isdot
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{#2}\isdot}}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \textcolor{sshuberlincolor}{%
+ \mkbibnamefamily{#1}\isdot
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}
+ {\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{#2}\isdot}%
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}}}}
+
+ % {\DeclareNameAlias{sortname}{color-family-given}} %not working with parens
+\DeclareNameAlias{sortname}{color-family-given}
+
+
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/biblatex-socialscienceshuberlin/socialscienceshuberlin.cbx b/Master/texmf-dist/tex/latex/biblatex-socialscienceshuberlin/socialscienceshuberlin.cbx
new file mode 100644
index 00000000000..7cca5b92f5f
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-socialscienceshuberlin/socialscienceshuberlin.cbx
@@ -0,0 +1,19 @@
+% socialsciences|huberlin --%
+% Copyright (c) 2018 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{socialscienceshuberlin.cbx}[\sshu@cbxid]
+%-----------------------
+\RequireCitationStyle{ext-authoryear}
+
+
+
+\endinput
+%% End of file `socialsciencehuberlin.cbx'. \ No newline at end of file