diff options
Diffstat (limited to 'macros/latex/contrib/clicks')
-rw-r--r-- | macros/latex/contrib/clicks/DEPENDS.txt | 9 | ||||
-rw-r--r-- | macros/latex/contrib/clicks/LICENSE.txt | 2 | ||||
-rw-r--r-- | macros/latex/contrib/clicks/README.md | 12 | ||||
-rw-r--r-- | macros/latex/contrib/clicks/clicks.dtx | 59 | ||||
-rw-r--r-- | macros/latex/contrib/clicks/clicks.ins | 12 | ||||
-rw-r--r-- | macros/latex/contrib/clicks/clicks.pdf | bin | 243984 -> 244368 bytes |
6 files changed, 56 insertions, 38 deletions
diff --git a/macros/latex/contrib/clicks/DEPENDS.txt b/macros/latex/contrib/clicks/DEPENDS.txt index 406b4071a5..541921e923 100644 --- a/macros/latex/contrib/clicks/DEPENDS.txt +++ b/macros/latex/contrib/clicks/DEPENDS.txt @@ -1,2 +1,9 @@ -hard xkeyval hard etoolbox +hard pgfopts +soft href-ul +soft hypdoc +soft l3build +soft libertine +soft scheme-basic +soft tools +soft xetex diff --git a/macros/latex/contrib/clicks/LICENSE.txt b/macros/latex/contrib/clicks/LICENSE.txt index bd949ffdab..1f211e0287 100644 --- a/macros/latex/contrib/clicks/LICENSE.txt +++ b/macros/latex/contrib/clicks/LICENSE.txt @@ -1,6 +1,6 @@ (The MIT License) -Copyright (c) 2021-2022 Yegor Bugayenko +Copyright (c) 2021-2024 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 diff --git a/macros/latex/contrib/clicks/README.md b/macros/latex/contrib/clicks/README.md index 5357152b3b..02dd5bb6f1 100644 --- a/macros/latex/contrib/clicks/README.md +++ b/macros/latex/contrib/clicks/README.md @@ -1,11 +1,15 @@ +# Rolling Animation in Slides + [![make](https://github.com/yegor256/clicks/actions/workflows/l3build.yml/badge.svg)](https://github.com/yegor256/clicks/actions/workflows/l3build.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. +This LaTeX package simulates animiation in slide deck, +similar to what PowerPoint can do. -First, [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages) -from [CTAN](https://ctan.org/pkg/clicks) +First, +[install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages) +from [CTAN](https://ctan.org/pkg/clicks) and then use in the preamble: ```tex @@ -20,7 +24,7 @@ And then live happily ever after. \end{document} ``` -If you want to contribute yourself, make a fork, then create a branch, +If you want to contribute yourself, make a fork, then create a branch, then run `make` in the root directory. It should compile everything without errors. If not, submit an issue and wait. Otherwise, make your changes and then run `make` again. If the build is diff --git a/macros/latex/contrib/clicks/clicks.dtx b/macros/latex/contrib/clicks/clicks.dtx index d103ee064f..86e71fc746 100644 --- a/macros/latex/contrib/clicks/clicks.dtx +++ b/macros/latex/contrib/clicks/clicks.dtx @@ -1,7 +1,7 @@ % \iffalse meta-comment % (The MIT License) % -% Copyright (c) 2021-2022 Yegor Bugayenko +% Copyright (c) 2021-2024 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 @@ -50,7 +50,7 @@ %<package>\NeedsTeXFormat{LaTeX2e} %<package>\ProvidesPackage{clicks} %<*package> -[2022-10-03 0.4.1 Slide Deck Animation] +[2024/12/20 0.4.2 Slide Deck Animation] %</package> %<*driver> \documentclass{ltxdoc} @@ -139,27 +139,24 @@ % \changes{v0.1.0}{2021/09/13}{Initial version} -% First, we include a few packages: +% First, we parse package options: % \begin{macrocode} -\RequirePackage{xkeyval} -\RequirePackage{etoolbox} -% \end{macrocode} - -% Then, we parse package options: -% \begin{macrocode} -\makeatletter -\newif\ifclicks@static -\DeclareOption{static}{\clicks@statictrue} -\makeatother -\ProcessOptions\relax +\RequirePackage{pgfopts} +\pgfkeys{ + /clicks/.cd, + static/.store in=\clicks@static, +} +\ProcessPgfPackageOptions{/clicks} % \end{macrocode} % Then, we define a few supplementary commands: % \begin{macrocode} -\makeatletter\newcommand*\clicks@body{}\makeatother -\makeatletter\newcommand\clicks@flush{% +\makeatletter +\newcommand*\clicks@body{} +\newcommand\clicks@flush{% \clicks@body\vspace*{0pt}\newpage% -}\makeatother +} +\makeatother % \end{macrocode} % Then, we declare a counter of minutes: @@ -170,38 +167,48 @@ % \begin{macro}{\print} % Then, we define |\print| command: % \begin{macrocode} -\makeatletter\newcommand\print[1]{% - \gappto\clicks@body{{#1\par}}% -}\makeatother +\RequirePackage{etoolbox} +\makeatletter +\newcommand\print[1]{% + \def\param{#1}% + \ifx\param\empty\else% + \gappto\clicks@body{{#1\par}}% + \fi% +} +\makeatother % \end{macrocode} % \end{macro} % \begin{macro}{\flush} % Then, we define |\flush| command: % \begin{macrocode} -\makeatletter\newcommand\flush[1][1]{% +\makeatletter +\newcommand\flush[1][1]{% \ifx\clicks@body\empty\else% \clicks@flush% \renewcommand*\clicks@body{}% \fi% - \ifclicks@static\else% + \ifdefined\clicks@static\else% \addtocounter{minutes}{#1}% \fi% } +\makeatother % \end{macrocode} % \end{macro} % \begin{macro}{\click} % Then, we define |\click| command: % \begin{macrocode} -\makeatletter\newcommand\click[1][0]{% - \ifclicks@static\else% +\makeatletter +\newcommand\click[1][0]{% + \ifdefined\clicks@static\else% \addtocounter{minutes}{#1}% \fi% - \ifclicks@static\else% + \ifdefined\clicks@static\else% \clicks@flush% \fi% -}\makeatother +} +\makeatother % \end{macrocode} % \end{macro} diff --git a/macros/latex/contrib/clicks/clicks.ins b/macros/latex/contrib/clicks/clicks.ins index 28083d43ef..814944c71d 100644 --- a/macros/latex/contrib/clicks/clicks.ins +++ b/macros/latex/contrib/clicks/clicks.ins @@ -1,6 +1,6 @@ %% (The MIT License) %% -%% Copyright (c) 2021-2022 Yegor Bugayenko +%% Copyright (c) 2021-2024 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 @@ -26,7 +26,7 @@ \preamble (The MIT License) -Copyright (c) 2021-2022 Yegor Bugayenko +Copyright (c) 2021-2024 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 @@ -48,8 +48,8 @@ SOFTWARE. \endpreamble \generate{\file{clicks.sty}{\from{clicks.dtx}{package}}} \obeyspaces -\Msg{*** To finish the installation you have to move the ".sty"} -\Msg{*** file into a directory searched by TeX. To produce the} -\Msg{*** documentation run the file ".dtx" through LaTeX. If any} -\Msg{*** questions, submit a new GitHub issue.} +\Msg{To finish the installation you have to move the ".sty"} +\Msg{file into a directory searched by TeX. To produce the} +\Msg{documentation run the file ".dtx" through LaTeX. If any} +\Msg{questions, submit a new GitHub issue.} \endbatchfile diff --git a/macros/latex/contrib/clicks/clicks.pdf b/macros/latex/contrib/clicks/clicks.pdf Binary files differindex 9f26f16493..e7060e4d2b 100644 --- a/macros/latex/contrib/clicks/clicks.pdf +++ b/macros/latex/contrib/clicks/clicks.pdf |