forked from filonenko-mikhail/cltl2-doc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cltl.cfg
128 lines (102 loc) · 4.12 KB
/
cltl.cfg
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
\Preamble{html}
\begin{document}
%\Configure{IndexColumns}{2}
\makeatletter
\Configure{TITLE+}{\@title}
\Configure{@HEAD}{\HCode{<link rel="stylesheet" type="text/css"
href="../cltl2ed.css">}}
% \Configure{@BODY}{\HCode{<div id="main_container">
% <div id="content">}}
% \Configure{@/BODY}{\HCode{</div>
% </div>}}
\makeatother
% \Configure{DOCTYPE}.........1
% \Configure{HTML}............2
% \Configure{HEAD}............2
% \Configure{@HEAD}...........1
% \Configure{BODY}............2
% \Configure{TITLE+}..........1
% \Configure{TITLE}...........2
% \Configure{@TITLE}..........1
% \Configure{Preamble}........2
% customize navigation bar
\ifx \rulang\Undef
\Configure{crosslinks}
{<} {>}
{Next}{Prev}
{PrevTail}{Front}
{Tail}{Up}
\Configure{crosslinks+}{
\HCode{<div id="toplinks">
<<a href="../index.html">Main Page</a>>
<<a href="symbols.html">Symbols</a>>
<br>}
}{\HCode{</div>}}
{\HCode{<div id="bottomlinks">}}
{\HCode{<br><<a href="../index.html">Main Page</a>>
<<a href="symbols.html">Symbols</a>>
</div>}}
\else %RUSSIAN
\Configure{crosslinks}
{<} {>}
{Далее}{Назад}
{Назад-и-вниз}{В-начало}
{В-конец}{Наверх}
\Configure{crosslinks+}{\HCode{<div id="toplinks">
<<a href="../index.html">}Главная\HCode{</a>>
<<a href="symbols.html">}Символы\HCode{</a>>
<br />}}
{\HCode{</div>}}
{\HCode{<div id="bottomlinks">}}
{\HCode{<br> <<a href="../index.html">}Главная\HCode{</a>>
<<a href="symbols.html">}Символы\HCode{</a>></div>}}
\fi
% disable virtual hypertext fonts, like <span class="font-name">...
\Configure{htf}{0}{+}{}{}{}{}{}{}{}
% sign
% \def\LaTeX{}{\TeX4ht{}}
\Configure{tabbing}[1.5]{}{\HCode{<br>}}{}{}
\ConfigureEnv{tabbing}{\HCode{<div class="tabbing">}}{\HCode{</div>}}{}{}
% customize tag generating for some tex commands
\Configure{emph}{\Tg<em>}{\Tg</em>}
\Configure{textbf}{\Tg<b>}{\Tg</b>}
\Configure{textit}{\Tg<i>}{\Tg</i>}
\Configure{texttt}{\Tg<tt>}{\Tg</tt>}
\Configure{tabular}
{\HCode{<table width="100\%" class="tabular">}}
{\HCode{</table>}}
{\HCode{<tr>}}
{\HCode{</tr>}}
{\HCode{<td align="left"
\ifnum \HMultispan>1 colspan="\HMultispan"\fi >}}
{\HCode{</td>}}
% {} % {at the start of table}
% {} % {at the end of table}
% {} % {at the beginning of row}
% {} % {at the end of row}
% {} % {before each cell}
% {} % {after each cell}
% customize tags/css for some tex environments (e.g. \begin{lisp}...\end{lisp})
\ConfigureEnv{lisp} {\Tg<div class="lisp">\Tg<tt>} {\Tg</tt>\Tg</div>} {} {}
\ConfigureEnv{defun} {\Tg<div class="defun">} {\Tg<hr>\Tg</div>} {} {}
\ConfigureEnv{defunheader} {\Tg<div class="defunheader">} {\Tg</div>} {} {}
\ConfigureEnv{defspec} {\Tg<div class="defspec">} {\Tg<hr>\Tg</div>} {} {}
\ConfigureEnv{defloop} {\Tg<div class="defloop">} {\Tg<hr>\Tg</div>} {} {}
\ConfigureEnv{defmac} {\Tg<div class="defmac">} {\Tg<hr>\Tg</div>} {} {}
\ConfigureEnv{defmacheader} {\Tg<div class="defmacheader">} {\Tg</div>} {} {}
\ConfigureEnv{newer} {\Tg<div class="newer">} {\Tg</div>} {} {}
\ConfigureEnv{new} {\Tg<div class="new">} {\Tg</div>} {} {}
\ConfigureEnv{obsolete} {\Tg<div class="obsolete">} {\Tg</div>} {} {}
\ConfigureEnv{incompatibility} {\Tg<div class="incompatibility">} {\Tg</div>} {} {}
\ConfigureEnv{rationale} {\Tg<div class="rationale">} {\Tg</div>} {} {}
\ConfigureEnv{implementation} {\Tg<div class="implementation">} {\Tg</div>} {} {}
\ConfigureEnv{flushdesc} {\Tg<div class="flushdesc">} {\Tg</div>} {} {}
\ConfigureList{flushdesc} {\HCode{<ul>}} {\HCode{</ul>}} {\HCode{<li><b>}} {\HCode{</b></li>}}
\ConfigureEnv{indentdesc} {\Tg<div class="indentdesc">} {\Tg</div>} {} {}
\ConfigureList{indentdesc} {\HCode{<ul>}} {\HCode{</ul>}} {\HCode{<li><b>}} {\HCode{</b></li>}}
% math inline environment
\Configure{[]}{\Tg<span class="math">}{\Tg</span>}
\Configure{()}{\Tg<span class="math">}{\Tg</span>}
\Configure{$$}{\Tg<span class="math">}{\Tg</span>}{}
\Configure{$}{\Tg<span class="math">}{\Tg</span>}{}
\EndPreamble