[latex3-commits] [git/LaTeX3-latex3-latex3] master: Clarify \AtBeginDocument in l3galley (1ba28f569)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Jul 22 17:05:09 CEST 2020


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/1ba28f56901e35851613ffdeee8fffaa3fda972b

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

commit 1ba28f56901e35851613ffdeee8fffaa3fda972b
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Jul 22 16:05:09 2020 +0100

    Clarify \AtBeginDocument in l3galley
    
    We do not need both IniTeX guards and \AtBeginDocument:
    the latter will suffice.


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

1ba28f56901e35851613ffdeee8fffaa3fda972b
 l3experimental/xgalley/l3galley.dtx | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/l3experimental/xgalley/l3galley.dtx b/l3experimental/xgalley/l3galley.dtx
index 7865c39b7..b39aebdc1 100644
--- a/l3experimental/xgalley/l3galley.dtx
+++ b/l3experimental/xgalley/l3galley.dtx
@@ -1453,18 +1453,11 @@
 %   \LaTeXe{} \cs{@nodocument} is never removed from the register.
 %   This precaution is not be needed for a stand-alone format.
 %    \begin{macrocode}
-%<*initex>
-\tex_everypar:D % TEMP
-  {
-    \bool_if:NTF \g_@@_begin_level_bool
-      { \@@_start_paragraph_first: }
-      { \@@_start_paragraph_std: }
-  }
-%</initex>
-%<*package>
 \cs_undefine:N \everypar
 \newtoks \everypar
-\AtBeginDocument
+\cs_if_exist:NTF \AtBeginDocument
+  { \AtBeginDocument }
+  { \use:n }
   {
     \tex_everypar:D
       {
@@ -1474,7 +1467,6 @@
         \tex_the:D \everypar
       }
   }
-%</package>
 %    \end{macrocode}
 % \end{macro}
 %





More information about the latex3-commits mailing list.