我对什么在做什么感到很困惑。我以前使用biblatex-chicago
,但现在我需要改变,我想使用参考书目样式unsrt
;我希望我的参考文献按照它们在正文中出现的顺序进行编号。
unsrt
在尝试在 .tex 文档中实现参考书目样式后,我放弃了,并认为我找到了另一种方法,只需按原样使用biblatex
,添加 bib 资源,一切似乎都有效。不幸的是,这并没有奏效,因为我很幸运有按字母顺序排列的参考资料,所以它只是似乎上班。
这是我首先做的事情:
输入 #1
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{sectsty}
\usepackage{xcolor}
\usepackage{tcolorbox}
\usepackage[colorlinks,hidelinks,urlcolor=blue,bookmarks=false,hypertexnames=true]{hyperref}
\DeclareUnicodeCharacter{202F}{\,}
\usepackage{biblatex}
\addbibresource{5G.bib}
\author{}
\title{}
\begin{document}
\maketitle
text\cite{5G2022} text \cite{adrianjpullinDesignConsiderations5G2013} text \cite{hargittaiDigitalReproductionInequality2018}, text \cite{ReportSpecialRapporteur2011}, text \cite{DeclaresInternetAccess2011}. text \cite{nyamapfeneImpending5GEra2016}
\printbibliography
\end{document}
然后我尝试使用bibliographystyle{unsrt}
,它有点起作用,只是我的参考资料没有正确显示。
输入 #2:
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{sectsty}
\usepackage{xcolor}
\usepackage{tcolorbox}
\DeclareUnicodeCharacter{202F}{\,}
\usepackage[colorlinks,hidelinks,urlcolor=blue,bookmarks=false,hypertexnames=true]{hyperref}
\bibliographystyle{unsrt}
\author{}
\title{Title}
\begin{document}
\maketitle
text\cite{5G2022} text \cite{adrianjpullinDesignConsiderations5G2013} text \cite{hargittaiDigitalReproductionInequality2018}, text \cite{ReportSpecialRapporteur2011}, text \cite{DeclaresInternetAccess2011}. text \cite{nyamapfeneImpending5GEra2016}
\bibliography{5G.bib}
\end{document}
所以基本上,我需要的是:对于文档末尾的参考列表,输出应该像#1,但对于引用列表的数字,输出应该是#2。
输出#1:
输出 #2:
这是 bib 文件:
@inreference{5G2022,
title = {{{5G}}},
booktitle = {Wikipedia},
date = {2022-03-13T21:40:58Z},
url = {https://en.wikipedia.org/w/index.php?title=5G&oldid=1076960026},
urldate = {2022-03-14},
abstract = {},
langid = {english},
annotation = {Page Version ID: 1076960026},
file = {/home/louisvgn/Zotero/storage/DUSRMKCJ/5G.html}
}
@article{adrianjpullinDesignConsiderations5G2013,
title = {Design {{Considerations}} for {{5G Mobile Network}}},
author = {{Adrian J Pullin} and Mehedi Shams Rony},
date = {2013-01},
journaltitle = {International Journal of Computer Applications},
volume = {62},
number = {10},
pages = {14--21},
url = {https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.303.3268&rep=rep1&type=pdf},
langid = {english}
}
@online{DeclaresInternetAccess2011,
title = {‘{{UN}} Declares {{Internet}} Access a Human Right’ – Did It Really? - {{Diplo}}},
shorttitle = {‘{{UN}} Declares {{Internet}} Access a Human Right’ – Did It Really?},
date = {2011-06-10T11:28:53+02:00},
url = {https://www.diplomacy.edu/blog/un-declares-internet-access-human-right-did-it-really/},
urldate = {2022-03-14},
abstract = {‘UN declares Internet access a human right’ – did it really? The ‘scoop’ headlines read ‘UN declares Internet access a human right’, ‘Internet access is a},
langid = {british},
file = {/home/louisvgn/Zotero/storage/5WLLISCQ/un-declares-internet-access-human-right-did-it-really.html}
}
@book{hargittaiDigitalReproductionInequality2018,
title = {The Digital Reproduction of Inequality},
author = {Hargittai, Eszter},
date = {2018},
publisher = {{Routledge}},
isbn = {0-429-49446-7},
pagetotal = {11}
}
@article{nyamapfeneImpending5GEra2016,
title = {The {{Impending 5G Era}} and {{Its Likely Impact}} on {{Society}}},
author = {Nyamapfene, A.},
date = {2016-01},
journaltitle = {Journal of Independent Studies and Research - Computing},
volume = {14},
number = {1},
pages = {43--47},
publisher = {{Shaheed Zulfiqar Ali Bhutto Institute of Science and Technology}},
issn = {2412-0448},
url = {https://doi.org/10.31645/jisrc/(2016).14.1.0007},
urldate = {2022-03-14},
abstract = {},
issue = {1},
langid = {english},
file = {/home/louisvgn/Zotero/storage/VPTCPLI5/Nyamapfene - 2016 - The Impending 5G Era and Its Likely Impact on Soci.pdf;/home/louisvgn/Zotero/storage/TKNB82FV/10096520.html}
}
@report{ReportSpecialRapporteur2011,
title = {Report of the {{Special Rapporteur}} on the Promotion and Protection of the Right to Freedom of Opinion and Expression, {{Frank La Rue}}},
year = {16\,May 2011},
number = {A/HRC/12/27},
pages = {22},
institution = {{United Nations}},
location = {{General Assembly}},
url = {https://www2.ohchr.org/english/bodies/hrcouncil/docs/17session/A.HRC.17.27_en.pdf},
langid = {english}
}
非常感谢您的帮助。这救了我的命!
答案1
我的第一条建议是继续努力为您服务biblatex
。biber
但是,如果您无法使其工作并且决定切换到基于 BibTeX 的工作流程,这里有一些建议:
使用
unsrtnat
,而不是古老的unsrt
bib 样式。并且,加载natbib
引文管理包以及xurl
包。这样,url
字段将得到正确处理。将所有实例替换
journaltitle
为journal
。BibTeX 样式无法识别该
date
字段。我建议您year
为每个缺少字段的书目条目添加包含(您猜对了)出版年份的字段year
。如果可能的话,请
author
选择合适作者来填补缺失的字段。
\documentclass[12pt,a4paper]{article}
\begin{filecontents}[overwrite]{5G.bib}
@misc{5G2022,
title = {{5G}},
author = {Wikipedia},
year = 2022,
date = {2022-03-13T21:40:58Z},
url = {https://en.wikipedia.org/w/index.php?title=5G&oldid=1076960026},
urldate = {2022-03-14},
abstract = {},
langid = {english},
annotation = {Page Version ID: 1076960026},
file = {/home/louisvgn/Zotero/storage/DUSRMKCJ/5G.html}
}
@article{adrianjpullinDesignConsiderations5G2013,
title = {Design {Considerations} for {5G Mobile Network}},
author = {Adrian J. Pullin and Mehedi Shams Rony},
year = 2013,
date = {2013-01},
journal = {International Journal of Computer Applications},
volume = {62},
number = {10},
pages = {14--21},
url = {https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.303.3268&rep=rep1&type=pdf},
langid = {english}
}
@online{DeclaresInternetAccess2011,
title = {{UN} Declares {Internet} Access a Human Right --- Did It Really? --- {Diplo}},
shorttitle = {‘{UN} Declares {Internet} Access a Human Right’ – Did It Really?},
year = 2011,
date = {2011-06-10T11:28:53+02:00},
url = {https://www.diplomacy.edu/blog/un-declares-internet-access-human-right-did-it-really/},
urldate = {2022-03-14},
abstract = {‘UN declares Internet access a human right’ – did it really? The ‘scoop’ headlines read ‘UN declares Internet access a human right’, ‘Internet access is a},
langid = {british},
file = {/home/louisvgn/Zotero/storage/5WLLISCQ/un-declares-internet-access-human-right-did-it-really.html}
}
@book{hargittaiDigitalReproductionInequality2018,
title = {The Digital Reproduction of Inequality},
author = {Hargittai, Eszter},
year = 2018,
date = {2018},
publisher = {Routledge},
isbn = {0-429-49446-7},
pagetotal = {11}
}
@article{nyamapfeneImpending5GEra2016,
title = {The {Impending 5G Era} and Its Likely Impact on Society},
author = {Nyamapfene, A.},
year = 2016,
date = {2016-01},
journal = {Journal of Independent Studies and Research -- Computing},
volume = {14},
number = {1},
pages = {43--47},
publisher = {Shaheed Zulfiqar Ali Bhutto Institute of Science and Technology},
issn = {2412-0448},
url = {https://doi.org/10.31645/jisrc/(2016).14.1.0007},
urldate = {2022-03-14},
abstract = {},
issue = {1},
langid = {english},
file = {/home/louisvgn/Zotero/storage/VPTCPLI5/Nyamapfene - 2016 - The Impending 5G Era and Its Likely Impact on Soci.pdf;/home/louisvgn/Zotero/storage/TKNB82FV/10096520.html}
}
@techreport{ReportSpecialRapporteur2011,
author={{United Nations}},
title = {Report of the {Special Rapporteur} on the Promotion and Protection of the Right to Freedom of Opinion and Expression, {Frank La Rue}},
year = 2011,
date = {16\,May 2011},
number = {A/HRC/12/27},
pages = {22},
institution = {United Nations},
location = {General Assembly},
url = {https://www2.ohchr.org/english/bodies/hrcouncil/docs/17session/A.HRC.17.27_en.pdf},
langid = {english}
}
\end{filecontents}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{xurl}
\usepackage[colorlinks,allcolors=blue]{hyperref}
\usepackage[numbers]{natbib}
\bibliographystyle{unsrtnat}
\begin{document}
\cite{5G2022}
\cite{adrianjpullinDesignConsiderations5G2013}
\cite{hargittaiDigitalReproductionInequality2018}
\cite{ReportSpecialRapporteur2011}
\cite{DeclaresInternetAccess2011}
\cite{nyamapfeneImpending5GEra2016}
\bibliography{5G}
\end{document}
答案2
根据 moewe 的评论回答:
unsrt
在 biblatex 中按外观排序的方法是使用sorting=none,
。因此\usepackage[backend=biber, style=numeric, sorting=none,]{biblatex}
(如果我们想比必要的更明确一点)。另请参阅tex.stackexchange.com/q/51434/35864和tex.stackexchange.com/a/337117/252672