自动更新关键点投影仪列表/部分

自动更新关键点投影仪列表/部分

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}

相关内容