summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/sillypage/sillypage.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/sillypage/sillypage.sty')
-rw-r--r--Master/texmf-dist/tex/latex/sillypage/sillypage.sty30
1 files changed, 28 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/sillypage/sillypage.sty b/Master/texmf-dist/tex/latex/sillypage/sillypage.sty
index 2c304af0505..a78ae795dc8 100644
--- a/Master/texmf-dist/tex/latex/sillypage/sillypage.sty
+++ b/Master/texmf-dist/tex/latex/sillypage/sillypage.sty
@@ -22,8 +22,8 @@
%% and version 1.3c or later is part of all distributions of LaTeX version
%% 2005/12/01 or later.
%%
-\def\sillypageDate{2023-03-04}
-\def\sillypageVersion{1.6}
+\def\sillypageDate{2024-07-23}
+\def\sillypageVersion{1.7}
\ProvidesExplPackage
{sillypage} {\sillypageDate} {\sillypageVersion}
{The silly walk as page numbering style}
@@ -36,19 +36,45 @@
\newcommand*\@silly { \__silly_step:n }
\cs_new:Npn \__silly_step:n #1
{
+ \UseTaggingSocket{__silly/begin}{#1}
+ \SuspendTagging{__silly}
\__silly_step_aux:eN
{ \int_eval:n { \int_mod:nn { #1-1 } { \silly@steps } +1 } }
\c_false_bool
+ \ResumeTagging{__silly}
+ \UseTaggingSocket{__silly/end}
}
\NewDocumentCommand \sillynumeral { m } { \__silly_numeral:n {#1} }
\newcommand*\@sillynumeral { \__silly_numeral:n }
\cs_new:Npn \__silly_numeral:n #1
{
+ \UseTaggingSocket{__silly/begin}{#1}
+ \SuspendTagging{__silly}
\exp_args:Ne \str_map_function:nN
{ \int_to_base:nn {#1} { 12 } } \__silly_numeral_aux:n
+ \ResumeTagging{__silly}
+ \UseTaggingSocket{__silly/end}
}
\cs_new:Npn \__silly_numeral_aux:n #1
{ \__silly_step_aux:eN { "\char_uppercase:N #1+1 } \c_true_bool }
+
+\NewSocket{tagsupport/__silly/begin}{1}
+\NewSocket{tagsupport/__silly/end}{0}
+\NewSocketPlug{tagsupport/__silly/begin}{tagged}
+ {
+ \mode_leave_vertical:
+ \tag_mc_end_push:
+ \tag_struct_begin:n {tag=Span}
+ \tag_mc_begin:n {actualtext=#1}
+ }
+\NewSocketPlug{tagsupport/__silly/end}{tagged}
+ {
+ \tag_mc_end:
+ \tag_struct_end:
+ \tag_mc_begin_pop:n{}
+ }
+\AssignSocketPlug{tagsupport/__silly/begin}{tagged}
+\AssignSocketPlug{tagsupport/__silly/end}{tagged}
\cs_new:Npn \__silly_step_aux:nN #1 #2
{
\cs_if_exist_use:cF { texorpdfstring } { \use_i:nn }