如何在“\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鑰匙。也許您必須清除“快取檔案”(背面)。

在此輸入影像描述

% 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}

在此輸入影像描述

相關內容