
図や表のキャプションに引用を挿入したいと思います。2 つの異なるキャプションを使用しており、例を挙げます。
私が使う
\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