[tex4ht-commits] [SCM] tex4ht updated: r742 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Tue Jun 16 16:40:38 CEST 2020


Author: michal_h21
Date: 2020-06-16 17:40:37 +0300 (Tue, 16 Jun 2020)
New Revision: 742

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Fixed LOT for longtable

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-06-16 00:59:35 UTC (rev 741)
+++ trunk/lit/ChangeLog	2020-06-16 14:40:37 UTC (rev 742)
@@ -1,3 +1,9 @@
+2020-06-16 Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (longtable.4ht): fixed LOT for longtable + fixed missing
+	colon in caption.
+	https://puszcza.gnu.org.ua/bugs/?313
+
 2020-06-15  Vincent Bela\"iche  <vincent.belaiche at gmail.com>
 
 	* Makefile (do_java): Add comment about do_java=0|1 needing

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2020-06-16 00:59:35 UTC (rev 741)
+++ trunk/lit/tex4ht-4ht.tex	2020-06-16 14:40:37 UTC (rev 742)
@@ -9308,11 +9308,37 @@
 \HLet\LT at caption\:tempc
 \def\:tempc#1#2#3{%
   \LT at mcol\LT at cols c{\hbox{\parbox[t]\LTcapwidth{%
-      \cptA: #1{\cap:ref{#2}}\if :#1:\else\cptB:\fi\cptC:#3\cptD:
+    \cptA: #1{\cap:ref{#2}}\if\relax\detokenize{#1}\relax\else\cptB:\fi\cptC:#3\cptD:
     \endgraf\vskip\baselineskip}}}}
 \HLet\LT at makecaption\:tempc
 >>>
 
+\Link[https://puszcza.gnu.org.ua/bugs/?313] 
+Write table info to the LOT
+\EndLink
+\<longtable captions\><<<
+\def\:tempc#1[#2]#3{%
+  \LT at makecaption#1\fnum at table{#3}%
+  \cur:lbl{}%
+  \def\@tempa{#2}%
+  \ifx\@tempa\@empty\else%
+  {\let\\\space%
+  \protect:wrtoc%
+  \edef\:temp{#2}%
+  \edef\:temp{\the\:tokwrite{\string\doTocEntry%
+  \string\toclot%
+  {\thetable}{\string\csname\space a:TocLink\string\endcsname%
+    {\FileNumber}{\cur:th \:currentlabel}{}{\ifx\:temp\empty\else \ignorespaces #2\fi}}%
+      {}\relax}}\:temp%
+  }%
+  \fi%
+}
+
+\HLet\LT at c@ption\:tempc
+>>>
+
+
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \Section{table.sty of pctex}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.