使用 Historische Zeitschrift Style 从脚注中删除文章页面

使用 Historische Zeitschrift Style 从脚注中删除文章页面

我使用此命令从脚注中删除incollection引用的页面但将其保留在参考书目中。

  \renewbibmacro*{chapter+pages}{%
      \printfield{chapter}%
      \newunit}%

和:

  \renewbibmacro*{chapter+pages}{%
      \printfield{chapter}%
      \setunit*{\addcomma\space}%
      \printfield{pages}%
      \newunit}%

有谁知道如何使其适合于article

这是我的 MWE:

\documentclass[a4paper,11pt]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage{csquotes}
\usepackage{blindtext}
\usepackage{filecontents}
\usepackage{hyperref}
\hypersetup{
    colorlinks,
     citecolor=black,
     filecolor=black,
     linkcolor=black,
     urlcolor=black
}
\begin{filecontents}{\jobname.bib} 
@incollection{athanasius1857,
        Address = {Parisiis},
        Author = {{Athanasius Alexandrinus}},
        Booktitle = {Patrologiae cursus completus: Series Graeca},
        Editor = {Jacques Paul Migne},
        Pages = {37-40},
        Publisher = {Accurante J.-P. Migne},
        Shortauthor = {Ath.},
        Shorttitle = {ep. Marcell.},
        Title = {Epistula ad Marcellinum de interpretatione psalmorum},
        Volume = {27},
        Year = {1857}}
@article{stead1997,
    Author = {Christopher Stead},
    Call-Number = {X2 rewa},
    Date-Added = {2014-07-20 08:23:48 +0000},
    Date-Modified = {2014-07-20 08:25:04 +0000},
    Journal = {Studia Patristica},
    Keywords = {secondary},
    Pages = {39-52},
    Title = {Was Arius a Neoplatonist?},
    Volume = {32},
    Year = {1997}}
\end{filecontents}
\usepackage[ngerman]{babel}
\usepackage[style=historische-zeitschrift, maxnames=2, hyperref=true, backref=true, backrefstyle=none, backend=bibtex,idemtracker=true]{biblatex}
\bibliography{\jobname}
%
\makeatletter%
\renewbibmacro*{chapter+pages}{%
  \printfield{chapter}%
  \newunit}%
\renewenvironment{thebibliography}%
     {\renewbibmacro*{chapter+pages}{%
  \printfield{chapter}%
  \setunit*{\addcomma\space}%
  \printfield{pages}%
  \newunit}}%
\makeatother%
%
\begin{document}
\blindtext\footcite[See][S. 56]{athanasius1857}
\blindtext\footcite[See][S. 22]{stead1997}
\printbibliography

\end{document}

答案1

chapter如果是文章则只写入条目类型内容

\renewbibmacro*{chapter+pages}{%
  \printfield{chapter}%
  \ifentrytype{article}
    {}
    {\setunit*{\addcomma\space}%
     \printfield{pages}%
     \newunit
    }}

答案2

好的,我找到了解决方案,如果其他人需要它,我会在这里发布它(如果我做了不该做的事情,也许有人会纠正我)。

这使得它从正文中消失:

\newbibmacro*{onlypages}{%
  \printfield{chapter}%
  \newunit}
%
\DeclareBibliographyDriver{article}{%
  \usebibmacro{bibindex}%
  \usebibmacro{author/editor}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \usebibmacro{byauthor}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
%     \newunit\newblock
  \setunit{\addcomma\space}%
  \usebibmacro{in:}%
  \usebibmacro{journal+issuetitle}%
%     \newunit\newblock
  \setunit*{\addcomma\space}%
  \printfield{note}%
%     \newunit\newblock
  \setunit*{\newunitpunct}%
\usebibmacro{onlypages}%
  \newunit\newblock%
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock%
  \printfield{addendum}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

并且这需要添加到文本之后但在参考书目之前,以使其在参考书目中添加页面:

\renewbibmacro*{onlypages}{%
      \printfield{chapter}%
      \setunit*{\addcomma\space}%
      \printfield{pages}%
      \newunit}%

相关内容