我用作./footer/footer.tex
:
\begin{textblock*}{127mm}(0mm,84mm)
\begin{center}
{\fontsize{4}{4}\selectfont{\quad\today\hfill\raisebox{-.35cm} {\includegraphics[height=.75cm,keepaspectratio,]{example-image-a}}\hfill University\hfill\begin{tabular} {@{}c@{}}Presentation\\Speaker\end{tabular}\hfill sponsor\hfill\raisebox{-.35cm} {\includegraphics[height=.75cm,keepaspectratio,] {example-image-b}}\hfill\insertframenumber/\inserttotalframenumber}\quad}
\end{center}
\end{textblock*}
要添加的新命令:
\newcommand{\addfooter}{\subimport{../footer/}{footer}}
添加至幻灯片:
\begin{frame}[allowframebreaks]{References}
\printbibliography
\addfooter
\end{frame}
这会增加幻灯片数量,并且无法在自动生成的幻灯片中添加页脚。要将所有幻灯片正确地放在一张幻灯片中,如何使用\only
叠加或任何其他方法?
梅威瑟:
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{import}
\usepackage[absolute,overlay]{textpos}
\usepackage[
backend=biber,
natbib=true,
style=ieee,
]{biblatex}
\usepackage{mwe}
\newcommand{\addfooter}{\subimport{./footer/}{footer}}
\begin{filecontents}{jobname.bib}
@book{key,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
@book{key2,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
@book{key3,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
@book{key4,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
@book{key5,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
@book{key6,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
@book{key7,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
@book{key8,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
@book{key9,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
@book{key10,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
@book{key11,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
@book{key12,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
\end{filecontents}
\addbibresource{jobname.bib}
\begin{document}
\addtolength{\textheight}{-20pt}
\begin{frame}[allowframebreaks]{References}
\nocite{*}
\printbibliography
\addfooter
\end{frame}
\end{document}