summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-archaeology/verbose-trad2note-archaeology.cbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-03-12 21:56:12 +0000
committerKarl Berry <karl@freefriends.org>2017-03-12 21:56:12 +0000
commita254eee571b07cfc336f00d508fe6a4bd7dca5a3 (patch)
tree3b626b95dcafc353c85d7205600628affb4de3c5 /Master/texmf-dist/tex/latex/biblatex-archaeology/verbose-trad2note-archaeology.cbx
parent07604bb1d61b7ba4d6d79bfd1f68c95e29a34741 (diff)
biblatex-archaeology (12mar17)
git-svn-id: svn://tug.org/texlive/trunk@43480 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-archaeology/verbose-trad2note-archaeology.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-archaeology/verbose-trad2note-archaeology.cbx142
1 files changed, 142 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-archaeology/verbose-trad2note-archaeology.cbx b/Master/texmf-dist/tex/latex/biblatex-archaeology/verbose-trad2note-archaeology.cbx
new file mode 100644
index 00000000000..5eb3628f13e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-archaeology/verbose-trad2note-archaeology.cbx
@@ -0,0 +1,142 @@
+%%
+%% This is file `verbose-trad2note-archaeology.cbx',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% biblatex-archaeology.dtx (with options: `verbosetrad2noteCBX')
+%% Copyright (C) 2005-2017 by Ingram Braun (https://ingram-braun.net/)
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. The latest version of this license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3c or later is part of all distributions of
+%% LaTeX version 2008/05/04 or later.
+%%
+\ProvidesFile{verbose-trad2note-archaeology.cbx}
+[2017/03/11 v1.0 biblatex-archaeology citation style (IB)]
+\def\archaeocitestyletitle{\blxarch@style@vttwo}
+\RequireCitationStyle{verbose-trad2}
+\newbibmacro*{cite:short}{%
+ \printnames{labelname}%
+ \setunit*{\printdelim{labelnamepunct}}%
+ \printtext[bibhyperlink]{%
+ \printfield[citetitle]{labeltitle}}}
+
+\newbibmacro*{footcite}{%
+ \usebibmacro{cite:citepages}%
+ \ifciteseen
+ {\iffieldundef{shorthand}
+ {\usebibmacro{footcite:note}}
+ {\usebibmacro{footcite:shorthand}}}
+ {\usebibmacro{footcite:full}%
+ \usebibmacro{footcite:save}}}
+
+\newbibmacro*{footcite:full}{%
+ \usebibmacro{cite:full:citepages}%
+ \printtext[bibhypertarget]{%
+ \usedriver
+ {\DeclareNameAlias{sortname}{default}}
+ {\thefield{entrytype}}}%
+ \usebibmacro{shorthandintro}}
+
+\newbibmacro*{footcite:note}{%
+ \ifnameundef{labelname}
+ {\printfield{label}}
+ {\printnames{labelname}}%
+ \ifsingletitle
+ {}
+ {\iftoggle{archbool:uselabeltitle}{%
+ \setunit*{\printdelim{labelnamepunct}}%
+ \printfield[title]{labeltitle}}%
+ {}}%
+ \setunit*{\seenotedelim}%
+ \printtext[seenote]{%
+ \bibstring{seenote}\addnbspace
+ \ref{cbx@\csuse{cbx@f@\thefield{entrykey}}}%
+ \iftoggle{cbx:pageref}
+ {\ifsamepage{\the\value{instcount}}
+ {\csuse{cbx@f@\thefield{entrykey}}}
+ {}
+ {\addcomma\space\bibstring{page}\addnbspace
+ \pageref{cbx@\csuse{cbx@f@\thefield{entrykey}}}}}
+ {}}}
+
+\newbibmacro*{footcite:shorthand}{%
+ \printtext[bibhyperlink]{\printfield{shorthand}}}
+
+\DeclareCiteCommand{\cite}
+ {\usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \ifseenote
+ {\usebibmacro{footcite}}
+ {\usebibmacro{cite}}}
+ {\multicitedelim}
+ {\usebibmacro{cite:postnote}}
+
+ \DeclareCiteCommand{\footcite}[\mkbibfootnote]
+ {\usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \ifseenote
+ {\usebibmacro{footcite}}
+ {\usebibmacro{cite}}}
+ {\multicitedelim}
+ {\usebibmacro{cite:postnote}}
+
+\DeclareCiteCommand{\parencite}[\mkbibparens]
+ {\usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \ifseenote
+ {\usebibmacro{footcite}}
+ {\usebibmacro{cite}}}
+ {\multicitedelim}
+ {\usebibmacro{cite:postnote}}
+
+\DeclareCiteCommand{\smartcite}[\iffootnote\mkbibparens\mkbibfootnote]
+ {\usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \ifseenote
+ {\usebibmacro{footcite}}
+ {\usebibmacro{cite}}}
+ {\multicitedelim}
+ {\usebibmacro{cite:postnote}}
+
+\newtoggle{cbx:pageref}
+\DeclareBibliographyOption[boolean]{pageref}[true]{%
+ \settoggle{cbx:pageref}{#1}%
+ \iftoggle{cbx:pageref}
+ {\ExecuteBibliographyOptions{pagetracker}}
+ {}}
+\newbibmacro*{footcite:save}{%
+ \ifltxcounter{blxarch:\thefield{entrykey}}
+ {\ifnumequal{0}{\value{blxarch:\thefield{entrykey}}}
+ {\setcounter{blxarch:\thefield{entrykey}}{\value{footnote}}}
+ {}}
+ {\newcounter{blxarch:\thefield{entrykey}}%
+ \setcounter{blxarch:\thefield{entrykey}}{\value{footnote}}}%
+ \csxdef{cbx@f@\thefield{entrykey}}{\the\value{instcount}}%
+ \label{cbx@\the\value{instcount}}}
+\renewcommand{\ifseenote}[2]{%
+ \ifboolexpr{
+ test {\iffootnote}
+ and
+ not test {\ifciteibid}
+ }
+ {\ifltxcounter{blxarch:\thefield{entrykey}}
+ {\ifciteseen
+ {\ifnumgreater{\value{footnote}}{\value{blxarch:\thefield{entrykey}}}
+ {#1}
+ {#2}%
+ }
+ {\setcounter{blxarch:\thefield{entrykey}}{0}#1}%
+ }
+ {#1}%
+ }
+ {#2}%
+}
+\endinput
+%%
+%% End of file `verbose-trad2note-archaeology.cbx'.