[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: improve texsource stream (aeb36dc6)

github at latex-project.org github at latex-project.org
Thu Jan 11 22:19:11 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : latex-lab/uf-review-05
Link       : https://github.com/latex3/latex2e/commit/aeb36dc6577ce8ec917a115ccc12d41902ff1af3

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

commit aeb36dc6577ce8ec917a115ccc12d41902ff1af3
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Jan 11 22:19:11 2024 +0100

    improve texsource stream


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

aeb36dc6577ce8ec917a115ccc12d41902ff1af3
 required/latex-lab/latex-lab-math.dtx              |  24 +++-
 .../testfiles-math/mathcapture-tag-001.tpf         | 128 ++++++++++-----------
 2 files changed, 86 insertions(+), 66 deletions(-)

diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 01e68021..a2d4d438 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -801,6 +801,20 @@
    }    
 %    \end{macrocode}
 % \end{variable}
+
+% \begin{variable}{\l_@@_texsource_template_tl}
+% The default text used as texsource
+%    \begin{macrocode}
+\tl_new:N\l_@@_texsource_template_tl
+\tl_set:Nn \l_@@_texsource_template_tl
+   {
+       \exp_not:N\begin{\g_@@_grabbed_env_tl}
+       \exp_not:V\g_@@_grabbed_math_tl
+       \exp_not:N\end{\g_@@_grabbed_env_tl}
+   }    
+%    \end{macrocode}
+% \end{variable}
+
 % 
 % \begin{socketdecl}{tagsupport/math/content}
 % The math content is stored in associated files and used for 
@@ -829,7 +843,10 @@
     {
        \l_@@_content_template_tl
     }   
-   \tl_set_eq:NN \l_@@_content_AF_source_tl \l_@@_content_actual_tl
+   \tl_set:Ne \l_@@_content_AF_source_tl 
+    {
+      \l_@@_texsource_template_tl
+    }  
    \tl_set:Nn    \l_@@_content_AF_mathml_tl {}
    \tl_set:Nn    \l_@@_content_alt_tl    {}
   }
@@ -846,7 +863,10 @@
     {
        \l_@@_content_template_tl
     }   
-   \tl_set_eq:NN \l_@@_content_AF_source_tl \l_@@_content_alt_tl
+   \tl_set:Ne \l_@@_content_AF_source_tl 
+    {
+       \l_@@_texsource_template_tl
+    }  
    \tl_set:Nn    \l_@@_content_AF_mathml_tl {}
    \tl_set:Nn    \l_@@_content_actual_tl    {}
   }
diff --git a/required/latex-lab/testfiles-math/mathcapture-tag-001.tpf b/required/latex-lab/testfiles-math/mathcapture-tag-001.tpf
index 62254adb..334f7b7d 100644
--- a/required/latex-lab/testfiles-math/mathcapture-tag-001.tpf
+++ b/required/latex-lab/testfiles-math/mathcapture-tag-001.tpf
@@ -3,10 +3,10 @@
 17 0 obj
 <<
 /Subtype /text#2Fplain/Type /EmbeddedFile /Params<</ModDate (D:20160520) >>
-/Length 258       
+/Length 215       
 >>
 stream
