blob: bad616ae2f9bc0f44e5a63364177c750d537f1bf (
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
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% pctable.4ht 2008-02-28-20:51 %
% Copyright (C) 1999--2008 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".%
% %
% This Current Maintainer of this work %
% is Eitan M. Gurari. %
% %
% If you modify this program your changing its signature %
% with a directive of the following form will be %
% appreciated. %
% \message{signature} %
% %
% gurari@cse.ohio-state.edu %
% http://www.cse.ohio-state.edu/~gurari %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\immediate\write-1{version 2008-02-28-20:51}
\:CheckOption{pic-table}\if:Option
\pend:def\BeginTable{\Picture*{}}
\append:def\EndTable{\EndPicture}
\else
\catcode`\!=11
\HAssign\pc:tbl=0
\let\pctex:vrule=\relax
\pend:def\BeginTable{\bgroup \Configure{HtmlPar}{}{}{}{}
\let\pc:endtd=\relax
\let\pc:endtr=\relax
\let\pc:cols=\relax\gHAdvance\pc:tbl by 1
\Tg<table class="pctable\pc:tbl">
\let\halign\TeXhalign \HRestore\noalign }
\append:def\EndTable{\pc:endtd\Tg</table>\egroup}
\def\pctex:vrule#1{}
\let\:tfSetVrule=\!tfSetVrule
\def\!tfSetVrule{%
\!thToksEdef\!taRuleColumnTemplate={%
\pctex:vrule{\the\!taColumnNumber}\the
\!taRuleColumnTemplate}\:tfSetVrule}
\expandafter\def\csname !tk:l\endcsname{%
\Css{.pctable\pc:tbl\space
td.pc-\the\!taColumnNumber{text-align:left;white-space: nowrap;
padding-left:3pt;padding-right:3pt;}}}
\expandafter\def\csname !tk:c\endcsname{%
\Css{.pctable\pc:tbl\space
td.pc-\the\!taColumnNumber{text-align:center;white-space: nowrap;
padding-left:3pt;padding-right:3pt;}}}
\expandafter\def\csname !tk:r\endcsname{%
\Css{.pctable\pc:tbl\space
td.pc-\the\!taColumnNumber{text-align:right;white-space: nowrap;
padding-left:3pt;padding-right:3pt;}}}
\expandafter\def\csname !tk:p\endcsname{%
\Css{.pctable\pc:tbl\space
td.pc-\the\!taColumnNumber{padding-left:3pt;padding-right:3pt;}}}
\pend:defI\ReadFormatKeys{\csname !tk:\string##1\endcsname}
\Css{.justleft{text-align:left;white-space: nowrap;
padding-left:3pt;padding-right:3pt;}}
\Css{.justright{text-align:right; white-space: nowrap;
padding-left:3pt;padding-right:3pt;}}
\Css{.justcenter{text-align:center; white-space: nowrap;
padding-left:3pt;padding-right:3pt;}}
\let\:ReadFormatKeys=\ReadFormatKeys
\let\:tfAdjoinPriorColumn=\!tfAdjoinPriorColumn
\def\!tfAdjoinPriorColumn{%
\def\ReadFormatKeys{%
\!thToksEdef\!taDataColumnTemplate={%
\pc:endtd\Tg<td\Hnewline
class="pc-\the\!taColumnNumber">\the
\!taDataColumnTemplate\Tg</td>}%
\let\ReadFormatKeys=\:ReadFormatKeys\ReadFormatKeys}%
\:tfAdjoinPriorColumn}
\let\:tfFinishFormat=\!tfFinishFormat
\def\!tfFinishFormat{%
\edef\:temp{\!taPreamble{\noexpand\pc:endtd
\Tg<tr>\the\!taPreamble \Tg</tr>}}\:temp
\edef\pc:cols{\the\!taColumnNumber}\HAdvance \pc:cols by -1
\:tfFinishFormat}
\def\ReFormat[{%
\omit
\!taDataColumnTemplate{\pc:endtd
\Tg<td\Hnewline class="refformat">##\Tg</td>}%
\!taLeftGlue{}%
\!taRightGlue{}%
\catcode`\|=12
\catcode`\"=12
\ReadFormatKeys}
\pend:defI\!ttuse{%
\ifnum ##1>\@ne
\omit \def\:multspn{colspan="##1"}%
\expandafter\expandafter\expandafter\:gobble
\fi}
\def\!ttShortHruleA{\pc:endtd\HCode{<tr><td
colspan="\pc:cols" class="short"><hr\Hnewline class="short"
/></td></tr>}\null\ignorespaces}
\def\!ttFullHruleA{%
\pc:endtd \HCode{<tr><td
class="full" colspan="\pc:cols"><hr\Hnewline
class="full" /></td></tr>}\penalty0 \egroup}
\append:def\JustLeft{\pc:endtd
\pc:td{justleft}\def\!ttRightGlue{\Tg</td>}}
\append:def\JustCenter{\pc:endtd
\pc:td{justcenter}\def\!ttRightGlue{\Tg</td>}}
\append:def\JustRight{\pc:td{justright}\def\!ttRightGlue{\Tg</td>}}
\def\pc:td#1{\Tg<td class="#1"\:multspn>}
\let\:multspn\empty
\catcode`\!=12
\fi
\Hinput{pctable}
\endinput
|