我在我的文件中使用它.tex
:
%Bibliography
\usepackage[sorting=none,citestyle=authoryear,backend=biber]{biblatex}
\bibliography{expose}
它给出了和的(author year)
输出。 \parencite 给了我想要的结果,但我希望 \cite 给出的数字 = 参考文献中的索引号的输出。\parencite{reference}
author (year)
\cite{reference}
[number]
我怎样才能做到这一点?
进一步解释:
我有“科学背景和动机”、“相关工作”、“文献”和“参考文献”等部分。
一个简单的例子:
"Scientific Background and Motivation": ("Chocolate can be dangerous." as an indirect citation)
Chocolate can be dangerous.[1]
"Related Work":
The article (Willy Wonka et. al. 2022) has made a significant contribution to chocolate research.
"Literature":
The book from (Charlie et. al. 2023) is a good source for understanding the science behind chocolate poisoning.
"References" (automatically generated by using \printbibliography)
[1] Lonkas et. al. "The danger of chocolate".....
[2] Willy Wonka et. al. "The way to not dangerous chocolate"...
[3] Charlie et. al. "Why chocolate poisons people"...
答案1
我认为以这种方式将作者年份样式与数字样式混合不是一个好主意。作者年份标签在数字书目中很难解决(尤其是按外观排序的书目)。另外,我认为括号引用没有意义,如问题所示:如果忽略括号,句子仍然应该清晰,但在例句中,括号引用是句子结构的组成部分。
我建议你专门去style=numeric,
使用
\autocite
(或\parencite
)表示“直接”引用,并且\textcite
用于句子中的“间接”引用(确保名称是主语/宾语)。
你的例子就会变成
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=numeric, sorting=none]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\section{Scientific background}
Chocolate can be dangerous. \autocite{sigfridsson}
\section{Related work}
Recently \textcite{worman} has made a significant contribution to chocolate research.
\section{Literature}
The book by \textcite{nussbaum} is a good source for understanding the science behind chocolate poisoning.
\printbibliography
\end{document}