summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/clicks
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/clicks')
-rw-r--r--macros/latex/contrib/clicks/clicks.pdfbin255551 -> 257190 bytes
-rw-r--r--macros/latex/contrib/clicks/clicks.sty14
-rw-r--r--macros/latex/contrib/clicks/clicks.tex18
3 files changed, 22 insertions, 10 deletions
diff --git a/macros/latex/contrib/clicks/clicks.pdf b/macros/latex/contrib/clicks/clicks.pdf
index 531234bef1..39146542d2 100644
--- a/macros/latex/contrib/clicks/clicks.pdf
+++ b/macros/latex/contrib/clicks/clicks.pdf
Binary files differ
diff --git a/macros/latex/contrib/clicks/clicks.sty b/macros/latex/contrib/clicks/clicks.sty
index e5fac0ebbc..68bf2b77ed 100644
--- a/macros/latex/contrib/clicks/clicks.sty
+++ b/macros/latex/contrib/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
diff --git a/macros/latex/contrib/clicks/clicks.tex b/macros/latex/contrib/clicks/clicks.tex
index 578a8e8bee..7a64b63990 100644
--- a/macros/latex/contrib/clicks/clicks.tex
+++ b/macros/latex/contrib/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.