
В одной из моих таблиц подписей я вставил \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}