nsheader.tex
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:2k
源码类别:

通讯编程

开发平台:

Visual C++

  1. evensidemargin       -15pt
  2. oddsidemargin        -15pt
  3. topmargin            -20pt
  4. leftmargin           30pt
  5. rightmargin          30pt
  6. textwidth            6.9in
  7. textheight           9.0in
  8. parindent            0pt
  9. parskip              12pt
  10. marginparwidth       1cm
  11. deftextasciitilde{~}
  12. newcommand{nsTcl}{emph{ns/Tcl}}
  13. newcommand{ns}{emph{ns}}
  14. newcommand{nTcl}{emph{Tcl}}
  15. newcommand{Tcl}{``Tcl''}
  16. newcommand{OTcl}{``OTcl''}
  17. newcommand{TclProg}{emph{Tcl}}
  18. newcommand{OTclProg}{emph{OTcl}}
  19. newcommand{nsf}[1]{textasciitildens/#1}
  20. newcommand{Tclf}[1]{textasciitildenTcl/#1}
  21. newcommand{tup}[1]{$langle$#1$rangle$}
  22. newcommand{code}[1]{texttt{#1}}
  23. % function ref:  use as fref[optional args]{filename}{function}
  24. % Typesets as ``function(optional args)'', and links
  25. % filename.html#function
  26. %
  27. newcommand{fref}[3][void]{ifthenelse{equal{#1}{void}}{%
  28.     htmladdnormallink{code{#3}()}{#2.html##3}}{%
  29.     htmladdnormallink{code{#3}(#1)}{#2.html##3}}}
  30. %
  31. % procedure ref: use as pref{filename}{class}{method}
  32. % Typesers as ``code{method}'', and links filename.html#class::method
  33. %
  34. newcommand{pref}[3]{htmladdnormallink{code{#3}}{#1.html##2::#3}}
  35. %
  36. % class ref: use as cref[class|struct]{filename}{ClassName}
  37. % Typesets as ``class|struct ClassName'', and links
  38. % filename.html#classClassName
  39. %
  40. newcommand{cref}[3][class]{htmladdnormallink{#1 #3}{#2.html##1#3}}
  41. %
  42. % Arbitrary ref: use as aref{string}{file}{method}
  43. % Typesets as: ``string'', and links file::method.
  44. %
  45. newcommand{aref}[3]{htmladdnormallink{#1}{#2.html##3}}
  46. %
  47. % Mixed hyperref: use as href{string}{Section}{label}
  48. % Typesets as ``string (Section~ref{label})'' in plain LaTeX, and
  49. % as  ``string'', and links to label in latex2html.
  50. %
  51. newcommand{href}[3]{hyperref{#1}{#1 (#2~}{)}{#3}}
  52. %
  53. % short form ref for htmladdnormallink, use as xref{arg}{link},
  54. % Typesets as: ``arg'', with links to link.
  55. %
  56. newcommand{xref}[2]{htmladdnormallink{#1}{#2}}
  57. newcommand{ie}{textit{i.e.}}
  58. newcommand{etc}{textit{etc}}
  59. makeatletter
  60. fontmanual=manfnt
  61. defdbend{{manualchar127}}
  62. defd@nger{medbreakbegingroupclubpenalty=10000
  63.   defpar{endgrafendgroupmedbreak} noindenthangindent3pchangafter=-2
  64.   hbox to0pt{hskip-hangindentdbendhfill}normalfont}
  65. defdanger{d@nger}
  66. defclosedanger{endgrafendgroup}
  67. makeatother