beamer
指示に従ってフレーム内に引用文を含めようとしていますここしかし、環境内にそれらをどのように配置するかがわかりませんでしたsubfigure
。つまり、私のコードは次のようになります。
\begin{frame}
\frametitle{Reactive-transport systems}
\begin{figure}
\centering
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=0.45\textwidth]{Chabanon2017.jpg}
\caption{Here is text \footfullcite{Chabanon2017}}
\end{subfigure}
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=0.45\textwidth]{Steefel2005.jpg}
\caption{Here is text \footfullcite{Steefel2005}}
\end{subfigure}
\end{figure}
\end{frame}
それを回避する方法について何か提案はありますか?
編集: 最小限の動作例を追加します:
\documentclass{beamer}
\usepackage{pgf}
\usepackage{xcolor}
\usepackage[utf8]{inputenc}
% Citation
\usepackage[backend=bibtex, style=science]{biblatex}
\usepackage{subcaption}
\usepackage{filecontents}
\begin{filecontents}{vorlage.bib}
@article{test1,
author = {Shen Lin and Brian W. Kernighan},
title = {An Effective Heuristic Algorithm for the Travelling-Salesman Problem},
journal = {Operations Research},
volume = {21},
year = {1973},
pages = {498--516},
}
@BOOK{test,
title = {The Infamous Test},
publisher = {Testington Test},
year = {2007},
author = {John Doe},
address = {Testville},
}
@ARTICLE{test2,
author = {Testi, T.},
year = {2003},
title = {Testartikel},
journal = {Testjournal}
}
\end{filecontents}
% Hacky fix to citation
\makeatletter
\def\blx@maxline{77}
\makeatother
% Add bibliography file
\bibliography{vorlage.bib}
\begin{document}
\begin{frame}
\frametitle{Introduction and motivation - the title}
\section[Motivation]{Introduction and motivation}
\begin{figure}
\centering
\begin{subfigure}{.45\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{A subfigure \footfullcite{test}}
\label{fig:sub1}
\end{subfigure}%
\begin{subfigure}{.45\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{A subfigure \footfullcite{test1}}
\label{fig:sub2}
\end{subfigure}
\caption{A figure with two subfigures \footfullcite{test2}}
\label{fig:test}
\end{figure}
\end{frame}
\end{document}
これにより、次の結果が生成されます。
subfigure
引用文がすべてページの下部に集められるのではなく、それぞれの下に貼り付けられていることがわかります。
答え1
に基づくFootfullcitetext と Beamer: 増分番号付け次のようにして問題を回避できます。
\documentclass{beamer}
%\usepackage{pgf}
%\usepackage{xcolor}
\usepackage[utf8]{inputenc}
% Citation
\usepackage[style=science]{biblatex}
\usepackage{subcaption}
\usepackage{filecontents}
\begin{filecontents}{vorlage.bib}
@article{test1,
author = {Shen Lin and Brian W. Kernighan},
title = {An Effective Heuristic Algorithm for the Travelling-Salesman Problem},
journal = {Operations Research},
volume = {21},
year = {1973},
pages = {498--516},
}
@BOOK{test,
title = {The Infamous Test},
publisher = {Testington Test},
year = {2007},
author = {John Doe},
address = {Testville},
}
@ARTICLE{test2,
author = {Testi, T.},
year = {2003},
title = {Testartikel},
journal = {Testjournal}
}
\end{filecontents}
% Hacky fix to citation
\makeatletter
\def\blx@maxline{77}
\makeatother
% Add bibliography file
\bibliography{vorlage.bib}
\DeclareCiteCommand{\footfullcitetext}[\mkbibfootnotetext]
{\usebibmacro{prenote}}
{\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\begin{document}
\begin{frame}
\frametitle{Introduction and motivation - the title}
\section[Motivation]{Introduction and motivation}
\begin{figure}
\centering
\begin{subfigure}{.45\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{A subfigure\footnotemark[1]}
\label{fig:sub1}
\end{subfigure}%
\begin{subfigure}{.45\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{A subfigure\footnotemark[2]}
\label{fig:sub2}
\end{subfigure}
\caption{A figure with two subfigures\footnotemark[3]}
\label{fig:test}
\end{figure}
\addtocounter{footnote}{1}
\footfullcitetext{test}
\addtocounter{footnote}{1}
\footfullcitetext{test1}
\addtocounter{footnote}{1}
\footfullcitetext{test2}
\end{frame}
\end{document}
答え2
@samcarter の代替案は、以前に私がやったことがあるため、回答を参照してください:
\documentclass{beamer}
\usepackage{pgf}
\usepackage{xcolor}
\usepackage[utf8]{inputenc}
% Citation
\usepackage[backend=bibtex, style=science]{biblatex}
\usepackage{subcaption}
\usepackage{filecontents}
\newsavebox{\mybox}
\begin{filecontents}{vorlage.bib}
@article{test1,
author = {Shen Lin and Brian W. Kernighan},
title = {An Effective Heuristic Algorithm for the Travelling-Salesman Problem},
journal = {Operations Research},
volume = {21},
year = {1973},
pages = {498--516},
}
@BOOK{test,
title = {The Infamous Test},
publisher = {Testington Test},
year = {2007},
author = {John Doe},
address = {Testville},
}
@ARTICLE{test2,
author = {Testi, T.},
year = {2003},
title = {Testartikel},
journal = {Testjournal}
}
\end{filecontents}
% Hacky fix to citation
\makeatletter
\def\blx@maxline{77}
\makeatother
% Add bibliography file
\bibliography{vorlage.bib}
\begin{document}
\begin{frame}
\frametitle{Introduction and motivation - the title}
\section[Motivation]{Introduction and motivation}
\begin{figure}
\centering
\begin{subfigure}{.45\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{A subfigure\footnotemark[1]}% \footfullcite{test}}
\label{fig:sub1}
\end{subfigure}%
\begin{subfigure}{.45\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{A subfigure \footnotemark[2]}
\label{fig:sub2}
\end{subfigure}
\caption{A figure with two subfigures\footnotemark[3]}% \footfullcite{test2}}
\label{fig:test}
\end{figure}
\sbox1{\hbox{\footfullcite[1]{test}
\footfullcite[2]{test1}
\footfullcite[3]{test2}}}
\end{frame}
\end{document}
PS: 出力は同じですが、私は\footnotemark[]
トリックを使用して、\footfullcite
コマンドを内部で (実際には外部で) 展開するようにしました\sbox
。良い点は、高度なbib(La)TeX
知識が不要であることです...