[latex3-commits] [latex3/latex2e] tag-graphics: store manual target if used in MakeLinkTarget (506a1f09)

github at latex-project.org github at latex-project.org
Fri May 19 14:11:28 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : tag-graphics
Link       : https://github.com/latex3/latex2e/commit/506a1f0948a21fd4b6ccb599c166cd382af0e1d1

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

commit 506a1f0948a21fd4b6ccb599c166cd382af0e1d1
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri May 19 14:11:28 2023 +0200

    store manual target if used in MakeLinkTarget


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

506a1f0948a21fd4b6ccb599c166cd382af0e1d1
 required/latex-lab/latex-lab-sec-tagging.dtx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/required/latex-lab/latex-lab-sec-tagging.dtx b/required/latex-lab/latex-lab-sec-tagging.dtx
index 77798ca3..01733738 100644
--- a/required/latex-lab/latex-lab-sec-tagging.dtx
+++ b/required/latex-lab/latex-lab-sec-tagging.dtx
@@ -207,8 +207,14 @@
     \smash{}%
     \spacefactor\@savsf
   \fi
-  \int_gincr:N\g__kernel_target_int
-  \tl_gset:Nx \@currentHref {target*.\int_use:N\g__kernel_target_int}
+  \IfBooleanTF {#1}
+   {
+     \tl_gset:Nx \@currentHref {#3}
+   }
+   {
+     \int_gincr:N\g__kernel_target_int
+     \tl_gset:Nx \@currentHref {target*.\int_use:N\g__kernel_target_int}
+   }  
  }
 \ExplSyntaxOff 
 %</kernelchange> 





More information about the latex3-commits mailing list.