[latex3-commits] [git/LaTeX3-latex3-latex3] main: Use `\c_sys_engine_format_str` to determine whether ConTeXt is loaded (3c340a018)

Vít Novotný witiko at mail.muni.cz
Thu Jul 21 21:29:16 CEST 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/3c340a01867e5760ca4c713155800adebe55de9b

>---------------------------------------------------------------

commit 3c340a01867e5760ca4c713155800adebe55de9b
Author: Vít Novotný <witiko at mail.muni.cz>
Date:   Thu Jul 21 21:19:59 2022 +0200

    Use `\c_sys_engine_format_str` to determine whether ConTeXt is loaded


>---------------------------------------------------------------

3c340a01867e5760ca4c713155800adebe55de9b
 l3kernel/l3file.dtx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/l3kernel/l3file.dtx b/l3kernel/l3file.dtx
index 6b77b1ef6..7544ba7d6 100644
--- a/l3kernel/l3file.dtx
+++ b/l3kernel/l3file.dtx
@@ -981,7 +981,7 @@
 \int_step_inline:nnn
   { 0 }
   {
-    \cs_if_exist:NTF \normalend
+    \str_if_eq:VnTF \c_sys_engine_format_str { cont-en }
       { \tex_count:D 38 ~ }
       {
         \tex_count:D 16 ~ %
@@ -1061,7 +1061,7 @@
 %    \begin{macrocode}
 \exp_args:NNf \cs_new_protected:Npn \@@_new:N
   { \exp_args:NNc \exp_after:wN \exp_stop_f: { newread } }
-\cs_if_exist:NT \normalend
+\str_if_eq:VnT \c_sys_engine_format_str { cont-en }
   {
     \cs_new_eq:NN \@@_new_aux:N \@@_new:N
     \cs_gset_protected:Npn \@@_new:N #1
@@ -1441,7 +1441,7 @@
 \int_step_inline:nnn
   { 0 }
   {
-    \cs_if_exist:NTF \normalend
+    \str_if_eq:VnTF \c_sys_engine_format_str { cont-en }
       { \tex_count:D 39 ~ }
       {
         \tex_count:D 17 ~
@@ -1505,7 +1505,7 @@
 %    \begin{macrocode}
 \exp_args:NNf \cs_new_protected:Npn \@@_new:N
   { \exp_args:NNc \exp_after:wN \exp_stop_f: { newwrite } }
-\cs_if_exist:NT \normalend
+\str_if_eq:VnT \c_sys_engine_format_str { cont-en }
   {
     \cs_new_eq:NN \@@_new_aux:N \@@_new:N
     \cs_gset_protected:Npn \@@_new:N #1





More information about the latex3-commits mailing list.