summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/sillypage
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-20 21:27:44 +0000
committerKarl Berry <karl@freefriends.org>2022-01-20 21:27:44 +0000
commitb99febdc7e40b7c00b6bc795463ad0a58840ecdf (patch)
tree9af6ed738aa29a5c66373a018bf434421ba210ac /Master/texmf-dist/tex/latex/sillypage
parenta527d6abe7828d590bda9b872044223e41bd16bc (diff)
sillypage (20jan22)
git-svn-id: svn://tug.org/texlive/trunk@61670 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/sillypage')
-rw-r--r--Master/texmf-dist/tex/latex/sillypage/sillypage.sty17
-rw-r--r--Master/texmf-dist/tex/latex/sillypage/sillywalk-map.pngbin6060 -> 0 bytes
2 files changed, 7 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/sillypage/sillypage.sty b/Master/texmf-dist/tex/latex/sillypage/sillypage.sty
index 3bb8a4c03ff..5bfb15ddb1c 100644
--- a/Master/texmf-dist/tex/latex/sillypage/sillypage.sty
+++ b/Master/texmf-dist/tex/latex/sillypage/sillypage.sty
@@ -10,6 +10,7 @@
%%
%% Copyright 2022 Phelype Oleinik /phelype.oleinik@latex-project.org/
%% Paulo Cereda /cereda.paulo@gmail.com/
+%% samcarter /sam.carter8@aol.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
@@ -20,8 +21,8 @@
%% 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}
+\def\sillypageDate{2022-01-20}
+\def\sillypageVersion{1.3}
\ProvidesPackage{sillypage}[\sillypageDate\space\sillypageVersion\space
The silly walk as page numbering style]
\RequirePackage{graphicx}
@@ -30,9 +31,8 @@
\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}%
+\newcommand*\silly@picture{sillywalk-map.pdf}%
\def\@silly@walk#1{%
\@ifundefined{texorpdfstring}{\@firstoftwo}{\texorpdfstring}%
{\@silly@walk@{#1}}% TeX
@@ -42,20 +42,17 @@
\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}%
+ \includegraphics[height=\silly@height,page=#1]{\silly@picture}%
\fi}
%%
%% This work is "maintained" (as per the LPPL maintenance status)
-%% by Phelype Oleinik and Paulo Cereda.
+%% by Phelype Oleinik, Paulo Cereda and samcarter.
%%
%% This work consists of the files sillypage.dtx, and
%% sillypage.ins,
%% and the derived files sillypage.sty,
%% sillypage.pdf,
-%% sillywalk-map.png, and
+%% sillywalk-map.pdf, 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
deleted file mode 100644
index 229d85f8284..00000000000
--- a/Master/texmf-dist/tex/latex/sillypage/sillywalk-map.png
+++ /dev/null
Binary files differ