I am currently doing my thesis in Rmarkdown, and I have some citation I need in figure captions. I found a similar question in this page, yet the answer refers to the bookdown. In my case, I am using a .bib file.
My issue is that I have the thesis almost all written and the change to bookdown will probably bring errors which will be hard to debug now.
I have in the chunk:
{r yPlus, echo=FALSE, fig.cap="\\label{fig:yPlus}Tipo de escoamento dado pela distânica à parede (adaptado de \\cite{Versteeg:2007aa}).", fig.align="center"}
but when I run the Rmarkdown, I get [?] in the citation. I have tried citep
as well, but it raises an error.
Is there a way to work around this issue without many complications? I am not very comfortable with all this yet.
Thank you all for the help.