修改 biblatex 中文章引用的样式

修改 biblatex 中文章引用的样式

目前的文章风格如下:在此处输入图片描述

但它看起来应该是这样的:

在此处输入图片描述

由于我的 biblatex 技能非常有限,很遗憾我还不能根据文章的样子进行自定义。

我需要在代码中添加什么?

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{asmz,
  author  = {Hans Zimmer},
  title   = {Minimal music},
  journal = {Some journal},
  year    = {2013},
  number  = {12},
  pages   = {40-41},
}

\end{filecontents}

\documentclass{article}
\usepackage[style=authortitle,]{biblatex}

\DeclareFieldFormat[article]{title}{\mkbibquote{#1\isdot}}
\renewbibmacro{in:}{}

\addbibresource{\jobname.bib}
\begin{document}
Let's cite! \footcite{asmz}
\printbibliography
\end{document}

答案1

对 bibmacro 和一些格式指令进行一些调整journal+issuetitle应该可以得到预期的结果。请注意,我必须对您示例中未考虑的其他字段的顺序做出一些决定,这会影响标点符号。我还使用 babel 来获取本地化的 bibstring,例如“Nr.”

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{asmz,
  author  = {Hans Zimmer},
  title   = {Minimal music},
  journal = {Some journal},
  year    = {2013},
  number  = {12},
  pages   = {40-41},
}

\end{filecontents}

\documentclass{article}
\usepackage[style=authortitle]{biblatex}
\usepackage[ngerman]{babel}
\usepackage{csquotes}

\renewbibmacro{in:}{}

\renewbibmacro*{journal+issuetitle}{%
  \usebibmacro{journal}%
  \setunit*{\addcomma\space}%
  \printfield{issue}%
  \setunit*{\addspace}%
  \usebibmacro{date}%
  \setunit{\addcomma\space}%
  \iffieldundef{series}
    {}
    {\newunit
     \printfield{series}%
     \setunit{\addspace}}%
  \printfield{volume}%
  \setunit{\addcomma\space}%
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}%
  \setunit{\addcolon\space}%
  \usebibmacro{issue}%
  \newunit}

\DeclareFieldFormat[article,periodical]{date}{\mkbibemph{#1}}
\DeclareFieldFormat[article,periodical]{volume}{\mkbibemph{\bibstring{volume}~#1}}
\DeclareFieldFormat[article,periodical]{number}{\mkbibemph{\bibstring{number}~#1}}
\DeclareFieldFormat[article,periodical]{pages}{\mkbibemph{\mkpageprefix[bookpagination]{#1}}}

\addbibresource{\jobname.bib}
\begin{document}
Let's cite! \footcite{asmz}
\printbibliography
\end{document}

在此处输入图片描述

相关内容