Skip to content

Commit

Permalink
Swtich to all-e-type expansion in latex-lab-math
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Nov 12, 2023
1 parent 9975d6e commit 653208f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion required/latex-lab/changes.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
2023-11-12 Joseph Wright <[email protected]>
* latex-lab-math.dtx: tidy variant creation
* latex-lab-math.dtx: tidy variant creation, switch to e-type expansion

2023-10-30 Ulrike Fischer <[email protected]>
* added latex-lab-table.dtx for basic table tagging.
Expand Down
32 changes: 16 additions & 16 deletions required/latex-lab/latex-lab-math.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -472,15 +472,15 @@
\cs_gset_eq:cc { @@_env_ #1 _begin: } {#1}
\cs_gset_eq:cc { @@_env_ #1 _end: } { end #1 }
%
\ExpandArgs { nnx } \RenewDocumentEnvironment {#1} { b }
\ExpandArgs { nne } \RenewDocumentEnvironment {#1} { b }
{
% \bool_set_true:N \exp_not:N \l_@@_collected_bool
% \cs_if_exist:cTF { @@_env #1 _aux: }
% {
% \exp_not:c { @@_env #1 _aux: }
% ####1 \exp_not:N \@@_env_end: {#1}
% ##1 \exp_not:N \@@_env_end: {#1}
% }
% { \exp_not:N \@@_process:nn {#1} {####1} }
% { \exp_not:N \@@_process:nn {#1} {##1} }
\exp_not:N \bool_if:NTF \exp_not:N \l_@@_collected_bool
{
% \typeout{===>B1}
Expand All @@ -490,15 +490,15 @@
\cs_if_exist:cTF { @@_env #1 _aux: }
{
\exp_not:c { @@_env #1 _aux: }
####1 \exp_not:N \@@_env_end: {#1}
##1 \exp_not:N \@@_env_end: {#1}
}
{ \exp_not:N \@@_process:nn {#1} {####1} }
{ \exp_not:N \@@_process:nn {#1} {##1} }
\exp_not:n { \@kernel@math@registered@begin }
\bool_set_true:N \exp_not:N \l_@@_collected_bool
}
% \exp_not:N \tracingall
\exp_not:c { @@_env_ #1 _begin: }
####1
##1
\exp_not:c { @@_env_ #1 _end: }
% \exp_not:c { @@_env_ #1 _end: }
% \exp_not:N \tracingnone
Expand All @@ -514,15 +514,15 @@
\cs_gset_eq:cc { @@_env_ #1 _begin: } {#1}
\cs_gset_eq:cc { @@_env_ #1 _end: } { end #1 }
%
\ExpandArgs { nnxx } \RenewDocumentEnvironment {#1} { b }
\ExpandArgs { nnee } \RenewDocumentEnvironment {#1} { b }
{
% \bool_set_true:N \exp_not:N \l_@@_collected_bool
% \cs_if_exist:cTF { @@_env #1 _aux: }
% {
% \exp_not:c { @@_env #1 _aux: }
% ####1 \exp_not:N \@@_env_end: {#1}
% ##1 \exp_not:N \@@_env_end: {#1}
% }
% { \exp_not:N \@@_process:nn {#1} {####1} }
% { \exp_not:N \@@_process:nn {#1} {##1} }
\exp_not:N \bool_if:NTF \exp_not:N \l_@@_collected_bool
{
% \typeout{===>B1}
Expand All @@ -532,15 +532,15 @@
\cs_if_exist:cTF { @@_env #1 _aux: }
{
\exp_not:c { @@_env #1 _aux: }
####1 \exp_not:N \@@_env_end: {#1}
##1 \exp_not:N \@@_env_end: {#1}
}
{ \exp_not:N \@@_process:nn {#1} {####1} }
{ \exp_not:N \@@_process:nn {#1} {##1} }
\exp_not:n { \@kernel@math@registered@begin }
\bool_set_true:N \exp_not:N \l_@@_collected_bool
}
% \exp_not:N \tracingall
\exp_not:c { @@_env_ #1 _begin: }
####1
##1
% \exp_not:c { @@_env_ #1 _end: }
% \exp_not:N \tracingnone
}
Expand All @@ -556,7 +556,7 @@
\cs_gset_eq:cc { @@_env_ #1 _begin: } {#1}
\cs_gset_eq:cc { @@_env_ #1 _end: } { end #1 }
%
\ExpandArgs { nnxx } \RenewDocumentEnvironment {#1} { b }
\ExpandArgs { nnee } \RenewDocumentEnvironment {#1} { b }
{
\exp_not:N \bool_if:NTF \exp_not:N \l_@@_collected_bool
{
Expand All @@ -567,15 +567,15 @@
\cs_if_exist:cTF { @@_env #1 _aux: }
{
\exp_not:c { @@_env #1 _aux: }
####1 \exp_not:N \@@_env_end: {#1}
##1 \exp_not:N \@@_env_end: {#1}
}
{ \exp_not:N \@@_process:nn {#1} {####1} }
{ \exp_not:N \@@_process:nn {#1} {##1} }
\exp_not:n { \@kernel@math@registered@begin }
\bool_set_true:N \exp_not:N \l_@@_collected_bool
}
% \exp_not:N \tracingall
\exp_not:c { @@_env_ #1 _begin: }
####1
##1
}
{
\exp_not:c { @@_env_ #1 _end: }
Expand Down

0 comments on commit 653208f

Please sign in to comment.