覆盖 Biblatex 样式:缺少分页

覆盖 Biblatex 样式:缺少分页

我想使用,style=chem-angew但要覆盖 @article 没有页面前缀。我还没有找到任何可行的解决方案(没有对参考书目进行手动更改或更改样式本身),因此寻求帮助。

这是我的工作示例:

\documentclass[12pt,a4paper]{article}                            
\usepackage[backend=biber,style=chem-angew]{biblatex}
\addbibresource{bib.bib}

\begin{document}
\cite{Eder.1983.types}
\cite{Fattahi.2005}

\printbibliography[heading=none]
\end{document}

书目目录

@book{Eder.1983.types,
 author = {Eder, Franz Xaver},
 year = {1983},
 title = {Arbeitsmethoden der Thermodynamik: Band II Thermische und kalorische Stoffeigenschaften},
 address = {Berlin, Heidelberg},
 publisher = {{Springer Berlin Heidelberg}},
 pages = {125--261}
}

@article{Fattahi.2005,
 author = {Fattahi, Alireza and Kass, Steven R. and Liebman, Joel F. and Matos, M. Agostinha R. and Miranda, Margarida S. and Morais, Victor M. F.},
 year = {2005},
 title = {The enthalpies of formation of o-, m-, and p-benzoquinone: gas-phase ion energetics, combustion calorimetry, and quantum chemical computations combined},
 pages = {6116--6122},
}

输出:

输出

所需的输出每个项目都有前缀p.~/ 。pp.~

答案1

您可以恢复原始定义来自biblatex.def,打印页面前缀,如下所示

\DeclareFieldFormat[article]{pages}{\mkpageprefix[bookpagination]{#1}}

此处可选参数article仅将此更改应用于@articles(因为所有其他类型都有前缀)。如果要重置所有条目类型的格式,请使用

\DeclareFieldFormat*{pages}{\mkpageprefix[bookpagination]{#1}}

在这种情况下,两种方法之间没有区别(因为@article唯一具有与其他不同的定义的类型)。

\documentclass[12pt,a4paper]{article}
\usepackage[backend=biber,style=chem-angew]{biblatex}

\DeclareFieldFormat[article]{pages}{\mkpageprefix[bookpagination]{#1}}

\begin{filecontents}{\jobname.bib}
@book{Eder.1983.types,
  author    = {Eder, Franz Xaver},
  year      = {1983},
  maintitle = {Arbeitsmethoden der Thermodynamik},
  volume    = {2},
  title     = {Thermische und kalorische Stoffeigenschaften},
  address   = {Berlin and Heidelberg},
  publisher = {Springer},
  pages     = {125--261}
}
@article{Fattahi.2005,
  author  = {Fattahi, Alireza and Kass, Steven R. and Liebman, Joel F.
             and Matos, M. Agostinha R. and Miranda, Margarida S.
             and Morais, Victor M. F.},
  year    = {2005},
  title   = {The Enthalpies of Formation of o-, m-, and p-Benzoquinone: 
             Gas-Phase Ion Energetics, Combustion Calorimetry,
             and Quantum Chemical Computations Combined},
  pages   = {6116--6122},
  journal = {J. Am. Chem. Soc.},
  volume  = {127},
  number  = {16},
  doi     = {10.1021/ja042612f},
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
\cite{Eder.1983.types}
\cite{Fattahi.2005}

\printbibliography[heading=none]
\end{document}

A. Fattahi、SR Kass、JF Liebman、MAR Matos、MS Miranda 和 VMF Morais,J. Am. Chem. Soc. 2005,127,第 6116-6122 页。

相关内容