如何在“\listoftables”中制作“\cite{RN8}”?

如何在“\listoftables”中制作“\cite{RN8}”?

在我的一个表格标题中,我插入了\cite{RN8}标题,表格标题正常显示。但是当我查看表格列表时,我发现它\cite{RN8}变成了标签RN8。我该如何让表格列表显示命令\cite{}

答案1

好像在 工作BiBTeX

在此处输入图片描述

% https://tex.meta.stackexchange.com/questions/4407
\documentclass{article}

\begin{filecontents}{\jobname.bib}
@book{key,
  author = {Author, A.},
  year = {2001},
  title = {Title},
  publisher = {Publisher},
}
\end{filecontents}

\begin{document}

\listoffigures

\begin{figure}
    \centering
    FIGURE
    \caption{Caption \cite{key}.}
    \label{fig:my_label}
\end{figure}

\bibliographystyle{plain}
\bibliography{\jobname}

\end{document}

答案2

似乎在BiBLaTeX

在此处输入图片描述

% https://tex.meta.stackexchange.com/questions/4407
\documentclass{article}
\usepackage[style=authoryear-comp]{biblatex}
\addbibresource{\jobname.bib}

\begin{filecontents}{\jobname.bib}
@book{key,
  author = {Author, A.},
  year = {2001},
  title = {Title},
  publisher = {Publisher},
}
\end{filecontents}

\begin{document}

\listoffigures

\begin{figure}
    \centering
    FIGURE
    \caption{Caption \cite{key}.}
    \label{fig:my_label}
\end{figure}

\printbibliography

\end{document}

更新

它也与RN8密钥一起使用。也许你必须清除“缓存文件”(Overleaf)。

在此处输入图片描述

% https://tex.meta.stackexchange.com/questions/4407
\documentclass{article}
\usepackage[style=authoryear-comp]{biblatex}
\addbibresource{\jobname.bib}

\begin{filecontents}{\jobname.bib}
@book{key,
  author = {Author, A.},
  year = {2001},
  title = {Title},
  publisher = {Publisher},
}
@book{RN8,
  author = {Author, RN.},
  year = {2001},
  title = {Title},
  publisher = {Publisher},
}
\end{filecontents}

\begin{document}

\listoffigures

\begin{figure}
    \centering
    FIGURE
    \caption{Caption \cite{key, RN8}.}
    \label{fig:my_label}
\end{figure}

\printbibliography

\end{document}

在此处输入图片描述

相关内容