diff options
author | Karl Berry <karl@freefriends.org> | 2021-09-18 20:16:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-09-18 20:16:44 +0000 |
commit | f0a072372532e24df6fe89eeef935467df6eceff (patch) | |
tree | 295159ad64952522f60e714ba15ecab00197d5de /Master/texmf-dist/tex | |
parent | ae640f1dad20a71871ad3c8822bbb87df6055d54 (diff) |
clicks (18sep21)
git-svn-id: svn://tug.org/texlive/trunk@60539 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/clicks/clicks.sty | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/clicks/clicks.sty b/Master/texmf-dist/tex/latex/clicks/clicks.sty index e5fac0ebbc5..68bf2b77ed1 100644 --- a/Master/texmf-dist/tex/latex/clicks/clicks.sty +++ b/Master/texmf-dist/tex/latex/clicks/clicks.sty @@ -21,7 +21,7 @@ % SOFTWARE. \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{clicks}[2021/09/13 0.1.1 Clicks] +\ProvidesPackage{clicks}[2021/09/18 0.2.0 Clicks] \RequirePackage{xkeyval} \RequirePackage{etoolbox} @@ -50,7 +50,10 @@ \fi% } -\makeatletter\newcommand\click{% +\makeatletter\newcommand\click[1][1]{% + \ifclicks@static\else% + \addtocounter{minutes}{#1}% + \fi% \ifclicks@static\else% \clicks@flush% \fi% @@ -65,10 +68,11 @@ } % Print and click +% [1]: How many minutes to stay here % {1}: The content to print -\newcommand\plick[1]{% - \print{#1}% - \click% +\newcommand\plick[2][1]{% + \print{#2}% + \click[#1]% } \endinput |