[tex4ht-commits] [SCM] tex4ht updated: r284 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Thu Apr 20 18:01:52 CEST 2017
Author: michal_h21
Date: 2017-04-20 19:01:52 +0300 (Thu, 20 Apr 2017)
New Revision: 284
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
Fixed wrong cross-references generated by listings
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2017-04-18 19:11:58 UTC (rev 283)
+++ trunk/lit/ChangeLog 2017-04-20 16:01:52 UTC (rev 284)
@@ -1,3 +1,8 @@
+2017-04-20 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (listings.4ht): added custom configuration for
+ \lst at makecaption, in order to get correct cross-references
+
2017-04-18 Michal Hoftich <michal.h21 at gmail.com>
* Makefile: added info4ht.4ht to the list of derived files.
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2017-04-18 19:11:58 UTC (rev 283)
+++ trunk/lit/tex4ht-4ht.tex 2017-04-20 16:01:52 UTC (rev 284)
@@ -28498,11 +28498,19 @@
\endinput
>>> \AddFile{9}{listings}
+For some reason we need the followng version of \`|\@makecaption| in order to
+get correct cross-references. There were duplicate IDs sometimes.
+
+\<listings sty\><<<
+\def\lst at makecaption#1#2{\cptA: #1 \cptB: \cptC: #2 \cptD:}
+>>>
+
I don't know why there used to be clearing of math environment, it
disabled listings option to work correctly. Also patching of
\`|\lsthk at EveryLine| should be done in every call to this command.
\<listings sty\><<<
+
\newif\iflstnest
\append:defII\lst at EnterMode{%
\ifx \lsthk:EveryLine\:UnDef
More information about the tex4ht-commits
mailing list