%****************************************************************** % $Id: htcweb.sty,v 1.2 1999/04/09 19:25:34 JCL Exp $ %****************************************************************** % % Copyright 1998-1999 by Jens Lippmann (lippmann@rbg.informatik.tu-darmstadt.de) % % Permission to use, copy, modify, and distribute this software for any % purpose and without fee is hereby granted, provided that the above % copyright notice appears in all copies. This software is provided "as is" % and without any express or implied warranties. % %****************************************************************** % htcweb.tex, htcweb.sty % Macros for alternative CWEB listings to use with LaTeX2HTML % extends original file: hywebmac.tex or cwebmac.tex, depending % on \HTCwebmode value which is preset at the beginning of the document. % See also htcweb.perl, the perl translation of this file's and % hywebmac.tex's resp. cwebmac.tex's macros. % See also ProcessCwebTex, the Perl script to convert weaved documents % into parsable shape for LaTeX2HTML. %****************************************************************** %% Prevent multi-input \ifx\HTCwebstyloaded\relax\endinput\else\let\HTCwebstyloaded\relax\fi \def\HTCwebmodecweb{cweb} \def\HTCwebmodehyweb{hyweb} \expandafter\ifx\csname HTCwebmode\endcsname\relax \expandafter\ifx\csname HyTeXSetUp\endcsname\relax \def\HTCwebmode{cweb}\else \def\HTCwebmode{hyweb}\fi\fi \ifx\HTCwebmode\HTCwebmodecweb % We are able to work with Schrod's cweb-sty only. % CWEB's cwebmac does exactly nothing with LaTeX, but let's input it. % Schrod defines CWEB's bindings elsewhere (in cweb.sty resp. % cweb.cls), and doesn't set CWEB's special chars. We do it here. \input cwebmac \chardef\AM=`\& % ampersand character in a string \chardef\BS=`\\ % backslash in a string \chardef\LB=`\{ % left brace in a string \chardef\RB=`\} % right brace in a string \def\SP{{\tt\char`\ }} % (visible) space in a string \chardef\TL=`\~ % tilde in a string \chardef\UL=`\_ % underline character in a string \chardef\CF=`\^ % circumflex character in a string \def\oct{\hbox{$^\circ$\kern-.1em\it\aftergroup\?\aftergroup}}% CWEB style \def\hex{\hbox{$^{\scriptscriptstyle\#}$\tt\aftergroup}} % CWEB style \fi \ifx\HTCwebmode\HTCwebmodehyweb % Get the original LaTeX macros, then introduce simpler macro names. % The \sbox stuff is a workaround to get LaTeX 2e run with hywebmac.tex \let\HTCwebsavesbox\sbox \input hywebmac \let\HTCwebsaveoldsbox\sbox \let\sbox\HTCwebsavesbox \fi \makeatletter % Name: @HTCwebnoderef @HTCwebpretty % Interface: internal % Synopsis: % @HTCwebnoderef