texlive[61424] Master/texmf-dist: remove cleveref nested links,

commits+karl at tug.org commits+karl at tug.org
Mon Dec 27 22:37:27 CET 2021


Revision: 61424
          http://tug.org/svn/texlive?view=revision&revision=61424
Author:   karl
Date:     2021-12-27 22:37:27 +0100 (Mon, 27 Dec 2021)
Log Message:
-----------
remove cleveref nested links, tex4ht r1043; biblatex spacing, tex4ht r1042

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

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/biblatex.4ht
    trunk/Master/texmf-dist/tex/generic/tex4ht/cleveref.4ht
    trunk/Master/texmf-dist/tex/generic/tex4ht/minted.4ht

Added Paths:
-----------
    trunk/Master/texmf-dist/tex/generic/tex4ht/xifthen.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2021-12-27 21:15:01 UTC (rev 61423)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2021-12-27 21:37:27 UTC (rev 61424)
@@ -1,3 +1,22 @@
+2021-12-27  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (cleveref.4ht): remove nested links from Cleveref.
+	https://tex.stackexchange.com/a/625385/2891
+
+	* tex4ht-4ht.tex (biblatex.4ht): removed code that interfered with
+	spacing. Redefined \addnbspace to produce non-breaking space
+	character.
+	https://tex.stackexchange.com/a/628208/2891
+
+2021-12-26  Karl Berry  <karl at freefriends.org>
+
+	* tex4ht-4ht.tex (minted.4ht): copyright 2021.
+
+2021-12-25  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (xifthen.4ht): fixed support for the Xifthen package.
+	https://tex.stackexchange.com/a/628068/2891
+
 2021-12-20  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (biblatex.4ht): added support for back links.
@@ -7,8 +26,8 @@
 
 2021-12-19  Michal Hoftich  <michal.h21 at gmail.com>
 
-	* tex4ht-4ht.tex (minted.4ht): redefine Minted  commands that cause issues
-	with TeX4ht documentation.
+	* tex4ht-4ht.tex (minted.4ht): redefine Minted commands that
+	cause issues with TeX4ht documentation.
 
 	* tex4ht-4ht.tex (backref.4ht): added support for the Backref package.
 	https://github.com/michal-h21/tex4ebook/issues/64
@@ -22,18 +41,19 @@
 2021-12-16  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-fonts-ebgaramond.tex: updated EB Garamond fonts.
-	The HTF files are now in various directories depending on the font weight
-	and shape!
+	The HTF files are now in various directories depending on the font
+	weight and shape!
 	https://github.com/michal-h21/make4ht/issues/57
 
-	* tex4ht-4ht.tex (biblatex-chicago-hooks.4ht): reset catcodes before loading
-	of Ifthen, colon remains letter otherwise, which causes various issues.
+	* tex4ht-4ht.tex (biblatex-chicago-hooks.4ht): reset catcodes
+	before loading of Ifthen, colon remains letter otherwise, which
+	causes various issues.
 	https://puszcza.gnu.org.ua/bugs/?480#discussion
 
 2021-12-14  Michal Hoftich  <michal.h21 at gmail.com>
 
-	* tex4ht-4ht.tex (usepackage.4ht, biblatex-chicago-hooks.4ht): load Ifthen
-	package before BibLaTeX-Chicago.
+	* tex4ht-4ht.tex (usepackage.4ht, biblatex-chicago-hooks.4ht):
+	load Ifthen package before BibLaTeX-Chicago.
 	https://puszcza.gnu.org.ua/bugs/?480#discussion
 	* tex4ht-4ht.tex (url.4ht): use \protected for redefinition of the \url
 	command.
@@ -41,8 +61,8 @@
 
 2021-12-11  Michal Hoftich  <michal.h21 at gmail.com>
 
-	* tex4ht-ooffice.tex (ooffice.4ht): enclose image file names in braces, in
-	order to support spaces in filenames.
+	* tex4ht-ooffice.tex (ooffice.4ht): enclose image file names in
+	braces, in order to support spaces in filenames.
 
 	* tex4ht-4ht.tex (ifthen.4ht, hyperref-hooks.4ht): disable Nameref from
 	patching of the \ifthenelse command.
@@ -50,22 +70,22 @@
 	
 2021-12-09  Michal Hoftich  <michal.h21 at gmail.com>
 
