integrate generation of sty file in .dtx file

This commit is contained in:
Maximilian Keßler 2022-01-24 00:36:56 +01:00
parent 33a2294692
commit cbcebe18bd
2 changed files with 33 additions and 19 deletions

View file

@ -1,4 +1,15 @@
% \iffalse meta-comment % \iffalse meta-comment
%<*internal>
\begingroup
\input docstrip.tex
\keepsilent
\usedir{tex/latex/mkessler/groupthm}
\askforoverwritefalse
\generate{\file{groupthm.sty}{\from{groupthm.dtx}{package}}}
\def\tmpa{plain}
\ifx\tmpa\fmtname\endgroup\expandafter\bye\fi
\endgroup
%</internal>
% %
%% File: groupthm.dtx %% File: groupthm.dtx
% %
@ -16,7 +27,6 @@
% %
%<*driver> %<*driver>
\documentclass[full,kernel]{l3doc} \documentclass[full,kernel]{l3doc}
\usepackage{mkessler-todo}
\begin{document} \begin{document}
\DocInput{\jobname.dtx} \DocInput{\jobname.dtx}
\end{document} \end{document}
@ -746,7 +756,9 @@
% \texttt{unnumbered} group. % \texttt{unnumbered} group.
% %
% \end{function} % \end{function}
%
%
%
% \begin{function} % \begin{function}
% { % {
% \groupthm_new_family:nnnnn, \groupthm_provide_family:nnnnn, % \groupthm_new_family:nnnnn, \groupthm_provide_family:nnnnn,
@ -1614,8 +1626,8 @@
% With the \cs{@@_set_normalized_keys:nnn} macro at hand, % With the \cs{@@_set_normalized_keys:nnn} macro at hand,
% it is also easy to provide key-value interfaces for these commands: % it is also easy to provide key-value interfaces for these commands:
% %
%
%
% \begin{macro}{\@@_wrap_multiple:nnn} % \begin{macro}{\@@_wrap_multiple:nnn}
% \begin{syntax} % \begin{syntax}
% \cs{@@_wrap_multiple:nnn}\marg{declarator list}\marg{function name}\marg{code} % \cs{@@_wrap_multiple:nnn}\marg{declarator list}\marg{function name}\marg{code}
@ -1638,7 +1650,7 @@
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
%
% \begin{macro} % \begin{macro}
% { % {
% \groupthm_new_group:nn, % \groupthm_new_group:nn,
@ -1763,7 +1775,9 @@
\cs_generate_variant:Nn \groupthm_declare_group_rule:nnnn { n n n x } \cs_generate_variant:Nn \groupthm_declare_group_rule:nnnn { n n n x }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
%
%
%
% \begin{macro}{\DeclareTheoremGroupRule} % \begin{macro}{\DeclareTheoremGroupRule}
% \begin{syntax} % \begin{syntax}
% \cs{DeclareTheoremGroupRule}\oarg{keyname}% % \cs{DeclareTheoremGroupRule}\oarg{keyname}%
@ -1823,7 +1837,7 @@
% %
% %
% \begin{macrocode} % \begin{macrocode}
%
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% %
@ -1884,8 +1898,8 @@
% \end{macrocodel} % \end{macrocodel}
% \end{macro} % \end{macro}
% %
%
%
% \begin{macro}{\AppendToTheoremGroup} % \begin{macro}{\AppendToTheoremGroup}
% \begin{syntax} % \begin{syntax}
% \cs{AppendToTheoremGroup} \marg{key=value list}\marg{theorem group} % \cs{AppendToTheoremGroup} \marg{key=value list}\marg{theorem group}
@ -1900,8 +1914,8 @@
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
%
%
% We also provide the three default groups: % We also provide the three default groups:
% %
% \begin{macrocode} % \begin{macrocode}
@ -1941,14 +1955,18 @@
\clist_get:NN \l__powerset_copied_clist \l_tmpa_tl \clist_get:NN \l__powerset_copied_clist \l_tmpa_tl
\seq_push:NV \l__powerset_saved_seq \l_tmpa_tl \seq_push:NV \l__powerset_saved_seq \l_tmpa_tl
\clist_pop:NN \l__powerset_copied_clist { \l_tmpa_tl } \clist_pop:NN \l__powerset_copied_clist { \l_tmpa_tl }
% \end{macrocode}
% \begin{macrocode}
\__powerset_clist_foreach_aux:Nn #1 {#2} \__powerset_clist_foreach_aux:Nn #1 {#2}
% \end{macrocode}
% \begin{macrocode}
\seq_get:NN \l__powerset_saved_seq \l_tmpa_tl \seq_get:NN \l__powerset_saved_seq \l_tmpa_tl
\clist_put_left:NV #1 \l_tmpa_tl \clist_put_left:NV #1 \l_tmpa_tl
% \end{macrocode}
% \begin{macrocode}
\__powerset_clist_foreach_aux:Nn #1 {#2} \__powerset_clist_foreach_aux:Nn #1 {#2}
% \end{macrocode}
% \begin{macrocode}
\seq_get:NN \l__powerset_saved_seq \l_tmpa_tl \seq_get:NN \l__powerset_saved_seq \l_tmpa_tl
\clist_remove_all:NV #1 \l_tmpa_tl \clist_remove_all:NV #1 \l_tmpa_tl
\clist_push:NV \l__powerset_copied_clist \l_tmpa_tl \clist_push:NV \l__powerset_copied_clist \l_tmpa_tl

View file

@ -1,4 +0,0 @@
\input docstrip.tex
\keepsilent
\generate{\file{groupthm.sty}{\from{groupthm.dtx}{package}}}
\end