In one of my table captions, I inserted \cite{RN8} in the caption and the caption of the table showed normally. But when I saw the list of tables, I found that \cite{RN8} became the label RN8. How can I make the list of tables show the \cite{} command?
- 1,885
2 Answers
Seems to work in 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}
Update
It also works with RN8 as a key. Maybe you have to clear the "cached files" (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}
- 22,451
-
I check your code and it is right. But why mine can't? Where determine the display of cited thing in the list of tables? If you tell me, I can modify that in my code. – Y. zeng Apr 13 '22 at 04:42
-
-
-
Thanks for your instruction. They are all right. Maybe my template has some limits to that function. My template can't do this. Thanks. – Y. zeng Apr 13 '22 at 17:40
-
@Y.zeng That is why is essential to provide more information in your next question, see https://tex.meta.stackexchange.com/questions/228/ for more information. Otherwise, it is just guessing and assuming things. Good luck! – Dr. Manuel Kuehner Apr 13 '22 at 17:46
-
What I am using is a big template that is written by some Chinese. The link:
https://github.com/whutug/whu-thesis/archive/refs/tags/v0.6d.zip– Y. zeng Apr 13 '22 at 18:09 -
@Y.zeng Seems like you can easily make an MWE using Overleaf: https://www.overleaf.com/latex/templates/wuhan-university-latex-undergraduate-thesis-template/kpystysgbgmr – Dr. Manuel Kuehner Apr 14 '22 at 03:06
-
I can make it easily. But the one I make is different from the file:
https://github.com/whutug/whu-thesis/archive/refs/tags/v0.6d.zip. In your template, it is all right. In the MWE I made, it will too. However, in the MWE ofhttps://github.com/whutug/whu-thesis/archive/refs/tags/v0.6d.zip, it is not right. So can't make an MWE to show this problem. – Y. zeng Apr 14 '22 at 03:26 -
-
-
-
1
Seems to work in 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}
- 22,451




\caption[caption version for list of tables]{normal caption}to avoid the problem. – Dr. Manuel Kuehner Apr 13 '22 at 04:02biblatex. I don't why when I tested your code, it is normal. When I tested my code, it can only showkeyname in my list of tables. – Y. zeng Apr 13 '22 at 05:26