-	* tex4ht-ooffice.tex (ooffice-mml.4ht): remove spurious space after inline
-	math.
+	* tex4ht-ooffice.tex (ooffice-mml.4ht): remove spurious space
+	after inline math.
 	https://github.com/michal-h21/make4ht/issues/55
 
 2021-12-08  Michal Hoftich  <michal.h21 at gmail.com>
 
-	* tex4ht-4ht.tex (hyperref-hooks.4ht): reintroduced loading of Nameref due
-	to various issues that it's removal caused.
+	* tex4ht-4ht.tex (hyperref-hooks.4ht): reintroduced loading of
+	Nameref due to various issues that it's removal caused.
 
 2021-12-02  Michal Hoftich  <michal.h21 at gmail.com>
 
-	* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): search for \par<word boundary> in
-	regex that replaces \par commands, as suggested by David Carlisle.
-	https://tex.stackexchange.com/q/624671/2891
-	* tex4ht-4ht.tex (usepackage.4ht, graphbox-hooks.4ht): revert changes made
-	by the Graphbox package to \Gin at setfile.
+	* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): search for \par<word
+	boundary> in regex that replaces \par commands, as suggested by
+	David Carlisle. https://tex.stackexchange.com/q/624671/2891
+	* tex4ht-4ht.tex (usepackage.4ht, graphbox-hooks.4ht): revert
+	changes made by the Graphbox package to \Gin at setfile.
 	https://github.com/michal-h21/tex4ebook/issues/84
 	
 2021-12-01  Michal Hoftich  <michal.h21 at gmail.com>
@@ -4713,4 +4733,4 @@
 
 This file is public domain.  Started 2010, Karl Berry.
 
-# vim: textwidth=78 
+# vim: textwidth=70

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex	2021-12-27 21:15:01 UTC (rev 61423)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex	2021-12-27 21:37:27 UTC (rev 61424)
@@ -1,4 +1,4 @@
-% $Id: mktex4ht-cnf.tex 1034 2021-12-19 13:53:20Z michal_h21 $
+% $Id: mktex4ht-cnf.tex 1038 2021-12-25 19:26:07Z michal_h21 $
 % Manually-maintained file, listing *.4ht files created by tex4ht-4ht.tex.
 % Read by tex4ht-cond4ht.
 %
@@ -67,6 +67,7 @@
 \AddFile{9}{srcltx}
 \AddFile{9}{emulateapj}
 \AddFile{7}{ifthen}
+\AddFile{7}{xifthen}
 \AddFile{9}{picins}
 \AddFile{9}{nomencl}
 \AddFile{2}{fontmath}

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2021-12-27 21:15:01 UTC (rev 61423)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2021-12-27 21:37:27 UTC (rev 61424)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1037 2021-12-20 22:36:14Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1043 2021-12-27 18:25:26Z michal_h21 $
 % tex tex4ht-4ht   or   ht tex tex4ht-4ht
 %
 % Copyright 2009-2021 TeX Users Group    
@@ -2576,34 +2576,24 @@
        {}}%
     {}%
   \blx at postpunct
-  \blx at resetpuncthook
+  \blx at imc@resetpunctfont
   \iftoggle{blx at tempa}%
     {}%
     {\global\togglefalse{blx at insert}}%
   \csname a:blx at unit\endcsname
   \blx at leavevmode
-  \blx at csq@ifkernmark
-    {}%
-    {\penalty\@M
-    \hskip-\blx at unitmark\relax
-    \hskip\blx at unitmark\relax
-    }%
   \begingroup
     \Configure{blx at unit}{}{}%
 }
 \def\blx at endunit{%
   \endgroup
-  \csname b:blx at unit\endcsname
+  \csname b:blx at unit\endcsname%
   \Configure{blx at unit}{}{}%
-  \ifdim\lastskip=\blx at unitmark
-    \unskip\unskip\unpenalty
-    \global\togglefalse{blx at lastins}%
-  \else
-   \global\toggletrue{blx at insert}%
-   \global\toggletrue{blx at lastins}%
- \fi
+  \global\toggletrue{blx at insert}%
+  \global\toggletrue{blx at lastins}%
 }
 \NewConfigure{blx at unit}{2}
+
 %
    \else
 \fi
@@ -2620,6 +2610,17 @@
 \fi
 >>>
 
