![自动更新关键点投影仪列表/部分](https://linux22.com/image/261903/%E8%87%AA%E5%8A%A8%E6%9B%B4%E6%96%B0%E5%85%B3%E9%94%AE%E7%82%B9%E6%8A%95%E5%BD%B1%E4%BB%AA%E5%88%97%E8%A1%A8%2F%E9%83%A8%E5%88%86.png)
Beamer 中是否有办法在每张幻灯片中保留专门的部分作为“关键问题”或“关键点”部分,以自动累积问题或要点?有点像下面这样:
-----------------------------------------------------
| Slide 1 | Key Points: |
| other content of the slide can go here | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
-----------------------------------------------------
-----------------------------------------------------
| Slide 2 | Key Points: |
| Key Point 1 | Key Point 1 |
| other content of the slide can go here | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
-----------------------------------------------------
--------------------------------------------------------
| Slide 1 | Key Points: |
| Key Point 2 | Key Point 1 |
| other content of the slide can go here | Key Point 2 |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
-------------------------------------------------------
答案1
像这样吗?这是与章节平行的结构。
第二版的代码。现在打印 reps.frame 上的当前关键点。
\documentclass{beamer}
\setbeamersize{ text margin left=100pt }
\usepackage{newfile}
\usepackage{pgffor}
%
%
\gdef\mykey#1#2{
\ifnum#1<\thestateone
#2
\else
\ifnum#1=\thestateone
\color{red}#2
\fi
\fi
}
\def\mytemp{}
%Read In
\IfFileExists{somemore.ou}%
%then
{\input{somemore.ou}}%
%else
{\message{Rerun!}}%
%
% Some Helper Counter
\newcounter{stateone}
\setcounter{stateone}{0}
% WriteStreams
\newoutputstream{superstream}
\openoutputfile{somemore.ou}{superstream}
%
\makeatletter
% Helper macro end
\AtEndDocument{%
\addtostream{superstream}{\@charrb}%write out protected "{" see source2e
\closeoutputstream{superstream}
}
%Helper macro begin
\addtostream{superstream}{\noexpand\gdef\noexpand\mytemp\@charlb}
\makeatother
%
%User-macro
\newcommand{\mykeynotes}[1]{%
#1 %
\stepcounter{stateone}%
\addtostream{superstream}{%write to stream
\noexpand\mykey{\thestateone}{#1} \noexpand\par% or what ever
}%
%
}%
%
% Appearance
\setbeamertemplate{sidebar left}{\huge \mytemp}
%
\begin{document}
%
% the seven who are one
\foreach \name in {Father, Mother, Smith, Warrior, Maiden, Crone, Stranger}{
\frame{
\mykeynotes{\name}
}
}
\end{document}