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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri May 13 15:41:16 CEST 2022


Author: michal_h21
Date: 2022-05-13 13:41:16 +0000 (Fri, 13 May 2022)
New Revision: 1133

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
Added cut-fullname option

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-05-09 08:32:38 UTC (rev 1132)
+++ trunk/lit/ChangeLog	2022-05-13 13:41:16 UTC (rev 1133)
@@ -1,3 +1,10 @@
+2022-05-13  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): added option "cut-fullname", to
+	produce full section file names based on jobname and section type.
+	By default, both are truncated to two characters.
+	https://tex.stackexchange.com/a/644072/2891
+
 2022-05-09  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-fonts-modern.tex (

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2022-05-09 08:32:38 UTC (rev 1132)
+++ trunk/lit/tex4ht-html4.tex	2022-05-13 13:41:16 UTC (rev 1133)
@@ -1139,10 +1139,35 @@
        \Log:Note{For section filenames that reflect on
                  their titles use the command line 
                  option `sec-filename'}
+       \:CheckOption{cut-fullname}
+       \if:Option
+         |<section type names for cutat files|>
+       \else
+          \Log:Note{For section filenames that use full
+                 jobname and section type use the command line 
+                 option `cut-fullname'}
+       \fi
     \fi 
 \fi
 >>>
 
+This redefines internal macro from tex4ht.sty to use a full 
+section type name instead of just first two characters. 
+This can be usefull especially when you cut at level that cuts both 
+subsections and subsubsections, as these will produce the same filenames.
+
+See \Link[https://tex.stackexchange.com/a/644072/2891]{}{} this answer for more
+details\EndLink.
+
+\<section type names for cutat files\><<<
+\let\j:bname\jobname
+\def\fx:pt#1xxx!*?: {%
+  \expandafter\ifx \csname big:#1:\endcsname\relax%
+  \expandafter\gHAssign\csname big:#1:\endcsname  0  \fi%
+  \expandafter\gHAdvance\csname big:#1:\endcsname  1%
+\edef\big:fn{#1\csname big:#1:\endcsname}}
+>>>
+
 \<section names for cutat files\><<<
 \Configure{CutAt-filename}{%
    \ifx \:NxtNwFN\:Undef



More information about the tex4ht-commits mailing list.