+BibLaTeX don't use \`'\nobreakspace' command for non-breaking spaces, 
+so TeX4ht outputs regular spaces in their place. This redefinition should
+fix it.
+
+\<config biblatex\><<<
+\renewrobustcmd*{\addnbspace}{%
+  \unspace\blx at postpunct%
+  % insert real non-breaking space character
+  \nobreakspace\blx at imc@resetpunctfont}
+>>>
+
 \<shared config biblatex\><<<
 \append:def\blx at bibinit{\a:bibinit}%
 \NewConfigure{bibinit}{1}%
@@ -3596,7 +3597,8 @@
 \def\:tempa#1#2{\bgroup%
   \def\rEfLiNK##1##2{\Link{##1}{}}%
   \expandafter\expandafter\expandafter\@firstoffive\csname r@#2\endcsname{}{}{}{}{}%
-  \o:@@@setcref:{#1}{#2}%
+  \cref at getlabel{#2}{\@templabel}%
+  #1{\@templabel}{}{}%
   \EndLink\egroup%
 }%
 
@@ -13299,6 +13301,46 @@
 
 Fixed for caseses like \`'\ifthenelse{\isodd{\pageref{abc}}}'.
 
+\<xifthen.4ht\><<<
+% xifthen.4ht (|version), generated from |jobname.tex 
+% Copyright 2021 TeX Users Group 
+|<TeX4ht license text|> 
+|<fix xifthen|>
+\Hinput{xifthen}
+\endinput
+>>> \AddFile{7}{xifthen}
+
+The \`'\TE at repl' command is executed by \`'\ifthenelse', 
+where \`'\begingroup' is redefined to insert TeX4ht hooks. 
+We need to prevent execution of this code here, so we use 
+\`'\sv:begingroup', saved version of \`'\begingroup' from
+ifthen.4ht.
+\Link[https://tex.stackexchange.com/a/628068/2891]{}{}%
+More details\EndLink.
+
+\<fix xifthen\><<<
+\def \TE at repl #1#2{%
+  \long \def \@tempc ##1#1##2{%
+    \def \@tempb{\@tempc}%
+    \sv:begingroup % Thanks MPG
+      \toks@ {##2}%
+      \edef \@tempa {\the \toks@}% <- UF v1.3
+    \expandafter \endgroup
+    \ifx \@tempa \@tempb
+      \toks@ \expandafter {\the \toks@ ##1}%
+      \expandafter \@gobble
+    \else
+      \toks@ \expandafter {\the \toks@ ##1#2}%
+      \expandafter \@tempc
+    \fi
+    ##2%
+  }%
+  \toks@ \expandafter {\expandafter}%
+  \expandafter \@tempc \the \toks@ #1\@tempc
+}
+>>>
+
+
 \<non classified latex\><<<
 |<early latex util|> 
 |<more latex math|>
@@ -24569,7 +24611,7 @@
 
 \<minted.4ht\><<<
 % minted.4ht (|version), generated from |jobname.tex
-% Copyright 2020 TeX Users Group
+% Copyright 2020-2021 TeX Users Group
 |<TeX4ht license text|>
 \NewConfigure{InlineCode}{2}
 

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/biblatex.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/biblatex.4ht	2021-12-27 21:15:01 UTC (rev 61423)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/biblatex.4ht	2021-12-27 21:37:27 UTC (rev 61424)
@@ -1,4 +1,4 @@
-% biblatex.4ht (2021-12-20-14:48), generated from tex4ht-4ht.tex
+% biblatex.4ht (2021-12-27-13:23), generated from tex4ht-4ht.tex
 % Copyright 2007-2009 Eitan M. Gurari
 % Copyright 2009-2021 TeX Users Group
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2021-12-20-14:48}
+\immediate\write-1{version 2021-12-27-13:23}
 
    \def\make:blx:ver#1.#2#3\relax{%
    %\ifdim#1pt< 3pt \xdef\blx:ver:no{2}\else\xdef\blx:ver:no{3}\fi%
@@ -413,34 +413,24 @@
        {}}%
     {}%
   \blx at postpunct
-  \blx at resetpuncthook
+  \blx at imc@resetpunctfont
   \iftoggle{blx at tempa}%
     {}%
     {\global\togglefalse{blx at insert}}%
   \csname a:blx at unit\endcsname
   \blx at leavevmode
-  \blx at csq@ifkernmark
-    {}%
-    {\penalty\@M
-    \hskip-\blx at unitmark\relax
-    \hskip\blx at unitmark\relax
-    }%
   \begingroup
     \Configure{blx at unit}{}{}%
 }
 \def\blx at endunit{%
   \endgroup
-  \csname b:blx at unit\endcsname
+  \csname b:blx at unit\endcsname%
   \Configure{blx at unit}{}{}%
-  \ifdim\lastskip=\blx at unitmark
-    \unskip\unskip\unpenalty
-    \global\togglefalse{blx at lastins}%
-  \else
-   \global\toggletrue{blx at insert}%
-   \global\toggletrue{blx at lastins}%
- \fi
+  \global\toggletrue{blx at insert}%
+  \global\toggletrue{blx at lastins}%
 }
 \NewConfigure{blx at unit}{2}
+
 %
    \else
 \fi
@@ -450,6 +440,10 @@
     \global\boolfalse{refcontextdefaults}%
   \csxdef{blx at assignedrefcontextbib@#1@\detokenize{#2}}{\detokenize{#3}}}
 \fi
+\renewrobustcmd*{\addnbspace}{%
+  \unspace\blx at postpunct%
+  % insert real non-breaking space character
+  \nobreakspace\blx at imc@resetpunctfont}
 
    \NewConfigure{thebibliography}{4}
 \append:def\blx at bibinit{\a:bibinit}%

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/cleveref.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/cleveref.4ht	2021-12-27 21:15:01 UTC (rev 61423)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/cleveref.4ht	2021-12-27 21:37:27 UTC (rev 61424)
@@ -1,4 +1,4 @@
-% cleveref.4ht (2021-06-30-14:33), generated from tex4ht-4ht.tex
+% cleveref.4ht (2021-12-27-13:23), generated from tex4ht-4ht.tex
 % Copyright 2018-2021 TeX Users Group
 %
 % This work may be distributed and/or modified under the
@@ -16,7 +16,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2021-06-30-14:33}
+\immediate\write-1{version 2021-12-27-13:23}
 
 
 
@@ -63,7 +63,8 @@
 \def\:tempa#1#2{\bgroup%
   \def\rEfLiNK##1##2{\Link{##1}{}}%
   \expandafter\expandafter\expandafter\@firstoffive\csname r@#2\endcsname{}{}{}{}{}%
-  \o:@@@setcref:{#1}{#2}%
+  \cref at getlabel{#2}{\@templabel}%
+  #1{\@templabel}{}{}%
   \EndLink\egroup%
 }%
 

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/minted.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/minted.4ht	2021-12-27 21:15:01 UTC (rev 61423)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/minted.4ht	2021-12-27 21:37:27 UTC (rev 61424)
@@ -1,5 +1,5 @@
-% minted.4ht (2021-12-19-14:41), generated from tex4ht-4ht.tex
-% Copyright 2020 TeX Users Group
+% minted.4ht (2021-12-26-09:03), generated from tex4ht-4ht.tex
+% Copyright 2020-2021 TeX Users Group
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2021-12-19-14:41}
+\immediate\write-1{version 2021-12-26-09:03}
 
 \NewConfigure{InlineCode}{2}
 

Added: trunk/Master/texmf-dist/tex/generic/tex4ht/xifthen.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/xifthen.4ht	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/xifthen.4ht	2021-12-27 21:37:27 UTC (rev 61424)
@@ -0,0 +1,43 @@
+% xifthen.4ht (2021-12-25-13:54), generated from tex4ht-4ht.tex
+% Copyright 2021 TeX Users Group
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) any
+% later version. The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3c or later is part of all distributions
+% of LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% The Current Maintainer of this work
+% is the TeX4ht Project <http://tug.org/tex4ht>.
+%
+% If you modify this program, changing the
+% version identification would be appreciated.
+\immediate\write-1{version 2021-12-25-13:54}
+
+\def \TE at repl #1#2{%
+  \long \def \@tempc ##1#1##2{%
+    \def \@tempb{\@tempc}%
+    \sv:begingroup % Thanks MPG
+      \toks@ {##2}%
+      \edef \@tempa {\the \toks@}% <- UF v1.3
+    \expandafter \endgroup
+    \ifx \@tempa \@tempb
+      \toks@ \expandafter {\the \toks@ ##1}%
+      \expandafter \@gobble
+    \else
+      \toks@ \expandafter {\the \toks@ ##1#2}%
+      \expandafter \@tempc
+    \fi
+    ##2%
+  }%
+  \toks@ \expandafter {\expandafter}%
+  \expandafter \@tempc \the \toks@ #1\@tempc
+}
+
+\Hinput{xifthen}
+\endinput
+


Property changes on: trunk/Master/texmf-dist/tex/generic/tex4ht/xifthen.4ht
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property


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