| 1 | cnh | 1.1 | %% techexplHTML.tex | 
| 2 |  |  | %% | 
| 3 |  |  | %% modified version of  techexpl.sty | 
| 4 |  |  | %% for smooth compatibility with  LaTeX2HTML | 
| 5 |  |  | %%   by Ross Moore  <ross@maths.mq.edu.au>  edited: 8 June 1999 | 
| 6 |  |  | %% | 
| 7 |  |  | %%  techexpl.sty carries the following copyright: | 
| 8 |  |  | %% -------------------------------------------------------------------- | 
| 9 |  |  | %% LaTeX style file for IBM techexplorer Hypermedia documents | 
| 10 |  |  | %% -------------------------------------------------------------------- | 
| 11 |  |  | %% | 
| 12 |  |  | %% Copyright (C) 1998 by the IBM Corporation. All Rights Reserved. | 
| 13 |  |  | %% | 
| 14 |  |  | %% It should be distributed *unchanged*. | 
| 15 |  |  | %% | 
| 16 |  |  | %% This file provides LaTeX 2e support for many of the IBM | 
| 17 |  |  | %% techexplorer Hypermedia Browser control sequences. Some massaging of | 
| 18 |  |  | %% documents may be necessary in order to get correct formatting within | 
| 19 |  |  | %% both the techexplorer and LaTeX 2e environments. | 
| 20 |  |  | %% | 
| 21 |  |  | %% Insert into your document via \usepackage{techexpl} after the | 
| 22 |  |  | %% \documentclass line. For example: | 
| 23 |  |  | %%      \documentclass{article} | 
| 24 |  |  | %%      \usepackage{techexpl} | 
| 25 |  |  | %%      \begin{document} | 
| 26 |  |  | %%      % ... | 
| 27 |  |  | %%      \end{document} | 
| 28 |  |  | %% | 
| 29 |  |  | %% Address questions to techexpl@watson.ibm.com. | 
| 30 |  |  | %% | 
| 31 |  |  | %% THIS IS A WORK IN PROGRESS!! | 
| 32 |  |  | %% | 
| 33 |  |  | %% -------------------------------------------------------------------- | 
| 34 |  |  | %% | 
| 35 |  |  | %begin{latexonly} | 
| 36 |  |  | \ifx\techexplorerfalse
\undefined\else\expandafter\endinput\fi | 
| 37 |  |  | \NeedsTeXFormat{LaTeX2e} | 
| 38 |  |  | \ProvidesPackage{techexpl} | 
| 39 |  |  | [1998/05/012 v1.0 IBM techexplorer Hypermedia Browser support (RSS)] | 
| 40 |  |  | %end{latexonly} | 
| 41 |  |  | %\RequirePackage{ifthen} | 
| 42 |  |  | \RequirePackage[dvips]{color} | 
| 43 |  |  | %\RequirePackage{url} | 
| 44 |  |  | %% | 
| 45 |  |  | %% -------------------------------------------------------------------- | 
| 46 |  |  | %% | 
| 47 |  |  | \newif\iftechexplorer\techexplorerfalse | 
| 48 |  |  | %% | 
| 49 |  |  | %% -------------------------------------------------------------------- | 
| 50 |  |  | %% Macro support | 
| 51 |  |  | %% -------------------------------------------------------------------- | 
| 52 |  |  | % | 
| 53 |  |  | %begin{latexonly} | 
| 54 |  |  | \def\globalnewcommand{\newcommand} | 
| 55 |  |  | \def\globalnewenvironment{\newenvironment} | 
| 56 |  |  | % | 
| 57 |  |  | %end{latexonly} | 
| 58 |  |  | %% -------------------------------------------------------------------- | 
| 59 |  |  | %% Links | 
| 60 |  |  | %% -------------------------------------------------------------------- | 
| 61 |  |  | % | 
| 62 |  |  | \providecommand{\techexplorerLinkColor}{blue} | 
| 63 |  |  | % | 
| 64 |  |  | % SYNTAX: \altLink{alternate text}{primary text} | 
| 65 |  |  | % | 
| 66 |  |  | \newcommand{\altLink}[2]{{#2}} | 
| 67 |  |  | % | 
| 68 |  |  | % SYNTAX: \appLink{url}{text} | 
| 69 |  |  | % | 
| 70 |  |  | %begin{latexonly} | 
| 71 |  |  | \def\appLink#1#2{{\color{\techexplorerLinkColor}#2}} | 
| 72 |  |  | %end{latexonly} | 
| 73 |  |  | \providecommand{\appLink}[2]{\htmladdnormallink{#2}{#1}} | 
| 74 |  |  | % | 
| 75 |  |  | % SYNTAX: \audioLink{url}{text} | 
| 76 |  |  | % | 
| 77 |  |  | %begin{latexonly} | 
| 78 |  |  | \def\audioLink#1#2{{\color{\techexplorerLinkColor}#2}} | 
| 79 |  |  | %end{latexonly} | 
| 80 |  |  | \providecommand{\audioLink}[2]{\htmladdnormallink{#2}{#1}} | 
| 81 |  |  | % | 
| 82 |  |  | % SYNTAX: \docLink[frame]{url}[label]{text} | 
| 83 |  |  | % | 
| 84 |  |  | %begin{latexonly} | 
| 85 |  |  | \def\docLink{\@ifnextchar[%] | 
| 86 |  |  | {\@fdocLink}{\@nfdocLink}} | 
| 87 |  |  | \def\@fdocLink[#1]{\@nfdocLink} | 
| 88 |  |  | \def\@nfdocLink#1{\@docLinkLabel{#1}} | 
| 89 |  |  | \def\@docLinkLabel#1{\@ifnextchar[%] | 
| 90 |  |  | {\@ldocLink{#1}}{\@nldocLink{#1}}} | 
| 91 |  |  | \def\@ldocLink#1[#2]{\@nldocLink{#1}} | 
| 92 |  |  | \def\@nldocLink#1#2{{\color{\techexplorerLinkColor}#2}} | 
| 93 |  |  | %end{latexonly} | 
| 94 |  |  | \providecommand{\docLink}[2][]{\HTMLset{thislink}{#2}\fdocLink} | 
| 95 |  |  | %begin{latexonly} | 
| 96 |  |  | \newcommand{\fdocLink}[2][]{{\color{\techexplorerLinkColor}#2}} | 
| 97 |  |  | %end{latexonly} | 
| 98 |  |  | \providecommand{\fdocLink}[2][]{\htmladdnormallink{#2}{\HTMLget{thislink}}} | 
| 99 |  |  | % | 
| 100 |  |  | % SYNTAX: \evalLink{description}{MIMEtype}{appInput}{displayText} | 
| 101 |  |  | % | 
| 102 |  |  | \providecommand{\evalLink}[4]{{\color{\techexplorerLinkColor}#4}} | 
| 103 |  |  | % | 
| 104 |  |  | % SYNTAX: \inputboxLink[responseLink]{controlSequence}{inputboxText}{dialogBoxDescription}{dialogBoxCaption}{textToDisplay} | 
| 105 |  |  | % | 
| 106 |  |  | %begin{latexonly} | 
| 107 |  |  | \def\inputboxLink{\@ifnextchar[%] | 
| 108 |  |  | {\@rinputboxLink}{\@inputboxLink}} | 
| 109 |  |  | \def\@rinputboxLink[#1]{\@inputboxLink} | 
| 110 |  |  | \def\@inputboxLink#1#2#3#4#5{{\color{\techexplorerLinkColor}#5}} | 
| 111 |  |  | %end{latexonly} | 
| 112 |  |  | \providecommand{\inputboxLink}[6][]{{\color{\techexplorerLinkColor}#6}} | 
| 113 |  |  | % | 
| 114 |  |  | % SYNTAX: \labelLink{label}{text} | 
| 115 |  |  | % | 
| 116 |  |  | %begin{latexonly} | 
| 117 |  |  | \def\labelLink#1#2{{\color{\techexplorerLinkColor}#2}} | 
| 118 |  |  | %end{latexonly} | 
| 119 |  |  | \providecommand{\labelLink}[2]{\htmlref{#2}{#1}} | 
| 120 |  |  | % | 
| 121 |  |  | % SYNTAX: \popupLink{popupText}{popupCaption}{textToDisplay} | 
| 122 |  |  | % | 
| 123 |  |  | \def\popupLink#1#2#3{{\color{\techexplorerLinkColor}#3}} | 
| 124 |  |  | % | 
| 125 |  |  | % SYNTAX: \videoLink{url}{text} | 
| 126 |  |  | % | 
| 127 |  |  | %begin{latexonly} | 
| 128 |  |  | \def\videoLink#1#2{{\color{\techexplorerLinkColor}#2}} | 
| 129 |  |  | %end{latexonly} | 
| 130 |  |  | \providecommand{\videoLink}[2]{\htmladdnormallink{#2}{#1}} | 
| 131 |  |  | % | 
| 132 |  |  | % SYNTAX: \yesNoLink[responseLink]{controlSequence}{dialogBoxQuestion}{dialogBoxCaption}{textToDisplay} | 
| 133 |  |  | % | 
| 134 |  |  | %begin{latexonly} | 
| 135 |  |  | \def\yesNoLink{\@ifnextchar[%] | 
| 136 |  |  | {\@ryesNoLink}{\@yesNoLink}} | 
| 137 |  |  | \def\@ryesNoLink[#1]{\@yesNoLink} | 
| 138 |  |  | \def\@yesNoLink#1#2#3#4{{\color{\techexplorerLinkColor}#4}} | 
| 139 |  |  | %end{latexonly} | 
| 140 |  |  | \providecommand{\yesNoLink}[5][]{{\color{\techexplorerLinkColor}#5}} | 
| 141 |  |  | % | 
| 142 |  |  | %% -------------------------------------------------------------------- | 
| 143 |  |  | %% Hierarchical document support | 
| 144 |  |  | %% -------------------------------------------------------------------- | 
| 145 |  |  | % | 
| 146 |  |  | % SYNTAX: \aboveTopic{url} | 
| 147 |  |  | % | 
| 148 |  |  | \def\aboveTopic#1{} | 
| 149 |  |  | % | 
| 150 |  |  | % SYNTAX: \nextTopic{url} | 
| 151 |  |  | % | 
| 152 |  |  | \def\nextTopic#1{} | 
| 153 |  |  | % | 
| 154 |  |  | % SYNTAX: \previousTopic{url} | 
| 155 |  |  | % | 
| 156 |  |  | \def\previousTopic#1{} | 
| 157 |  |  | % | 
| 158 |  |  | %% -------------------------------------------------------------------- | 
| 159 |  |  | %% Boxes | 
| 160 |  |  | %% -------------------------------------------------------------------- | 
| 161 |  |  | % | 
| 162 |  |  | % SYNTAX: \buttonbox[invert]{text} | 
| 163 |  |  | % | 
| 164 |  |  | %begin{latexonly} | 
| 165 |  |  | \def\buttonbox{\@ifnextchar[%] | 
| 166 |  |  | {\@ibuttonbox}{\@buttonbox}} | 
| 167 |  |  | \def\@ibuttonbox[#1]{\@buttonbox} | 
| 168 |  |  | \def\@buttonbox{\fbox} | 
| 169 |  |  | %end{latexonly} | 
| 170 |  |  | \providecommand{\buttonbox}[1][]{\fbox} | 
| 171 |  |  | % | 
| 172 |  |  | % SYNTAX: \dialogbox[invert]{text} | 
| 173 |  |  | % | 
| 174 |  |  | \def\dialogbox{\buttonbox} | 
| 175 |  |  | % | 
| 176 |  |  | % SYNTAX: \gradientbox[v]{startColor}{endColor}{text} | 
| 177 |  |  | % | 
| 178 |  |  | %begin{latexonly} | 
| 179 |  |  | \def\gradientbox{\@ifnextchar[%] | 
| 180 |  |  | {\@vgradientbox}{\@gradientbox}} | 
| 181 |  |  | \def\@vgradientbox[#1]{\@gradientbox} | 
| 182 |  |  | \def\@gradientbox#1#2#3{\colorbox{#1}{#3}} | 
| 183 |  |  | %end{latexonly} | 
| 184 |  |  | \providecommand{\gradientbox}[4][]{\colorbox{#2}{#4}} | 
| 185 |  |  | % | 
| 186 |  |  | % SYNTAX: \inputbox[width]{controlSequence}{initialContents } | 
| 187 |  |  | % | 
| 188 |  |  | %begin{latexonly} | 
| 189 |  |  | \def\inputbox{\@ifnextchar[%] | 
| 190 |  |  | {\@winputboxbox}{\@inputbox}} | 
| 191 |  |  | \def\@winputboxbox[#1]{\@inputbox} | 
| 192 |  |  | \def\@inputbox#1#2{\fbox{\hbox spread 1in{#2}}} | 
| 193 |  |  | %end{latexonly} | 
| 194 |  |  | \providecommand{\inputbox}[3][]{\fbox{#3}} | 
| 195 |  |  | % | 
| 196 |  |  | %% -------------------------------------------------------------------- | 
| 197 |  |  | %% Colors | 
| 198 |  |  | %% -------------------------------------------------------------------- | 
| 199 |  |  | % | 
| 200 |  |  | \definecolor{aqua}{rgb}{0,1,1} | 
| 201 |  |  | \definecolor{darkgray}{gray}{.25} | 
| 202 |  |  | \definecolor{fuchsia}{rgb}{1,0,1} | 
| 203 |  |  | \definecolor{gray}{gray}{.5} | 
| 204 |  |  | \definecolor{lightgray}{gray}{.75} | 
| 205 |  |  | \definecolor{lime}{rgb}{0,.5,.5} | 
| 206 |  |  | \definecolor{maroon}{rgb}{.5,0,0} | 
| 207 |  |  | \definecolor{navy}{rgb}{0,0,.5} | 
| 208 |  |  | \definecolor{olive}{rgb}{.5,.5,0} | 
| 209 |  |  | \definecolor{purple}{rgb}{.5,0,.5} | 
| 210 |  |  | \definecolor{silver}{gray}{.75} | 
| 211 |  |  | \definecolor{teal}{rgb}{0,.5,.5} | 
| 212 |  |  | % | 
| 213 |  |  | % SYNTAX: \backgroundcolor{color} | 
| 214 |  |  | % | 
| 215 |  |  | \def\backgroundcolor{\pagecolor} | 
| 216 |  |  | % | 
| 217 |  |  | %% -------------------------------------------------------------------- | 
| 218 |  |  | %% Features | 
| 219 |  |  | %% -------------------------------------------------------------------- | 
| 220 |  |  | % | 
| 221 |  |  | % SYNTAX: \ProvidesFeature{featureName}{majorVersion}{minorVersion} | 
| 222 |  |  | % | 
| 223 |  |  | \def\ProvidesFeature#1#2#3{} | 
| 224 |  |  | % | 
| 225 |  |  | % SYNTAX: \RequiresFeature{featureName}{majorVersion}{minorVersion} {missingFeatureText}{oldVersionText} | 
| 226 |  |  | % | 
| 227 |  |  | \def\RequiresFeature#1#2#3#4#5{} | 
| 228 |  |  | % | 
| 229 |  |  | %% -------------------------------------------------------------------- | 
| 230 |  |  | %% Menus | 
| 231 |  |  | %% -------------------------------------------------------------------- | 
| 232 |  |  | % | 
| 233 |  |  | % SYNTAX: \newmenu{menuName}{menuDefinition} | 
| 234 |  |  | % | 
| 235 |  |  | \def\newmenu#1#2{} | 
| 236 |  |  | % | 
| 237 |  |  | % SYNTAX: \usemenu{menuName}{text} | 
| 238 |  |  | % | 
| 239 |  |  | \def\usemenu#1#2{#2} | 
| 240 |  |  | % | 
| 241 |  |  | %% -------------------------------------------------------------------- | 
| 242 |  |  | %% Multimedia | 
| 243 |  |  | %% -------------------------------------------------------------------- | 
| 244 |  |  | % | 
| 245 |  |  | % SYNTAX: \backgroundimage{url} | 
| 246 |  |  | % | 
| 247 |  |  | \def\backgroundimage#1{} | 
| 248 |  |  | % | 
| 249 |  |  | % SYNTAX: \backgroundsound{url} | 
| 250 |  |  | % | 
| 251 |  |  | \def\backgroundsound#1{} | 
| 252 |  |  | % | 
| 253 |  |  | % SYNTAX: \includeaudio{url} | 
| 254 |  |  | % | 
| 255 |  |  | \def\includeaudio#1{} | 
| 256 |  |  | % | 
| 257 |  |  | % SYNTAX: \includevideo[x][y]{autostart}{altText}{url} | 
| 258 |  |  | % | 
| 259 |  |  | %begin{latexonly} | 
| 260 |  |  | \def\includevideo{\@ifnextchar[%] | 
| 261 |  |  | {\@xincludevideo}{\@includevideo}} | 
| 262 |  |  | \def\@xincludevideo[#1]{\@ifnextchar[%] | 
| 263 |  |  | {\@xyincludevideo}{\@includevideo}} | 
| 264 |  |  | \def\@xyincludevideo[#1]{\@includevideo} | 
| 265 |  |  | \def\@includevideo#1#2#3{\fbox{#2}} | 
| 266 |  |  | %end{latexonly} | 
| 267 |  |  | \providecommand{\includevideo}[1][]{\xincludevideo} | 
| 268 |  |  | %begin{latexonly} | 
| 269 |  |  | \newcommand{\xincludevideo}[4][]{\fbox{#2}} | 
| 270 |  |  | %end{latexonly} | 
| 271 |  |  | \providecommand{\xincludevideo}[4][]{\htmladdnormallink{\fbox{#3}}{#4}} | 
| 272 |  |  | % | 
| 273 |  |  | %% -------------------------------------------------------------------- | 
| 274 |  |  | %% Miscellaneous | 
| 275 |  |  | %% -------------------------------------------------------------------- | 
| 276 |  |  | % | 
| 277 |  |  | \def\bibfile#1{} | 
| 278 |  |  | \def\inputonce{\input} | 
| 279 |  |  | \def\nocaret{} | 
| 280 |  |  | \def\TrueTypeTextFont#1{} | 
| 281 |  |  | \def\windowTitle#1{} | 
| 282 |  |  | % | 
| 283 |  |  | \setcounter{secnumdepth}{0} | 
| 284 |  |  | % | 
| 285 |  |  | %% -------------------------------------------------------------------- | 
| 286 |  |  | %% Not done yet | 
| 287 |  |  | %% -------------------------------------------------------------------- | 
| 288 |  |  | % | 
| 289 |  |  | % dirlist environment: hack for now | 
| 290 |  |  | %begin{latexonly} | 
| 291 |  |  | \def\dirlist{\@ifnextchar[%] | 
| 292 |  |  | {\@odirlist}{\@dirlist}} | 
| 293 |  |  | \def\@odirlist[#1]{\@dirlist} | 
| 294 |  |  | \def\@dirlist{\begin{array}} | 
| 295 |  |  | \def\enddirlist{\end{array}} | 
| 296 |  |  | %end{latexonly} | 
| 297 |  |  | \renewenvironment{dirlist}[1][]{\begin{array}}{\end{array}} |