我正在为我的大学创建一个 beamer 模板。我在让这个模板适合所有人时遇到了一些问题。我想在页脚和页眉功能区创建一些文本框,让学生能够在其中写入他们的姓名、部门名称、幻灯片编号和他们的演示文稿标题(在除第一张幻灯片之外的每张幻灯片上,并更改幻灯片编号)。这应该是可以调整的,因为每个人都有独特的姓名、部门名称和不同长度的演示文稿标题。我已附上背景图片(查看此处的图片(tue_background-1.jpg))用于具有指定文本框位置的 beamer 模板。您还可以在下面找到 MWE:
\documentclass{beamer}
\usepackage{xcolor}
\usefonttheme{serif}
\usepackage[british]{babel}
\usepackage{graphicx,hyperref,url}
\usepackage{xepersian}
\settextfont{XB Niloofar.ttf}
\setbeamerfont{block title}{size={}}
\setbeamersize{text margin right=2.1cm}
\setbeamertemplate{frametitle}{\vskip1.1cm\insertframetitle\par\small\insertframesubtitle}
\setbeamertemplate{footline}[frame number]
% Background
\makeatletter
\newlength\beamerleftmargin
\setlength\beamerleftmargin{\Gm@lmargin}
\makeatother
\usebackgroundtemplate
{
\hspace*{-1.1cm}%
\includegraphics[width=\paperwidth , height=\paperheight]{tue_background-1.jpg}
}
% Navigation symbols
\setbeamertemplate{navigation symbols}{}
% Themes
\useinnertheme[shadow=true]{rounded}
% Colors
\usecolortheme{orchid}
\usecolortheme{whale}
\definecolor{tuelightblue}{cmyk}{0.2, 0.15, 0.04, 0.0}
\definecolor{tueblue}{cmyk}{1.0, 0.93, 0.18, 0.05}
\definecolor{tuepurple}{cmyk}{0.14, 0.97, 0.51, 0.01}
\definecolor{babypink}{rgb}{0.96, 0.76, 0.76}
\setbeamercolor{title}{fg=tueblue,bg=tuelightblue}
\setbeamercolor{background canvas}{bg=}
\setbeamercolor{palette primary}{fg=tueblue,bg=} % !<#> is transparency
\setbeamercolor{palette secondary}{fg=tueblue, bg=tuelightblue}
\setbeamercolor{palette tertiary}{fg=tuelightblue,bg=tueblue}
\setbeamercolor{palette quaternary}{fg=tuepurple,bg=tuepurple}
\setbeamercolor{example text}{fg=tuepurple, bg=blue}
\setbeamercolor{footline}{fg=tuepurple, bg=}
\usefoottemplate{%
\vbox to 9.5pt{%
\hspace{10.07cm}
{\bf {\color{tuelightblue} \insertframenumber/\inserttotalframenumber}}
}
}
\begin{document}
\begin{frame}
\begin{exampleblock}{purpose of investigation}
\end{exampleblock}
\end{frame}
\end{document}