-LaTeX formula starts \begin {align} A_1 &= N_0 (\lambda ; \Omega ') - \phi ( \lambda ; \Omega ') \\ A_2 &= \phi (\lambda ; \Omega ') \phi (\lambda ; \Omega ) \\ \intertext {and finally} A_3 &= \mathcal {N} (\lambda ; \omega ) \end {align} LaTeX formula ends 
+\begin {align}A_1 &= N_0 (\lambda ; \Omega ') - \phi ( \lambda ; \Omega ') \\ A_2 &= \phi (\lambda ; \Omega ') \phi (\lambda ; \Omega ) \\ \intertext {and finally} A_3 &= \mathcal {N} (\lambda ; \omega )\end {align}
 endstream
 endobj
 18 0 obj
@@ -1343,77 +1343,77 @@ endobj
 xref
 0 67
 0000000002 65535 f 
-0000014820 00000 n 
+0000014777 00000 n 
 0000000003 00000 f 
 0000000004 00000 f 
 0000000008 00000 f 
-0000020359 00000 n 
-0000014903 00000 n 
-0000015372 00000 n 
+0000020316 00000 n 
+0000014860 00000 n 
+0000015329 00000 n 
 0000000000 00000 f 
-0000016014 00000 n 
-0000016099 00000 n 
-0000016175 00000 n 
-0000016251 00000 n 
-0000016338 00000 n 
-0000014537 00000 n 
-0000016475 00000 n 
-0000017355 00000 n 
+0000015971 00000 n 
+0000016056 00000 n 
+0000016132 00000 n 
+0000016208 00000 n 
+0000016295 00000 n 
+0000014494 00000 n 
+0000016432 00000 n 
+0000017312 00000 n 
 0000000015 00000 n 
-0000000408 00000 n 
-0000018619 00000 n 
-0000018883 00000 n 
-0000018991 00000 n 
-0000019451 00000 n 
-0000019559 00000 n 
-0000020044 00000 n 
-0000020132 00000 n 
-0000020250 00000 n 
-0000000643 00000 n 
-0000014672 00000 n 
-0000012103 00000 n 
-0000074508 00000 n 
-0000081864 00000 n 
-0000072567 00000 n 
-0000076444 00000 n 
-0000080994 00000 n 
-0000078721 00000 n 
-0000082028 00000 n 
-0000014867 00000 n 
-0000015037 00000 n 
-0000015335 00000 n 
-0000015951 00000 n 
-0000020477 00000 n 
-0000020930 00000 n 
-0000020954 00000 n 
-0000020996 00000 n 
-0000021320 00000 n 
-0000021344 00000 n 
-0000021966 00000 n 
-0000030411 00000 n 
-0000030650 00000 n 
-0000044121 00000 n 
-0000044418 00000 n 
-0000052351 00000 n 
-0000052584 00000 n 
-0000060198 00000 n 
-0000060424 00000 n 
-0000067820 00000 n 
-0000068043 00000 n 
-0000070707 00000 n 
-0000070925 00000 n 
-0000072725 00000 n 
-0000074666 00000 n 
-0000076600 00000 n 
-0000078878 00000 n 
-0000081151 00000 n 
-0000082087 00000 n 
-0000082205 00000 n 
+0000000365 00000 n 
+0000018576 00000 n 
+0000018840 00000 n 
+0000018948 00000 n 
+0000019408 00000 n 
+0000019516 00000 n 
+0000020001 00000 n 
+0000020089 00000 n 
+0000020207 00000 n 
+0000000600 00000 n 
+0000014629 00000 n 
+0000012060 00000 n 
+0000074465 00000 n 
+0000081821 00000 n 
+0000072524 00000 n 
+0000076401 00000 n 
+0000080951 00000 n 
+0000078678 00000 n 
+0000081985 00000 n 
+0000014824 00000 n 
+0000014994 00000 n 
+0000015292 00000 n 
+0000015908 00000 n 
+0000020434 00000 n 
+0000020887 00000 n 
+0000020911 00000 n 
+0000020953 00000 n 
+0000021277 00000 n 
+0000021301 00000 n 
+0000021923 00000 n 
+0000030368 00000 n 
+0000030607 00000 n 
+0000044078 00000 n 
+0000044375 00000 n 
+0000052308 00000 n 
+0000052541 00000 n 
+0000060155 00000 n 
+0000060381 00000 n 
+0000067777 00000 n 
+0000068000 00000 n 
+0000070664 00000 n 
+0000070882 00000 n 
+0000072682 00000 n 
+0000074623 00000 n 
+0000076557 00000 n 
+0000078835 00000 n 
+0000081108 00000 n 
+0000082044 00000 n 
+0000082162 00000 n 
 trailer
 << /Size 67
 /Root 65 0 R
 /Info 66 0 R
 /ID [<9BD18DF3359C1216B83ADB4AA401CC9A> <9BD18DF3359C1216B83ADB4AA401CC9A>] >>
 startxref
-82337
+82294
 %%EOF





More information about the latex3-commits mailing list.