summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-02-04 21:36:40 +0000
committerKarl Berry <karl@freefriends.org>2019-02-04 21:36:40 +0000
commit1a215a70625796984cb80f9112537f6b8590bcf8 (patch)
treee342a1a9ac8bb484b24d47464402b212301d33f9 /Master/texmf-dist/tex
parente5c35879e655b37a1b5c2ae23cbaf0d8eebf359a (diff)
duckuments (4feb19)
git-svn-id: svn://tug.org/texlive/trunk@49936 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/duckuments/duckuments.sty50
1 files changed, 25 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/duckuments/duckuments.sty b/Master/texmf-dist/tex/latex/duckuments/duckuments.sty
index 7edc58fdc29..8f2d66435a6 100644
--- a/Master/texmf-dist/tex/latex/duckuments/duckuments.sty
+++ b/Master/texmf-dist/tex/latex/duckuments/duckuments.sty
@@ -13,7 +13,7 @@
%% See http://www.latex-project.org/lppl.txt
%% --------------------------------------------------------------
%%
-%% Copyright (C) 2018 Jonathan P. Spratte
+%% Copyright (C) 2018-2019 Jonathan P. Spratte
%%
%% This work may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License (LPPL), either version 1.3c of this license or
@@ -32,8 +32,8 @@
%% example-image-duck-portrait.tex
%%
\RequirePackage{xparse,letltxmacro,l3keys2e}
-\def\duckuments@version{0.4b}
-\def\duckuments@date{2018/09/13}
+\def\duckuments@version{0.4c}
+\def\duckuments@date{2019/02/03}
\ProvidesExplPackage
{duckuments} {\duckuments@date}
{\duckuments@version} {minimal working duckuments}
@@ -198,7 +198,7 @@
\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~>()_\\
\ \ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~\ ~(__)__
}
-\cs_new:Nn \duckuments_patch_see_duckumentation:
+\cs_new:Npn \duckuments_patch_see_duckumentation:
{%>>>
\cs_set:Nn \msg_see_documentation_text:n
{
@@ -375,7 +375,7 @@
{ \bool_if:NTF \l_duckuments_math_inline_bool { #2 } { #1 } }
\newcommand*\duckuments@ifdisplay[2][]
{ \bool_if:NTF \l_duckuments_math_display_bool { #2 } { #1 } }
-\cs_new_protected_nopar:Nn \duckuments_list_example:n
+\cs_new_protected_nopar:Npn \duckuments_list_example:n #1
{%>>>
\subsection{Example\ for\ ducks\ (#1)}
\ducklist { #1 }
@@ -418,7 +418,7 @@
\draw[black] (0,0) rectangle (#1,#2);
\end{tikzpicture}
}%<<<
-\cs_new_protected_nopar:Nn \duckuments_patch_includegraphics:
+\cs_new_protected_nopar:Npn \duckuments_patch_includegraphics:
{%>>>
\@ifpackageloaded { graphicx }
{
@@ -444,7 +444,7 @@
}
{}
}%<<<
-\cs_new_protected:Nn \duckuments_blindduck_range_test:n
+\cs_new_protected:Npn \duckuments_blindduck_range_test:n #1
{%>>>
\regex_match:NnTF \c_duckuments_range_regex { #1 }
{
@@ -487,7 +487,7 @@
}
}%<<<
\cs_generate_variant:Nn \duckuments_blindduck_range_test:n { V }
-\cs_new:Nn \duckuments_blindduck_set_text:nn
+\cs_new:Npn \duckuments_blindduck_set_text:nn #1 #2
{%>>>
\def \duckuments@blindduck@text
{
@@ -497,12 +497,12 @@
}
}%<<<
\cs_generate_variant:Nn \duckuments_blindduck_set_text:nn { xx }
-\cs_new:Nn \duckuments_blindduck_set_next_start:n
+\cs_new:Npn \duckuments_blindduck_set_next_start:n #1
{%>>>
\int_gset:Nn \g_duckuments_blindduck_start_int
{ \int_mod:nn { #1 } { \c_duckuments_blindduck_pars_int } + \c_one }
}%<<<
-\cs_new:Nn \duckuments_blindduck_single_par:n
+\cs_new:Npn \duckuments_blindduck_single_par:n #1
{%>>>
\bool_if:nTF
{
@@ -519,12 +519,12 @@
\use:c { duckuments@blindduck@text@ \int_to_roman:n { #1 } }
}
}%<<<
-\cs_new:Nn \duckuments_blindduck_par_loop:n
+\cs_new:Npn \duckuments_blindduck_par_loop:n #1
{%>>>
\duckuments_blindduck_single_par:n { #1 }
\par
}%<<<
-\cs_new_protected:Nn \duckuments_starred:n
+\cs_new_protected:Npn \duckuments_starred:n #1
{%>>>
\IfBooleanTF { #1 }
{ \def\ProcessedArgument{*} }
@@ -539,17 +539,17 @@
\int_const:Nn \c_duckuments_RCiv_Slength_int { 256 }
\tl_new:N \l_duckuments_tmpa_tl
\tl_new:N \l_duckuments_tmpb_tl
- \cs_new_protected_nopar:Nn \duckuments_RCiv_S_new:n
+ \cs_new_protected_nopar:Npn \duckuments_RCiv_S_new:n #1
{ \int_new:c { g_duckuments_RCiv_S_ \int_eval:n { #1 } _int } }
- \cs_new_protected_nopar:Nn \duckuments_RCiv_S_set:nn
+ \cs_new_protected_nopar:Npn \duckuments_RCiv_S_set:nn #1 #2
{ \int_gset:cn { g_duckuments_RCiv_S_ \int_eval:n { #1 } _int } { #2 } }
- \cs_new_nopar:Nn \duckuments_RCiv_S_get:n
+ \cs_new_nopar:Npn \duckuments_RCiv_S_get:n #1
{ \int_use:c { g_duckuments_RCiv_S_ \int_eval:n { #1 } _int } }
- \cs_new_protected_nopar:Nn \duckuments_RCiv_key_new:n
+ \cs_new_protected_nopar:Npn \duckuments_RCiv_key_new:n #1
{ \int_new:c { g_duckuments_RCiv_key_ \int_eval:n { #1 } _int } }
- \cs_new_protected_nopar:Nn \duckuments_RCiv_key_set:nn
+ \cs_new_protected_nopar:Npn \duckuments_RCiv_key_set:nn #1 #2
{ \int_gset:cn { g_duckuments_RCiv_key_ \int_eval:n { #1 } _int } { #2 } }
- \cs_new_nopar:Nn \duckuments_RCiv_key_get:n
+ \cs_new_nopar:Npn \duckuments_RCiv_key_get:n #1
{ \int_use:c { g_duckuments_RCiv_key_ \int_eval:n { #1 } _int } }
\int_step_inline:nnnn { 0 } { 1 } { 255 }
{
@@ -573,7 +573,7 @@
{ \int_from_alph:n { #1 } }
\int_gincr:N \g_duckuments_RCiv_keylength_int
}
- \cs_new_protected_nopar:Nn \duckuments_swap_S_entries:nn
+ \cs_new_protected_nopar:Npn \duckuments_swap_S_entries:nn #1 #2
{
\int_set_eq:Nc
\g_duckuments_tmpa_int
@@ -586,9 +586,9 @@
\g_duckuments_tmpa_int
}
\int_gset:Nn \g_duckuments_RCiv_keylength_int { 5 }
- \cs_new:Nn \duckuments_gadd_mod:Nnn
+ \cs_new:Npn \duckuments_gadd_mod:Nnn #1 #2 #3
{ \int_gset:Nn #1 { \int_mod:nn { #1 + ( #2 ) } { #3 } } }
- \cs_new:Nn \duckuments_gadd_mod_Slength:Nn
+ \cs_new:Npn \duckuments_gadd_mod_Slength:Nn #1 #2
{
\duckuments_gadd_mod:Nnn #1
{ #2 } { \c_duckuments_RCiv_Slength_int }
@@ -606,7 +606,7 @@
}
\int_gzero:N \g_duckuments_RCiv_i_int
\int_gzero:N \g_duckuments_RCiv_j_int
- \cs_new_protected_nopar:Nn \duckuments_get_random_page:
+ \cs_new_protected_nopar:Npn \duckuments_get_random_page:
{
\duckuments_gadd_mod_Slength:Nn \g_duckuments_RCiv_i_int { \c_one }
\duckuments_gadd_mod_Slength:Nn \g_duckuments_RCiv_j_int
@@ -629,11 +629,11 @@
}
}
}
- \cs_new:Nn \duckuments_random_page: { 1 }
+ \cs_new:Npn \duckuments_random_page: { 1 }
}
{
- \cs_new:Nn \duckuments_get_random_page: {}
- \cs_new:Nn \duckuments_random_page:
+ \cs_new:Npn \duckuments_get_random_page: {}
+ \cs_new:Npn \duckuments_random_page:
{ \int_rand:nn { 1 } { \c_duckuments_example_pages_int } }
}
\ExplSyntaxOff