一些开放获取期刊(例如 JHEP)没有真正的页码,尽管它们会导出页码,请参阅:
http://iopscience.iop.org/1126-6708/2001/01/010/
\documentclass{article}
\usepackage[]{biblatex}
\usepackage{filecontents}
\begin{filecontents*}{refs.bib}
@article{1126-6708-2001-01-010,
author={Gennaro Corcella and Ian G. Knowles and Giuseppe Marchesini and Stefano Moretti and Kosuke Odagiri and Peter
Richardson and Michael H. Seymour and Bryan R. Webber},
title={HERWIG 6: an event generator for hadron emission reactions with interfering gluons (including supersymmetric processes)},
journal={Journal of High Energy Physics},
volume={2001},
number={01},
pages={010},
url={http://stacks.iop.org/1126-6708/2001/i=01/a=010},
year={2001},
abstract={HERWIG is a general-purpose Monte Carlo event generator, which includes the simulation of hard lepton-lepton, lepton-hadron and hadron-hadron scattering and soft hadron-hadron collisions in one package. It uses the parton-shower approach for initial- and final-state QCD radiation, including colour coherence effects and azimuthal correlations both within and between jets. This article updates the description of HERWIG published in 1992, emphasising the new features incorporated since then. These include, in particular, the matching of first-order matrix elements with parton showers, a more correct treatment of heavy quark decays, and a wide range of new processes, including many predicted by the Minimal Supersymmetric Standard Model, with the option of R-parity violation. At the same time we offer a brief review of the physics underlying HERWIG, together with details of the input and control parameters and the output data, to provide a self-contained guide for prospective users of the program.}
}
\end{filecontents*}
\addbibresource{refs.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
这在 biblatex 驱动程序中无法很好地呈现article
,因为“010”被视为真实页码。您建议删除“p.”并将“010”放在括号中吗?
答案1
您可以测试输入的第一个标记pages
。如果它是零,您可以使用\mkbibbrackets
:
\documentclass{article}
\usepackage[]{biblatex}
\usepackage{filecontents}
\begin{filecontents*}{refs.bib}
@article{1126-6708-2001-01-010,
author={Gennaro Corcella and Ian G. Knowles and Giuseppe Marchesini and Stefano Moretti and Kosuke Odagiri and Peter
Richardson and Michael H. Seymour and Bryan R. Webber},
title={HERWIG 6: an event generator for hadron emission reactions with interfering gluons (including supersymmetric processes)},
journal={Journal of High Energy Physics},
volume={2001},
number={01},
pages={010},
url={http://stacks.iop.org/1126-6708/2001/i=01/a=010},
year={2001},
abstract={HERWIG is a general-purpose Monte Carlo event generator, which includes the simulation of hard lepton-lepton, lepton-hadron and hadron-hadron scattering and soft hadron-hadron collisions in one package. It uses the parton-shower approach for initial- and final-state QCD radiation, including colour coherence effects and azimuthal correlations both within and between jets. This article updates the description of HERWIG published in 1992, emphasising the new features incorporated since then. These include, in particular, the matching of first-order matrix elements with parton showers, a more correct treatment of heavy quark decays, and a wide range of new processes, including many predicted by the Minimal Supersymmetric Standard Model, with the option of R-parity violation. At the same time we offer a brief review of the physics underlying HERWIG, together with details of the input and control parameters and the output data, to provide a self-contained guide for prospective users of the program.}
}
\end{filecontents*}
\addbibresource{refs.bib}
\usepackage{expl3}
\ExplSyntaxOn
\DeclareFieldFormat{pages}{
\str_if_eq_x:nnTF { \tl_head:n { #1 } } { 0 } %test first token = 0
{ \mkbibbrackets{#1} }%true
{ \mkpageprefix[bookpagination]{#1} }%false
}
\ExplSyntaxOff
\begin{document}
\nocite{*}
\printbibliography
\end{document}