我正在尝试创建一个可用于提供高中课程的投影仪模板,我希望的一项是,我是否可以在每张幻灯片上的固定位置显示信息(例如当天的目标、家庭作业、议程等)。
浏览完该网站后,一些答案似乎都在推动使用该textpos
软件包,这似乎可能有效,但我并不完全确定它是否真的是实现我的目标的最佳解决方案。
只是玩了一下,我得出了以下代码:
\documentclass[12pt]{beamer}
\usepackage{graphicx, amsmath, color}
\usepackage{textpos} % consider adding [absolute]
\textblockcolor{lightgray}
\usetheme{Copenhagen}
...
\begin{document}
\begin{frame}
\begin{textblock}{2}(-1,-5)
\footnotesize
Aim: \\ This would be the aim \\[.2in]
Agenda: \\ This would be the agenda \\[.2in]
Homework: \\ This would be the hw
\end{textblock}
test
\end{frame}
这给了我以下输出: 一个明显的问题是,这似乎只是定义一个新框,而不是定义某种边距(这是我理想的情况),因此文本框和实际幻灯片的文本重叠。
我知道有些信息会清楚地出现在所有幻灯片上(演示文稿标题、作者、章节内容),所以一定有办法做到这一点,只是不确定如何做。
答案1
您当前方法的问题在于,框架文本将与环境中的文本重叠textpos
。我建议采用另一种方法,使用侧边栏显示这三个元素:
\documentclass[12pt]{beamer}
\usepackage{graphicx, amsmath, color}
\usepackage{lipsum}
\usetheme{Goettingen}
\newcommand\Aim[1]{\gdef\aim{#1}}
\newcommand\Agenda[1]{\gdef\agenda{#1}}
\newcommand\Homework[1]{\gdef\homework{#1}}
\newcommand\Aimtitle{Aim}
\newcommand\Agendatitle{Agenda}
\newcommand\Homeworktitle{Homework}
\makeatletter
\setbeamertemplate{sidebar right}
{
\beamer@tempdim=\beamer@sidebarwidth%
\advance\beamer@tempdim by -6pt%
{\usebeamerfont{title in sidebar}%
\vskip1.5em%
\hskip3pt%
\usebeamercolor[fg]{title in sidebar}%
\parbox[c][.3\textheight][t]{.8\beamer@sidebarwidth}{\raggedright%
\Aimtitle:\par\aim}\par%
\vskip1em%
}%
{%
\hskip3pt%
\usebeamercolor[fg]{author in sidebar}%
\usebeamerfont{author in sidebar}%
\parbox[c][.3\textheight][t]{.8\beamer@sidebarwidth}{\raggedright%
\Agendatitle:\par\agenda}\par%
\vskip1em%
\hskip3pt%
\parbox[c][.3\textheight][t]{.8\beamer@sidebarwidth}{\raggedright%
\Homeworktitle:\par\homework}\par%
}%
\vfill
\usebeamercolor{normal text}%
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
\vskip2pt%
}%
\makeatother
\Aim{This is the aim for this lesson; it has been carefully planned.}
\Agenda{This is the aim for this lesson; the objectives are clearly stated here.}
\Homework{Don't forget this section. The homework will complement the lesson.}
\begin{document}
\begin{frame}
\lipsum[4]
\end{frame}
\end{document}
典型框架的图像:
放大侧边栏:
这个想法是重新定义sidebar right
或(侧边栏left
)模板以使用“目标”、“议程”和“家庭作业”的信息;重新定义\parbox
对每个字段使用固定宽度和高度的 es。该示例还提供了三个命令\Aim
和\Agenda
来\Homework
提供所需的信息。
使用sidebar left
模板而不是sidebar right
,可以将信息获取到左侧:
\documentclass[12pt]{beamer}
\usepackage{graphicx, amsmath, color}
\usepackage{lipsum}
\usetheme[left]{Goettingen}
\newcommand\Aim[1]{\gdef\aim{#1}}
\newcommand\Agenda[1]{\gdef\agenda{#1}}
\newcommand\Homework[1]{\gdef\homework{#1}}
\newcommand\Aimtitle{Aim}
\newcommand\Agendatitle{Agenda}
\newcommand\Homeworktitle{Homework}
\makeatletter
\setbeamertemplate{sidebar left}
{
\beamer@tempdim=\beamer@sidebarwidth%
\advance\beamer@tempdim by -6pt%
{\usebeamerfont{title in sidebar}%
\vskip1.5em%
\hskip3pt%
\usebeamercolor[fg]{title in sidebar}%
\parbox[c][.3\textheight][t]{.8\beamer@sidebarwidth}{\raggedright%
\Aimtitle:\par\aim}\par%
\vskip1em%
}%
{%
\hskip3pt%
\usebeamercolor[fg]{author in sidebar}%
\usebeamerfont{author in sidebar}%
\parbox[c][.3\textheight][t]{.8\beamer@sidebarwidth}{\raggedright%
\Agendatitle:\par\agenda}\par%
\vskip1em%
\hskip3pt%
\parbox[c][.3\textheight][t]{.8\beamer@sidebarwidth}{\raggedright%
\Homeworktitle:\par\homework}\par%
}%
\vfill
\usebeamercolor{normal text}%
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
\vskip2pt%
}%
\makeatother
\Aim{This is the aim for this lesson; it has been carefully planned.}
\Agenda{This is the aim for this lesson; the objectives are clearly stated here.}
\Homework{Don't forget this section. The homework will complement the lesson.}
\begin{document}
\begin{frame}
\lipsum[4]
\end{frame}
\end{document}