diff options
author | Karl Berry <karl@freefriends.org> | 2020-05-16 21:26:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-05-16 21:26:50 +0000 |
commit | aafdfd77994347e1396e12ef19e2cb245c6eeff6 (patch) | |
tree | d9c29d38930f6dab9621951916fef870baaa6294 /Master/texmf-dist/tex | |
parent | bc3f8ae7a070c0635a7f6aa2febefcc6bd639677 (diff) |
beamerappendixnote (16may20)
git-svn-id: svn://tug.org/texlive/trunk@55163 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty b/Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty new file mode 100644 index 00000000000..e19edf4e67e --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamerappendixnote/beamerappendixnote.sty @@ -0,0 +1,52 @@ +%% +%% This is file `beamerappendixnote.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% beamerappendixnote.dtx (with options: `package') +%% +%% ---------------------------------------------------------------- +%% beamerappendixnote --- insert notes on appendix slides +%% Author: Christoph Semken +%% E-mail: christoph.ban@semken.info +%% License: Released under the LaTeX Project Public License v1.3c or later +%% See: http://www.latex-project.org/lppl.txt +%% ---------------------------------------------------------------- +%% + \ProvidesPackage{beamerappendixnote} + [2020/05/13 v1.0 initial version] +\RequirePackage{expl3} +\@ifpackagelater {expl3}{2018/04/22} {} {% + \PackageError {beamerappendixnote} {Support package expl3 too old} + {% + You need to update your installation of the bundles 'l3kernel' and + 'l3packages'.\MessageBreak + Loading~beamerappendixnote~will~abort!% + }% + \endinput +}% +\ProvidesExplPackage {beamerappendixnote} {2020/05/07} {1.0} + {Create notes in appendix frames} +\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}}% + \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}} + \vfill + \seq_item:Nn \g_ban_content {#1} + \end{frame} +} +\NewDocumentCommand{\printappxnotes}{}{ + \int_step_function:nN {\seq_count:N \g_ban_titles} \print_func:n +} +\endinput +%% +%% End of file `beamerappendixnote.sty'. |