File: html.plt

package info (click to toggle)
tralics 2.14.4-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 17,152 kB
  • ctags: 8,260
  • sloc: cpp: 49,403; xml: 18,145; sh: 140; makefile: 118
file content (190 lines) | stat: -rw-r--r-- 5,785 bytes parent folder | download
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
%%% -*- latex -*-
\ProvidesPackage{html}[2007/12/05 v1.0 Hypertext commands for latex2html]
% based on the html.sty package v1.38 by nd, hws and rrm

%% $Id: html.plt,v 2.3 2008/04/01 17:02:06 grimm Exp $
%% TRALICS, copyright (C) INRIA/apics (Jose' Grimm) 2007
%% Licensed under the CeCILL free software license 
%% (See the file COPYING in the main directory for details)


\providecommand\latextohtml{\textup{\LaTeX2\texttt{HTML}}}

\newcommand\html@nop[]{}
\newcommand\html@nopI[1]{}
\newcommand\html@nopII[2]{}
\newcommand\html@nopIII[3]{}
\newcommand\html@nopBI[1][]{}
\newcommand\html@nopBII[2][]{}
\newcommand\html@nopBIII[3][]{}


%\def\htmladdnormallinkfoot#1#2{\footnote{\href{#2}{#1}}}
%\def\htmladdnormallink#1#2{\href{#2}{#1}}

% 
\let\htmladdnormallinkfoot\@@href@foot
\let\htmladdnormallink\@@href

\newcommand\htmladdimg[2][]{\hyperimage{#2}}
\let\externallabels\html@nopBIII
\let\externalref\html@nopBII
\newcommand\externalcite[1][]{\nocite}
\newcommand\htmladdTOClink[4][]{}

\newcommand{\htmlrule}{\@ifstar\html@nopBI\html@nopBI}
%\renewcommand{\htmlrulestar}[1][all]{}
\let\htmlclear\html@nopBI
%\renewcommand{\htmlclear}[1][all]{}
\let\bodytext\html@nopI
\let\htmlbody\html@nopBI

% hyperref etc co
\newcommand\hyperref@hyper[4]{#4}
\newcommand\hyperref[1][]{\hyperref@i[#1]}

\def\hyperref@i[#1]{{\def\next{#1}%
 \def\tmp{}\ifx\next\tmp\aftergroup\hyperref@def
 \else\def\tmp{ref}\ifx\next\tmp\aftergroup\hyperref@def
 \else\def\tmp{pageref}\ifx\next\tmp\aftergroup\hyperref@pageref
 \else\def\tmp{page}\ifx\next\tmp\aftergroup\hyperref@pageref
 \else\def\tmp{noref}\ifx\next\tmp\aftergroup\hyperref@noref
 \else\def\tmp{no}\ifx\next\tmp\aftergroup\hyperref@noref
 \else\def\tmp{hyper}\ifx\next\tmp\aftergroup\hyperref@hyper
 \else\def\tmp{html}\ifx\next\tmp\aftergroup\hyperref@hyper
 \else\typeout{*** unknown option \next\space to  hyperref ***}%
 \fi\fi\fi\fi\fi\fi\fi\fi}}

\newcommand{\hyperref@def}[4]{#2\ref{#4}#3}
\newcommand{\hyperref@pageref}[4]{#2\pageref{#4}#3}
\newcommand{\hyperref@noref}[3]{#2}

\newcommand\hypercite[1][]{\hypercite@i[#1]}

\def\hypercite@i[#1]{{\def\next{#1}%
 \def\tmp{}\ifx\next\tmp\aftergroup\hypercite@def
 \else\def\tmp{int}\ifx\next\tmp\aftergroup\hypercite@def
 \else\def\tmp{cite}\ifx\next\tmp\aftergroup\hypercite@def
 \else\def\tmp{ext}\ifx\next\tmp\aftergroup\hypercite@nocite
 \else\def\tmp{nocite}\ifx\next\tmp\aftergroup\hypercite@nocite
 \else\def\tmp{no}\ifx\next\tmp\aftergroup\hypercite@nocite
 \else\typeout{*** unknown option \next\space to  hypercite ***}%
 \fi\fi\fi\fi\fi\fi}}

\newcommand\hypercite@def[4]{#2{\def\tmp{#3}\def\emptyopt{}%
 \ifx\tmp\emptyopt\cite{#4}\else\cite[#3]{#4}\fi}}
\newcommand\hypercite@nocite[2]{#2\hypercite@nocitex}
\newcommand\hypercite@nocitex[2][]{\nocite{#2}}


\newcommand\htmlref[2][]{#2{\def\tmp{#1}\ifx\tmp\@empty
  \aftergroup\html@nopI\else\aftergroup\html@nopBII\fi}}

\newcommand{\htmlcite}[2][]{#2{\def\tmp{#1}\ifx\tmp\@empty
  \aftergroup\htmlcite@def\else\aftergroup\html@nopBII\fi}}
\newcommand{\htmlcite@def}[1]{ \nocite{#1}}

\let\htmlimage\html@nopBII
\let\htmlborder\html@nopBII
\newenvironment{makeimage}{}{}
\newenvironment{tex2html_deferred}{}{}
\let\htmladdtonavigation\html@nopI

% comment

\def\htmlincludecomment
 #1{\expandafter\def\csname#1\endcsname{}%
    \expandafter\def\csname end#1\endcsname{}}
\def\htmlexcludecomment#1{%
 \expandafter\let\csname#1\endcsname\comment
 \expandafter\let\csname end#1\endcsname\endcomment}

% \htmlexcludecomment{comment}

\let\includecomment=\htmlincludecomment
\let\excludecomment=\htmlexcludecomment
\let\htmlreexcludecomment=\htmlexcludecomment

\htmlexcludecomment{rawhtml}
\htmlexcludecomment{htmlonly}
\let\html\html@nopI
\htmlexcludecomment{imagesonly}
% \newenvironment{latexonly}{}{}
\newcommand\latex[1]{#1}
\long\def\latexhtml#1#2{#1}

\let\htmltracing\html@nopI
\let\htmltracenv\html@nopI
\let\strikeout\html@nopI

\let\htmlurl=\url
\let\HTMLcode\html@nopBII
\let\HTML\html@nopBII
\let\HTMLset\html@nopBIII
\let\HTMLsetenv\html@nopBIII
\let\internal\html@nopBII
\let\htmlhead\html@nopBIII
\let\htmlnohead\html@nop
\let\htmlbase\html@nopI
\let\htmlsetstyle\html@nopBIII
\let\htmladdtostyle\html@nopBIII
\let\htmllanguagestyle\html@nopBII
\let\startdocument\html@nop
\newcommand\tableofchildlinks{\@ifstar\html@nopBI\html@nopBI}
\newcommand\htmlinfo{\@ifstar\html@nopBI\html@nopBI}

%  This redefines  \begin  to allow for an optional argument
%  which is used by LaTeX2HTML to specify `style-sheet' information

\let\realLaTeX@begin=\begin
\renewcommand{\begin}[1][]{\realLaTeX@begin}


\@ifundefined{c@part}{\newcounter{part}}{}%
\@ifundefined{c@chapter}{\newcounter{chapter}}{}
\newcounter{lpart}
\newcounter{lchapter}[part]
\newcounter{lsection}[part]
\newcounter{lsubsection}[section]
\newcounter{lsubsubsection}[subsection]
\newcounter{lparagraph}[subsubsection]
\newcounter{lsubparagraph}[paragraph]
\newcounter{lsubsubparagraph}[lsubparagraph]

\let\Hpart=\part
%\let\Hchapter=\chapter
\let\Hsection=\section
\let\Hsubsection=\subsection
\let\Hsubsubsection=\subsubsection
\let\Hparagraph=\paragraph
\let\Hsubparagraph=\subparagraph
\let\Hsubsubparagraph=\subsubparagraph

\let\resetsections\html@nop
\let\resetsubsections\html@nop
\let\resetsubsubsections\html@nop
\let\resetparagraphs\html@nop
\let\resetsubparagraphs\html@nop
\let\resetsubsubparagraphs\html@nop


\let\DumpPtr\html@nopII
%\newwrite\ptrfile
\def\DumpCounters#1#2#3#4{}


\let\dumpcitestatus\html@nop
\let\loadcitestatus\html@nop
\let\dumpcurrentcolor\html@nop
\let\loadsegmentcolors\html@nop
\let\segmentpagecolor\html@nopBI
\let\segmentcolor\html@nopBII


\newcommand\segment{\@ifstar{\html@nopBI}{\html@nopBI}}
\let\@endsegment\html@nopBI
\let\endsegment\@endsegment

\def\hyperimage#1{\includegraphics{#1}}

\endinput