summaryrefslogtreecommitdiff
path: root/support/TeX4ht
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-12-13 03:02:58 +0000
committerNorbert Preining <norbert@preining.info>2021-12-13 03:02:58 +0000
commit8164c2be3b4849a9c77e44b9659a3de8af010bd7 (patch)
tree4414d792306f426cccf2f370b64dee20cd239244 /support/TeX4ht
parent9ed1a61f45b05f58016912a6bd6c13daab6db9eb (diff)
CTAN sync 202112130302
Diffstat (limited to 'support/TeX4ht')
-rw-r--r--support/TeX4ht/source/ChangeLog9
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex24
-rw-r--r--support/TeX4ht/source/tex4ht-ooffice.tex14
3 files changed, 35 insertions, 12 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 207345d82c..588c19d38d 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,12 @@
+2021-12-11 Michal Hoftich <michal.h21@gmail.com>
+
+ * 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.
+ https://puszcza.gnu.org.ua/bugs/?534
+
2021-12-09 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-ooffice.tex (ooffice-mml.4ht): remove spurious space after inline
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 2482de9526..617f60e9fa 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1025 2021-12-08 13:40:02Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1027 2021-12-10 23:22:54Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2021 TeX Users Group
@@ -5004,15 +5004,19 @@ We can load nameref from the early hook file
|<load nameref in hyperref hooks|>
>>> \AddFile{9}{hyperref-hooks}
-This code introduces various issues with BibLaTeX. I've tried
-to remove it, which fixed BibLaTeX issues, but broke Nameref.
-So I reintroduce it, and will try to resolve BibLaTeX issues
-in a different way.
+We need to load Nameref here, otherwise lot of documents
+that use Hyperref fails. This caused issues with BibLaTeX,
+as both Nameref, BibLaTeX and TeX4ht redefine ifthenelse command.
+
+So we load explicitly the Ifthen package, let Nameref redefine it,
+and then revert to it's original definition before applying of
+TeX4ht hooks.
\<load nameref in hyperref hooks\><<<
\:AtEndOfPackage{%
\@ifpackageloaded{nameref}{}
{%
+ \RequirePackage{ifthen}%
\let\sv:label\label
\RequirePackage{nameref}%
\let\label\sv:label
@@ -13136,12 +13140,22 @@ The need to initialize \''\@svsechd' arises in
% Copyright (C) |CopyYear.1997. Eitan M. Gurari %
|<TeX4ht copyright|>
+ |<fix nameref ifthen|>
|<fix ifthen|>
|<ifthen.sty shared config|>
\Hinput{ifthen}
\endinput
>>> \AddFile{7}{ifthen}
+Nameref redefines ifthenelse command, but it clashes with BibLaTeX,
+so we revert back to the original version.
+
+\<fix nameref ifthen\><<<
+\@ifpackageloaded{nameref}{%
+\let\ifthenelse\NROrg@ifthenelse%
+}{}
+>>>
+
\<fix ifthen\><<<
\long\def\:tempc{%
\let\sv:begingroup\begingroup
diff --git a/support/TeX4ht/source/tex4ht-ooffice.tex b/support/TeX4ht/source/tex4ht-ooffice.tex
index 868747488c..83076031b4 100644
--- a/support/TeX4ht/source/tex4ht-ooffice.tex
+++ b/support/TeX4ht/source/tex4ht-ooffice.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-ooffice.tex 1026 2021-12-09 14:22:08Z michal_h21 $
+% $Id: tex4ht-ooffice.tex 1028 2021-12-11 17:51:14Z michal_h21 $
% compile 3 times: latex tex4ht-ooffice
% htlatex tex4ht-ooffice "xhtml,4,sections+"
%
@@ -1084,19 +1084,19 @@ this case.
\Configure{graphics*}
{gif}
- {|<save image name|>\Picture[IMG]{\imgBase.gif |<graphics dimensions|> }}
+ {|<save image name|>\Picture[IMG]{{\imgBase.gif} |<graphics dimensions|> }}
\Configure{graphics*}
{png}
- {|<save image name|>\Picture[IMG]{\imgBase.png |<graphics dimensions|> }}
+ {|<save image name|>\Picture[IMG]{{\imgBase.png} |<graphics dimensions|> }}
\Configure{graphics*}
{jpg}
- {|<save image name|>\Picture[IMG]{\imgBase.jpg |<graphics dimensions|> }}
+ {|<save image name|>\Picture[IMG]{{\imgBase.jpg} |<graphics dimensions|> }}
\Configure{graphics*}
{jpeg}
- {|<save image name|>\Picture[IMG]{\imgBase.jpeg |<graphics dimensions|> }}
+ {|<save image name|>\Picture[IMG]{{\imgBase.jpeg} |<graphics dimensions|> }}
\Configure{graphics*}
{svg}
- {|<save image name|>\Picture[IMG]{\imgBase.svg |<graphics dimensions|> }}
+ {|<save image name|>\Picture[IMG]{{\imgBase.svg} |<graphics dimensions|> }}
|<graphics default extensions|>
@@ -1140,7 +1140,7 @@ this case.
\<\><<<
\Configure{graphics*}
{eps}
- {|<save image name|>\Picture[IMG]{\imgBase.eps |<graphics dimensions|> }}
+ {|<save image name|>\Picture[IMG]{{\imgBase.eps} |<graphics dimensions|> }}
>>>