「\listoftables」で「\cite{RN8}」を作成するにはどうすればいいですか?

「\listoftables」で「\cite{RN8}」を作成するにはどうすればいいですか?

テーブル キャプションの 1 つに\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}

ここに画像の説明を入力してください

関連情報