summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-06-27 21:03:48 +0000
committerKarl Berry <karl@freefriends.org>2020-06-27 21:03:48 +0000
commitcf8bd6e1ef6fe958941b909299e8db15bae9caef (patch)
tree287476ced82bc9fc2b283b5eb0e22e25d86b072a /Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty
parent5dfedeed3b702aa29663082dfe7d6d020e2b7700 (diff)
beamerappendixnote (27jun20)
git-svn-id: svn://tug.org/texlive/trunk@55676 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty')
-rw-r--r--Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty30
1 files changed, 20 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty b/Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty
index c4a7edba871..65e273bab73 100644
--- a/Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty
+++ b/Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty
@@ -15,7 +15,7 @@
%% ----------------------------------------------------------------
%%
\ProvidesPackage{beamerappendixnote}
- [2020/06/07 v1.0.1 updated documentation]
+ [2020/06/26 v1.1.1 environment and frame options]
\RequirePackage{expl3}
\@ifpackagelater {expl3}{2018/04/22} {} {%
\PackageError {beamerappendixnote} {Support package expl3 too old}
@@ -31,21 +31,31 @@
\RequirePackage {xparse}
\seq_new:N \g_ban_titles
\seq_new:N \g_ban_content
-\NewDocumentCommand{\appxnote}{m m}{
- \seq_gput_right:Nn \g_ban_titles {#1}
- \seq_gput_right:Nn \g_ban_content {#2}
- \hyperlink{ban-\seq_count:N \g_ban_titles}{\beamergotobutton{#1}}%
+\seq_new:N \g_ban_options
+\newcommand{\appxnote}[3][t]{
+ \seq_gput_right:Nn \g_ban_titles {#2}
+ \seq_gput_right:Nn \g_ban_options {#1}
+ \seq_gput_right:Nn \g_ban_content {#3}
+ \hyperlink{ban-\seq_count:N \g_ban_titles}{\beamergotobutton{#2}}%
\label{ban-back-\seq_count:N \g_ban_titles}
}
-\cs_set:Npn \print_func:n #1 {
- \begin{frame}[label=ban-#1]{\seq_item:Nn \g_ban_titles {#1}}
- \hyperlink{ ban-back-#1 }{\beamerreturnbutton{Back}}
+\cs_set:Npn \print_func:nnnnn #1 #2 #3 #4 #5 {
+ \def\options{#5}
+ \begin{frame}[\expandafter\options]{#1}\label{#3}
+ \hyperlink{#4}{\beamerreturnbutton{Back}}
\vfill
- \seq_item:Nn \g_ban_content {#1}
+ #2
\end{frame}
}
+\cs_set:Npn \expand_func:n #1 {
+ \print_func:nnnnn {\seq_item:Nn \g_ban_titles {#1}}
+ {\seq_item:Nn \g_ban_content {#1}}
+ {ban-#1}
+ {ban-back-#1}
+ {\seq_item:Nn \g_ban_options {#1}}
+}
\NewDocumentCommand{\printappxnotes}{}{
- \int_step_function:nN {\seq_count:N \g_ban_titles} \print_func:n
+ \int_step_function:nN {\seq_count:N \g_ban_titles} \expand_func:n
}
\endinput
%%