如何从我的引文中删除所有文本?

如何从我的引文中删除所有文本?

我正在尝试从 overleaf 中的参考文献中删除所有文本。这是我现在有的 - “多头点积注意力 Vaswani 等人。[28]”

这就是我想要的——“多头点积注意力机制 [28]”

尽管设置了 style = numeric,我仍然无法理解为什么会发生这种情况。

\documentclass{article}
\usepackage[style=numeric]{biblatex}
\addbibresource{references.bib}
\bibliography{sample}

\title{Example}
\date{August 2021}

\usepackage{graphicx}

\begin{document}

\maketitle

\section{Introduction}
There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.
There is another theory which states that this has already happened.

\begin{figure}[h!]
\centering
\includegraphics[scale=1.7]{universe}
\caption{The Universe}
\label{fig:universe}
\end{figure}

\section{Conclusion}
``I always thought something was fundamentally wrong with the universe'' \textcite{adams1995hitchhiker}

\printbibliography
\end{document}

如您所见,输出是 Adams[1],而我要查找的只是 [1]。

答案1

您正在使用\textcite始终打印作者。 biblatex 手册指出:

\textcite[〈prenote〉][〈postnote〉]{〈key〉}
\Textcite[〈prenote〉][〈postnote〉]{〈key〉}

此包附带的所有样式都提供这些引文命令。它们旨在用于文本流中,替换句子的主语。它们打印作者或编辑者,后面跟着括号中的引文标签。根据引文样式,标签可能是数字、出版年份、标题的缩写版本或其他内容。数字和字母样式使用方括号而不是括号。

解决方法很简单:改用\cite

答案2

这个怎么样?

\documentclass{article}
\usepackage[style=numeric]{biblatex}
\addbibresource{references.bib}
%\bibliography{sample}

\title{Example}
\date{August 2021}

\usepackage{graphicx}

\begin{document}

\maketitle

\section{Introduction}
There is a theory which states that if ever anyone discovers exactly
what the Universe is for and why it is here, it will instantly
disappear and be replaced by something even more bizarre and
inexplicable.  There is another theory which states that this has
already happened.

\begin{figure}[h!]
\centering
\includegraphics[scale=1.7]{universe}
\caption{The Universe}
\label{fig:universe}
\end{figure}

\section{Conclusion}
``I always thought something was fundamentally wrong with the
universe'' \cite{adams1995hitchhiker} % <----------

\printbibliography
\end{document}

在此处输入图片描述

相关内容