1
1
% \iffalse meta-comment
2
2
%
3
- % File: duckuments.dtx Copyright (C) 2018 Jonathan P. Spratte
3
+ % File: duckuments.dtx Copyright (C) 2018-2019 Jonathan P. Spratte
4
4
%
5
5
% It may be distributed and/or modified under the conditions of the LaTeX
6
6
% Project Public License (LPPL), either version 1.3c of this license or (at your
@@ -26,7 +26,7 @@ Released under the LaTeX Project Public License v1.3c or later
26
26
See http://www.latex-project.org/lppl.txt
27
27
--------------------------------------------------------------
28
28
29
- Copyright (C) 2018 Jonathan P. Spratte
29
+ Copyright (C) 2018-2019 Jonathan P. Spratte
30
30
31
31
This work may be distributed and/or modified under the conditions of the
32
32
LaTeX Project Public License (LPPL), either version 1.3c of this license or
@@ -60,13 +60,13 @@ and the derived files duckuments.pdf,
60
60
%
61
61
% <*driver|pkg>
62
62
\RequirePackage {xparse,letltxmacro,l3keys2e}
63
- \def\duckuments@version {0.4b }
64
- \def\duckuments@date {2018/09/13 }
63
+ \def\duckuments@version {0.4c }
64
+ \def\duckuments@date {2019/02/03 }
65
65
% </driver|pkg>
66
66
%
67
67
% <*driver>
68
68
\ProvidesFile {duckuments.dtx}
69
- [\csname duckuments@date\endcsname \ minimal working duckuments]
69
+ [\csname duckuments@date\endcsname \space minimal working duckuments]
70
70
\documentclass {l3doc }
71
71
\usepackage {duckuments }
72
72
\usepackage {enumitem }
@@ -562,7 +562,7 @@ and the derived files duckuments.pdf,
562
562
%
563
563
% \begin{macro}{\duckuments_patch_see_duckumentation:}^^A>>>
564
564
% \begin{macrocode}
565
- \cs _new:Nn \duckuments _patch_see_duckumentation:
565
+ \cs _new:Npn \duckuments _patch_see_duckumentation:
566
566
{% >>>
567
567
\cs _set:Nn \msg _see_documentation_text:n
568
568
{
@@ -822,7 +822,7 @@ and the derived files duckuments.pdf,
822
822
%
823
823
% \begin{macro}{\duckuments_list_example:n}^^A>>>
824
824
% \begin{macrocode}
825
- \cs _new_protected_nopar:Nn \duckuments _list_example:n
825
+ \cs _new_protected_nopar:Npn \duckuments _list_example:n #1
826
826
{% >>>
827
827
\subsection {Example\ for\ ducks\ (#1) }
828
828
\ducklist { #1 }
@@ -890,7 +890,7 @@ and the derived files duckuments.pdf,
890
890
%
891
891
% \begin{macro}{\duckuments_patch_includegraphics:}^^A>>>
892
892
% \begin{macrocode}
893
- \cs _new_protected_nopar:Nn \duckuments _patch_includegraphics:
893
+ \cs _new_protected_nopar:Npn \duckuments _patch_includegraphics:
894
894
{% >>>
895
895
\@ifpackageloaded { graphicx }
896
896
{
@@ -921,7 +921,7 @@ and the derived files duckuments.pdf,
921
921
%
922
922
% \begin{macro}{\duckuments_blindduck_range_test:n}^^A>>>
923
923
% \begin{macrocode}
924
- \cs _new_protected:Nn \duckuments _blindduck_range_test:n
924
+ \cs _new_protected:Npn \duckuments _blindduck_range_test:n #1
925
925
{% >>>
926
926
\regex _match:NnTF \c _duckuments_range_regex { #1 }
927
927
{
@@ -969,7 +969,7 @@ and the derived files duckuments.pdf,
969
969
%
970
970
% \begin{macro}{\duckuments_blindduck_set_text:nn}^^A>>>
971
971
% \begin{macrocode}
972
- \cs _new:Nn \duckuments _blindduck_set_text:nn
972
+ \cs _new:Npn \duckuments _blindduck_set_text:nn #1 #2
973
973
{% >>>
974
974
\def \duckuments@blindduck@text
975
975
{
@@ -984,7 +984,7 @@ and the derived files duckuments.pdf,
984
984
%
985
985
% \begin{macro}{\duckuments_blindduck_set_next_start:n}^^A>>>
986
986
% \begin{macrocode}
987
- \cs _new:Nn \duckuments _blindduck_set_next_start:n
987
+ \cs _new:Npn \duckuments _blindduck_set_next_start:n #1
988
988
{% >>>
989
989
\int _gset:Nn \g _duckuments_blindduck_start_int
990
990
{ \int _mod:nn { #1 } { \c _duckuments_blindduck_pars_int } + \c _one }
@@ -994,7 +994,7 @@ and the derived files duckuments.pdf,
994
994
%
995
995
% \begin{macro}{\duckuments_blindduck_single_par:n}^^A>>>
996
996
% \begin{macrocode}
997
- \cs _new:Nn \duckuments _blindduck_single_par:n
997
+ \cs _new:Npn \duckuments _blindduck_single_par:n #1
998
998
{% >>>
999
999
\bool _if:nTF
1000
1000
{
@@ -1016,7 +1016,7 @@ and the derived files duckuments.pdf,
1016
1016
%
1017
1017
% \begin{macro}{\duckuments_blindduck_par_loop:n}^^A>>>
1018
1018
% \begin{macrocode}
1019
- \cs _new:Nn \duckuments _blindduck_par_loop:n
1019
+ \cs _new:Npn \duckuments _blindduck_par_loop:n #1
1020
1020
{% >>>
1021
1021
\duckuments _blindduck_single_par:n { #1 }
1022
1022
\par
@@ -1026,7 +1026,7 @@ and the derived files duckuments.pdf,
1026
1026
%
1027
1027
% \begin{macro}{\duckuments_starred:n}^^A>>>
1028
1028
% \begin{macrocode}
1029
- \cs _new_protected:Nn \duckuments _starred:n
1029
+ \cs _new_protected:Npn \duckuments _starred:n #1
1030
1030
{% >>>
1031
1031
\IfBooleanTF { #1 }
1032
1032
{ \def\ProcessedArgument {*} }
@@ -1053,17 +1053,17 @@ and the derived files duckuments.pdf,
1053
1053
% \end{macrocode}
1054
1054
% Initialize the S array:
1055
1055
% \begin{macrocode}
1056
- \cs _new_protected_nopar:Nn \duckuments _RCiv_S_new:n
1056
+ \cs _new_protected_nopar:Npn \duckuments _RCiv_S_new:n #1
1057
1057
{ \int _new:c { g_duckuments_RCiv_S_ \int _eval:n { #1 } _int } }
1058
- \cs _new_protected_nopar:Nn \duckuments _RCiv_S_set:nn
1058
+ \cs _new_protected_nopar:Npn \duckuments _RCiv_S_set:nn #1 #2
1059
1059
{ \int _gset:cn { g_duckuments_RCiv_S_ \int _eval:n { #1 } _int } { #2 } }
1060
- \cs _new_nopar:Nn \duckuments _RCiv_S_get:n
1060
+ \cs _new_nopar:Npn \duckuments _RCiv_S_get:n #1
1061
1061
{ \int _use:c { g_duckuments_RCiv_S_ \int _eval:n { #1 } _int } }
1062
- \cs _new_protected_nopar:Nn \duckuments _RCiv_key_new:n
1062
+ \cs _new_protected_nopar:Npn \duckuments _RCiv_key_new:n #1
1063
1063
{ \int _new:c { g_duckuments_RCiv_key_ \int _eval:n { #1 } _int } }
1064
- \cs _new_protected_nopar:Nn \duckuments _RCiv_key_set:nn
1064
+ \cs _new_protected_nopar:Npn \duckuments _RCiv_key_set:nn #1 #2
1065
1065
{ \int _gset:cn { g_duckuments_RCiv_key_ \int _eval:n { #1 } _int } { #2 } }
1066
- \cs _new_nopar:Nn \duckuments _RCiv_key_get:n
1066
+ \cs _new_nopar:Npn \duckuments _RCiv_key_get:n #1
1067
1067
{ \int _use:c { g_duckuments_RCiv_key_ \int _eval:n { #1 } _int } }
1068
1068
\int _step_inline:nnnn { 0 } { 1 } { 255 }
1069
1069
{
@@ -1087,7 +1087,7 @@ and the derived files duckuments.pdf,
1087
1087
{ \int _from_alph:n { #1 } }
1088
1088
\int _gincr:N \g _duckuments_RCiv_keylength_int
1089
1089
}
1090
- \cs _new_protected_nopar:Nn \duckuments _swap_S_entries:nn
1090
+ \cs _new_protected_nopar:Npn \duckuments _swap_S_entries:nn #1 #2
1091
1091
{
1092
1092
\int _set_eq:Nc
1093
1093
\g _duckuments_tmpa_int
@@ -1100,9 +1100,9 @@ and the derived files duckuments.pdf,
1100
1100
\g _duckuments_tmpa_int
1101
1101
}
1102
1102
\int _gset:Nn \g _duckuments_RCiv_keylength_int { 5 }
1103
- \cs _new:Nn \duckuments _gadd_mod:Nnn
1103
+ \cs _new:Npn \duckuments _gadd_mod:Nnn #1 #2 #3
1104
1104
{ \int _gset:Nn #1 { \int _mod:nn { #1 + ( #2 ) } { #3 } } }
1105
- \cs _new:Nn \duckuments _gadd_mod_Slength:Nn
1105
+ \cs _new:Npn \duckuments _gadd_mod_Slength:Nn #1 #2
1106
1106
{
1107
1107
\duckuments _gadd_mod:Nnn #1
1108
1108
{ #2 } { \c _duckuments_RCiv_Slength_int }
@@ -1124,7 +1124,7 @@ and the derived files duckuments.pdf,
1124
1124
% Provide a function which gets the next random number and sets
1125
1125
% |\duckuments_random_page:| to it.
1126
1126
% \begin{macrocode}
1127
- \cs _new_protected_nopar:Nn \duckuments _get_random_page:
1127
+ \cs _new_protected_nopar:Npn \duckuments _get_random_page:
1128
1128
{
1129
1129
\duckuments _gadd_mod_Slength:Nn \g _duckuments_RCiv_i_int { \c _one }
1130
1130
\duckuments _gadd_mod_Slength:Nn \g _duckuments_RCiv_j_int
@@ -1147,15 +1147,15 @@ and the derived files duckuments.pdf,
1147
1147
}
1148
1148
}
1149
1149
}
1150
- \cs _new:Nn \duckuments _random_page: { 1 }
1150
+ \cs _new:Npn \duckuments _random_page: { 1 }
1151
1151
}
1152
1152
% \end{macrocode}
1153
1153
% Both \pdfTeX\ and \LuaTeX\ don't need the RC4 as there |\int_random:nn| is
1154
1154
% available.
1155
1155
% \begin{macrocode}
1156
1156
{
1157
- \cs _new:Nn \duckuments _get_random_page: {}
1158
- \cs _new:Nn \duckuments _random_page:
1157
+ \cs _new:Npn \duckuments _get_random_page: {}
1158
+ \cs _new:Npn \duckuments _random_page:
1159
1159
{ \int _rand:nn { 1 } { \c _duckuments_example_pages_int } }
1160
1160
}
1161
1161
% \end{macrocode}
0 commit comments