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