[latex3-commits] [latex3/latex2e] templates: Minor re-order of code (ecedaab4)
github at latex-project.org
github at latex-project.org
Tue Feb 13 22:59:21 CET 2024
Repository : https://github.com/latex3/latex2e
On branch : templates
Link : https://github.com/latex3/latex2e/commit/ecedaab4dd9a62e0ab6052bdf0848bd12ef8328f
>---------------------------------------------------------------
commit ecedaab4dd9a62e0ab6052bdf0848bd12ef8328f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Feb 1 13:40:53 2024 +0000
Minor re-order of code
Makes the order in ltnews and has a logic to it.
>---------------------------------------------------------------
ecedaab4dd9a62e0ab6052bdf0848bd12ef8328f
base/lttemplates.dtx | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/base/lttemplates.dtx b/base/lttemplates.dtx
index 2935c35e..27f5e6de 100644
--- a/base/lttemplates.dtx
+++ b/base/lttemplates.dtx
@@ -2615,11 +2615,12 @@
% \begin{macro}{\NewTemplateType}
% \begin{macro}{\NewTemplateInterface}
% \begin{macro}{\NewTemplateCode}
+% \begin{macro}{\NewTemplateCopy}
% \begin{macro}{\EditTemplateDefaults}
+% \begin{macro}{\UseTemplate}
% \begin{macro}{\NewInstance}
% \begin{macro}{\NewInstanceCopy}
% \begin{macro}{\EditInstance}
-% \begin{macro}{\UseTemplate}
% \begin{macro}{\UseInstance}
% All simple translations.
% \begin{macrocode}
@@ -2631,16 +2632,16 @@
{ \@@_define_template_code:nnnnn {#1} {#2} {#3} {#4} {#5} }
\cs_new_protected:Npn \NewTemplateCopy #1#2#3
{ \@@_template_new_eq:nnn {#1} {#2} {#3} }
+\cs_new_protected:Npn \EditTemplateDefaults #1#2#3
+ { \@@_edit_defaults:nnn {#1} {#2} {#3} }
+\cs_new_protected:Npn \UseTemplate #1#2#3
+ { \@@_use_template:nnn {#1} {#2} {#3} }
\cs_new_protected:Npn \NewInstance #1#2#3#4
{ \@@_define_instance:nnnn {#1} {#3} {#2} {#4} }
\cs_new_protected:Npn \NewInstanceCopy #1#2#3
{ \@@_instance_new_eq:nnn {#1} {#2} {#3} }
-\cs_new_protected:Npn \EditTemplateDefaults #1#2#3
- { \@@_edit_defaults:nnn {#1} {#2} {#3} }
\cs_new_protected:Npn \EditInstance #1#2#3
{ \@@_edit_instance:nnn {#1} {#2} {#3} }
-\cs_new_protected:Npn \UseTemplate #1#2#3
- { \@@_use_template:nnn {#1} {#2} {#3} }
\cs_new_protected:Npn \UseInstance #1#2
{ \@@_use_instance:nn {#1} {#2} }
% \end{macrocode}
@@ -2653,6 +2654,7 @@
% \end{macro}
% \end{macro}
% \end{macro}
+% \end{macro}
%
% \begin{macro}{\ShowTemplateCode}
% \begin{macro}{\ShowTemplateDefaults}
More information about the latex3-commits
mailing list.