summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-info-svg.tex
blob: 8c23ada10f9357f0894b2ce7e0c0dc3aea54b577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
% $Id: tex4ht-info-svg.tex 315 2017-05-15 13:37:50Z michal_h21 $
% compile 3 times: latex tex4ht-info-svg   
%             or htlatex tex4ht-info-svg "html,sections+"
%            or ht latex tex4ht-info
%
% Copyright 2009-2017 TeX Users Group
% Copyright 2000-2009 Eitan M. Gurari
% Released under LPPL 1.3c+.
% See tex4ht-cpright.tex for license text.

\ifx \HTML\UnDef
   \def\HTML{infosvg}
   \def\CONFIG{\jobname}
   \def\MAKETITLE{\author{Eitan M. Gurari}}
   \def\next{\input mktex4ht.4ht   \endinput}
   \expandafter\next
\fi

\input{common-info}
\input{common}
\expandafter\ifx \csname YES\HTML\endcsname\relax
\else
    % \def\CleanComment#1tex4ht-info-svg#2#3#4.#5>#6//{[#4%     <--jobname
    %               \if,\ifnum \FIRST=#6 .\else ,0\fi\fi]#6//}
    % Michal 05/10/2017
    % The following code works in other info files, but not in this one
    % I don't really don't know why
    \def\<{\edef\FIRST{\the\inputlineno}\let\<\saveCd \saveCd}
    \def\CleanComment#1tex4ht-info-svg#2#3#4.#5>#6//{[#4%     <--jobname
                  \if,\ifnum \FIRST=#6 .\else ,0\fi\fi]#6//}
    % \def\eatIV#1#2#3#4{}
\fi






%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Info SVG}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<infosvg\><<<
% infosvg.4ht (|version), generated from |jobname.tex
% Copyright 2009-2017 TeX Users Group
% Copyright |CopyYear.2000. Eitan M. Gurari
%
% 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 <http://tug.org/tex4ht>.
% 
% If you modify this program, changing the 
% version identification would be appreciated.
\immediate\write-1{version |version}
{          \catcode`\@=0 \catcode`\\=11 @relax
  @gdef@infoIVht[#1]#2//{%
    @ifnum #1>1
      @def@infoIVht[##1]##2//{%
        @ifnum ##1>1 @ifnum ##1<#1
           @bgroup 
             @no:catcodes0{255}{11}%
             @no:catcodes{91}{91}{12}% [
             @no:catcodes{47}{47}{12}% /
             @newlinechar13 %   
             @long@def@infoIVht####1\ifx\infoIVht####2infoIVht[####3//{%
               @def@infoIVht{******************************************}%
               @immediate@write-1{@infoIVht}%
               @immediate@write-1{****** @csname :Hin@endcsname.4ht}%
               @immediate@write-1{@infoIVht}%
               @bgroup
                @def@infoIVht{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*}%
                @let~=@space   @immediate@write-1{@infoIVht}%
               @egroup   
               @immediate@write-1{####1}%
               @bgroup
                @def@infoIVht{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*}%
                @let~=@space   @immediate@write-1{@infoIVht}%
               @egroup
               @immediate@write-1{@infoIVht}%
             @egroup}%
           @expandafter@expandafter@expandafter@infoIVht
     @fi@fi }%
  @fi }
}
>>>


\chapter{Options}

\section{tex4ht}


\<configure infosvg tex4ht\><<<

The output or pictures in SVG format can be requested using following command
line options:

svg
---

Include pictures as external images. Existing configuration for SVG images is 
used. This is preffered way in modern documents.

svg-object
----------

Include pictures using <object> elements.

svg-
----

This configuration is simillar to the previous one

svg-inline
----------

Include the pictures directly to the XML document.

>>>



\chapter{The Code}

\section{tex4ht}

\<configure infosvg tex4ht\><<<
SVG
---

 Configured through IMG

  Example:
    \Configure{IMG}
      {\special{t4ht=<object type="image/svg+xml"  data="}}
      {\special{t4ht=" name="}}
      {" }
      {\special{t4ht=" }}
      {\special{t4ht=></object>}}
>>>




 
 
\endinput