[latex3-commits] [git/LaTeX3-latex3-latex2e] marks-debug: make status commands internal (71ebf868)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Apr 14 09:50:15 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : marks-debug
Link       : https://github.com/latex3/latex2e/commit/71ebf8680c9274d06293d74d1edbf6867ead3f66

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

commit 71ebf8680c9274d06293d74d1edbf6867ead3f66
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Apr 14 09:50:15 2022 +0200

    make status commands internal


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

71ebf8680c9274d06293d74d1edbf6867ead3f66
 base/ltmarks.dtx | 40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/base/ltmarks.dtx b/base/ltmarks.dtx
index ae9106fd..1586fea1 100644
--- a/base/ltmarks.dtx
+++ b/base/ltmarks.dtx
@@ -15,7 +15,7 @@
 %
 %    \begin{macrocode}
 \def\ltmarksversion{v1.0b}
-\def\ltmarksdate{2022/04/12}
+\def\ltmarksdate{2022/04/14}
 %    \end{macrocode}
 %<*driver>
 \documentclass{l3doc}
@@ -1218,16 +1218,14 @@
 %
 %
 %    
-%  \begin{macro}{\mark_status:nn}
+%  \begin{macro}{\@@_class_status:nn}
 %    Show the mark values across all regions for one mark class
 %    (\verb=#2=). The first argument gives some \meta{info} to help
 %    identifying where the command was called.
 %    \begin{macrocode}
 %<*trace>
-\cs_new_protected:Npn \mark_status:nn #1#2
+\cs_new_protected:Npn \@@_class_status:nn #1#2
    {
-     \@@_debug:n
-         {
            \typeout{ Marks:~#2~ #1:}
            \typeout{\@spaces page~ (current):
              | \exp_not:v { g_@@_page_top_ #2 _tl }
@@ -1253,7 +1251,6 @@
              | \exp_not:v { g_@@_last-column_top_ #2 _tl }
              | \exp_not:v { g_@@_last-column_first_ #2 _tl }
              | \exp_not:v { g_@@_last-column_last_ #2 _tl }     |}
-         }
 }       
 %    \end{macrocode}
 %  \end{macro}
@@ -1261,12 +1258,12 @@
 %
 %
 %
-%  \begin{macro}{\mark_status:n}
+%  \begin{macro}{\@@_status:n}
 %    Show all mark class values across all regions.
 %    \begin{macrocode}
-\cs_new_protected:Npn \mark_status:n #1
+\cs_new_protected:Npn \@@_status:n #1
    {
-     \seq_map_inline:Nn \g_@@_classes_seq { \mark_status:nn {#1} {##1} }
+     \seq_map_inline:Nn \g_@@_classes_seq { \@@_class_status:nn {#1} {##1} }
    }
 %</trace>
 %    \end{macrocode}
@@ -1365,16 +1362,19 @@
   \@@_update_structure_alias:nn {last-column}{page}
 %<*trace>
 % move this into status itself?     
-  \mark_status:n
-    { in~ OR~ (
-      \legacy_if:nTF {@twoside}
-             { twoside-
-               \int_if_odd:nTF \c at page
-                   { odd }{ even }
-             }
-             { oneside }
-     )
-    }
+     \@@_debug:n
+         {
+           \@@_status:n
+                { in~ OR~ (
+                  \legacy_if:nTF {@twoside}
+                         { twoside-
+                           \int_if_odd:nTF \c at page
+                               { odd }{ even }
+                         }
+                         { oneside }
+                         )
+                }
+         }
 %</trace>
 }
 %    \end{macrocode}
@@ -1459,7 +1459,7 @@
         }
     }
 %<*trace>
-    \mark_status:n
+    \@@_status:n
      { in~ OR~ (
        \legacy_if:nTF {@twoside}
               { twoside-





More information about the latex3-commits mailing list.