Debian Codegraph @

texmf-dist/tex/generic/tex4ht/chemfig.4ht

raw
1 % chemfig.4ht (2025-01-18-13:42), generated from tex4ht-4ht.tex
2 % Copyright 2024-2025 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 2025-01-18-13:42}
20
21 \ExplSyntaxOn
22 \NewConfigure{chemname}{3}
23 \def\:tempa[#1]#2#3{%
24 \setbox\CF_boxstuff\hbox{#2}%
25 \edef\CF_wdstuffbox{\the\wd\CF_boxstuff}\edef\CF_dpstuffbox{\the\dp\CF_boxstuff}%
26 \leavevmode
27 \ifdim\CF_dpmax<\CF_dpstuffbox
28 \ifboolKV[chemfig]{gchemname}\global{}\let\CF_dpmax\CF_dpstuffbox
29 \fi
30 \a:chemname
31 \vtop{%
32 \box\CF_boxstuff
33 \nointerlineskip
34 \kern\dimexpr#1\ifCF_adjust_name_dp+\CF_dpmax-\CF_dpstuffbox\fi\relax
35 \b:chemname
36 \CF_parsemolname#3\\\_nil
37 }%
38 \c:chemname
39 }
40 \HLet\CF_chemnameb\:tempa
41 \ExplSyntaxOff
42
43 \NewConfigure{chemfigscheme}{2}
44 \Configure{chemfigscheme}{\Picture+{}}{\EndPicture}
45 \ExplSyntaxOn
46 \pend:def\schemestart{\a:chemfigscheme}
47 \append:def\CF_schemestop{\b:chemfigscheme}
48 \ExplSyntaxOff
49
50
51 \Hinput{chemfig}
52 \endinput
53