texlive[63292] Master/texmf-dist: cut-fullname option, tex4ht r1133

commits+karl at tug.org commits+karl at tug.org
Sat May 14 00:10:23 CEST 2022


Revision: 63292
          http://tug.org/svn/texlive?view=revision&revision=63292
Author:   karl
Date:     2022-05-14 00:10:23 +0200 (Sat, 14 May 2022)
Log Message:
-----------
cut-fullname option, tex4ht r1133

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=1133

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2022-05-13 21:37:05 UTC (rev 63291)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2022-05-13 22:10:23 UTC (rev 63292)
@@ -1,3 +1,26 @@
+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 (
+	./tex4ht.dir/texmf/tex4ht/ht-fonts/alias/mlm/mlmex.htf
+	./tex4ht.dir/texmf/tex4ht/ht-fonts/alias/mlm/mlmsy.htf
+	./tex4ht.dir/texmf/tex4ht/ht-fonts/alias/mlm/rm-mlm.htf
+	./tex4ht.dir/texmf/tex4ht/ht-fonts/alias/mlm/mlmbsy.htf
+	./tex4ht.dir/texmf/tex4ht/ht-fonts/alias/mlm/rm-mlmvt.htf
+	./tex4ht.dir/texmf/tex4ht/ht-fonts/alias/mlm/mlmmi.htf
+	): Added support for ML Modern fonts.
+	https://tex.stackexchange.com/a/643260/2891
+
+2022-05-08  Karl Berry  <karl at freefriends.org>
+
+	* tex4ht-4ht.tex (xrhyper-hooks.4ht): copyright.
+
 2022-05-05  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (tcolorbox.4ht): fixed support for Nameref.

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2022-05-13 21:37:05 UTC (rev 63291)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2022-05-13 22:10:23 UTC (rev 63292)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1130 2022-05-05 13:25:11Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1131 2022-05-08 15:29:51Z karl $
 % tex tex4ht-4ht   or   ht tex tex4ht-4ht
 %
 % Copyright 2009-2022 TeX Users Group    
@@ -3917,7 +3917,7 @@
 
 \<xrhyper-hooks.4ht\><<<
 % xrhyper-hooks.4ht (|version), generated from |jobname.tex
-% Copyright 2020 TeX Users Group
+% Copyright 2020-2022 TeX Users Group
 |<TeX4ht license text|>
 |<xr cut files|>
 |<wait with xr-hyper|>

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex	2022-05-13 21:37:05 UTC (rev 63291)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex	2022-05-13 22:10:23 UTC (rev 63292)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1124 2022-04-29 15:04:44Z michal_h21 $
+% $Id: tex4ht-html4.tex 1133 2022-05-13 13:41:16Z michal_h21 $
 % Compile 4 times: latex tex4ht-html4
 % Copy html4.4ht into the work directory before all but the last compilation.
 %
@@ -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

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht	2022-05-13 21:37:05 UTC (rev 63291)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht	2022-05-13 22:10:23 UTC (rev 63292)
@@ -1,4 +1,4 @@
-% html4.4ht (2022-04-29-14:33), generated from tex4ht-html4.tex
+% html4.4ht (2022-05-13-14:47), generated from tex4ht-html4.tex
 % Copyright 2009-2022 TeX Users Group
 % Copyright 1997-2009 Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2022-04-29-14:33}
+\immediate\write-1{version 2022-05-13-14:47}
 
 \exit:ifnot{8859-6,% 
 CJK,% 
@@ -407,6 +407,20 @@
        \Log:Note{For section filenames that reflect on
                  their titles use the command line
                  option `sec-filename'}
+       \:CheckOption{cut-fullname}
+       \if:Option
+         \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}}
+
+       \else
+          \Log:Note{For section filenames that use full
+                 jobname and section type use the command line
+                 option `cut-fullname'}
+       \fi
     \fi
 \fi
 \def\getClass#1{\expandafter



More information about the tex-live-commits mailing list.