diff options
author | Norbert Preining <norbert@preining.info> | 2022-01-14 03:01:14 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-01-14 03:01:14 +0000 |
commit | 45623da68203ac8d7aa04b779a6ed65c92c3f866 (patch) | |
tree | 151ca3ede3ee826360d4b32c0029cfc106346ec9 /support/TeX4ht | |
parent | ee3f9ca89b21a2174f7e427d9d48247b1912e130 (diff) |
CTAN sync 202201140301
Diffstat (limited to 'support/TeX4ht')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 10 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 3 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-ooffice.tex | 12 |
3 files changed, 22 insertions, 3 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index c622871995..58ca9bee34 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,13 @@ +2022-01-12 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-ooffice.tex (ooffice.4ht): added alternative + text support for images. + https://tex.stackexchange.com/a/630017/2891 + + * tex4ht-4ht.tex (graphicx.4ht): declare GraphicsAlt configuration, + in order to support the \includegraphics's alt attribute in other + output formats than HTML. + 2022-01-11 Michal Hoftich <michal.h21@gmail.com> * tex4ht-4ht.tex (usepackage.4ht, unicode-math-hooks.4ht): added diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index ece2d419ea..0f0bcda129 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1054 2022-01-11 12:16:25Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1055 2022-01-12 21:28:48Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2022 TeX Users Group @@ -26356,6 +26356,7 @@ dvips needs to be used instead Support for the alt key of \Verb!\includegraphics! command. \<fix graphicx\><<< +\NewConfigure{GraphicsAlt}{1} \define@key{Gin}{alt}{\Configure{GraphicsAlt}{#1}} >>> diff --git a/support/TeX4ht/source/tex4ht-ooffice.tex b/support/TeX4ht/source/tex4ht-ooffice.tex index 9b1fbf1ffc..663fdb4711 100644 --- a/support/TeX4ht/source/tex4ht-ooffice.tex +++ b/support/TeX4ht/source/tex4ht-ooffice.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-ooffice.tex 1053 2022-01-09 15:36:40Z karl $ +% $Id: tex4ht-ooffice.tex 1056 2022-01-12 22:24:14Z michal_h21 $ % compile 3 times: latex tex4ht-ooffice % htlatex tex4ht-ooffice "xhtml,4,sections+" % @@ -1171,6 +1171,9 @@ Enable supported image extensions out of the box. \def:image:mime:type{.gif}{image/gif} \def:image:mime:type{.svg}{image/svg+xml} \def\svg:width{0.0pt}\def\svg:height{0.0pt} +% this is defined in graphicx.4ht, but we should it define here too, for cases +% when graphicx is not used +\NewConfigure{GraphicsAlt}{1} \Configure{IMG} {|<insert shadowing fig file|>% \ht:special{t4ht=<draw:frame @@ -1194,7 +1197,12 @@ Enable supported image extensions out of the box. /><!--draw:name="}} {" } {\ht:special{t4ht=" }} - {\ht:special{t4ht=--></draw:frame>}} + {% + \ifx\a:GraphicsAlt\relax% + \Configure{GraphicsAlt}{ALT}% + \fi% + \ht:special{t4ht=--><svg:title>\a:GraphicsAlt</svg:title></draw:frame>}% + } >>> \<configure ooffice pst-jtree\><<< |