summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-03-14 21:52:44 +0000
committerKarl Berry <karl@freefriends.org>2017-03-14 21:52:44 +0000
commitaf53b4ba9787a49af57dc3abc2ebe77e5f93474e (patch)
tree170db402095ad152a4efcbf4139009ab300a5548 /Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx
parent9567f224aed1af01ef4a8df55c8c01176c489106 (diff)
biblatex-philosophy (14mar17)
git-svn-id: svn://tug.org/texlive/trunk@43501 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx96
1 files changed, 29 insertions, 67 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx
index ee35ebba936..315c6ff5310 100644
--- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx
@@ -5,68 +5,30 @@
%% The original source files were:
%%
%% biblatex-philosophy.dtx (with options: `classic-cbx')
-%% ______________________________________________________
-%% The biblatex-philosophy package
-%% Copyright (C) 2009-2017 Ivan Valbusa
-%% All rights reserved
+%% ______________________________________________________
+%% The biblatex-philosophy package
+%% Copyright (C) 2009-2017 Ivan Valbusa
+%% All rights reserved
%%
-%% License information appended
+%% License information appended
%%
\ProvidesFile{philosophy-classic.cbx}
- [2017/02/16 v1.9.1 A set of styles for biblatex]
-
-
+[2017/03/14 v1.9.2 A set of styles for biblatex]
\RequireCitationStyle{authoryear-comp}
-\newtoggle{cbx:scauthorscite}
-
-\DeclareBibliographyOption{scauthorscite}[true]{%
- \settoggle{cbx:scauthorscite}{#1}}
-
\ExecuteBibliographyOptions{%
- scauthorscite = false,
citetracker = true,
}
\AtEveryCite{%
- \iftoggle{cbx:scauthorscite}%
- {\let\mkbibnamefamily\mkbibsc%
- \let\mkbibnamegiven\mkbibsc%
- \let\mkbibnameprefix\mkbibsc%
- \let\mkbibnameaffix\mkbibsc}%
- {}}%
-
-\DeclareNameFormat{labelname}{%
- \nameparts{#1}%
-\bibhyperref{\ifcase\value{uniquename}%
- \usebibmacro{name:family}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}%
- \or
- \ifuseprefix
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffixi}}
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefixi}
- {\namepartsuffixi}}%
- \or
- \usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}%
- \fi
- \usebibmacro{name:andothers}}}
+\renewcommand*{\mkbibnamefamily}[1]{\iftoggle{cbx:scauthorscite}{\mkbibsc{#1}}{#1}}%
+\renewcommand*{\mkbibnamegiven}[1]{\iftoggle{cbx:scauthorscite}{\mkbibsc{#1}}{#1}}%
+\renewcommand*{\mkbibnameprefix}[1]{\iftoggle{cbx:scauthorscite}{\mkbibsc{#1}}{#1}}%
+\renewcommand*{\mkbibnamesuffix}[1]{\iftoggle{cbx:scauthorscite}{\mkbibsc{#1}}{#1}}%
+}
\newcommand{\switchclass}[2]{%
\iffieldequalstr{entrysubtype}{classic}%
@@ -110,8 +72,8 @@
{}%
{\printnames{labelname}%
\setunit{%
- \global\booltrue{cbx:parens}%
- \addspace\bibopenparen}}%
+ \global\booltrue{cbx:parens}%
+ \addspace\bibopenparen}}%
\savefield{namehash}{\cbx@lasthash}}%
\ifnumequal{\value{citecount}}{1}
{\usebibmacro{prenote}}
@@ -143,12 +105,12 @@
{\setunit{}%
\printtext{%
\ifbool{cbx:parens}
- {\bibcloseparen\global\boolfalse{cbx:parens}}
- {}}}
+ {\bibcloseparen\global\boolfalse{cbx:parens}}
+ {}}}
{\setunit{%
\ifbool{cbx:parens}
- {\bibcloseparen\global\boolfalse{cbx:parens}}
- {}%
+ {\bibcloseparen\global\boolfalse{cbx:parens}}
+ {}%
\multicitedelim}}}
\newbibmacro*{cite:init:AY}{%
\ifnumless{\value{multicitecount}}{2}
@@ -158,7 +120,7 @@
{\iffieldundef{prenote}
{}
{\global\undef\cbx@lasthash
-\global\undef\cbx@lastyear}}}
+ \global\undef\cbx@lastyear}}}
\newbibmacro*{cite:reinit:AY}{%
\global\undef\cbx@lasthash
@@ -257,12 +219,12 @@
{\setunit{}%
\printtext{%
\ifbool{cbx:parens}
- {\bibcloseparen\global\boolfalse{cbx:parens}}
- {}}}
+ {\bibcloseparen\global\boolfalse{cbx:parens}}
+ {}}}
{\setunit{%
\ifbool{cbx:parens}
- {\bibcloseparen\global\boolfalse{cbx:parens}}
- {}%
+ {\bibcloseparen\global\boolfalse{cbx:parens}}
+ {}%
\multicitedelim}}}
\renewbibmacro*{cite:shorthand}{%
\printtext[bibhyperref]{\printfield{shorthand}}}
@@ -357,16 +319,16 @@
{\multicitedelim}
{\usebibmacro{postnote}}
%%
-%% Copyright 2009-2017 by Ivan Valbusa
+%% Copyright 2009-2017 by Ivan Valbusa
%%
-%% This program is provided under the terms of the
-%% LaTeX Project Public License distributed from CTAN
-%% archives in directory macros/latex/base/lppl.txt.
+%% This program is provided under the terms of the
+%% LaTeX Project Public License distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt.
%%
-%% Author: Ivan Valbusa
-%% ivan dot valbusa at univr dot it
+%% Author: Ivan Valbusa
+%% ivan dot valbusa at univr dot it
%%
-%% This work has the LPPL maintenance status "author-maintained".
+%% This work has the LPPL maintenance status "author-maintained".
%%
%%
%% End of file `philosophy-classic.cbx'.