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/README.md1
-rw-r--r--macros/latex/contrib/clicks/clicks.pdfbin257190 -> 261653 bytes
-rw-r--r--macros/latex/contrib/clicks/clicks.sty16
-rw-r--r--macros/latex/contrib/clicks/clicks.tex8
4 files changed, 15 insertions, 10 deletions
diff --git a/macros/latex/contrib/clicks/README.md b/macros/latex/contrib/clicks/README.md
index f0ba1fd2bc..f77fe27323 100644
--- a/macros/latex/contrib/clicks/README.md
+++ b/macros/latex/contrib/clicks/README.md
@@ -1,4 +1,5 @@
[![make](https://github.com/yegor256/clicks/actions/workflows/latexmk.yml/badge.svg)](https://github.com/yegor256/clicks/actions/workflows/latexmk.yml)
+[![CTAN](https://img.shields.io/ctan/v/clicks)](https://ctan.org/pkg/clicks)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/clicks/blob/master/LICENSE.txt)
This LaTeX package simulates animiation in slide deck, similar to what PowerPoint can do.
diff --git a/macros/latex/contrib/clicks/clicks.pdf b/macros/latex/contrib/clicks/clicks.pdf
index 39146542d2..41a3696a45 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 68bf2b77ed..b2aa13ff69 100644
--- a/macros/latex/contrib/clicks/clicks.sty
+++ b/macros/latex/contrib/clicks/clicks.sty
@@ -1,6 +1,6 @@
% (The MIT License)
%
-% Copyright (c) 2021 Yegor Bugayenko
+% Copyright (c) 2021-2022 Yegor Bugayenko
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the 'Software'), to deal
@@ -21,7 +21,7 @@
% SOFTWARE.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{clicks}[2021/09/18 0.2.0 Clicks]
+\ProvidesPackage{clicks}[2022/09/13 0.3.1 Clicks]
\RequirePackage{xkeyval}
\RequirePackage{etoolbox}
@@ -37,20 +37,24 @@
\newcounter{minutes}
-% Print the content as is
+% Print the content as is.
\makeatletter\newcommand\print[1]{%
\gappto\clicks@body{{#1\par}}%
}\makeatother
+% Flush the page: print the entire content.
\makeatletter\newcommand\flush[1][1]{%
- \clicks@flush%
- \renewcommand*\clicks@body{}%
+ \ifx\clicks@body\empty\else%
+ \clicks@flush%
+ \renewcommand*\clicks@body{}%
+ \fi%
\ifclicks@static\else%
\addtocounter{minutes}{#1}%
\fi%
}
-\makeatletter\newcommand\click[1][1]{%
+% Print the content and wait for more.
+\makeatletter\newcommand\click[1][0]{%
\ifclicks@static\else%
\addtocounter{minutes}{#1}%
\fi%
diff --git a/macros/latex/contrib/clicks/clicks.tex b/macros/latex/contrib/clicks/clicks.tex
index 7a64b63990..7967601410 100644
--- a/macros/latex/contrib/clicks/clicks.tex
+++ b/macros/latex/contrib/clicks/clicks.tex
@@ -1,6 +1,6 @@
% (The MIT License)
%
-% Copyright (c) 2021 Yegor Bugayenko
+% Copyright (c) 2021-2022 Yegor Bugayenko
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the 'Software'), to deal
@@ -28,7 +28,7 @@
\title{\ff{clicks}: \LaTeX{} Package \\ for Slide Deck Animation}
\author{Yegor Bugayenko}
-\date{0.2.0 2021/09/18}
+\date{0.3.1 2022/09/13}
\begin{document}
\pagenumbering{gobble}
@@ -76,7 +76,7 @@ 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.
+are the minutes: how long 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
@@ -89,4 +89,4 @@ in the \ff{yegor256/clicks} GitHub repository.
If you want to add a feature or fix a bug, you are welcome
to submit an issue or make a pull request.
-\end{document} \ No newline at end of file
+\end{document}