使用 biber 更改引用样式

使用 biber 更改引用样式

关于引用样式我有两个问题,请参见示例。

  1. 首先,为了节省空间,引用中不应该包含作品标题。

  2. 第二,volume.number (Month Year)应该用符号代替符号\bf{volume}, number (year)

以下是 LaTeX 代码:

\documentclass[open=right,titlepage=on,headsepline=on,numbers=enddot,ngerman,12pt,draft]{scrbook}
\usepackage[ngerman]{babel}
\usepackage[citestyle=verbose-ibid,bibstyle=authortitle,labelyear=true,backend=biber,isbn=false,url=false,doi=false,eprint=false]{biblatex} 
\bibliography{mini}
\begin{document}
\footcite{sigmund_mechanism_1973}
\printbibliography
\end{document}

这是mini.bib文件:

@article{sigmund_mechanism_1973,
    title = {A mechanism of surface micro-roughening by ion bombardment},
    volume = {8},
    issn = {0022-2461, 1573-4803},
    url = {http://link.springer.com/article/10.1007/BF00754888},
    doi = {10.1007/BF00754888},
    abstract = {},
    language = {en},
    number = {11},
    urldate = {2014-02-24},
    journal = {J Mater Sci},
    author = {Sigmund, Peter},
    month = nov,
    year = {1973},
    keywords = {Characterization and Evaluation Materials, Industrial {Chemistry/Chemical} Engineering, Mechanics, Polymer Sciences},
    pages = {1545--1553},
    file = {}
},

答案1

您可以尝试这些修改verbose-ibid

我们用逗号作为标点符号

\renewcommand*{\newunitpunct}{\addcomma\space}

language列表将不会显示,我们还删除了title引用。

\AtEveryBibitem{\clearlist{language}}
\AtEveryCitekey{\clearlist{language}\clearfield{title}}

本卷以粗体印刷

\DeclareFieldFormat[article]{volume}{\mkbibbold{#1}}

没有“在:”...

\renewbibmacro{in:}{}

体积和数量之间有一个逗号@articles

\renewbibmacro*{volume+number+eid}{%
  \printfield{volume}%
  \setunit{\addcomma\space}%
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}}

这里没有简短的引用,所以我们总是打印完整的内容或只是同上。

\renewbibmacro*{cite}{%
  \usebibmacro{cite:citepages}%
  \global\togglefalse{cbx:loccit}%
  \ifciteseen
    {\iffieldundef{shorthand}
       {\ifboolexpr{
          test {\ifciteibid}
      and
      not test {\iffirstonpage}
        }
          {\usebibmacro{cite:ibid}}
          {\usebibmacro{cite:full}}}
       {\usebibmacro{cite:shorthand}}}
    {\usebibmacro{cite:full}}}

平均能量损失

\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[citestyle=verbose-ibid,bibstyle=authortitle,labelyear=true,backend=biber,isbn=false,url=false,doi=false,eprint=false]{biblatex} 
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{sigmund_mechanism_1973,
    title = {A mechanism of surface micro-roughening by ion bombardment},
shorttitle = {hi},
    volume = {8},
    issn = {0022-2461, 1573-4803},
    url = {http://link.springer.com/article/10.1007/BF00754888},
    doi = {10.1007/BF00754888},
    language = {en},
    number = {11},
    urldate = {2014-02-24},
    journal = {J Mater Sci},
    author = {Sigmund, Peter},
    month = nov,
    year = {1973},
    keywords = {Characterization and Evaluation Materials, Industrial {Chemistry/Chemical} Engineering, Mechanics, Polymer Sciences},
    pages = {1545--1553},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\renewcommand*{\newunitpunct}{\addcomma\space}
\AtEveryBibitem{\clearlist{language}}
\AtEveryCitekey{\clearlist{language}\clearfield{title}}
\DeclareFieldFormat[article]{volume}{\mkbibbold{#1}}
\renewbibmacro{in:}{}
\renewbibmacro*{volume+number+eid}{%
  \printfield{volume}%
  \setunit{\addcomma\space}%
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}}

\renewbibmacro*{cite}{%
  \usebibmacro{cite:citepages}%
  \global\togglefalse{cbx:loccit}%
  \ifciteseen
    {\iffieldundef{shorthand}
       {\ifboolexpr{
          test {\ifciteibid}
      and
      not test {\iffirstonpage}
        }
          {\usebibmacro{cite:ibid}}
          {\usebibmacro{cite:full}}}
       {\usebibmacro{cite:shorthand}}}
    {\usebibmacro{cite:full}}}

\begin{document}
  Lorem ipsum\footcite{sigmund_mechanism_1973}.
  \printbibliography
\end{document}

在此处输入图片描述

相关内容