我正在使用以下代码来做我的笔记。
\documentclass[12pt,a4paper,footinclude=true,headinclude=true,openany]{scrbook} %
\usepackage[backend=bibtex]{biblatex}
\bibliography{mybib}
\DeclareBibliographyCategory{cited}
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}
\nocite{*}
\usepackage{filecontents}
\begin{filecontents*}{mybib.bib}
@Book{bapat2013combinatorial,
author = {Bapat, R. B.},
title = {Combinatorial matrix theory and generalized inverses of matrices},
publisher = {Springer},
year = {2013},
address = {New Delhi New York},
isbn = {8132210522}
}
@book{nashed1976generalized,
title={Generalized Inverses and Applications: Proceedings of an Advanced Seminar on Generalized Inverses and Applications},
author={Nashed, M.Z.},
series={Academic Press rapid manuscript reproduction},
url={https://books.google.co.in/books?id=YXbyQwAACAAJ},
year={1976},
publisher={Academic Press}
}
@book{kesavan2014functional,
title={Functional Analysis},
author={Kesavan, S.},
series={Texts and Readings in Mathematics},
url={https://books.google.co.in/books?id=YXbyQwAACAAJ},
year={2014},
publisher={Hindustan Book Agency(India)}
Number={52}
isbn={978-93-80250-62-5}
}
@article{mos,
author = {Moslehian},
title = {A Survey Of The Complemented Subspace Problem},
journal = {Trends in Mathematics,
Information Center for Mathematical Sciences},
year = {June, 2006},
volume = {9}
Number = {1}
Pages={91–98},
note = {tohbhhjhj appear},
}
\end{filecontents*}
\begin{document}
%\maketitle
%\input{tit.tex}
\pagenumbering{roman}
\tableofcontents
\chapter{A Unified Operator Theory of Generalized Inverses}
See this \cite{kesavan2014functional} gives [2] as the reference number, but I want that this has to be [1], since I am citing this as my first citation in my first page of my notes.
\addcontentsline{toc}{chapter}{References}
\printbibliography[title={Works cited},category=cited]% default title for `article` class: "References"
\printbibliography[title={Further Reading},notcategory=cited]
\end{document}
问题:
我希望我的“引用作品”必须按照我在笔记中引用的顺序提供参考文献列表。也就是说,如果我
mos
在第一页引用了某篇作品,那么它必须是我引用作品中的第一个参考文献。并且在 中
Further reading
我应该重新开始编号。我不想在我的参考列表中包含书籍的网址。
这是我的输出,
第一页
作品引用页。
所有内容都在不同的页面中,为了尽量简化,我只裁剪了内容。
答案1
为了按照文中出现的引用进行排序,您需要排序选项sorting=none
。
如果您有几份数字格式的参考书目,您也应该听取文件biblatex
中的建议.log
并使用defernumbers=true
。
然后,您的第二份参考书目需要resetnumbers
重新开始编号,我还添加了它prefixnumbers={F}
,以便人们可以一眼就区分进一步的阅读内容和引用的作品。
\printbibliography[title={Further Reading},notcategory=cited,resetnumbers,prefixnumbers={F}]
您的.bib
文件缺少几个逗号(只能省略条目中的最后一个逗号)并引发了几个错误,我已在 MWE 中进行了更改
\documentclass{article} %
\usepackage[backend=bibtex,sorting=none,defernumbers=true]{biblatex}
\nocite{*}
\DeclareBibliographyCategory{cited}
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{bapat2013combinatorial,
author = {Bapat, R. B.},
title = {Combinatorial matrix theory and generalized inverses of matrices},
publisher = {Springer},
year = {2013},
address = {New Delhi New York},
isbn = {8132210522},
}
@book{nashed1976generalized,
title={Generalized Inverses and Applications: Proceedings of an Advanced Seminar on Generalized Inverses and Applications},
author={Nashed, M.Z.},
series={Academic Press rapid manuscript reproduction},
url={https://books.google.co.in/books?id=YXbyQwAACAAJ},
year={1976},
publisher={Academic Press},
}
@book{kesavan2014functional,
title={Functional Analysis},
author={Kesavan, S.},
series={Texts and Readings in Mathematics},
url={https://books.google.co.in/books?id=YXbyQwAACAAJ},
year={2014},
publisher={Hindustan Book Agency (India)},
Number={52},
isbn={978-93-80250-62-5}
}
@article{mos,
author = {Moslehian},
title = {A Survey Of The Complemented Subspace Problem},
journal = {Trends in Mathematics,
Information Center for Mathematical Sciences},
year = {June, 2006},
volume = {9},
Number = {1},
Pages={91–98},
note = {tohbhhjhj appear},
}
\end{filecontents*}
\bibliography{\jobname}
\begin{document}
See this \cite{kesavan2014functional} gives [2] as the reference number, but I want that this has to be [1], since I am citing this as my first citation in my first page of my notes.
\printbibliography[title={Works cited},category=cited]
\printbibliography[title={Further Reading},notcategory=cited,resetnumbers,prefixnumbers={F}]
\end{document}
答案2
首先感谢@moewe。在这里,我发布了完整的解决方案,希望对其他人有所帮助,
代码如下,
\documentclass[12pt,a4paper,footinclude=true,headinclude=true,openany]{scrbook} %
\usepackage[backend=bibtex,sorting=none,defernumbers=true]{biblatex}
\bibliography{mybib}
\DeclareBibliographyCategory{cited}
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}
\nocite{*}
\usepackage{filecontents}
\AtEveryBibitem{%
\ifentrytype{book}{
\clearfield{url}%
\clearfield{urlyear}%
}{}
\ifentrytype{collection}{
\clearfield{url}%
\clearfield{urlyear}%
}{}
\ifentrytype{incollection}{
\clearfield{url}%
\clearfield{urlyear}%
}{}
}
\begin{filecontents*}{mybib.bib}
@online{Bonline,
作者 = {BBBBonline, B.}, 年份 = {2002}, 标题 = {Bravo}, url = {tex.stackexchange.com}, }
@collection{Ccollection,
editor = {CCCCColletionEditor, C.},
year = {2002},
title = {Charlie},
url = {tex.stackexchange.com},
urldate = {2010-01-01},
}
@book{kesavan2014functional,
title={Functional Analysis},
author={Kesavan, S.},
series={Texts and Readings in Mathematics},
url={https://books.google.co.in/books?id=YXbyQwAACAAJ},
year={2014},
publisher={Hindustan Book Agency(India)}
Number={52}
isbn={978-93-80250-62-5}
}
@article{mos,
author = {Moslehian},
title = {A Survey Of The Complemented Subspace Problem},
journal = {Trends in Mathematics,
Information Center for Mathematical Sciences},
year = {June, 2006},
volume = {9}
Number = {1}
Pages={91–98},
note = {tohbhhjhj appear},
}
\end{filecontents*}
\begin{document}
%\maketitle
%\input{tit.tex}
\pagenumbering{roman}
\tableofcontents
\chapter{A Unified Operator Theory of Generalized Inverses}
See this \cite{kesavan2014functional} gives [2] as the reference number, but I want that this has to be [1], since I am citing this as my first citation in my first page of my notes.
\addcontentsline{toc}{chapter}{References}
\printbibliography[title={Works cited},category=cited]% default title for `article` class: "References"
\printbibliography[title={Further Reading},notcategory=cited,resetnumbers,prefixnumbers={F}]
\end{document}
所需的输出是,(请注意,现在@book 字段和@collection 字段中的 url 没有打印,而是@online 按照我们的需要打印 url。