summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty37
1 files changed, 31 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty b/Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty
index 65e273bab73..0fb7d23669a 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/26 v1.1.1 environment and frame options]
+ [2020/07/01 v1.2.0 backposition option]
\RequirePackage{expl3}
\@ifpackagelater {expl3}{2018/04/22} {} {%
\PackageError {beamerappendixnote} {Support package expl3 too old}
@@ -26,12 +26,24 @@
}%
\endinput
}%
-\ProvidesExplPackage {beamerappendixnote} {2020/05/07} {1.0}
+\ProvidesExplPackage {beamerappendixnote} {2020/07/01} {1.2.0}
{Create notes in appendix frames}
-\RequirePackage {xparse}
+\RequirePackage{xparse}
+\RequirePackage{l3keys2e}
+\keys_define:nn { beamerappendixnote }
+{
+ backposition .choices:nn = { top, bottom, title } { },
+ backposition .tl_set:N = \g_ban_backposition
+}
+\keys_set:nn { beamerappendixnote }
+{
+ backposition = top
+}
+\ProcessKeysOptions { beamerappendixnote }
\seq_new:N \g_ban_titles
\seq_new:N \g_ban_content
\seq_new:N \g_ban_options
+\cs_generate_variant:Nn \tl_if_eq:nnT { V }
\newcommand{\appxnote}[3][t]{
\seq_gput_right:Nn \g_ban_titles {#2}
\seq_gput_right:Nn \g_ban_options {#1}
@@ -41,9 +53,22 @@
}
\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
+ \begin{frame}[\expandafter\options]
+ {
+ \tl_if_eq:VnT \g_ban_backposition { title }
+ {
+ \hyperlink{#4}{\beamerreturnbutton{Back}}~
+ }
+ #1
+ }
+ \label{#3}
+
+ \tl_if_eq:VnT \g_ban_backposition { top }
+ {
+ \hyperlink{#4}{\beamerreturnbutton{Back}}
+ \vfill
+ }
+
#2
\end{frame}
}