两次引用来源/自定义引用样式时缺少“ebd”!

两次引用来源/自定义引用样式时缺少“ebd”!

我需要帮助来调整我对 cite-style 的 latex 偏好。好的,我将从我的最小示例开始:

\documentclass[
    a4paper, % A4 paper size
    12pt, % larger font size
    BCOR = 1cm, % make inner margin (book) larger
    bibtotoc,
]{scrartcl}


\usepackage{scrhack} % addition to koma script; disables warning concerning

\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\selectlanguage{ngerman}

\usepackage[babel,german=guillemets]{csquotes}
\usepackage[citestyle=authortitle-ibid, hyperref, backend=bibtex8, style=alphabetic, ibidtracker=context]{biblatex}
\bibliography{literaturverzeichnis}


\DeclareCiteCommand{\footpartcite}[\mkbibfootnote]
  {\usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \mkbibbrackets{\usebibmacro{cite}}%
   \setunit{\addnbspace}
   \printnames{author}%
   \setunit{\labelnamepunct}
   \printfield[citetitle]{title}%
   \newunit
   \printfield{year}}
  {\addsemicolon\space}
  {\usebibmacro{postnote}}

\usepackage[
    pdftitle={\doctitle},
    pdfauthor={\docauthor},
    pdfpagemode=UseOutlines,
    colorlinks=true,
    linkcolor=black,
    urlcolor=black,
    citecolor=black,
    plainpages=false,
    hypertexnames=false,
    pdfpagelabels=true,
    hyperfootnotes=false,
    hyperindex=true 
    ]{hyperref} 


\begin{document}

This is a text taken from source A\footpartcite{firstsource}. A few lines below there's another text taken by source A\footpartcite{firstsource}.

\end{document}

这样,我就能得到一个具有正确引用样式的脚注和我想要的完美参考书目。但是。当我在一页上两次引用同一个来源时,它会产生完全相同的脚注,而不是“ebd”(即德语的“ibid”)。当在同一页上引用同一来源时,如何强制 \footpartcite 命令打印“ebd”?或者您建议使用其他引用样式?

抱歉,如果我忘了提什么。这是我的第一个“最小示例”。:)

答案1

我们可以将样式中的“ibid”测试偷偷...-ibid放入你的定义中\footpartcite

\providecommand*{\mkibid}[1]{#1}
\DeclareCiteCommand{\footpartcite}[\mkbibfootnote]
  {\usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
     {\printtext[bibhyperref]{\bibstring[\mkibid]{ibidem}}}
     {\printtext[brackets]{\usebibmacro{cite}}%
      \setunit{\addnbspace}%
      \printnames{labelname}%
      \setunit{\labelnamepunct}%
      \printfield[citetitle]{labeltitle}%
      \newunit
      \printfield{labelyear}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}

请注意,我已将一些打印字段更改为更通用的版本,并添加了一些字段%以避免产生虚假空间。labelyear您必须biblatex在启用选项的情况下加载lableyear

平均能量损失

\documentclass[
    a4paper, % A4 paper size
    12pt, % larger font size
    BCOR = 1cm, % make inner margin (book) larger
    bibtotoc,
]{scrartcl}
\usepackage{scrhack} % addition to koma script; disables warning concerning

\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage[babel,german=guillemets]{csquotes}
\usepackage[backend=bibtex8, style=alphabetic, ibidtracker=context, labelyear]{biblatex}
\addbibresource{biblatex-examples.bib}

\providecommand*{\mkibid}[1]{#1}
\DeclareCiteCommand{\footpartcite}[\mkbibfootnote]
  {\usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
     {\printtext[bibhyperref]{\bibstring[\mkibid]{ibidem}}}
     {\printtext[brackets]{\usebibmacro{cite}}%
      \setunit{\addnbspace}%
      \printnames{labelname}%
      \setunit{\labelnamepunct}%
      \printfield[citetitle]{labeltitle}%
      \newunit
      \printfield{labelyear}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}

\usepackage{hyperref} 


\begin{document}
This is a text taken from source A\footpartcite{sigfridsson}. A few lines below there's another text taken by source A\footpartcite{sigfridsson}.
\end{document}

示例输出

相关内容