底部引用了投影機框架中的子圖

底部引用了投影機框架中的子圖

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命令在 an 內部擴展\sbox(但實際上是在其外部)。好處是不需要先進的bib(La)TeX知識.....

相關內容