使用biblatex-dw
with footnote-dw
style 时,我注意到缺少“op. cit.”和“loc. cit.”跟踪器。是否可以生成“op. cit.”和“loc. cit.”以在脚注中重复引用,就像在 中一样verbose-trad1
?
例如,我有以下 MWE:
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,french,polish]{babel}
\usepackage{csquotes}
\DeclareQuoteAlias{croatian}{polish}
\usepackage[style=footnote-dw,backend=biber,]{biblatex}
\usepackage{mathptmx}
\usepackage{filecontents}
\addbibresource{Praca magisterska.bib}
\begin{document}
This is a document\cite[92]{deleuze_kino._2008}. We can see this is a document\cite[60]{ryan_narrative_2001}. This is another document\cite[93]{deleuze_kino._2008}.
\printbibliography
\end{document}
包含以下“Praca magisterska.bib”书目:
@book{deleuze_kino._2008,
location = {Gdańsk},
title = {Kino. 1. Obraz-ruch, 2. Obraz-czas},
isbn = {978-83-7453-896-1},
abstract = {Koncepcja obrazu-ruchu charakterystycznego dla kina atrakcji przeciwstawiona modernistycznemu modelowi obrazu-czasu.},
publisher = {Słowo/\-Obraz Terytoria},
author = {Deleuze, Gilles},
translator = {Margański, Janusz},
date = {2008}
}
@book{ryan_narrative_2001,
location = {Baltimore},
title = {Narrative as Virtual Reality: Immersion and Interactivity in Literature and Electronic Media},
isbn = {978-0-8018-6487-2},
shorttitle = {Narrative as Virtual Reality},
publisher = {Johns Hopkins University Press},
author = {Ryan, Marie-Laure},
date = {2001}
}
因此,我想知道在重复引用中是否可以生成像“Deleuze,op. cit.,s. 93”这样的脚注,而不是“(见注释)”参考。
答案1
我们需要在 的 bibmacro中添加\ifloccit
和\ifopcit
逻辑。这两个宏和都是从 直接复制的,只做了微小的修改,以便与 配合使用。cite
footnote-dw.cbx
cite:opcit
cite:loccit
verbose-trad1.cbx
biblatex-dw
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=
footnote-dw,
opcittracker=context,
loccittracker=context,
backend=biber]{biblatex}
\usepackage{hyperref}
\addbibresource{biblatex-examples.bib}
\makeatletter
\renewbibmacro*{cite}{%
\usebibmacro{cite:citepages}%
\global\boolfalse{cbx:loccit}%
\bibhypertarget{cite\the\value{instcount}}{%
\ifboolexpr{
test {\ifciteseen}
and not
bool {cbx:textcitefull}
}
{\iffieldundef{shorthand}
{\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
{\usebibmacro{cite:ibid}%
\usebibmacro{cite:save}%
\usebibmacro{cite:reset}}
{\ifthenelse{\ifciteidem\AND\NOT\boolean{cbx:noidem}%
\AND\NOT\iffirstonpage}
{\usebibmacro{cite:idem}}
{\ifnameundef{labelname}
{}
{\usebibmacro{cite:name}}}%
\ifopcit
{\ifloccit
{\usebibmacro{cite:loccit}}
{\usebibmacro{cite:opcit}}}
{\usebibmacro{cite:title}}%
\usebibmacro{cite:save}}}
{\ifboolexpr{togl {cbx:shorthandibid}
and test {\ifciteibid}
and not test {\iffirstonpage}}
{\usebibmacro{cite:ibid}}%
{\usebibmacro{cite:shorthand}}
\usebibmacro{cite:save}%
\usebibmacro{cite:reset}}}
{\ifthenelse{\ifciteidem\AND\NOT\boolean{cbx:noidem}%
\AND\NOT\iffirstonpage}
{\usebibmacro{cite:idem}%
\booltrue{cbx:idemfull}}
{}%
\usebibmacro{cite:full}%
\usebibmacro{cite:save}}}}
\newbibmacro*{cite:opcit}{%
\printtext[bibhyperlink]{\bibstring[\mkibid]{opcit}}}
\newbibmacro*{cite:loccit}{%
\printtext{%
\bibhyperlink{cite\csuse{cbx:lastcite@\thefield{entrykey}}}{%
\bibstring[\mkibid]{loccit}}}%
\global\booltrue{cbx:loccit}}
\makeatother
\DeclareDelimFormat{nametitledelim}{\addcomma\space}
\begin{document}
Lorem\autocite[380]{sigfridsson} ipsum\autocite[40]{knuth:ct:a} dolor\autocite[380]{sigfridsson} sit\autocite[50]{knuth:ct:a} amet\autocite[10]{knuth:ct:b} consectur\autocite[381]{sigfridsson} schlorem\autocite[10]{knuth:ct:b}
consectur\autocite[381]{sigfridsson} g\autocite[50]{knuth:ct:a} dolor\autocite[380]{sigfridsson} sit\autocite[50]{knuth:ct:a}
consectur\autocite[381]{sigfridsson} f\autocite[50]{knuth:ct:a} dolor\autocite[380]{sigfridsson} sit\autocite[51]{knuth:ct:a}
\printbibliography
\end{document}