Latex - Inserting a reference in a figure's caption

后端 未结 2 995
无人及你
无人及你 2021-02-02 09:16

In Latex, I want to add a reference in the legend of a figure, like:

\\begin{figure}
   ...
   \\caption{This is the legend of this figure (reprinted from \\cite         


        
相关标签:
2条回答
  • 2021-02-02 09:39

    As the accepted answer seems rather hacky (and also didn't work for me) I will post my solution for the problem:

    \begin{figure}
      ...
      \caption[Cap for listoffigures]{Cap below figure with cite \cite{source}}
      ...
    \end{figure}
    

    This compiles without errors and warnings.

    0 讨论(0)
  • 2021-02-02 09:40

    Solution found: write \protect\cite{ref} instead of just \cite{ref}

    Or even shorter: '{\cite{ref}}'

    0 讨论(0)
提交回复
热议问题