平均能量损失

平均能量损失

我目前正在写一篇论文,我的导师给了我具体的引用规则,但没有模板。

其中一条规则是:

年份用括号括起来,但当该项目是系列的一部分时,年份和年份都放在一组括号中,并用逗号分隔。

这是我的最小工作示例:

\documentclass[ngerman, 12pt,a4paper]{article}

\usepackage[ngerman]{babel}     % Language specification

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}        % Required to output umlauts in a PDF
\usepackage{pslatex}

% bibliography and citation management


\usepackage[backend=biber, style=verbose]{biblatex} 

\addbibresource{literatur.bib}

\AtEveryCitekey{%
    \clearlist{publisher}%  
    \clearlist{location}%
}
\AtEveryBibitem{%
    \clearlist{publisher}%  
    \clearlist{location}%
}

\usepackage{filecontents}  
\begin{filecontents}{literatur.bib}
    @Book{zimmermann1973judeneid,
        Title                    = {Die Entwicklung des Judeneids},
        Author                   = {Volker Zimmermann},
        Publisher                = {Peter Lang},
        Year                     = {1973},
        Series                   = {Europäische Hochschulschriften. Reihe I. Deutsche Literatur und Germanistik},
        number                   = {56},

        Location                 = {Frankfurt am Main},
        Subtitle                 = {Untersuchungen und Texte zur rechtlichen und sozialen Stellung der Juden im Mittelalter}
    }
\end{filecontents}
\begin{document}
    \null\vfill
    Some text\footcite{zimmermann1973judeneid}

    \printbibliography[title={Literatur}]

\end{document}

现在看起来像

在此处输入图片描述

它应该看起来像 series

在此处输入图片描述

对于一个项目没有 series它应该看起来像(但是没有副标题/标题之后和年份之前的点)

在此处输入图片描述

非常感谢您的任何帮助和建议!

答案1

您需要调整主要参考书目驱动程序以获得所需的内容。打开文件standard.bbx并查看以 开头的块\DeclareBibliographyDriver{book}。将此块复制到您的序言中并根据自己的需要进行调整。

您也可以使用软件包\xpatchbibdriver中的xpatch功能来修补驱动程序。

驱动程序的相关部分是:

\usebibmacro{series+number}% 
\newunit\newblock 
\printfield{note}% 
\newunit\newblock 
\usebibmacro{publisher+location+date}%

要删除出版商和地点,并将系列、编号和日期放在括号中,我们需要这样做:

\printfield{note}%
\setunit{\addspace}\newblock
\printtext[parens]{%
  \usebibmacro{series+number}%
  \setunit{\addcomma\space}%
  \usebibmacro{date}}%

我们可以像下面的 MWE 一样将整个驱动程序包含在前言中,或者,如果这是您需要做的唯一更改,则可以更轻松地像这样修补它:

\usepackage{xpatch}

\xpatchbibdriver{book}
  {\usebibmacro{series+number}% 
   \newunit\newblock 
   \printfield{note}% 
   \newunit\newblock 
   \usebibmacro{publisher+location+date}}
  {\printfield{note}%
   \setunit{\addspace}\newblock
   \printtext[parens]{%
     \usebibmacro{series+number}%
     \setunit{\addcomma\space}%
     \usebibmacro{date}}}
  {}
  {}

平均能量损失

\documentclass{article}

\usepackage{filecontents}  
\begin{filecontents}{\jobname.bib}
@book{zimmermann1973judeneid,
  author    = {Zimmermann, Volker},
  title     = {Die Entwicklung des Judeneids},
  subtitle  = {Untersuchungen und Texte zur rechtlichen und sozialen Stellung der Juden im Mittelalter},
  series    = {Europäische Hochschulschriften. Reihe I. Deutsche Literatur und Germanistik},
  number    = {56},
  location  = {Frankfurt am Main},
  publisher = {Peter Lang},
  date      = {1973}
}
@book{zimmermann1973judeneid-noseries,
  author    = {Zimmermann, Volker},
  title     = {Die Entwicklung des Judeneids},
  subtitle  = {Untersuchungen und Texte zur rechtlichen und sozialen Stellung der Juden im Mittelalter},
  location  = {Frankfurt am Main},
  publisher = {Peter Lang},
  date      = {1973}
}
\end{filecontents}

\usepackage[T1]{fontenc}

\usepackage[ngerman]{babel}
\usepackage{csquotes}

\usepackage[style=verbose]{biblatex} 
\addbibresource{\jobname.bib}

\DeclareBibliographyDriver{book}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/editor+others/translator+others}%
  \setunit{\printdelim{nametitledelim}}\newblock
  \usebibmacro{maintitle+title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{edition}%
  \newunit
  \iffieldundef{maintitle}
    {\printfield{volume}%
     \printfield{part}}
    {}%
  \newunit
  \printfield{volumes}%
  \newunit\newblock
  \printfield{note}%
  \setunit{\addspace}\newblock
  \printtext[parens]{%
    \usebibmacro{series+number}%
    \setunit{\addcomma\space}%
    \usebibmacro{date}}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit
  \printfield{pagetotal}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\bibpagerefpunct}\newblock
  \usebibmacro{pageref}%
  \newunit\newblock
  \iftoggle{bbx:related}
    {\usebibmacro{related:init}%
     \usebibmacro{related}}
    {}%
  \usebibmacro{finentry}}


\begin{document}
\null\vfill
Some text \autocite{zimmermann1973judeneid}.
Some text \autocite{zimmermann1973judeneid-noseries}.
\printbibliography
\end{document}

MWE 输出

相关内容