summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-dw/cbx/footnote-dw.cbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-dw/cbx/footnote-dw.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-dw/cbx/footnote-dw.cbx90
1 files changed, 55 insertions, 35 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-dw/cbx/footnote-dw.cbx b/Master/texmf-dist/tex/latex/biblatex-dw/cbx/footnote-dw.cbx
index 4bf04a27fd0..cd6cd7c6b8d 100644
--- a/Master/texmf-dist/tex/latex/biblatex-dw/cbx/footnote-dw.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-dw/cbx/footnote-dw.cbx
@@ -1,17 +1,19 @@
-% footnote-dw.cbx, Dominik Waßenhoven 2010
+% footnote-dw.cbx, Dominik Waßenhoven 2011
-\ProvidesFile{footnote-dw.cbx}[2011/02/06 v1.3c biblatex citation style]
+\ProvidesFile{footnote-dw.cbx}[2011/11/20 v1.4 biblatex citation style]
\RequireCitationStyle{standard-dw}
\newbool{cbx:pageref}
+\newbool{cbx:review}
+\newbool{cbx:textcitefull}
\ExecuteBibliographyOptions{
- loccittracker=true,% für die Option 'ibidpage'
+ loccittracker=true,% für die Option 'ibidpage'
uniquename=false, % damit bei idem=false Vor- und Nachname gesetzt werden!
}
-% Kommandos zum Verpacken der Zitate in Fußnoten
+% Befehle zum Verpacken der Zitate in Fußnoten
\newrobustcmd{\mkfootnotecite}[1]{%
\iffootnote
{#1}
@@ -20,8 +22,8 @@
\bibsentence#1\addperiod}}}
\newbool{cbx:parencitefoot}% wenn parencite innerhalb einer
- % Fußnote aufgerufen wird
- % (wichtig für seenote)
+ % Fußnote aufgerufen wird
+ % (wichtig für seenote)
\newrobustcmd{\mkparencite}[1]{%
\iffootnote
{\booltrue{cbx:parencitefoot}%
@@ -33,11 +35,21 @@
\toggletrue{blx@footnote}%
\bibsentence#1\addperiod}}}
+% Befehl zum Testen, ob in Fußnote (für \textcite)
+\newrobustcmd{\footnotecheck}{%
+ \iffootnote
+ {\booltrue{cbx:parencitefoot}}
+ {\boolfalse{cbx:parencitefoot}}}
+
\newbibmacro*{cite}{%
\usebibmacro{cite:citepages}%
\global\boolfalse{cbx:loccit}%
\bibhypertarget{cite\the\value{instcount}}{%
- \ifciteseen
+ \ifboolexpr{
+ test {\ifciteseen}
+ and not
+ bool {cbx:textcitefull}
+ }
{\iffieldundef{shorthand}
{\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
{\usebibmacro{cite:ibid}%
@@ -90,15 +102,15 @@
\newbibmacro*{cite:title}{%
\ifboolexpr{
- test {\iffieldequalstr{entrytype}{review}}
+ test {\ifentrytype{review}}
and
not test {\iffieldundef{xref}}
}
- {\booltrue{cbx:review}% für cite:seenote (damit das rezensierte Werk keinen Verweis bekommt)
- \printtext[review]{\bbx@xref{\thefield{xref}}}%
- \boolfalse{cbx:review}}% \boolfalse ist nötig, damit @review selbst wieder einen Verweis bekommt
+ {\booltrue{cbx:review}% für cite:seenote (damit das rezensierte Werk keinen Verweis bekommt)
+ \printtext[review]{\bbx@review{\thefield{xref}}}%
+ \boolfalse{cbx:review}}% \boolfalse ist nötig, damit @review selbst wieder einen Verweis bekommt
{\ifsingletitle
- {\setunit{}}% Löschen des \nametitledelim, falls kein Titel ausgegeben wird
+ {\setunit{}}% Löschen des \nametitledelim, falls kein Titel ausgegeben wird
{\printtext[bibhyperlink]{%
\printfield[citetitle]{labeltitle}}}}%
\ifboolexpr{
@@ -134,23 +146,23 @@
{}
{\ifbool{cbx:parencitefoot}
{\addspace\mkbibbrackets{%
- \bibstring{seenote}\addnbspace%\ref{\thefield{entrykey}}%
+ \bibstring{seenote}\addnbspace%
\ref{cbx@\csuse{cbx@first@\thefield{entrykey}}}%
\ifbool{cbx:pageref}
{\ifsamepage{\the\value{instcount}}
{\csuse{cbx@first@\thefield{entrykey}}}
{}
- {\addcomma\space\bibstring{page}\addnbspace
+ {\addcomma\space\bibstring{page}\addnbspace%
\pageref{cbx@\csuse{cbx@first@\thefield{entrykey}}}}}
{}}}
{\addspace\mkbibparens{%
- \bibstring{seenote}\addnbspace%\ref{\thefield{entrykey}}%
+ \bibstring{seenote}\addnbspace%
\ref{cbx@\csuse{cbx@first@\thefield{entrykey}}}%
\ifbool{cbx:pageref}
{\ifsamepage{\the\value{instcount}}
{\csuse{cbx@first@\thefield{entrykey}}}
{}
- {\addcomma\space\bibstring{page}\addnbspace
+ {\addcomma\space\bibstring{page}\addnbspace%
\pageref{cbx@\csuse{cbx@first@\thefield{entrykey}}}}}
{}}}}}
@@ -203,22 +215,7 @@
\AtBeginBibliography{%
\renewbibmacro*{cite:xref}{%
\iffieldundef{shorthand}%
- {\ifboolexpr{
- test \ifuseeditor
- or
- test \ifusetranslator
- }
- {\ifnameundef{labelname}
- {}
- {\ifbool{xrefidem}%
- {\ifbool{bbx:edbyidem}
- {\midsentence%
- \usebibmacro{cite:xref:idem}}%
- {\printnames{labelname}%
- \printtext{\labelnamepunct}}}%
- {\printnames{labelname}%
- \printtext{\labelnamepunct}}}}
- {}%
+ {\usebibmacro{cite:editor}%
\iffieldundef{shorttitle}%
{\printfield{title}}%
{\printfield{shorttitle}}%
@@ -266,7 +263,8 @@
\DeclareCiteCommand{\fullcite}[\mkfootnotecite]
{\usebibmacro{prenote}%
- \usebibmacro{cite:full:citepages}}
+ \usebibmacro{cite:full:citepages}%
+ \booltrue{cbx:fullcite}}
{\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}
@@ -276,20 +274,35 @@
\DeclareCiteCommand{\footfullcite}[\mkfootnotecite]
{\bibsentence
\usebibmacro{prenote}%
- \usebibmacro{cite:full:citepages}}
+ \usebibmacro{cite:full:citepages}%
+ \booltrue{cbx:fullcite}}
{\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}
{\multicitedelim}
{\usebibmacro{cite:postnote}}
+\DeclareCiteCommand{\textcite}[\footnotecheck\cbx@textcite\footcite]
+ {\gdef\cbx@savedkeys{}}
+ {\printnames{labelname}%
+ \ifciteseen
+ {\global\boolfalse{cbx:textcitefull}}
+ {\global\booltrue{cbx:textcitefull}}%
+ \xappto\cbx@savedkeys{\thefield{entrykey},}}
+ {\multinamedelim}
+ {\protected@xappto\cbx@savedcites{%
+ [\thefield{prenote}][\thefield{postnote}]{\cbx@savedkeys}}}
+
+\newrobustcmd{\cbx@textcite}[2]{%
+ \def\cbx@savedcites{#1}\ifbool{cbx:parencitefoot}{#2\addspace{\mkbibparens{\cbx@savedcites}}}{#2\cbx@savedcites}}
\DeclareMultiCiteCommand{\cites}[\mkfootnotecite]{\cite}{\multicitedelim}
\DeclareMultiCiteCommand{\parencites}[\mkparencite]{\parencite}{\multicitedelim}
\DeclareMultiCiteCommand{\footcites}[\mkfootnotecite]{\footcite}{\multicitedelim}
+\DeclareMultiCiteCommand{\textcites}[\cbx@textcite\footcites]{\textcite}{\textcitesdelim}
%%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%%
-%%%%% Unverändert aus verbose-trad1 übernommen %%%%%
+%%%%% Unverändert aus verbose-trad1 übernommen %%%%%
%%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%%
\newbool{cbx:loccit}
@@ -318,4 +331,11 @@
\newbibmacro*{cite:ibid:page}{}
+\DeclareCiteCommand{\smartcite}[\iffootnote\mkbibparens\mkbibfootnote]
+ {\usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite}}
+ {\multicitedelim}
+ {\usebibmacro{cite:postnote}}
+
\endinput