如果有来自同一作者的多个引文,请添加 ebd。

如果有来自同一作者的多个引文,请添加 ebd。

我使用的是 Biblatex 和 Historische Zeitschrift 样式。这是一种很棒的样式,我很喜欢,但我想做一个小改动,它与引用同一作者的不同书籍有关。如果我引用同一作者的 3 本书,那么我在脚注中会得到以下结果:

  1. 参见 William Welsington,《LaTeX 简介》。Bd. 47。(Latex 指南。)柏林/纽约 1997 年,第 82 页。
  2. 参见 William Welsington,《Bibtex 简介》第 48 卷。(Latex 指南)柏林/纽约 1998 年,第 5 页。
  3. 参见 William Welsington,《Biblatex 简介》。Bd. 449。(Latex 指南。)柏林/纽约 1999 年,第 13 页。

我希望得到这个:

  1. 参见 William Welsington,《LaTeX 简介》。Bd. 47。(Latex 指南。)柏林/纽约 1997 年,第 82 页。
  2. 参见 ebd.,《Bibtex 简介》f. Bd. 48.(Latex 指南)柏林/纽约 1998 年,第 5 页。
  3. 参见 ebd.,《Biblatex 简介》。Bd. 449。(Latex 指南。)柏林/纽约 1999 年,第 13 页。

有人知道如何实现这一点吗?

提前感谢您的回答!

这是我的 MWE:

\documentclass[a4paper,11pt]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage{csquotes}
\usepackage{blindtext}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib} 
@book{welsington1997,
    Address = {Berlin/New York},
    Author = {William Welsington},
    Title = {An Introduction to LaTeX},
    Publisher = {Oxford University Press},
    Series = {Latex Guides},
    Shortauthor = {Wel.},
    Shorttitle = {Intr.},
    Volume = {47},
    Year = {1997}}
@book{welsington1998,
    Address = {Berlin/New York},
    Author = {William Welsington},
    Title = {An Introduction to Bibtexf},
    Publisher = {Oxford University Press},
    Series = {Latex Guides},
    Shortauthor = {Wel.},
    Shorttitle = {Intr.},
    Volume = {48},
    Year = {1998}}
@book{welsington1999,
    Address = {Berlin/New York},
    Author = {William Welsington},
    Title = {An Introduction to Biblatex},
    Publisher = {Oxford University Press},
    Series = {Latex Guides},
    Shortauthor = {Wel.},
    Shorttitle = {Intr.},
    Volume = {449},
    Year = {1999}}
\end{filecontents} 
\usepackage[ngerman]{babel}
\usepackage[style=historische-zeitschrift, maxnames=2, hyperref=true, backref=true, backrefstyle=none, backend=bibtex]{biblatex}
\bibliography{\jobname} 
\begin{document}
\blindtext\footcite[Cf.][P. 82]{welsington1997}
\blindtext\footcite[Cf.][P. 5]{welsington1998}
\blindtext\footcite[Cf.][P. 13]{welsington1999}
\printbibliography

\end{document}

答案1

以下重新定义可能会做你想要的

\renewbibmacro*{footcite:full}{%
  \printtext{%
    \bibhypertarget{\thefield{entrykey}:\the\value{instcount}}{%
      \usedriver
        {\DeclareNameAlias{sortname}{default}%
         \ifciteidem
           {\renewbibmacro*{author}{\bibstring[\mkibid]{idem\thefield{gender}}}%
            \renewbibmacro*{editor}{\bibstring[\mkibid]{idem\thefield{gender}}}}
           {}%
        }
        {\thefield{entrytype}}}}%
  \usebibmacro{shorthandintro}}

您必须idemtracker=true在加载时间选项中启用它。

平均能量损失

\documentclass[a4paper,11pt]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage{csquotes}
\usepackage{blindtext}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib} 
@book{welsington1997,
    Address = {Berlin/New York},
    Author = {William Welsington},
    Title = {An Introduction to LaTeX},
    Publisher = {Oxford University Press},
    Series = {Latex Guides},
    Shortauthor = {Wel.},
    Shorttitle = {Intr.},
    Volume = {47},
    Year = {1997}}
@book{welsington1998,
    Address = {Berlin/New York},
    Author = {William Welsington},
    Title = {An Introduction to Bibtexf},
    Publisher = {Oxford University Press},
    Series = {Latex Guides},
    Shortauthor = {Wel.},
    Shorttitle = {Intr.},
    Volume = {48},
    Year = {1998}}
@book{welsington1999,
    Address = {Berlin/New York},
    Author = {William Welsington},
    Title = {An Introduction to Biblatex},
    Publisher = {Oxford University Press},
    Series = {Latex Guides},
    Shortauthor = {Wel.},
    Shorttitle = {Intr.},
    Volume = {449},
    Year = {1999}}
\end{filecontents} 
\usepackage[ngerman]{babel}
\usepackage[style=historische-zeitschrift, maxnames=2, hyperref=true, backref=true, backrefstyle=none, backend=bibtex,idemtracker=true]{biblatex}
\bibliography{\jobname} 

\renewbibmacro*{footcite:full}{%
  \printtext{%
    \bibhypertarget{\thefield{entrykey}:\the\value{instcount}}{%
      \usedriver
        {\DeclareNameAlias{sortname}{default}%
         \ifciteidem
           {\renewbibmacro*{author}{\bibstring[\mkibid]{idem\thefield{gender}}}%
            \renewbibmacro*{editor}{\bibstring[\mkibid]{idem\thefield{gender}}}}
           {}%
        }
        {\thefield{entrytype}}}}%
  \usebibmacro{shorthandintro}}

\begin{document}
\blindtext\footcite[Cf.][P. 82]{welsington1997}
\blindtext\footcite[Cf.][P. 5]{welsington1998}
\blindtext\footcite[Cf.][P. 13]{welsington1999}
\printbibliography

\end{document}

答案2

我认为你不应该有这个,因为“ebd。”对应于“ibid./ibidem”,它只用于相同的工作。对于同一作者,可以使用“idem”(尽管现在不那么常见了)。

Biblatex 可以跟踪这两种格式,传统格式也可以。请参阅examplesBiblatex 随附目录中的“trad”示例。即使它们执行“ide​​m”操作,也不会在作品的第一次引用中执行。moewe 的回答向您展示了如何做到这一点。

您可能想要拉丁语而不是德语。请参阅74-style-verbose-trad1.tex下文了解如何更改。

请注意,当您重复引用这些作品时,它historische-zeitschift无论如何都会发挥作用。

顺便说一句,“shorttitle”是为了区分作品。使用“LaTeX”、“BibTeX”和“Biblatex”等值代替“Intr.”、 “Intr.”和“Intr.”!

相关内容