diff options
author | Karl Berry <karl@freefriends.org> | 2022-09-13 20:42:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-09-13 20:42:11 +0000 |
commit | 494b51f66dc0628cc67ed24af5c98eeb5797285c (patch) | |
tree | a167ed8097e53bb8a9083d8484450779a01fc733 /Master/texmf-dist/tex/latex/clicks/clicks.sty | |
parent | a2d8f2e5e9527675202437dc3b8bf0de90a3524a (diff) |
clicks (13sep22)
git-svn-id: svn://tug.org/texlive/trunk@64374 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/clicks/clicks.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/clicks/clicks.sty | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/clicks/clicks.sty b/Master/texmf-dist/tex/latex/clicks/clicks.sty index 68bf2b77ed1..b2aa13ff699 100644 --- a/Master/texmf-dist/tex/latex/clicks/clicks.sty +++ b/Master/texmf-dist/tex/latex/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% |