標題中的引用*

標題中的引用*

我想在我的圖表標題中插入引文。我使用兩個不同的標題,我將舉一個例子:

我用

\caption{Title of caption that appears in list of tables/figures}

用於出現在表格或圖形清單中的標題。

另外我用

\caption*{Source: Eidgenössischer Turnverein (1881), own illustration}

在表格或圖的底部,以便寫出表格或圖的來源。但是,我想將上面的內容替換為

\caption*{來源:\tcite{turnzeitung81},自己的插圖}

這樣我就可以在參考書目中得到一個實際的條目,這與簡單地將原始碼寫為文字的情況不同。不幸的是,它不適用於標題中的 \tcite。我怎樣才能做到這一點?

這是我引用的相關程式碼:

\usepackage{natbib}
\bibliographystyle{apalike}
\newcommand\mycite[2][]{%
  \citeauthor{#2}\ (\citeyear{#2})\ifx#1\undefined\else, #1\fi}
  \newcommand\myfootcite[2][]{\footnote{\mycite[#1]{#2}}}
  \def\prevcite{} % initialize \prevcite
%% macro for in-text citation
\newcommand\tcite[2][]{%  
  \def\newcite{#2} 
  \ifx\prevcite\newcite 
    Ibid.%
  \else%
    \gdef\prevcite{#2}% update \prevcite
    \citeauthor{#2}\ (\citeyear{#2})%
  \fi
  \ifx#1\undefined\else, #1\fi}
%% macro for in-footnote citation
\newcommand\fcite[2][]{\footnote{\tcite[#1]{#2}}}

\bibliographystyle{apalike}
\bibliography{biblio}

非常感謝您的幫忙!

編輯:

這是問題的一個最小範例:

\documentclass{report}  
\begin{document}  
 \begin{table}[htbp]

    \begin{tabulary}
    \end{tabulary}

    \caption*{Source: \tcite{turnzeitung81}, own illustration}
  \label{tab:addlabel}
\end{table}
\end{document} 



\usepackage{filecontents}

\begin{filecontents*}{\biblio.bib}
  @Article{turnzeitung81,
  Title                    = {Statistik des belgischen {T}urnerbundes für das {J}ahr 1881},
  Author                   = {{Eidgenössischer Turnverein}},
  Journal                  = {Schweizerische Turnzeitung},
  Year                     = {1881},
  Number                   = {5},
  Volume                   = {24},

\end{filecontents*}

\bibliography{\biblio} % if you’re using BibTeX

相關內容