diff options
author | Karl Berry <karl@freefriends.org> | 2010-03-08 01:18:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-03-08 01:18:08 +0000 |
commit | 1f34a27c6763a52638a6442f777ec934f2253a29 (patch) | |
tree | 3595b0dd19920bc51786ef882029c77955a06be7 /Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx | |
parent | f8781b660c74ce51709b40d75de1d58597a54eaa (diff) |
new biblatex-philosophy 0.5 (7mar10)
git-svn-id: svn://tug.org/texlive/trunk@17376 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.cbx | 74 |
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 |