From 8073de44fa28710eeac2f911e170ef565c63c703 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 11 Jan 2022 22:02:24 +0000 Subject: sillypage (11jan22) git-svn-id: svn://tug.org/texlive/trunk@61573 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/sillypage/sillypage.sty | 61 +++++++++++++++++++++ .../tex/latex/sillypage/sillywalk-map.png | Bin 0 -> 6039 bytes 2 files changed, 61 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/sillypage/sillypage.sty create mode 100644 Master/texmf-dist/tex/latex/sillypage/sillywalk-map.png (limited to 'Master/texmf-dist/tex/latex/sillypage') 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 Binary files /dev/null and b/Master/texmf-dist/tex/latex/sillypage/sillywalk-map.png differ -- cgit v1.2.3