-
Notifications
You must be signed in to change notification settings - Fork 0
/
LD@Output@Xhtml.tex
60 lines (60 loc) · 1.83 KB
/
LD@Output@Xhtml.tex
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
\def\Pdf#1{}%
\def\Xhtml#1{#1}%
\def\c#1{\HCode{ç}}%
\overfullrule=0pt
%%%%%%%% Mbox=hbox containing text inside math mode % Mvbox ? Mhbox ?
%
\def\mbox{\@getoptionalarg\LD@System@Mbox}%
\def\LD@System@Mbox#1{{%
\PauseMathClass
\mtexttrue
\HCode{<mtext>}%
\Configure{$}{\HCode{ </mtext><mrow>}\EndPauseMathClass\mtextfalse}{\PauseMathClass\mtexttrue\HCode{</mrow><mtext> }}{}%
\hbox{#1}%
\HCode{</mtext>}%
\EndPauseMathClass
}}%
\def\Image{\@getoptionalarg\LD@Image@Insert}%
\newdimen\LD@Dimen@Size
\def\LD@Image@Insert#1{%
\LD@Option@Process{,}%
\def\LD@Image@String{#1 }%
\ifcsname LD@Option@@Height\endcsname
\LD@Dimen@Size=\LD@Option@@Height\relax
\EA\def\EA\LD@Image@String\EA{\LD@Image@String height="\pgf@sys@tonumber{\LD@Dimen@Size}" }%
\fi
\ifcsname LD@Option@@Width\endcsname
\LD@Dimen@Size=\LD@Option@@Width\relax
\EA\def\EA\LD@Image@String\EA{\LD@Image@String width="\pgf@sys@tonumber{\LD@Dimen@Size}" }%
\fi
\ifcsname LD@Option@@Alt\endcsname
\EA\def\EA\LD@Image@Alt\EA{\EA[\LD@Option@@Alt]}%
\else
\def\LD@Image@Alt{}%
\fi
\EA\EA\EA\Picture\EA\LD@Image@Alt\EA{\LD@Image@String}%
}%
%
%
%
%
\def\LD@Graphic@Frame{%
\noindent
\ifInverted % Inverted
\EndP
\HCode{<div class="ICF\LD@Option@@Color">}\vbox{\ignorespaces\LD@Option@@Text\EndP}\HCode{</div>}%
\unless\ifx\LD@Option@@\LD@Empty
\HCode{<div class="centerline"><span class="ICFHyp\LD@Option@@Color">}\LD@Option@@\HCode{</span></div>}%
\fi
\Invertedfalse
\else % Inverted false
\EndP
\unless\ifx\LD@Option@@\LD@Empty
\HCode{<div class="centerline"><span class="CFHyp\LD@Option@@Color">}\LD@Option@@\HCode{</span></div>}%
\fi
\HCode{<div class="CF\LD@Option@@Color">}\vbox{\noindent\ignorespaces\LD@Option@@Text\EndP}%
\HCode{</div>}%
\fi
\Par
}%
\endinput