diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/sillypage/sillypage-example.pdf | bin | 104340 -> 104340 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/sillypage/sillypage.pdf | bin | 220111 -> 222678 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/sillypage/sillypage.dtx | 34 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/sillypage/sillypage.sty | 30 |
4 files changed, 60 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/sillypage/sillypage-example.pdf b/Master/texmf-dist/doc/latex/sillypage/sillypage-example.pdf Binary files differindex 3d8180932bc..5fa9dd30481 100644 --- a/Master/texmf-dist/doc/latex/sillypage/sillypage-example.pdf +++ b/Master/texmf-dist/doc/latex/sillypage/sillypage-example.pdf diff --git a/Master/texmf-dist/doc/latex/sillypage/sillypage.pdf b/Master/texmf-dist/doc/latex/sillypage/sillypage.pdf Binary files differindex 3efa13e7d7d..60305403ac9 100644 --- a/Master/texmf-dist/doc/latex/sillypage/sillypage.pdf +++ b/Master/texmf-dist/doc/latex/sillypage/sillypage.pdf diff --git a/Master/texmf-dist/source/latex/sillypage/sillypage.dtx b/Master/texmf-dist/source/latex/sillypage/sillypage.dtx index 86982db30db..922d8b6a669 100644 --- a/Master/texmf-dist/source/latex/sillypage/sillypage.dtx +++ b/Master/texmf-dist/source/latex/sillypage/sillypage.dtx @@ -19,8 +19,8 @@ % by Phelype Oleinik, Paulo Cereda, samcarter and Ulrike Fischer. % %<*package> -\def\sillypageDate{2023-03-04} -\def\sillypageVersion{1.6} +\def\sillypageDate{2024-07-23} +\def\sillypageVersion{1.7} %</package> %<*driver> \documentclass[a4paper,full]{l3doc} @@ -261,9 +261,13 @@ \newcommand*\@silly { \@@_step:n } \cs_new:Npn \@@_step:n #1 { + \UseTaggingSocket{@@/begin}{#1} + \SuspendTagging{@@} \@@_step_aux:eN { \int_eval:n { \int_mod:nn { #1-1 } { \silly@steps } +1 } } \c_false_bool + \ResumeTagging{@@} + \UseTaggingSocket{@@/end} } % \end{macrocode} % \end{macro} @@ -280,8 +284,12 @@ \newcommand*\@sillynumeral { \@@_numeral:n } \cs_new:Npn \@@_numeral:n #1 { + \UseTaggingSocket{@@/begin}{#1} + \SuspendTagging{@@} \exp_args:Ne \str_map_function:nN { \int_to_base:nn {#1} { 12 } } \@@_numeral_aux:n + \ResumeTagging{@@} + \UseTaggingSocket{@@/end} } \cs_new:Npn \@@_numeral_aux:n #1 { \@@_step_aux:eN { "\char_uppercase:N #1+1 } \c_true_bool } @@ -289,6 +297,28 @@ % \end{macro} % \end{macro} % \end{macro} +% +% \subsection{Tagging Support} + +% \begin{macrocode} +\NewSocket{tagsupport/@@/begin}{1} +\NewSocket{tagsupport/@@/end}{0} +\NewSocketPlug{tagsupport/@@/begin}{tagged} + { + \mode_leave_vertical: + \tag_mc_end_push: + \tag_struct_begin:n {tag=Span} + \tag_mc_begin:n {actualtext=#1} + } +\NewSocketPlug{tagsupport/@@/end}{tagged} + { + \tag_mc_end: + \tag_struct_end: + \tag_mc_begin_pop:n{} + } +\AssignSocketPlug{tagsupport/@@/begin}{tagged} +\AssignSocketPlug{tagsupport/@@/end}{tagged} +% \end{macrocode} % % \subsection{Internals} % 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 } |