[latex3-commits] [git/LaTeX3-latex3-latex3] coffins: Support for global coffin pole/corner update (6375ecd)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Jan 21 00:25:34 CET 2019


Repository : https://github.com/latex3/latex3
On branch  : coffins
Link       : https://github.com/latex3/latex3/commit/6375ecd3aff4e6d88997ecd421158b47daa50181

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

commit 6375ecd3aff4e6d88997ecd421158b47daa50181
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Jan 20 23:12:48 2019 +0000

    Support for global coffin pole/corner update


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

6375ecd3aff4e6d88997ecd421158b47daa50181
 l3kernel/l3coffins.dtx |   22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/l3kernel/l3coffins.dtx b/l3kernel/l3coffins.dtx
index 24d75fd..3154ed3 100644
--- a/l3kernel/l3coffins.dtx
+++ b/l3kernel/l3coffins.dtx
@@ -1556,8 +1556,16 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_offset_poles:Nnn #1#2#3
   {
-    \prop_map_inline:cn { l_@@_poles_ \@@_to_value:N #1 _prop }
-      { \@@_offset_pole:Nnnnnnn #1 {##1} ##2 {#2} {#3} }
+    \tl_if_empty:cTF { g_@@_scope_ \@@_to_value:N #1 _tl }
+      { \prop_map_inline:Nn \c_@@_poles_prop }
+      {
+        \prop_map_inline:cn
+          {
+            \tl_use:c { g_@@_scope_ \@@_to_value:N #1 _tl }
+            _@@_poles_ \@@_to_value:N #1 _prop
+          }
+      }
+        { \@@_offset_pole:Nnnnnnn #1 {##1} ##2 {#2} {#3} }
   }
 \cs_new_protected:Npn \@@_offset_pole:Nnnnnnn #1#2#3#4#5#6#7#8
   {
@@ -1585,7 +1593,15 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_offset_corners:Nnn #1#2#3
   {
-    \prop_map_inline:cn { l_@@_corners_ \@@_to_value:N #1 _prop }
+    \tl_if_empty:cTF { g_@@_scope_ \@@_to_value:N #1 _tl }
+      { \prop_map_inline:Nn \c_@@_corners_prop }
+      {
+        \prop_map_inline:cn
+          {
+            \tl_use:c { g_@@_scope_ \@@_to_value:N #1 _tl }
+            _@@_corners_ \@@_to_value:N #1 _prop
+          }
+      }
       { \@@_offset_corner:Nnnnn #1 {##1} ##2 {#2} {#3} }
   }
 \cs_new_protected:Npn \@@_offset_corner:Nnnnn #1#2#3#4#5#6





More information about the latex3-commits mailing list