Debian Codegraph @

texmf-dist/tex/generic/tex4ht/ctex-hooks.4ht

raw
1 % ctex-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex
2 % Copyright 2020 TeX Users Group
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either
6 % version 1.3c of this license or (at your option) any
7 % later version. The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3c or later is part of all distributions
10 % of LaTeX version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status "maintained".
13 %
14 % The Current Maintainer of this work
15 % is the TeX4ht Project <http://tug.org/tex4ht>.
16 %
17 % If you modify this program, changing the
18 % version identification would be appreciated.
19 \immediate\write-1{version 2020-10-17-13:53}
20
21 \PassOptionsToPackage{fontset=none,autoindent=false}{ctex}
22 \ExplSyntaxOn
23 \let\o:file_input\file_input:n% patch \file_input:n to block
24 % ctex-engine-luatex.def from loading
25 \xdef\ctex:luaname{\detokenize{ctex-engine-luatex.def}}
26 \def\:tempa#1{%
27 \edef\:tempb{#1}%
28 \ifx\:tempb\ctex:luaname%
29 % this macro is defined in the blocked file, just add dummy definition
30 \cs_new_protected:Npn \ctex_add_to_selectfont:n ##1{}%
31 \else%
32 \o:file_input{#1}%
33 \fi%
34 }
35 \let\file_input:n\:tempa
36 \:AtEndOfPackage{%
37 \let\file_input:n\o:file_input
38 }
39 \ExplSyntaxOff
40