我是 LaTeX 的初学者,对常用软件包的修改不太了解。我提供我尝试过的最小工作代码,然后描述我的问题。
我有lauraPhd2016.bib
以下数据
@article{wombat2016,
author = {Walther Wombat and Klaus Koala},
title = {The true meaning of 42},
journal = {Journal of modern skepticism},
date = {2016},
keywords = {trusted},
}
@book{lion2010,
author = {Laura Lion and Gabrielle Giraffe and Carl Capybara},
title = {The dangers of asking the wrong question},
publisher = {publishing house},
date = {2010},
keywords = {trusted},
}
@online{wikibook,
title = {Generating Bibliographies with biblatex and biber},
organization = {Wikibooks},
date = {2016},
urldate = {2016-03-07},
url = {https://en.wikibooks.org/wiki/LaTeX/Generating_Bibliographies_with_biblatex_and_biber},
keywords = {untrusted},
}
我在下面的文章中使用 Biber 生成引文
\documentclass{article}
\usepackage[backend=biber,sorting=none]{biblatex}
\addbibresource{lauraPhd2016.bib}
\begin{document}
I doubt that there is any useful information here~\cite{wikibook}.
All we know is limited, apart from knowing the answer we all know. Or do we? Wombat and Koala~\cite{wombat2016} have discovered some interesting things.
Some people are too nosy. What can happen to them is described by Laura Lion~\cite{lion2010}.
\printbibliography
\end{document}
我得到的输出是
现在我想要做的是,不是手动指定author \cite{key}
,\cite
而是\something_other
直接自动完成整个工作。输出应为“作者姓名 [数字参考编号]”,如输出文件中所示。对于像我这样的初学者来说,简单的方法会很有帮助。
答案1
正如所提到的太平洋标准时间 在评论中,您可以使用数字样式\textcite
来生成<author> [<number>]
引用。
一般来说,speaking\textcite
会产生文本/叙述引用,其中作者姓名可以集成到文本流中,并带有附加标签部分,使引用独一无二(附加标签的确切性质取决于引用样式)。
\documentclass{article}
\usepackage[backend=biber, style=numeric, sorting=none]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \textcite{sigfridsson}
ipsum \autocite{sigfridsson}
\printbibliography
\end{document}