summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-05-16 22:09:09 +0000
committerKarl Berry <karl@freefriends.org>2011-05-16 22:09:09 +0000
commit974432f9910907645c85a06a8692eff260de45b2 (patch)
treecaaddbfde35d04383fb8786a532608df662516c3 /Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx
parent417e91d078352571aefe2bffd3cc2c1e5cc08f60 (diff)
biblatex-philosophy (16may11)
git-svn-id: svn://tug.org/texlive/trunk@22499 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.cbx126
1 files changed, 61 insertions, 65 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
index bb6cd610567..24253e2033a 100644
--- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx
@@ -1,76 +1,85 @@
-% $Id: philosophy-verbose.cbx,v 0.7b 2010/11/20 17:00:00 15:42:33 valbusa beta $
-% Copyright 2009-2010 Ivan Valbusa. This package is author-maintained.
+% $Id: philosophy-verbose.cbx,v 0.7c 2011/05/16 17:00:00 15:42:33 valbusa beta $
+% Copyright 2009-2011 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.7b 2010/11/20 17:00:00 15:42:33 valbusa beta $]
+[$Id: philosophy-verbose.cbx,v 0.7c 2011/05/16 valbusa beta $]
\RequireCitationStyle{verbose-trad2}
-\newbool{cbx:scauthorscite}
-\newbool{cbx:latinemph}
-\newbool{cbx:commacit}
-\newbool{cbx:loccit}
-
+\newtoggle{cbx:scauthorscite}
+\newtoggle{cbx:latinemph}
+\newtoggle{cbx:commacit}
\DeclareBibliographyOption{scauthorscite}[true]{%
- \csuse{bool#1}{cbx:scauthorscite}}
+ \settoggle{cbx:scauthorscite}{#1}}
\DeclareBibliographyOption{latinemph}[true]{%
- \csuse{bool#1}{cbx:latinemph}}
+ \settoggle{cbx:latinemph}{#1}}
\DeclareBibliographyOption{commacit}[true]{%
- \csuse{bool#1}{cbx:commacit}}
-
+ \settoggle{cbx:commacit}{#1}}
\ExecuteBibliographyOptions{%
-idemtracker=false,
-loccittracker=strict,
-citetracker=true,
-scauthorscite=false,
-latinemph=false,
-commacit=false}
+ idemtracker=false,
+ loccittracker=strict,
+ scauthorscite=false,
+ latinemph=false,
+ commacit=false}
+\AtEveryCite{%
+ \togglefalse{bbx:annotation}
+ \iftoggle{cbx:latinemph}{\renewcommand*{\mkibid}{\emph}}{}%
+ \iftoggle{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}}}{}}
+
+\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}}
+
+% MACROS
+%***********************************
\newbibmacro*{cite:loccit}{%
\printtext{%
\bibhyperlink{cite\csuse{cbx@lastcite@\thefield{entrykey}}}{%
\bibstring[\mkibid]{loccit}}}%
- \global\booltrue{cbx:loccit}}
-
-
+ \global\toggletrue{cbx:loccit}}
+
\renewbibmacro*{cite:ibid}{%
- \ifloccit
- {\usebibmacro{cite:loccit}}
- {\printtext{%
+ \ifloccit
+ {\usebibmacro{cite:loccit}}{%
+ \printtext{%
\bibhyperlink{cite\csuse{cbx@lastcite@\thefield{entrykey}}}{%
- \bibstring[\mkibid]{ibidem}}}%
- }}
+ \bibstring[\mkibid]{ibidem}}}}}%
\renewbibmacro*{cite:title}{%
\ifsingletitle{\bibstring[\mkibid]{opcit}}{
\printtext[bibhyperlink]{%
\printfield[citetitle]{labeltitle}%
- \ifbool{cbx:commacit}{\setunit{\addcomma\space}}
+ \iftoggle{cbx:commacit}{\setunit{\addcomma\space}}
{\setunit{\addspace\midsentence}}}%
- \bibstring{cit}}}
+ \bibstring{cit}\midsentence}}
-
-\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}{%
+ \renewbibmacro*{cite:full}{%
+ \usebibmacro{cite:full:citepages}%
+ \global\toggletrue{cbx:fullcite}%
\printtext[bibhypertarget]{%
\usedriver
- {\ifbool{cbx:scauthorscite}{\DeclareNameAlias{sortname}{scdefault}}{\DeclareNameAlias{sortname}{default}}}
+ {\iftoggle{cbx:scauthorscite}{\DeclareNameAlias{sortname}{scdefault}}{\DeclareNameAlias{sortname}{default}}}
{\thefield{entrytype}}}%
\usebibmacro{shorthandintro}}
-
- \newbibmacro*{ccite}{%
- \global\boolfalse{cbx:loccit}%
+
+\newbibmacro*{ccite}{%
+ \global\togglefalse{cbx:loccit}%
\bibhypertarget{cite\the\value{instcount}}{%
\ifciteseen
{\iffieldundef{shorthand}
@@ -92,48 +101,35 @@ commacit=false}
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}%
\usebibmacro{shorthandintro}}
-
+
+% COMMANDS
+%***********************************
\DeclareCiteCommand{\ccite}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\usebibmacro{ccite}}
{\multicitedelim}
{\usebibmacro{cite:postnote}}
-
-\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\midsentence}%
- \bibstring{cit}}}{\usebibmacro{incollection:full}}}%
+ \iftoggle{cbx:commacit}{\setunit{\addcomma\space}}%
+ {\setunit{\addspace\midsentence}}%
+ \bibstring{cit}}}{\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\midsentence}%
- \bibstring{cit}\midsentence}}{\usebibmacro{inbook:full}}}%
+ \iftoggle{cbx:commacit}{\setunit{\addcomma\space}}%
+ {\setunit{\addspace\midsentence}}%
+ \bibstring{cit}}}{\usebibmacro{inbook:full}}}%
{}%
{}%