[tex4ht-commits] [SCM] tex4ht updated: r1157 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Mon Jun 20 15:49:02 CEST 2022
Author: michal_h21
Date: 2022-06-20 13:49:01 +0000 (Mon, 20 Jun 2022)
New Revision: 1157
Modified:
trunk/lit/ChangeLog
trunk/lit/mktex4ht-cnf.tex
trunk/lit/tex4ht-4ht.tex
Log:
Added support for the pdfpages package
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-06-20 12:09:37 UTC (rev 1156)
+++ trunk/lit/ChangeLog 2022-06-20 13:49:01 UTC (rev 1157)
@@ -1,5 +1,8 @@
2022-06-20 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-4ht.tex (pdfpages.4ht): added support for the Pdfpages
+ package.
+
* tex4ht-4ht.tex (hyperref-hooks.4ht): declare \Hy at numberline.
2022-06-17 Michal Hoftich <michal.h21 at gmail.com>
Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex 2022-06-20 12:09:37 UTC (rev 1156)
+++ trunk/lit/mktex4ht-cnf.tex 2022-06-20 13:49:01 UTC (rev 1157)
@@ -191,6 +191,7 @@
\AddFile{7}{epsfig}
\AddFile{4}{graphics}
\AddFile{4}{graphicx}
+\AddFile{9}{pdfpages}
\AddFile{9}{svg}
\AddFile{9}{endfloat}
\AddFile{9}{mfpic}
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2022-06-20 12:09:37 UTC (rev 1156)
+++ trunk/lit/tex4ht-4ht.tex 2022-06-20 13:49:01 UTC (rev 1157)
@@ -26759,6 +26759,7 @@
%%%%%%%%%%%%%%%%%%%%%%%
\SubSection{graphbox}
+%%%%%%%%%%%%%%%%%%%%%%%
Graphbox redefines \`'\Gin at setfile' to make some manipulations with the
graphics box. We want to revert it, because it fatally breaks TeX4ht, and
@@ -26776,8 +26777,36 @@
\let\Gin at setfile\old at box@Gin at 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 at key{Gin}{page}[]{\edef\Gin at page{#1}}
+
+\def\AM at findfile#1{%
+ \AM at findfile@i{#1}{pdf}%
+ \AM at findfile@ii{#1}%
+}
+\catcode`\:=12
+\renewcommand\AM at output[1]{%
+ \@for\@pages:=\AM at pagestemp\do{\includegraphics[page=\@pages]{\AM at currentdocname}}
+}
+\catcode`\:=11
+>>>
+
+
%%%%%%%%%%%%%%%%%%%%%%%
\Section{svg}
%%%%%%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.