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

通讯编程

开发平台:

Visual C++

  1. RequirePackage{ifthen}
  2. RequirePackage{html}
  3. RequirePackage{alltt}
  4. RequirePackage{tabularx}
  5. renewcommand{arraystretch}{1.2}
  6. ifx@noresizetrueundefined
  7. RequirePackage[dvips]{graphicx}
  8. DeclareGraphicsExtensions{.eps, .ps, .epsf}
  9. graphicspath{
  10.   {./}
  11.   {./figures/}
  12.   {./sl-figures/}
  13.   {../sl-figures/}
  14.   }
  15. evensidemargin       -15pt
  16. oddsidemargin        -15pt
  17. topmargin            -20pt
  18. leftmargin           30pt
  19. rightmargin          30pt
  20. textwidth            6.9in
  21. textheight           9.0in
  22. parindent            0pt
  23. parskip              12pt
  24. marginparwidth       1cm
  25. message{resize completed}
  26. fi
  27. RequirePackage{pstricks,pst-node}
  28. RequirePackage{longtable}
  29. renewcommand{topfraction}{0.9}
  30. renewcommand{floatpagefraction}{0.9}
  31. renewcommand{textfraction}{0.05}
  32. % Run the toc tighter:
  33. def@starttoc#1{begingroup
  34.   makeatletter
  35.   parskipz@@plusp@relax         % <----
  36.   @input{jobname.#1}if@filesw
  37.   expandafternewwritecsname tf@#1endcsname
  38.           immediateopenout
  39.                   csname tf@#1endcsname jobname.#1relax
  40.   fi global@nobreakfalseendgroup%
  41. }
  42. defnam{emph{nam}}
  43. defnamf{textasciitildenam/}
  44. defnsTcl{emph{ns/tclcl}}
  45. defns{emph{ns}}
  46. defrtglib{textsl{rtglib}}
  47. defnsf{textasciitildens/}
  48. defTclf{textasciitildeemph{tclcl}/}
  49. deftup#1{(langle)#1(rangle)}
  50. %newifif@mmode
  51. defcode{bgroup%ifmmode@mmodetrueleavemmodeelse@mmodefalsefi%
  52.   catcode`#=11catcode`_=11catcode`$=11catcode`&=11relax@code}
  53. def@code#1{ttfamily #1egroup}
  54. defpr@c[#1]#2{code{#2}{#1}}
  55. defproc{@ifnextchar[{pr@c}{pr@c[]}}
  56. deff@cn[#1]#2{code{#2}(#1)}
  57. deffcn{@ifnextchar[{f@cn}{f@cn[void]}}
  58. deffcnref#1#2#3{htmladdnormallink{#1}{#2.html##3}}
  59. defclsref#1#2{htmladdnormallink{code{class #1}}{#2.html##class#1}}
  60. defstructref#1#2{htmladdnormallink{code{struct #1}}{#2.html##struct#1}}
  61. defshdr#1#2#3{htmladdnormallink{#1}{#2}label{#3}}
  62. %%%
  63. %%% Mixed hyperref: use as href{string}{Section}{label}
  64. %%% Typesets as ``string (Section~ref{label})'' in plain LaTeX, and
  65. %%% as  ``string'', and links to label in latex2html.
  66. %%%
  67. newcommand{href}[3]{hyperref{#1}{#1 (#2~}{)}{#3}}
  68. newcommand{xref}{htmladdnormallink}
  69. % Define some convenient environments
  70. defcf{rmfamilyitshape}
  71. defprogram{bgroup%
  72.   def;##1;{hfill;#{cf ##1}}%
  73.   def*##1*/{hfill/*{cf ##1}*/}%
  74.   alltt%
  75.   defbs{ifmmodebackslashelse(backslash)fi}%
  76. }
  77. defendprogram{endallttegroup}
  78. defalist{partabularx{textwidth}{rX}}
  79. defendalist{endtabularxpar}
  80. defzerolistvertdimens{parskip0pttopsep0ptpartopsep0ptparsep0ptitemsep0pt}
  81. defie{textit{i.e.}}
  82. defeg{textit{e.g.}}
  83. defetc{textit{etc}}
  84. defetal{textit{et,al}}
  85. defvia{textit{via}}
  86. defviz{textit{viz.}}
  87. deftimestring{begingroup     % stolen from eplain.tex
  88.    count0 = time
  89.    dividecount0 by 60
  90.    count2 = count0   % The hour, from zero to 23.
  91.    count4 = time
  92.    multiplycount0 by 60
  93.    advancecount4 by -count0   % The minute, from zero to 59.
  94.    ifnumcount4<10
  95.       toks1 = {0}%
  96.    else
  97.       toks1 = {}%
  98.    fi
  99.    ifnumcount2<12
  100.       toks0 = {a.m.}%
  101.    else
  102.       toks0 = {p.m.}%
  103.       advancecount2 by -12
  104.    fi
  105.    ifnumcount2=0
  106.       count2 = 12
  107.    fi
  108.    numbercount2:thetoks1 numbercount4 thinspace thetoks0
  109. endgroup}%
  110. ifxtodayundefined
  111.         deftoday{ifcasemonth
  112.           or Januaryor Februaryor Marchor Aprilor Mayor June
  113.           or Julyor Augustor Septemberor Octoberor Novemberor December
  114.           fi spacenumberday, numberyear}
  115. fi
  116. deftimestamp{Version: timestringquadtoday}
  117. newifif@draft@draftfalse
  118. AtEndOfPackage{
  119.   if@draft
  120.     %deftoday{Version: timestamp}
  121.     gdef@oddhead{footnotesizermhfiltextbf{DRAFT}enspacetimestamp}
  122.     gdef@evenhead{footnotesizermhfiltextbf{DRAFT}enspacetimestamp}
  123.     RequirePackage[notref]{showkeys}
  124. %    RequirePackage[english,firsttwo,light]{draftcopy}
  125.   else
  126.     gdeftimestamp{today}
  127.   fi
  128. }
  129. DeclareOption{draft}{@drafttrue}
  130. ExecuteOptions{}
  131. ProcessOptions
  132. endinput
  133. ### Local Variables:
  134. ### mode: latex
  135. ### comment-column: 60
  136. ### backup-by-copying-when-linked: t
  137. ### file-precious-flag: nil
  138. ### End:
  139. #LaTeX2HTML Version 96.1 : dot.latex2html-init
  140. #
  141. $MAX_SPLIT_DEPTH = 2;                           #$
  142. $MAX_LINK_DEPTH = 2;                            #$
  143. $BOTTOM_NAVIGATION = 1;                         #$
  144. #
  145. # The LaTeXe commands
  146. #
  147. sub do_cmd_textasciitilde {
  148.     join('', '~', $_[0]);                      #$
  149. }
  150. #
  151. # Some from the ifthen package
  152. #
  153. sub do_cmd_equal {
  154.     local($_) = @_;                             #$
  155.     s/$next_pair_pr_rx//o;                      #$
  156.     local($a) = $&;
  157.     $a =~ s/$1//g;
  158.     s/$next_pair_pr_rx//o;                      #$
  159.     local($b) = $&;
  160.     $b =~ s/$1//g;
  161.     join('', ($a eq $b ? 1 : 0), $_);
  162. }
  163. sub do_cmd_ifthenelse {
  164.     local($_) = @_;                             #$
  165.     s/$next_pair_pr_rx//o;                      #$
  166.     local($a) = $&;
  167.     $a =~ s/<#$1#>//g;
  168.     s/$next_pair_pr_rx//o;                      #$
  169.     local($then) = $&;
  170.     s/$next_pair_pr_rx//o;                      #$
  171.     local($else) = $&;
  172.     join('', ($a eq 1 ? $then : $else), $_);
  173. }
  174. sub do_cmd_tup {
  175.     local($_) = @_;                             #$
  176.     local($rest) = $_;
  177.     $rest =~ s/$next_pair_pr_rx//o;
  178.     join('', '&lt;', $&, '&gt;', $rest);
  179. }
  180. sub do_cmd_danger {
  181.     join('', '<IMG ALIGN=LEFT ALT="DANGER" SRC="../images/dbend.gif">', $_[0]);
  182. }                                               #$
  183. &ignore_commands (<<_IGNORED_CMDS_);
  184. closedanger
  185. font
  186. manual
  187. endgroup
  188. endgraf
  189. _IGNORED_CMDS_
  190. sub top_navigation_panel {
  191.     "$CONTENTS $PREVIOUS_GROUP $PREVIOUS $UP $NEXT $NEXT_GROUP $INDEX"; #$
  192. }
  193. sub bot_navigation_panel {
  194. '<hr>List of Indices
  195. <ul>
  196. <li> <a href=../ns/CClassIndex.html>C++ classes in <em>ns</em></a>
  197. <li> <a href=../ns/CFuncIndex.html>C++ functions in <em>ns</em></a>
  198. <li> <a href=../ns/TclClassIndex.html>Tcl classes in <em>ns</em></a>
  199. <li> <a href=../ns/TclProcIndex.html>Tcl procedures in <em>ns</em></a>
  200. <li> <a href=../Tcl/CClassIndex.html>C++ classes in <em>ns/Tcl</em></a>
  201. <li> <a href=../Tcl/CFuncIndex.html>C++ functions in <em>ns/Tcl</em></a>
  202. <li> <a href=../Tcl/TclClassIndex.html>Tcl classes in <em>ns/Tcl</em></a>
  203. <li> <a href=../Tcl/TclProcIndex.html>Tcl procedures in <em>ns/Tcl</em></a>
  204. </ul><P>
  205. <a href=../ns.html>The main <em>ns</em> page</a>
  206. ';
  207. }
  208. ### Local Variables:
  209. ### mode: perl
  210. ### comment-column: 60
  211. ### backup-by-copying-when-linked: t
  212. ### file-precious-flag: nil
  213. ### End:
  214. 1;      # This must be the last line