File: linkex2.w

package info (click to toggle)
latex2html 2002-2-1-20050114-6
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 6,936 kB
  • ctags: 3,335
  • sloc: perl: 32,029; makefile: 828; sh: 234
file content (61 lines) | stat: -rw-r--r-- 1,323 bytes parent folder | download | duplicates (5)
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
% $Id: linkex2.w,v 1.2 1999/10/15 22:02:26 JCL Exp $

\documentclass{cweb}

%begin{latexonly}
% This is a fix to not upset html.sty about missing sectioning commands:
\let\subsection\null\let\subsubsection\null\let\paragraph\null
%end{latexonly}
\usepackage{html}

% This command also turns on the special treatment of refinement names
% such as writing them to the label file.
\HTCweblabels{dvi.obj/linkex1,dvi.obj/linkex2}{html.obj/linkex1,html.obj/linkex2}

\def\CWEB{{\tt CWEB\/}}

\begin{document}
\title{An Example of Linked \CWEB{} Documents}
\author{Jens Lippmann}
\date{22 Feb 98}
\maketitle



@* Example of linked \CWEB{} documents (2/2).

For the description of this example, see |@<linkex1.w@>|.

@c
@<linkex2 includes@>@/
@<linkex2 main()@>@/

@
See also the include files used in |@<linkex1 includes@>|.
@<linkex2 includes@>=
#include <stdio.h>

@
See also the main function as defined in |@<linkex1 main()@>|.
@<linkex2 main()@>=
int main()
{
    printf("%d*%d?\n",7,4);
    exit(0);
}


@
\end{document}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% $Log: linkex2.w,v $
% Revision 1.2  1999/10/15 22:02:26  JCL
% added latexonly sequence that defines \sub...section and \paragraph \null to make html.sty happy
%
% Revision 1.1  1998/02/24 02:29:53  latex2html
% for 98.1
%
%