我想在“前言”部分使用“参考文献”中的编号来提及一些文章。但“前言”部分中的提及不应被视为外观。即参考文献的顺序应仅取决于“正文”部分中的外观。它应该是这样的:
MWE (使用 Biber 的 pdfLaTeX 格式) 是:
\documentclass[a4paper]{article}
\usepackage[backend=biber,bibencoding=utf8,sorting=none]{biblatex}
\addbibresource{./bibsource.bib}
\begin{document}
\section*{Preface}
In Balachandran's article, which is in the References with the number %<some_command>
[2] ... is written.
\section{Main text}
Lorem ipsum \cite{henry_thermodynamics_2002} dolor sit amet \cite{balachandran_machine_2019}.
\printbibliography
\end{document}
MWE 的 Bib 文件为:
@article{balachandran_machine_2019,
title = {Machine Learning Guided Design of Functional Materials with Targeted Properties},
author = {Balachandran, Prasanna V.},
date = {2019-06},
journaltitle = {Computational Materials Science},
volume = {164},
pages = {82--90},
langid = {english}
}
@article{henry_thermodynamics_2002,
title = {Thermodynamics of {{Hydrogen Bond Patterns}} in {{Supramolecular Assemblies}} of {{Water Molecules}}},
author = {Henry, Marc},
date = {2002-07-15},
journaltitle = {ChemPhysChem},
volume = {3},
number = {7},
pages = {607--616},
langid = {english}
}
答案1
citerequest
您可以在前言中将布尔值设置为 false。然后biblatex
不会向.bcf
文档该部分的引用写入引用请求,Biber 也不会看到它们以进行排序。
请注意,当为假时引用的所有条目都citerequest
必须在文档的其他地方引用,否则该条目将不会显示。
在 MWE 中我们用它\begingroup...\endgroup
来保留本地,但如果您不喜欢分组,\boolfalse{citerequest}
也可以直接将其取消。\booltrue{citerequest}
\documentclass[a4paper]{article}
\usepackage[backend=biber, sorting=none]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\begingroup
\section*{Preface}
\boolfalse{citerequest}
Lorem \autocite{sigfridsson}
\endgroup
\section{Main text}
Lorem ipsum \cite{worman} dolor sit amet \cite{sigfridsson}.
\printbibliography
\end{document}