1% $Id: linkex2.w,v 1.2 1999/10/15 22:02:26 JCL Exp $ 2 3\documentclass{cweb} 4 5%begin{latexonly} 6% This is a fix to not upset html.sty about missing sectioning commands: 7\let\subsection\null\let\subsubsection\null\let\paragraph\null 8%end{latexonly} 9\usepackage{html} 10 11% This command also turns on the special treatment of refinement names 12% such as writing them to the label file. 13\HTCweblabels{dvi.obj/linkex1,dvi.obj/linkex2}{html.obj/linkex1,html.obj/linkex2} 14 15\def\CWEB{{\tt CWEB\/}} 16 17\begin{document} 18\title{An Example of Linked \CWEB{} Documents} 19\author{Jens Lippmann} 20\date{22 Feb 98} 21\maketitle 22 23 24 25@* Example of linked \CWEB{} documents (2/2). 26 27For the description of this example, see |@<linkex1.w@>|. 28 29@c 30@<linkex2 includes@>@/ 31@<linkex2 main()@>@/ 32 33@ 34See also the include files used in |@<linkex1 includes@>|. 35@<linkex2 includes@>= 36#include <stdio.h> 37 38@ 39See also the main function as defined in |@<linkex1 main()@>|. 40@<linkex2 main()@>= 41int main() 42{ 43 printf("%d*%d?\n",7,4); 44 exit(0); 45} 46 47 48@ 49\end{document} 50 51 52%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 53% 54% $Log: linkex2.w,v $ 55% Revision 1.2 1999/10/15 22:02:26 JCL 56% added latexonly sequence that defines \sub...section and \paragraph \null to make html.sty happy 57% 58% Revision 1.1 1998/02/24 02:29:53 latex2html 59% for 98.1 60% 61% 62