From 8bbe16cdd59c710154499067b7651fd93eba1549 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 17 Oct 2020 21:28:58 +0000 Subject: new hook mechanism for many packages, tex4ht r814-830 git-svn-id: svn://tug.org/texlive/trunk@56687 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/generic/tex4ht/biblatex-hooks.4ht | 39 ++++ .../tex/generic/tex4ht/caption-hooks.4ht | 27 +++ .../tex/generic/tex4ht/cleveref-hooks.4ht | 22 +++ .../texmf-dist/tex/generic/tex4ht/ctex-hooks.4ht | 40 ++++ .../texmf-dist/tex/generic/tex4ht/esopic-hooks.4ht | 30 +++ .../texmf-dist/tex/generic/tex4ht/expl3-hooks.4ht | 25 +++ .../tex/generic/tex4ht/fancyhdr-hooks.4ht | 25 +++ .../tex/generic/tex4ht/fontspec-hooks.4ht | 26 +++ .../tex/generic/tex4ht/graphics-hooks.4ht | 24 +++ .../tex/generic/tex4ht/imakeidx-hooks.4ht | 22 +++ .../tex/generic/tex4ht/pdfbase-hooks.4ht | 25 +++ .../tex/generic/tex4ht/polyglossia-hooks.4ht | 43 +++++ .../tex/generic/tex4ht/savetrees-hooks.4ht | 22 +++ .../tex/generic/tex4ht/showframe-hooks.4ht | 22 +++ .../texmf-dist/tex/generic/tex4ht/tikz-hooks.4ht | 39 ++++ .../texmf-dist/tex/generic/tex4ht/usepackage.4ht | 209 +++------------------ .../texmf-dist/tex/generic/tex4ht/xcolor-hooks.4ht | 24 +++ .../texmf-dist/tex/generic/tex4ht/xecjk-hooks.4ht | 37 ++++ Master/texmf-dist/tex/generic/tex4ht/xr-hooks.4ht | 27 +++ .../tex/generic/tex4ht/xrhyper-hooks.4ht | 27 +++ 20 files changed, 568 insertions(+), 187 deletions(-) create mode 100644 Master/texmf-dist/tex/generic/tex4ht/biblatex-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/caption-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/cleveref-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/ctex-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/esopic-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/expl3-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/fancyhdr-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/fontspec-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/graphics-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/imakeidx-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/pdfbase-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/polyglossia-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/savetrees-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/showframe-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/tikz-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/xcolor-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/xecjk-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/xr-hooks.4ht create mode 100644 Master/texmf-dist/tex/generic/tex4ht/xrhyper-hooks.4ht (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/tex/generic/tex4ht/biblatex-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/biblatex-hooks.4ht new file mode 100644 index 00000000000..6a8877dcabd --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/biblatex-hooks.4ht @@ -0,0 +1,39 @@ +% biblatex-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\:AtEndOfPackage{% + \def\blx@mknoautolang{% + \blx@lbxinput{\blx@languagename}% + {}{}% + }% + \def\blx@lbxinput@iii#1#2{% + \global\csundef{blx@lng@#2}% + \:IfFileExists{#1.lbx} + {\blx@lbxinput@iv{#2}{#1}{language '#2' -> '#1'}} + {\ifcsdef{blx@suffmaptried@#2} + {} + {\blx@warning@noline{% + File '#1.lbx' not found!\MessageBreak + Ignoring mapping '#2' -> '#1'}% + \global\cslet{blx@suffmaptried@#2}\@empty}% + \blx@lbxinput@iv{#2}{#2}{language '#2'}}} + +} + diff --git a/Master/texmf-dist/tex/generic/tex4ht/caption-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/caption-hooks.4ht new file mode 100644 index 00000000000..b927b563cf6 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/caption-hooks.4ht @@ -0,0 +1,27 @@ +% caption-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 TeX Users Group +% Copyright 2009-2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\:AtEndOfPackage{% + \long\def\caption@If@Package@Loaded#1[#2]#3#4{} + \renewcommand*\caption@redefine{% + \let\caption\caption@caption% + \let\@caption\caption@@caption% + }% +} + diff --git a/Master/texmf-dist/tex/generic/tex4ht/cleveref-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/cleveref-hooks.4ht new file mode 100644 index 00000000000..4804e57692e --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/cleveref-hooks.4ht @@ -0,0 +1,22 @@ +% imakeidx-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\PassOptionsToPackage{noautomatic}{imakeidx} + diff --git a/Master/texmf-dist/tex/generic/tex4ht/ctex-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/ctex-hooks.4ht new file mode 100644 index 00000000000..57d1199b272 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/ctex-hooks.4ht @@ -0,0 +1,40 @@ +% ctex-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\PassOptionsToPackage{fontset=none,autoindent=false}{ctex} +\ExplSyntaxOn +\let\o:file_input\file_input:n% patch \file_input:n to block + % ctex-engine-luatex.def from loading +\xdef\ctex:luaname{\detokenize{ctex-engine-luatex.def}} +\def\:tempa#1{% + \edef\:tempb{#1}% + \ifx\:tempb\ctex:luaname% + % this macro is defined in the blocked file, just add dummy definition + \cs_new_protected:Npn \ctex_add_to_selectfont:n ##1{}% + \else% + \o:file_input{#1}% + \fi% +} +\let\file_input:n\:tempa +\:AtEndOfPackage{% +\let\file_input:n\o:file_input +} +\ExplSyntaxOff + diff --git a/Master/texmf-dist/tex/generic/tex4ht/esopic-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/esopic-hooks.4ht new file mode 100644 index 00000000000..80813069b2b --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/esopic-hooks.4ht @@ -0,0 +1,30 @@ +% esopic-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\:dontusepackage{eso-pic} +\providecommand\AddToShipoutPicture{\@ifstar\@gobble\@gobble} +\let\AddToShipoutPictureBG\AddToShipoutPicture +\let\AddToShipoutPictureFG\AddToShipoutPicture +\let\ClearShipoutPictureBG\relax +\let\ClearShipoutPictureFG\relax +\let\ClearShipoutPicture\relax +\providecommand*\LenToUnit[1]{} +\providecommand\gridSetup[6][]{} + diff --git a/Master/texmf-dist/tex/generic/tex4ht/expl3-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/expl3-hooks.4ht new file mode 100644 index 00000000000..40fc4a1a1e3 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/expl3-hooks.4ht @@ -0,0 +1,25 @@ +% expl3-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\ifdefined\XeTeXversion% +\xenunidelblock{Latin-expl3}% +\:AtEndOfPackage{\xeuniuseblock{Latin-expl3}} +\fi + diff --git a/Master/texmf-dist/tex/generic/tex4ht/fancyhdr-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/fancyhdr-hooks.4ht new file mode 100644 index 00000000000..32fd76bd40f --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/fancyhdr-hooks.4ht @@ -0,0 +1,25 @@ +% fancyhdr-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 TeX Users Group +% Copyright 2009-2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\:AtEndOfPackage{% +\def\ps@fancy{}% +} + diff --git a/Master/texmf-dist/tex/generic/tex4ht/fontspec-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/fontspec-hooks.4ht new file mode 100644 index 00000000000..dea5fe782ad --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/fontspec-hooks.4ht @@ -0,0 +1,26 @@ +% fontspec-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\ifdefined\texfourhtfontspecloaded% + \:dontusepackage{fontspec} +\else + \input usepackage-fontspec.4ht +\fi + diff --git a/Master/texmf-dist/tex/generic/tex4ht/graphics-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/graphics-hooks.4ht new file mode 100644 index 00000000000..59e7c4af587 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/graphics-hooks.4ht @@ -0,0 +1,24 @@ +% graphics-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\ifdefined\XeTeXversion + \PassOptionsToPackage{dvips}{graphics} +\fi + diff --git a/Master/texmf-dist/tex/generic/tex4ht/imakeidx-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/imakeidx-hooks.4ht new file mode 100644 index 00000000000..4804e57692e --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/imakeidx-hooks.4ht @@ -0,0 +1,22 @@ +% imakeidx-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\PassOptionsToPackage{noautomatic}{imakeidx} + diff --git a/Master/texmf-dist/tex/generic/tex4ht/pdfbase-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/pdfbase-hooks.4ht new file mode 100644 index 00000000000..d8c0b967335 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/pdfbase-hooks.4ht @@ -0,0 +1,25 @@ +% pdfbase-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\:AtEndOfPackage{% + \let\old:outputpage\@outputpage + \def\@outputpage{\old:outputpage{}} +} + diff --git a/Master/texmf-dist/tex/generic/tex4ht/polyglossia-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/polyglossia-hooks.4ht new file mode 100644 index 00000000000..511bdff64de --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/polyglossia-hooks.4ht @@ -0,0 +1,43 @@ +% polyglossia-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\ExplSyntaxOn +\:AtEndOfPackage{ +\ifdefined\orig_polyglossia@keys_define_lang:n\else +\cs_set_eq:NN\orig_polyglossia@keys_define_lang:n\polyglossia@keys_define_lang:n +%\let\orig_polyglossia@keys_define_lang:n\polyglossia@keys_define_lang:n +\cs_set_protected:Npn \polyglossia@keys_define_lang:n #1 { + \orig_polyglossia@keys_define_lang:n{#1} + \keys_define:nn {polyglossia}{ + #1 / direction + . code:n = {}, + #1 / script + . code:n = {\ifdefined\XeTeXversion + \edef\:tempscript{\str_uppercase:f{\tl_head:n {#1}}\tl_tail:n{#1}} + \xeuniuseblock{#1} + \expandafter\xeuniuseblock\expandafter{\:tempscript} + \fi}, + } +} +\def\RequireBidi{}% +\fi +} +\ExplSyntaxOff + diff --git a/Master/texmf-dist/tex/generic/tex4ht/savetrees-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/savetrees-hooks.4ht new file mode 100644 index 00000000000..d88139bfef6 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/savetrees-hooks.4ht @@ -0,0 +1,22 @@ +% savetrees-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\:dontusepackage{savetrees} + diff --git a/Master/texmf-dist/tex/generic/tex4ht/showframe-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/showframe-hooks.4ht new file mode 100644 index 00000000000..3d0cf9c6d7e --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/showframe-hooks.4ht @@ -0,0 +1,22 @@ +% showframe-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\:dontusepackage{showframe} + diff --git a/Master/texmf-dist/tex/generic/tex4ht/tikz-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/tikz-hooks.4ht new file mode 100644 index 00000000000..4e0b1a2e957 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/tikz-hooks.4ht @@ -0,0 +1,39 @@ +% tikz-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\:AtEndOfPackage{% +\let\use:tikzlibrary\usetikzlibrary +\def\find:externalize#1external#2\@nil{% +\if\relax#2\relax\else + \let\tikz:externalize\tikzexternalize + \renewcommand\tikzexternalize[1][]{\tikz:externalize[##1,mode=only graphics]} + \tikzset{% + tex4ht inc/.style={% + /pgf/images/include external/.code={% + \includegraphics[]{####1.pdf}% + }% + } + } + \tikzset{tex4ht inc} + \fi +} +\append:defI\use@@tikzlibrary{\find:externalize##1external\@nil}% +} + diff --git a/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht b/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht index af1ca3b3f7f..0a28eed668f 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht @@ -1,4 +1,4 @@ -% usepackage.4ht (2020-10-16-13:47), generated from tex4ht-4ht.tex +% usepackage.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex % Copyright 2003-2009 Eitan M. Gurari % Copyright 2009-2020 TeX Users Group % @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2020-10-16-13:47} +\immediate\write-1{version 2020-10-17-13:53} \def\:temp{tex4ht}\ifx \:temp\@currname \:warning{\string\usepackage{tex4ht} again?} @@ -33,198 +33,33 @@ \fi \fi -\gdef\a:usepackage{\use:package cleveref,xr,xr-hyper,eso-pic,showframe,expl3,savetrees,biblatex,xeCJK,ctex,polyglossia,fontspec,tikz,pdfbase,caption,graphics,xcolor,imakeidx,fancyhdr,,!*?: } +\gdef\a:usepackage{\use:package ,!*?: } \gdef\use:package#1,{% \if :#1:\def\:temp##1!*?: {}\else \def\:temp{#1}\ifx \@currname\:temp \def\:temp##1!*?: {\input usepackage.4ht }% \else \let\:temp=\use:package \fi \fi \:temp} -\def\:temp{cleveref}\ifx\@currname\:temp -\let\HyOrg@addtoreset\@addtoreset -\fi -\def\:temp{xr}\ifx \@currname\:temp - \:AtEndOfPackage{\let\XR:\XR@ - \def\XR@[#1]#2{% - \Configure{AtBeginDocument}{\XR:[#1]{#2}}{}}% -} - -\fi -\def\:temp{xr-hyper}\ifx \@currname\:temp - \:AtEndOfPackage{\let\XR:\XR@ - \def\XR@[#1][#2]#3{% - \AtBeginDocument{\XR:[#1][#2]{#3}} - }% -} - -\fi -\def\:temp{eso-pic}\ifx \@currname\:temp -\:dontusepackage{eso-pic} -\providecommand\AddToShipoutPicture{\@ifstar\@gobble\@gobble} -\let\AddToShipoutPictureBG\AddToShipoutPicture -\let\AddToShipoutPictureFG\AddToShipoutPicture -\let\ClearShipoutPictureBG\relax -\let\ClearShipoutPictureFG\relax -\let\ClearShipoutPicture\relax -\providecommand*\LenToUnit[1]{} -\providecommand\gridSetup[6][]{} -\fi -\def\:temp{showframe}\ifx \@currname\:temp -\:dontusepackage{showframe} -\fi -\def\:temp{expl3}\ifx \@currname\:temp -\ifdefined\XeTeXversion% -\xenunidelblock{Latin-expl3}% -\:AtEndOfPackage{\xeuniuseblock{Latin-expl3}} -\fi -\fi -\def\:temp{savetrees}\ifx \@currname\:temp -\:dontusepackage{savetrees} -\fi -\def\:temp{biblatex}\ifx \@currname\:temp -\:AtEndOfPackage{% - \def\blx@mknoautolang{% - \blx@lbxinput{\blx@languagename}% - {}{}% - }% - \def\blx@lbxinput@iii#1#2{% - \global\csundef{blx@lng@#2}% - \:IfFileExists{#1.lbx} - {\blx@lbxinput@iv{#2}{#1}{language '#2' -> '#1'}} - {\ifcsdef{blx@suffmaptried@#2} - {} - {\blx@warning@noline{% - File '#1.lbx' not found!\MessageBreak - Ignoring mapping '#2' -> '#1'}% - \global\cslet{blx@suffmaptried@#2}\@empty}% - \blx@lbxinput@iv{#2}{#2}{language '#2'}}} - -} -\fi -\def\:temp{xeCJK}\ifx \@currname\:temp -\:dontusepackage{xeCJK} -\:AtEndOfPackage{% - \RequirePackage{fontspec} -} -\DeclareDocumentCommand\setCJKmainfont{o m o}{} -\let\setCJKsansfont\setCJKmainfont -\let\setCJKmonofont\setCJKmainfont - -\DeclareDocumentCommand\setCJKfamilyfont {m o m }{} -\DeclareDocumentCommand\newCJKfontfamily {o m o m}{\expandafter\gdef\csname #2\endcsname{\relax}} - -\DeclareDocumentCommand\xeCJKsetup{m}{} -% } -\AtBeginDocument{% - \xeuniuseblock{CJK} -} -\fi -\def\:temp{ctex}\ifx \@currname\:temp -\PassOptionsToPackage{fontset=none,autoindent=false}{ctex} -\ExplSyntaxOn -\let\o:file_input\file_input:n% patch \file_input:n to block - % ctex-engine-luatex.def from loading -\xdef\ctex:luaname{\detokenize{ctex-engine-luatex.def}} -\def\:tempa#1{% - \edef\:tempb{#1}% - \ifx\:tempb\ctex:luaname% - % this macro is defined in the blocked file, just add dummy definition - \cs_new_protected:Npn \ctex_add_to_selectfont:n ##1{}% - \else% - \o:file_input{#1}% - \fi% -} -\let\file_input:n\:tempa -\:AtEndOfPackage{% -\let\file_input:n\o:file_input -} -\ExplSyntaxOff -\fi -\def\:temp{polyglossia}\ifx \@currname\:temp -\ExplSyntaxOn -\:AtEndOfPackage{ -\ifdefined\orig_polyglossia@keys_define_lang:n\else -\cs_set_eq:NN\orig_polyglossia@keys_define_lang:n\polyglossia@keys_define_lang:n -%\let\orig_polyglossia@keys_define_lang:n\polyglossia@keys_define_lang:n -\cs_set_protected:Npn \polyglossia@keys_define_lang:n #1 { - \orig_polyglossia@keys_define_lang:n{#1} - \keys_define:nn {polyglossia}{ - #1 / direction - . code:n = {}, - #1 / script - . code:n = {\ifdefined\XeTeXversion - \edef\:tempscript{\str_uppercase:f{\tl_head:n {#1}}\tl_tail:n{#1}} - \xeuniuseblock{#1} - \expandafter\xeuniuseblock\expandafter{\:tempscript} - \fi}, - } -} -\def\RequireBidi{}% -\fi -} -\ExplSyntaxOff -\fi -\def\:temp{fontspec}\ifx \@currname\:temp - \ifdefined\texfourhtfontspecloaded% - \:dontusepackage{fontspec} - \else - \input usepackage-fontspec.4ht - \fi -\fi -\def\:temp{tikz}\ifx \@currname\:temp -\:AtEndOfPackage{% -\let\use:tikzlibrary\usetikzlibrary -\def\find:externalize#1external#2\@nil{% -\if\relax#2\relax\else - \let\tikz:externalize\tikzexternalize - \renewcommand\tikzexternalize[1][]{\tikz:externalize[##1,mode=only graphics]} - \tikzset{% - tex4ht inc/.style={% - /pgf/images/include external/.code={% - \includegraphics[]{####1.pdf}% - }% - } - } - \tikzset{tex4ht inc} - \fi -} -\append:defI\use@@tikzlibrary{\find:externalize##1external\@nil}% -} -\fi -\def\:temp{pdfbase}\ifx\@currname\:temp -\:AtEndOfPackage{% - \let\old:outputpage\@outputpage - \def\@outputpage{\old:outputpage{}} -} -\fi -\def\:temp{caption}\ifx\@currname\:temp -\:AtEndOfPackage{% - \long\def\caption@If@Package@Loaded#1[#2]#3#4{} - \renewcommand*\caption@redefine{% - \let\caption\caption@caption% - \let\@caption\caption@@caption% - }% -} -\fi +\Configure{PackageHooks}{cleveref.sty}{cleveref-hooks.4ht} +\Configure{PackageHooks}{xr.sty}{xr-hooks.4ht} +\Configure{PackageHooks}{xr-hyper.sty}{xrhyper-hooks.4ht} +\Configure{PackageHooks}{eso-pic.sty}{esopic-hooks.4ht} +\Configure{PackageHooks}{showframe.sty}{showframe-hooks.4ht} +\Configure{PackageHooks}{expl3.sty}{expl3-hooks.4ht} +\Configure{PackageHooks}{savetrees.sty}{savetrees-hooks.4ht} +\Configure{PackageHooks}{biblatex.sty}{biblatex-hooks.4ht} +\Configure{PackageHooks}{xeCJK.sty}{xecjk-hooks.4ht} +\Configure{PackageHooks}{ctex.sty}{ctex-hooks.4ht} +\Configure{PackageHooks}{polyglossia.sty}{polyglossia-hooks.4ht} +\Configure{PackageHooks}{fontspec.sty}{fontspec-hooks.4ht} +\Configure{PackageHooks}{tikz.sty}{tikz-hooks.4ht} +\Configure{PackageHooks}{pdfbase.sty}{pdfbase-hooks.4ht} +\Configure{PackageHooks}{caption.sty}{caption-hooks.4ht} \Configure{PackageHooks}{minted.sty}{minted-sty-hooks.4ht} -\def\:temp{graphics}\ifx\@currname\:temp - \ifdefined\XeTeXversion - \PassOptionsToPackage{dvips}{graphics} - \fi -\fi -\def\:temp{xcolor}\ifx\@currname\:temp - \ifdefined\XeTeXversion - \PassOptionsToPackage{dvips}{xcolor} - \fi -\fi -\def\:temp{imakeidx}\ifx\@currname\:temp - \PassOptionsToPackage{noautomatic}{imakeidx} -\fi -\def\:temp{fancyhdr}\ifx\@currname\:temp - \:AtEndOfPackage{% - \def\ps@fancy{}% - } -\fi +\Configure{PackageHooks}{graphics.sty}{graphics-hooks.4ht} +\Configure{PackageHooks}{xcolor.sty}{xcolor-hooks.4ht} +\Configure{PackageHooks}{imakeidx.sty}{imakeidx-hooks.4ht} +\Configure{PackageHooks}{fancyhdr.sty}{fancyhdr-hooks.4ht} \endinput diff --git a/Master/texmf-dist/tex/generic/tex4ht/xcolor-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/xcolor-hooks.4ht new file mode 100644 index 00000000000..86579613a1d --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/xcolor-hooks.4ht @@ -0,0 +1,24 @@ +% xcolor-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\ifdefined\XeTeXversion + \PassOptionsToPackage{dvips}{xcolor} +\fi + diff --git a/Master/texmf-dist/tex/generic/tex4ht/xecjk-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/xecjk-hooks.4ht new file mode 100644 index 00000000000..19c49e71c89 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/xecjk-hooks.4ht @@ -0,0 +1,37 @@ +% xecjk-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\:dontusepackage{xeCJK} +\:AtEndOfPackage{% + \RequirePackage{fontspec} +} +\DeclareDocumentCommand\setCJKmainfont{o m o}{} +\let\setCJKsansfont\setCJKmainfont +\let\setCJKmonofont\setCJKmainfont + +\DeclareDocumentCommand\setCJKfamilyfont {m o m }{} +\DeclareDocumentCommand\newCJKfontfamily {o m o m}{\expandafter\gdef\csname #2\endcsname{\relax}} + +\DeclareDocumentCommand\xeCJKsetup{m}{} +% } +\AtBeginDocument{% + \xeuniuseblock{CJK} +} + diff --git a/Master/texmf-dist/tex/generic/tex4ht/xr-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/xr-hooks.4ht new file mode 100644 index 00000000000..4365525869c --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/xr-hooks.4ht @@ -0,0 +1,27 @@ +% xr-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 TeX Users Group +% Copyright 2009-2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\:AtEndOfPackage{\let\XR:\XR@ + \def\XR@[#1]#2{% + \Configure{AtBeginDocument}{\XR:[#1]{#2}}{}}% +} + + diff --git a/Master/texmf-dist/tex/generic/tex4ht/xrhyper-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/xrhyper-hooks.4ht new file mode 100644 index 00000000000..07b0c5a3f9a --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/xrhyper-hooks.4ht @@ -0,0 +1,27 @@ +% xrhyper-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% Copyright 2020 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 . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2020-10-17-13:53} + +\:AtEndOfPackage{\let\XR:\XR@ + \def\XR@[#1][#2]#3{% + \AtBeginDocument{\XR:[#1][#2]{#3}} + }% +} + + -- cgit v1.2.3