[latex3-commits] [git/LaTeX3-latex3-latex3] master: Can't patch \@makecol if it does not exist (2a090a1)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat May 4 13:58:12 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/2a090a117ab8c0791a49529f2947ec343cd071bc

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

commit 2a090a117ab8c0791a49529f2947ec343cd071bc
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat May 4 12:58:12 2019 +0100

    Can't patch \@makecol if it does not exist


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

2a090a117ab8c0791a49529f2947ec343cd071bc
 l3kernel/l3drivers-pdf.dtx |   28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

diff --git a/l3kernel/l3drivers-pdf.dtx b/l3kernel/l3drivers-pdf.dtx
index c489dbc..d754b7e 100644
--- a/l3kernel/l3drivers-pdf.dtx
+++ b/l3kernel/l3drivers-pdf.dtx
@@ -1052,25 +1052,29 @@
 %
 % \begin{macro}{\@makecol}
 %   Hooks to allow link breaking: something will be needed in format mode
-%   at some stage.
+%   at some stage. WE can only hook in to \LaTeXe{}, so skip this if
+%   the format lacks \tn{@makecol}.
 %    \begin{macrocode}
 %<*package>
-\tl_gput_left:Nn \@makecol
+\cs_if_exist:NT \@makecol
   {
-    \box_if_empty:NF \@cclv
+    \tl_gput_left:Nn \@makecol
       {
-        \vbox_set:Nn \@cclv
+        \box_if_empty:NF \@cclv
           {
-            \@@_postscript:n
+            \vbox_set:Nn \@cclv
               {
-                driver.globaldict /driver.brokenlink.rect ~ known
-                  { driver.bordertracking.continue }
-                if
+                \@@_postscript:n
+                  {
+                    driver.globaldict /driver.brokenlink.rect ~ known
+                      { driver.bordertracking.continue }
+                    if
+                  }
+                \vbox_unpack_drop:N \@cclv
+                \@@_postscript:n
+                  { driver.bordertracking.endpage }
+               }
               }
-            \vbox_unpack_drop:N \@cclv
-            \@@_postscript:n
-              { driver.bordertracking.endpage }
-           }
       }
   }
 %</package>





More information about the latex3-commits mailing list