Debian Codegraph @

texmf-dist/source/generic/tex4ht/tex4ht-info-svg.tex

raw
1 % $Id: tex4ht-info-svg.tex 315 2017-05-15 13:37:50Z michal_h21 $
2 % compile 3 times: latex tex4ht-info-svg
3 % or htlatex tex4ht-info-svg "html,sections+"
4 % or ht latex tex4ht-info
5 %
6 % Copyright 2009-2017 TeX Users Group
7 % Copyright 2000-2009 Eitan M. Gurari
8 % Released under LPPL 1.3c+.
9 % See tex4ht-cpright.tex for license text.
10
11 \ifx \HTML\UnDef
12 \def\HTML{infosvg}
13 \def\CONFIG{\jobname}
14 \def\MAKETITLE{\author{Eitan M. Gurari}}
15 \def\next{\input mktex4ht.4ht \endinput}
16 \expandafter\next
17 \fi
18
19 \input{common-info}
20 \input{common}
21 \expandafter\ifx \csname YES\HTML\endcsname\relax
22 \else
23 % \def\CleanComment#1tex4ht-info-svg#2#3#4.#5>#6//{[#4% <--jobname
24 % \if,\ifnum \FIRST=#6 .\else ,0\fi\fi]#6//}
25 % Michal 05/10/2017
26 % The following code works in other info files, but not in this one
27 % I don't really don't know why
28 \def\<{\edef\FIRST{\the\inputlineno}\let\<\saveCd \saveCd}
29 \def\CleanComment#1tex4ht-info-svg#2#3#4.#5>#6//{[#4% <--jobname
30 \if,\ifnum \FIRST=#6 .\else ,0\fi\fi]#6//}
31 % \def\eatIV#1#2#3#4{}
32 \fi
33
34
35
36
37
38
39 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
40 \chapter{Info SVG}
41 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
42
43
44 \<infosvg\><<<
45 % infosvg.4ht (|version), generated from |jobname.tex
46 % Copyright 2009-2017 TeX Users Group
47 % Copyright |CopyYear.2000. Eitan M. Gurari
48 %
49 % This work may be distributed and/or modified under the
50 % conditions of the LaTeX Project Public License, either
51 % version 1.3c of this license or (at your option) any
52 % later version. The latest version of this license is in
53 % http://www.latex-project.org/lppl.txt
54 % and version 1.3c or later is part of all distributions
55 % of LaTeX version 2005/12/01 or later.
56 %
57 % This work has the LPPL maintenance status "maintained".
58 %
59 % The Current Maintainer of this work
60 % is the TeX4ht Project <http://tug.org/tex4ht>.
61 %
62 % If you modify this program, changing the
63 % version identification would be appreciated.
64 \immediate\write-1{version |version}
65 { \catcode`\@=0 \catcode`\\=11 @relax
66 @gdef@infoIVht[#1]#2//{%
67 @ifnum #1>1
68 @def@infoIVht[##1]##2//{%
69 @ifnum ##1>1 @ifnum ##1<#1
70 @bgroup
71 @no:catcodes0{255}{11}%
72 @no:catcodes{91}{91}{12}% [
73 @no:catcodes{47}{47}{12}% /
74 @newlinechar13 %
75 @long@def@infoIVht####1\ifx\infoIVht####2infoIVht[####3//{%
76 @def@infoIVht{******************************************}%
77 @immediate@write-1{@infoIVht}%
78 @immediate@write-1{****** @csname :[email protected]}%
79 @immediate@write-1{@infoIVht}%
80 @bgroup
81 @def@infoIVht{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*}%
82 @let~=@space @immediate@write-1{@infoIVht}%
83 @egroup
84 @immediate@write-1{####1}%
85 @bgroup
86 @def@infoIVht{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*}%
87 @let~=@space @immediate@write-1{@infoIVht}%
88 @egroup
89 @immediate@write-1{@infoIVht}%
90 @egroup}%
91 @expandafter@expandafter@expandafter@infoIVht
92 @fi@fi }%
93 @fi }
94 }
95 >>>
96
97
98 \chapter{Options}
99
100 \section{tex4ht}
101
102
103 \<configure infosvg tex4ht\><<<
104
105 The output or pictures in SVG format can be requested using following command
106 line options:
107
108 svg
109 ---
110
111 Include pictures as external images. Existing configuration for SVG images is
112 used. This is preffered way in modern documents.
113
114 svg-object
115 ----------
116
117 Include pictures using <object> elements.
118
119 svg-
120 ----
121
122 This configuration is simillar to the previous one
123
124 svg-inline
125 ----------
126
127 Include the pictures directly to the XML document.
128
129 >>>
130
131
132
133 \chapter{The Code}
134
135 \section{tex4ht}
136
137 \<configure infosvg tex4ht\><<<
138 SVG
139 ---
140
141 Configured through IMG
142
143 Example:
144 \Configure{IMG}
145 {\special{t4ht=<object type="image/svg+xml" data="}}
146 {\special{t4ht=" name="}}
147 {" }
148 {\special{t4ht=" }}
149 {\special{t4ht=></object>}}
150 >>>
151
152
153
154
155
156
157 \endinput
158
159