diff options
author | Karl Berry <karl@freefriends.org> | 2010-02-15 01:10:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-02-15 01:10:02 +0000 |
commit | b77b8199329b20ca0d1db70060cef4e81704e74d (patch) | |
tree | a4d9ff9e9db47d18d182e88154272db9fb00fd06 /Master/texmf-dist/tex/latex/biblatex/cbx/verbose-note.cbx | |
parent | d943f64a02a10d7684bfc86f484132152e174ce1 (diff) |
new (long-awaited) package biblatex 0.9 (14feb10)
git-svn-id: svn://tug.org/texlive/trunk@17026 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex/cbx/verbose-note.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex/cbx/verbose-note.cbx | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex/cbx/verbose-note.cbx b/Master/texmf-dist/tex/latex/biblatex/cbx/verbose-note.cbx new file mode 100644 index 00000000000..8744c605da3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex/cbx/verbose-note.cbx @@ -0,0 +1,121 @@ +% $Id: verbose-note.cbx,v 0.9 2010/02/14 15:42:33 lehman beta $ + +\ProvidesFile{verbose-note.cbx} +[\abx@cbxid $Id: verbose-note.cbx,v 0.9 2010/02/14 15:42:33 lehman beta $] + +\ExecuteBibliographyOptions{citetracker=context,singletitle,autocite=footnote} +\newbool{cbx:pageref} + +\DeclareFieldFormat{bibhyperlink}{% + \bibhyperlink{\thefield{entrykey}:\csuse{cbx@\iffootnote{f}{t}@\thefield{entrykey}}}{#1}} +\DeclareFieldFormat{bibhypertarget}{% + \bibhypertarget{\thefield{entrykey}:\the\value{instcount}}{#1}} + +\DeclareBibliographyOption{pageref}[true]{% + \setbool{cbx:pageref}{#1}% + \ifbool{cbx:pageref} + {\ExecuteBibliographyOptions{pagetracker}} + {}} + +\newbibmacro*{cite}{% + \ifciteseen + {\iffieldundef{shorthand} + {\usebibmacro{cite:short}} + {\usebibmacro{cite:shorthand}}} + {\usebibmacro{cite:full}% + \usebibmacro{cite:save}}} + +\newbibmacro*{cite:save}{% + \csxdef{cbx@t@\thefield{entrykey}}{\the\value{instcount}}} + +\newbibmacro*{cite:full}{% + \printtext[bibhypertarget]{% + \usedriver + {\DeclareNameAlias{sortname}{default}} + {\thefield{entrytype}}}% + \usebibmacro{shorthandintro}} + +\newbibmacro*{cite:short}{% + \printnames{labelname}% + \setunit*{\addcomma\space}% + \printtext[bibhyperlink]{% + \printfield[citetitle]{labeltitle}}} + +\newbibmacro*{cite:shorthand}{% + \printtext[bibhyperlink]{\printfield{shorthand}}} + +\newbibmacro*{footcite}{% + \ifciteseen + {\iffieldundef{shorthand} + {\usebibmacro{footcite:note}} + {\usebibmacro{footcite:shorthand}}} + {\usebibmacro{footcite:full}% + \usebibmacro{footcite:save}}} + +\newbibmacro*{footcite:save}{% + \csxdef{cbx@f@\thefield{entrykey}}{\the\value{instcount}}% + \label{cbx@\the\value{instcount}}} + +\newbibmacro*{footcite:full}{% + \printtext[bibhypertarget]{% + \usedriver + {\DeclareNameAlias{sortname}{default}} + {\thefield{entrytype}}}% + \usebibmacro{shorthandintro}} + +\newbibmacro*{footcite:note}{% + \ifnameundef{labelname} + {\printfield{label}} + {\printnames{labelname}}% + \ifsingletitle + {} + {\setunit*{\addcomma\space}% + \printfield[title]{labeltitle}}% + \setunit*{\addcomma\space}% + \printtext{% + \bibstring{seenote}\addnbspace + \ref{cbx@\csuse{cbx@f@\thefield{entrykey}}}% + \ifbool{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}% + \iffootnote + {\usebibmacro{footcite}} + {\usebibmacro{cite}}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\parencite}[\mkbibparens] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \iffootnote + {\usebibmacro{footcite}} + {\usebibmacro{cite}}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\footcite}[\mkbibfootnote] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{footcite}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{footcite}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\endinput |