diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index b0276e19a9..0c2e94ba1b 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1149 2022-06-14 15:04:29Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1157 2022-06-20 13:49:01Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2022 TeX Users Group @@ -5226,6 +5226,7 @@ be removed safely. \def\hyper@anchor#1{\hyper@anchorstart{#1}\hyper@anchorend} >>> + \<config hyperref\><<< \def\hyper@linkurl#1#2{% \leavevmode \begingroup \hyper@chars @@ -5380,6 +5381,7 @@ We can load nameref from the early hook file \:AtEndOfPackage{% |<load nameref in hyperref hooks|> |<define autoref captions|> +|<define Hy@numberline|> } >>> \AddFile{9}{hyperref-hooks} @@ -5432,6 +5434,12 @@ one of these captions in the preamble. \providecommand*\pageautorefname{page} >>> +Some packages redefine the following command, which is declared in various Hyperref drivers, +but not with TeX4ht. User will then get an error: + +\<define Hy@numberline\><<< +\def\Hy@numberline#1{#1 } +>>> \<nameref moved from old hyperref\><<< \def\tht:label#1{% @@ -26751,6 +26759,7 @@ use instructions like \`'\setlength\tmp:dim\Gin@ewidth' instead of %%%%%%%%%%%%%%%%%%%%%%% \SubSection{graphbox} +%%%%%%%%%%%%%%%%%%%%%%% Graphbox redefines \`'\Gin@setfile' to make some manipulations with the graphics box. We want to revert it, because it fatally breaks TeX4ht, and @@ -26768,7 +26777,35 @@ it isn't useful in XML anyway. \let\Gin@setfile\old@box@Gin@setfile } >>> \AddFile{9}{graphbox-hooks} + %%%%%%%%%%%%%%%%%%%%%%% +\SubSection{pdfpages} +\<pdfpages.4ht\><<< +% pdfpages.4ht (|version), generated from |jobname.tex +% Copyright 2022 TeX Users Group +|<TeX4ht license text|> +|<pdfpages configurations|> +\Hinput{pdfpages} +\endinput +>>> \AddFile{9}{pdfpages} + +TeX4ht supports inclusion of PDF thanks to Graphicx package, we just need +to make it compatible with Pdfpages. + +\<pdfpages configurations\><<< +\define@key{Gin}{page}[]{\edef\Gin@page{#1}} + +\def\AM@findfile#1{% + \AM@findfile@i{#1}{pdf}% + \AM@findfile@ii{#1}% +} +\catcode`\:=12 +\renewcommand\AM@output[1]{% + \@for\@pages:=\AM@pagestemp\do{\includegraphics[page=\@pages]{\AM@currentdocname}} +} +\catcode`\:=11 +>>> + %%%%%%%%%%%%%%%%%%%%%%% \Section{svg} |