[latex3-commits] [latex3/latex3] develop: correct global boolean, use TU with lualatex (c02b589ec)

github at latex-project.org github at latex-project.org
Thu Sep 26 14:25:31 CEST 2024


Repository : https://github.com/latex3/latex3
On branch  : develop
Link       : https://github.com/latex3/latex3/commit/c02b589ec2327989768c6e61a67dcc8738f1ebbd

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

commit c02b589ec2327989768c6e61a67dcc8738f1ebbd
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Sep 16 16:49:07 2024 +0200

    correct global boolean, use TU with lualatex


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

c02b589ec2327989768c6e61a67dcc8738f1ebbd
 l3kernel/CHANGELOG.md |  5 +++++
 l3kernel/l3doc.dtx    | 27 +++++++++++++++++++--------
 2 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 70b869d90..9a398bb93 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -9,6 +9,11 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [2024-09-10]
 
+### Fixed
+- Use TU-encoding with lualatex and xelatex
+- global booleans are set locally in l3doc
+
+
 ### Fixed
 - `\seq_map_pairwise_function:NNN` not work with `\seq_map_break:(n)` (issue \#1587)
 
diff --git a/l3kernel/l3doc.dtx b/l3kernel/l3doc.dtx
index 9268f8574..308d08209 100644
--- a/l3kernel/l3doc.dtx
+++ b/l3kernel/l3doc.dtx
@@ -959,8 +959,8 @@ and all files in that bundle must be distributed together.
 %    \begin{macrocode}
 \bool_new:N \g_@@_typeset_documentation_bool
 \bool_new:N \g_@@_typeset_implementation_bool
-\bool_set_true:N \g_@@_typeset_documentation_bool
-\bool_set_true:N \g_@@_typeset_implementation_bool
+\bool_gset_true:N \g_@@_typeset_documentation_bool
+\bool_gset_true:N \g_@@_typeset_implementation_bool
 %    \end{macrocode}
 % \end{variable}
 %
@@ -1531,12 +1531,23 @@ and all files in that bundle must be distributed together.
 %    \begin{macrocode}
 \bool_if:NT \g_@@_lmodern_bool
   {
-    \RequirePackage[T1]{fontenc}
-    \RequirePackage{lmodern}
-    \group_begin:
-      \ttfamily
-      \DeclareFontShape{T1}{lmtt}{m}{it}{<->ec-lmtto10}{}
-    \group_end:
+    \bool_lazy_or:nnTF
+      {\sys_if_engine_luatex_p:}{\sys_if_engine_xetex_p:}
+      {
+       \group_begin:
+        \ttfamily
+        \DeclareFontShape{TU}{lmtt}{m}{it}
+          {<-> \UnicodeFontFile{lmmonoslant10-regular}{}}{}
+       \group_end:      
+      }
+      {
+       \RequirePackage[T1]{fontenc}
+       \RequirePackage{lmodern}
+       \group_begin:
+         \ttfamily
+         \DeclareFontShape{T1}{lmtt}{m}{it}{<->ec-lmtto10}{}
+       \group_end:
+      }
   }
 %    \end{macrocode}
 %





More information about the latex3-commits mailing list.