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 및 비머: 증분 번호 매기기다음과 같이 문제를 해결할 수 있습니다.
\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}
추신: 출력은 동일하지만 방금 트릭을 사용하여 명령을 내부 (실제로는 외부) 로 확장 \footnotemark[]
했습니다 . 좋은 점은 고급 지식이 필요하지 않다는 것입니다.\footfullcite
\sbox
bib(La)TeX