我正在使用 TeXstudio 用 LaTeX 撰写论文。过去两天,我尝试使用各种建议的方法解决“出版物列表”部分的问题,例如,
尝试了第一和第二个答案但它不工作或者显示错误。
在这种情况下,它没有显示任何错误,并且可以正常编译。但是不已打印出版物清单。有什么解决办法?
到目前为止,我已经尝试过通过删除所有辅助文件进行编译。我的 bib 文件名是RSC.bib
,我正在尝试从这个主参考文件中获取我的出版物。我正在使用 XeLaTeX 编译器。
我的MWE如下:
\documentclass[a4paper, twoside, 12pt]{thesis}
\begin{filecontents*}{RSC.bib}
@article{remanan2019preparation,
title="Preparation and characterization..",
author="S. {Remanan} and M. {Bose} and A. K. {Das} and N. C. {Das}",
journal="Journal of Applied Polymer Science",
volume="136",
number="12",
pages="47218",
notes="Sourced from Microsoft Academic - https://academic.microsoft.com/paper/2898623046",
year="2019",
keywords ="myPapers"
}
\end{filecontents*}
\usepackage[natbib=true, style=numeric-comp, backend=bibtex8,defernumbers, maxnames=99]{biblatex}
\begin{document}
\pagenumbering{roman}
\include{firstpage}
\include{frontmatter}
\include{abstract}
\cleardoublepage
\tableofcontents
\include{listofnotation}
\cleardoublepage
\listoftables
\listoffigures
\pagenumbering{arabic}
\input{intro} %%Chapter 1%%
\cleardoublepage
\singlespacing
\renewcommand{\bibname}{References}
\cleardoublepage
\newpage
\printbibliography
\appendix
\begin{refsection}
\nocite{*}
\printbibliography[keyword=myPapers,title={My papers}, prefixnumbers={P.}, heading=bibnumbered]
\end{refsection}
\end{document}
答案1
在的当前版本中,biblatex
labelprefix=P
必须作为的参数给出refcontext
。请注意,refcontext
BibTeX 不完全支持 s,但在biblatex
3.14 中,以下内容将起作用。
\documentclass[a4paper, twoside, 12pt]{thesis}
\usepackage[natbib=true, style=numeric-comp, backend=bibtex8, defernumbers, maxnames=99]{biblatex}
\begin{filecontents*}{\jobname.bib}
@article{remanan2019preparation,
title = {Preparation and characterization},
author = {S. Remanan and M. Bose and A. K. Das and N. C. Das},
journal = {Journal of Applied Polymer Science},
volume = {136},
number = {12},
pages = {47218},
notes = {Sourced from Microsoft Academic - https://academic.microsoft.com/paper/2898623046},
year = {2019},
keywords = {myPapers},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\cite{remanan2019preparation}
\printbibliography
\appendix
\begin{refsection}
\nocite{*}
\newrefcontext[labelprefix=P]
\printbibliography[keyword=myPapers,title={My papers}, heading=bibnumbered]
\end{refsection}
\end{document}
假设文档保存为mydoc.tex
,当我编译文档时,我将获得预期的输出,如下所示
xelatex mydoc
bibtex mydoc
bibtex mydoc1-blx
xelatex mydoc
xelatex mydoc
具体来说,您需要为refsection
文档中的每个内容运行不同的 BibTeX。(您的文档有两个:默认的refsection
0 存在于所有地方,而refsection
1 则用于您的出版物列表。)
然后我得到
如果你使用首选的 Biber 后端(backend=biber,
而不是backend=bibtex8,
)并且Biblatex 与 Biber:配置我的编辑器以避免未定义的引用。
和
\documentclass[a4paper, twoside, 12pt]{thesis}
\usepackage[natbib=true, style=numeric-comp, backend=biber, defernumbers, maxnames=99]{biblatex}
\begin{filecontents*}{\jobname.bib}
@article{remanan2019preparation,
title = {Preparation and characterization},
author = {S. Remanan and M. Bose and A. K. Das and N. C. Das},
journal = {Journal of Applied Polymer Science},
volume = {136},
number = {12},
pages = {47218},
notes = {Sourced from Microsoft Academic - https://academic.microsoft.com/paper/2898623046},
year = {2019},
keywords = {myPapers},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\cite{remanan2019preparation}
\printbibliography
\appendix
\begin{refsection}
\nocite{*}
\newrefcontext[labelprefix=P]
\printbibliography[keyword=myPapers,title={My papers}, heading=bibnumbered]
\end{refsection}
\end{document}
编译就足够了
xelatex mydoc
biber mydoc
xelatex mydoc
xelatex mydoc