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 | |
parent | ae640f1dad20a71871ad3c8822bbb87df6055d54 (diff) |
clicks (18sep21)
git-svn-id: svn://tug.org/texlive/trunk@60539 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/clicks/clicks.pdf | bin | 255551 -> 257190 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/clicks/clicks.tex | 18 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/clicks/clicks.sty | 14 |
3 files changed, 22 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/clicks/clicks.pdf b/Master/texmf-dist/doc/latex/clicks/clicks.pdf Binary files differindex 531234bef16..39146542d2c 100644 --- a/Master/texmf-dist/doc/latex/clicks/clicks.pdf +++ b/Master/texmf-dist/doc/latex/clicks/clicks.pdf diff --git a/Master/texmf-dist/doc/latex/clicks/clicks.tex b/Master/texmf-dist/doc/latex/clicks/clicks.tex index 578a8e8bee1..7a64b63990a 100644 --- a/Master/texmf-dist/doc/latex/clicks/clicks.tex +++ b/Master/texmf-dist/doc/latex/clicks/clicks.tex @@ -28,7 +28,7 @@ \title{\ff{clicks}: \LaTeX{} Package \\ for Slide Deck Animation} \author{Yegor Bugayenko} -\date{0.1.1 2021/09/13} +\date{0.2.0 2021/09/18} \begin{document} \pagenumbering{gobble} @@ -65,16 +65,24 @@ You can make it shorter, with the help of \documentclass{article} \usepackage{clicks} \begin{document} -\plick{Here is your wedding plan:} -\plick{1. Buy a ring} -\plick{2. Propose} -\plush{3. Get married} +\plick[2]{Here is your wedding plan:} +\plick[3]{1. Buy a ring} +\plick[5]{2. Propose} +\plush[1]{3. Get married} \end{document} \end{ffcode} If you need to render the document without animation, just use the \ff{static} package option. +The optional parameters at \ff{\char`\\plick\{\}} and \ff{\char`\\plush\{\}} +are the minutes: how much you are planning to stay at this animation. +The minutes are accumulated in the \ff{minutes} counter, which +you can show, for example, at your header. This will help you track +time during the presentation. The commands +\ff{\char`\\click\{\}} and \ff{\char`\\flush\{\}} also have the +same optional arguments. + More details about this package you can find in the \ff{yegor256/clicks} GitHub repository. 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 |