File: nsheader.tex

package info (click to toggle)
ns2 2.35%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 78,780 kB
  • ctags: 27,490
  • sloc: cpp: 172,923; tcl: 107,130; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 816; awk: 525; csh: 355
file content (73 lines) | stat: -rw-r--r-- 2,360 bytes parent folder | download | duplicates (8)
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
\evensidemargin       -15pt
\oddsidemargin        -15pt
\topmargin            -20pt
\leftmargin           30pt
\rightmargin          30pt
\textwidth            6.9in
\textheight           9.0in
\parindent            0pt
\parskip              12pt
\marginparwidth       1cm

\def\textasciitilde{\~}
\newcommand{\nsTcl}{\emph{ns/Tcl}}
\newcommand{\ns}{\emph{ns}}
\newcommand{\nTcl}{\emph{Tcl}}
\newcommand{\Tcl}{``Tcl''}
\newcommand{\OTcl}{``OTcl''}
\newcommand{\TclProg}{\emph{Tcl}}
\newcommand{\OTclProg}{\emph{OTcl}}
\newcommand{\nsf}[1]{\textasciitilde\ns/#1}
\newcommand{\Tclf}[1]{\textasciitilde\nTcl/#1}

\newcommand{\tup}[1]{$\langle$#1$\rangle$}
\newcommand{\code}[1]{\texttt{#1}}

% function ref:  use as \fref[optional args]{filename}{function}
% Typesets as ``function(optional args)'', and links
% filename.html#function
%
\newcommand{\fref}[3][void]{\ifthenelse{\equal{#1}{void}}{%
    \htmladdnormallink{\code{#3}()}{#2.html##3}}{%
    \htmladdnormallink{\code{#3}(#1)}{#2.html##3}}}
%
% procedure ref: use as \pref{filename}{class}{method}
% Typesers as ``\code{method}'', and links filename.html#class::method
%
\newcommand{\pref}[3]{\htmladdnormallink{\code{#3}}{#1.html##2::#3}}
%
% class ref: use as \cref[class|struct]{filename}{ClassName}
% Typesets as ``class|struct ClassName'', and links
% filename.html#classClassName
%
\newcommand{\cref}[3][class]{\htmladdnormallink{#1 #3}{#2.html##1#3}}
%
% Arbitrary ref: use as \aref{string}{file}{method}
% Typesets as: ``string'', and links file::method.
%
\newcommand{\aref}[3]{\htmladdnormallink{#1}{#2.html##3}}
%
% Mixed hyperref: use as \href{string}{Section}{label}
% Typesets as ``string (Section~\ref{label})'' in plain \LaTeX, and
% as  ``string'', and links to label in latex2html.
%
\newcommand{\href}[3]{\hyperref{#1}{#1 (#2~}{)}{#3}}
%
% short form ref for htmladdnormallink, use as \xref{arg}{link},
% Typesets as: ``arg'', with links to link.
%
\newcommand{\xref}[2]{\htmladdnormallink{#1}{#2}}

\newcommand{\ie}{\textit{i.e.}}
\newcommand{\etc}{\textit{etc}}

\makeatletter
\font\manual=manfnt
\def\dbend{{\manual\char127}}
\def\d@nger{\medbreak\begingroup\clubpenalty=10000
  \def\par{\endgraf\endgroup\medbreak} \noindent\hangindent3pc\hangafter=-2
  \hbox to0pt{\hskip-\hangindent\dbend\hfill}\normalfont}
\def\danger{\d@nger}
\def\closedanger{\endgraf\endgroup}
\makeatother