summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/sillypage
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-11 22:02:24 +0000
committerKarl Berry <karl@freefriends.org>2022-01-11 22:02:24 +0000
commit8073de44fa28710eeac2f911e170ef565c63c703 (patch)
treee450e86e97d26354c42cc7c34f675057314f45d5 /Master/texmf-dist/tex/latex/sillypage
parentfa4d2a5e2aa4aef4c17f825a54127ab10979e27c (diff)
sillypage (11jan22)
git-svn-id: svn://tug.org/texlive/trunk@61573 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/sillypage')
-rw-r--r--Master/texmf-dist/tex/latex/sillypage/sillypage.sty61
-rw-r--r--Master/texmf-dist/tex/latex/sillypage/sillywalk-map.pngbin0 -> 6039 bytes
2 files changed, 61 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/sillypage/sillypage.sty b/Master/texmf-dist/tex/latex/sillypage/sillypage.sty
new file mode 100644
index 00000000000..3bb8a4c03ff
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/sillypage/sillypage.sty
@@ -0,0 +1,61 @@
+%%
+%% This is file `sillypage.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% sillypage.dtx (with options: `package')
+%%
+%% This is a generated file.
+%%
+%% Copyright 2022 Phelype Oleinik /phelype.oleinik@latex-project.org/
+%% Paulo Cereda /cereda.paulo@gmail.com/
+%%
+%% This work may be distributed and/or modified under the conditions of the
+%% LaTeX Project Public License, either version 1.3c of this license or (at
+%% your option) any later version. The latest version of this license is in
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3c or later is part of all distributions of LaTeX version
+%% 2005/12/01 or later.
+%%
+\def\sillypageDate{2022-01-11}
+\def\sillypageVersion{1.2}
+\ProvidesPackage{sillypage}[\sillypageDate\space\sillypageVersion\space
+ The silly walk as page numbering style]
+\RequirePackage{graphicx}
+\newcommand*\silly[1]{\expandafter\@silly\csname c@#1\endcsname}
+\newcommand*\sillystep[1]{\@silly{#1}}
+\newcommand*\@silly[1]{\expandafter\@silly@walk
+ \expandafter{\number\numexpr#1\relax}}
+\newcommand*\silly@steps{12}%
+\newcommand*\silly@width{48px}%
+\newcommand*\silly@height{.8cm}%
+\newcommand*\silly@picture{sillywalk-map.png}%
+\def\@silly@walk#1{%
+ \@ifundefined{texorpdfstring}{\@firstoftwo}{\texorpdfstring}%
+ {\@silly@walk@{#1}}% TeX
+ {#1}}% pdf string
+\def\@silly@walk@#1{%
+ \ifnum#1>\silly@steps\space
+ \expandafter\@silly@walk@\expandafter
+ {\number\numexpr#1-\silly@steps\expandafter}%
+ \else
+ \expandafter\includegraphics\expanded{[height=\silly@height,trim={%
+ \the\dimexpr\silly@width*(#1-1)\relax\space 0
+ \the\dimexpr\silly@width*(\silly@steps-#1)\relax\space 0},clip]}%
+ {\silly@picture}%
+ \fi}
+%%
+%% This work is "maintained" (as per the LPPL maintenance status)
+%% by Phelype Oleinik and Paulo Cereda.
+%%
+%% This work consists of the files sillypage.dtx, and
+%% sillypage.ins,
+%% and the derived files sillypage.sty,
+%% sillypage.pdf,
+%% sillywalk-map.png, and
+%% README.md.
+%%
+%% End of file `sillypage.sty'.
diff --git a/Master/texmf-dist/tex/latex/sillypage/sillywalk-map.png b/Master/texmf-dist/tex/latex/sillypage/sillywalk-map.png
new file mode 100644
index 00000000000..62f43c11b1a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/sillypage/sillywalk-map.png
Binary files differ