summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx
diff options
context:
space:
mode:
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.cbx74
1 files changed, 74 insertions, 0 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
new file mode 100644
index 00000000000..9ca2d41d0dd
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx
@@ -0,0 +1,74 @@
+% $Id: philosophy-classic.cbx,v 0.4c 2010/02/27 Valbusa$
+% Copyright 2009-2010 Ivan Valbusa. This package is author-maintained.
+% Permission is granted to copy, distribute and/or modify this software under the
+% terms of the LaTeX Project Public License, version 1.3c
+% http://www.ctan.org/tex-archive/macros/latex/base/lppl.txt.
+
+
+\ProvidesFile{philosophy-classic.cbx}[philosophy-classic.cbx,v 0.4c 2010/02/27 valbusa beta$]
+
+\RequireCitationStyle{authoryear-comp}
+
+\newbool{cbx:scauthorscite}
+
+\DeclareBibliographyOption{scauthorscite}[true]{%
+ \csuse{bool#1}{cbx:scauthorscite}}
+
+\ExecuteBibliographyOptions{%
+scauthorscite=false
+}
+
+
+\AtEveryCite{%
+ \ifbool{cbx:scauthorscite}%
+ {\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}}
+ {}%
+}
+
+%******************************
+% hyperlink for names
+%*****************************
+\DeclareNameFormat{labelname}{%
+\bibhyperref{%
+ \ifcase\value{uniquename}%
+ \usebibmacro{name:last}{#1}{#3}{#5}{#7}%
+ \or
+ \ifuseprefix
+ {\usebibmacro{name:first-last}{#1}{#4}{#5}{#8}}
+ {\usebibmacro{name:first-last}{#1}{#4}{#6}{#8}}%
+ \or
+ \usebibmacro{name:first-last}{#1}{#3}{#5}{#7}%
+ \fi
+ \usebibmacro{name:andothers}}}
+
+%********************************************************************
+% hypelink for \citetitle and \citeyear commands
+%*******************************************************************
+\DeclareCiteCommand{\citetitle}
+ {\boolfalse{citetracker}%
+ \boolfalse{pagetracker}%
+ \usebibmacro{prenote}}
+ {\indexfield{indextitle}%
+ \printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
+ {\multicitedelim}
+ {\usebibmacro{postnote}}
+
+\DeclareCiteCommand*{\citetitle}
+ {\boolfalse{citetracker}%
+ \boolfalse{pagetracker}%
+ \usebibmacro{prenote}}
+ {\indexfield{indextitle}%
+ \printtext[bibhyperref]{\printfield[citetitle]{title}}}
+ {\multicitedelim}
+ {\usebibmacro{postnote}}
+
+\DeclareCiteCommand{\citeyear}
+ {\boolfalse{citetracker}%
+ \boolfalse{pagetracker}%
+ \usebibmacro{prenote}}
+ {\printtext[bibhyperref]{\printfield{year}}}
+ {\multicitedelim}
+ {\usebibmacro{postnote}}
+%***********************************************
+
+\endinput