summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-03-09 00:22:50 +0000
committerKarl Berry <karl@freefriends.org>2010-03-09 00:22:50 +0000
commit62993c5bcad4ec24f4de93ef85f925278433b941 (patch)
treedbb395e18efdf1fba65bada6d0927ac55fbf292d /Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx
parent5d748b68d77bc6f3bf05eb9abbf7e7071a124449 (diff)
biblatex-philosophy update (8mar10)
git-svn-id: svn://tug.org/texlive/trunk@17387 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx105
1 files changed, 105 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx
new file mode 100644
index 00000000000..8b115c393df
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx
@@ -0,0 +1,105 @@
+% $Id: philosophy-verbose.cbx,v 0.5 2010/03/07 17:00:00 15:42:33 valbusa beta $
+% 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-verbose.cbx}
+[$Id: philosophy-verbose.cbx,v 0.5 2010/03/07 17:00:00 15:42:33 valbusa beta $]
+
+\RequireCitationStyle{verbose-trad2}
+\DeclareLanguageMapping{italian}{italian-philosophy}
+
+\newbool{cbx:scauthorscite}
+\newbool{cbx:latinemph}
+
+\DeclareBibliographyOption{scauthorscite}[true]{%
+ \csuse{bool#1}{cbx:scauthorscite}}
+\DeclareBibliographyOption{latinemph}[true]{%
+ \csuse{bool#1}{cbx:latinemph}}
+
+
+\ExecuteBibliographyOptions{%
+idemtracker=false,
+loccittracker=strict,
+citetracker=true,
+scauthorscite=false,
+latinemph=false}
+
+\newbibmacro*{cite:loccit}{%
+ \printtext{%
+ \bibhyperlink{cite\csuse{cbx@lastcite@\thefield{entrykey}}}{%
+ \bibstring[\mkibid]{loccit}}}%
+ \global\booltrue{cbx:loccit}}
+
+
+\renewbibmacro*{cite:ibid}{%
+ \ifloccit
+ {\usebibmacro{cite:loccit}}
+ {\printtext{%
+ \bibhyperlink{cite\csuse{cbx@lastcite@\thefield{entrykey}}}{%
+ \bibstring[\mkibid]{ibidem}}}%
+ }}
+
+ \renewbibmacro*{cite:title}{%
+ \printtext[bibhyperlink]{%
+ \printfield[citetitle]{labeltitle}%
+ \setunit{\addspace}%
+ \bibstring{opcit}}}
+
+
+\AtEveryCite{\boolfalse{bbx:annotation}}
+
+
+\DeclareNameFormat{scdefault}{%
+ \iffirstinits
+ {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#4}}{\textsc{#5}}{\textsc{#7}}}
+ {\ifblank{#3}{\usebibmacro{name:first-last}{\textsc{#1}}{#3}{#5}{\textsc{#7}}}{\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}}}%
+ \usebibmacro{name:andothers}}
+
+\renewbibmacro*{cite:full}{%
+ \printtext[bibhypertarget]{%
+ \usedriver
+ {\ifbool{cbx:scauthorscite}{\DeclareNameAlias{sortname}{scdefault}}{\DeclareNameAlias{sortname}{default}}}
+ {\thefield{entrytype}}}%
+ \usebibmacro{shorthandintro}}
+
+
+ \AtEveryCite{%
+ \ifbool{cbx:latinemph}{\renewcommand*{\mkibid}{\emph}}{}%
+ \ifbool{cbx:scauthorscite}{\DeclareNameFormat{labelname}{%
+ \ifcase\value{uniquename}%
+ \usebibmacro{name:last}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}%
+ \or
+ \ifuseprefix
+ {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#4}}{\textsc{#5}}{\textsc{#8}}}
+ {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#4}}{\textsc{#6}}{\textsc{#8}}}%
+ \or
+ \usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}%
+ \fi
+ \usebibmacro{name:andothers}}}{}}
+
+
+
+\DeclareCiteCommand{\cbx@crossref}
+ {\let\scshape\normalfont}% per evitare il maiuscoletto all'interno della voce
+ {\ifciteseen{\usebibmacro{editor+others}%
+ \setunit*{\addcomma\space}\printtext[bibhyperlink]{%
+ \printfield[citetitle]{labeltitle}%
+ \setunit{\addspace}%
+ \bibstring{opcit}}}{\usebibmacro{incollection:full}}}%
+ {}%
+ {}%
+
+
+\DeclareCiteCommand{\cbx@inbookcrossref}
+ {\let\scshape\normalfont}% per evitare il maiuscoletto all'interno della voce
+ {\ifciteseen{\usebibmacro{bybookauthor}%
+ \setunit*{\addcomma\space}\printtext[bibhyperlink]{%
+ \printfield[citetitle]{labeltitle}%
+ \setunit{\addspace}%
+ \bibstring{opcit}}}{\usebibmacro{inbook:full}}}%
+ {}%
+ {}%
+
+\endinput