Debian Codegraph @

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

raw
1 % xy.4ht (2025-12-28-07:08), generated from tex4ht-4ht.tex
2 % Copyright (C) 2000-2009 Eitan M. Gurari
3 % Copyright 2009-2025 TeX Users Group
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either
7 % version 1.3c of this license or (at your option) any
8 % later version. The latest version of this license is in
9 % https://www.latex-project.org/lppl.txt
10 % and version 1.3c or later is part of all distributions
11 % of LaTeX version 2005/12/01 or later.
12 %
13 % This work has the LPPL maintenance status "maintained".
14 %
15 % The Current Maintainer of this work
16 % is the TeX4ht Project <https://tug.org/tex4ht>.
17 %
18 % If you modify this program, changing the
19 % version identification would be appreciated.
20 \immediate\write-1{version 2025-12-28-07:08}
21
22
23 \pend:def\xy{\a:xypic}
24 \append:def\endxy{\b:xypic}
25 \NewConfigure{xypic}{2}
26 \def\:tempa#1#2{%
27 \def\:tempc##1{%
28 \def\:temp{%
29 \ifx #1\next \let\next^%
30 \def\:temp########1{##1^}%
31 \else
32 \ifx #2\next \let\next_%
33 \def\:temp########1{##1_}%
34 \else \let\:temp##1\fi
35 \fi
36 \:temp}\futurelet\next\:temp}%
37 }
38 \:CheckOption{no^} \if:Option \else
39 \:CheckOption{^13} \if:Option \catcode`\^13
40 \else \catcode`\^12 \fi
41 \fi
42 \:CheckOption{no_} \if:Option \else
43 \:CheckOption{_13} \if:Option \catcode`\_13
44 \else \catcode`\_12 \fi
45 \fi
46 \:tempa^_
47 \catcode`\^7
48 \catcode`\_8
49 \HLet\xyFN@\:tempc
50
51 \expandafter\ifx \csname xyv2version\endcsname\relax\else
52 \let\xy:diagram\diagram
53 \def\diagram{\a:diagram \xy:diag}
54 \def\xy:diag#1\enddiagram{\xy:diagram#1\enddiagram\b:diagram}
55 \NewConfigure{diagram}{2}
56
57 \fi
58 \xyoption{dvips}\xyoption{ps}
59
60 \ifdefined\xymatrix
61 % \xymatrixcompile fails to create a picture, so we need to disable it, but a copy is available in \:xymatrixnocompile if necessary
62 \let\xymatrix\xymatrixnocompile
63 \let\:xymatrixnocompile\xymatrixnocompile
64 \let\xymatrixcompile\xymatrixnocompile
65 \fi
66
67 \Hinput{xy}
68 \endinput
69