nsdoc.sty
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:6k
- RequirePackage{ifthen}
- RequirePackage{html}
- RequirePackage{alltt}
- RequirePackage{tabularx}
- renewcommand{arraystretch}{1.2}
- ifx@noresizetrueundefined
- RequirePackage[dvips]{graphicx}
- DeclareGraphicsExtensions{.eps, .ps, .epsf}
- graphicspath{
- {./}
- {./figures/}
- {./sl-figures/}
- {../sl-figures/}
- }
- evensidemargin -15pt
- oddsidemargin -15pt
- topmargin -20pt
- leftmargin 30pt
- rightmargin 30pt
- textwidth 6.9in
- textheight 9.0in
- parindent 0pt
- parskip 12pt
- marginparwidth 1cm
- message{resize completed}
- fi
- RequirePackage{pstricks,pst-node}
- RequirePackage{longtable}
- renewcommand{topfraction}{0.9}
- renewcommand{floatpagefraction}{0.9}
- renewcommand{textfraction}{0.05}
- % Run the toc tighter:
- def@starttoc#1{begingroup
- makeatletter
- parskipz@@plusp@relax % <----
- @input{jobname.#1}if@filesw
- expandafternewwritecsname tf@#1endcsname
- immediateopenout
- csname tf@#1endcsname jobname.#1relax
- fi global@nobreakfalseendgroup%
- }
- defnam{emph{nam}}
- defnamf{textasciitildenam/}
- defnsTcl{emph{ns/tclcl}}
- defns{emph{ns}}
- defrtglib{textsl{rtglib}}
- defnsf{textasciitildens/}
- defTclf{textasciitildeemph{tclcl}/}
- deftup#1{(langle)#1(rangle)}
- %newifif@mmode
- defcode{bgroup%ifmmode@mmodetrueleavemmodeelse@mmodefalsefi%
- catcode`#=11catcode`_=11catcode`$=11catcode`&=11relax@code}
- def@code#1{ttfamily #1egroup}
- defpr@c[#1]#2{code{#2}{#1}}
- defproc{@ifnextchar[{pr@c}{pr@c[]}}
- deff@cn[#1]#2{code{#2}(#1)}
- deffcn{@ifnextchar[{f@cn}{f@cn[void]}}
- deffcnref#1#2#3{htmladdnormallink{#1}{#2.html##3}}
- defclsref#1#2{htmladdnormallink{code{class #1}}{#2.html##class#1}}
- defstructref#1#2{htmladdnormallink{code{struct #1}}{#2.html##struct#1}}
- defshdr#1#2#3{htmladdnormallink{#1}{#2}label{#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}}
- newcommand{xref}{htmladdnormallink}
- % Define some convenient environments
- defcf{rmfamilyitshape}
- defprogram{bgroup%
- def;##1;{hfill;#{cf ##1}}%
- def*##1*/{hfill/*{cf ##1}*/}%
- alltt%
- defbs{ifmmodebackslashelse(backslash)fi}%
- }
- defendprogram{endallttegroup}
- defalist{partabularx{textwidth}{rX}}
- defendalist{endtabularxpar}
- defzerolistvertdimens{parskip0pttopsep0ptpartopsep0ptparsep0ptitemsep0pt}
- defie{textit{i.e.}}
- defeg{textit{e.g.}}
- defetc{textit{etc}}
- defetal{textit{et,al}}
- defvia{textit{via}}
- defviz{textit{viz.}}
- deftimestring{begingroup % stolen from eplain.tex
- count0 = time
- dividecount0 by 60
- count2 = count0 % The hour, from zero to 23.
- count4 = time
- multiplycount0 by 60
- advancecount4 by -count0 % The minute, from zero to 59.
- ifnumcount4<10
- toks1 = {0}%
- else
- toks1 = {}%
- fi
- ifnumcount2<12
- toks0 = {a.m.}%
- else
- toks0 = {p.m.}%
- advancecount2 by -12
- fi
- ifnumcount2=0
- count2 = 12
- fi
- numbercount2:thetoks1 numbercount4 thinspace thetoks0
- endgroup}%
- ifxtodayundefined
- deftoday{ifcasemonth
- or Januaryor Februaryor Marchor Aprilor Mayor June
- or Julyor Augustor Septemberor Octoberor Novemberor December
- fi spacenumberday, numberyear}
- fi
- deftimestamp{Version: timestringquadtoday}
- newifif@draft@draftfalse
- AtEndOfPackage{
- if@draft
- %deftoday{Version: timestamp}
- gdef@oddhead{footnotesizermhfiltextbf{DRAFT}enspacetimestamp}
- gdef@evenhead{footnotesizermhfiltextbf{DRAFT}enspacetimestamp}
- RequirePackage[notref]{showkeys}
- % RequirePackage[english,firsttwo,light]{draftcopy}
- else
- gdeftimestamp{today}
- fi
- }
- DeclareOption{draft}{@drafttrue}
- ExecuteOptions{}
- ProcessOptions
- endinput
- ### Local Variables:
- ### mode: latex
- ### comment-column: 60
- ### backup-by-copying-when-linked: t
- ### file-precious-flag: nil
- ### End:
- #LaTeX2HTML Version 96.1 : dot.latex2html-init
- #
- $MAX_SPLIT_DEPTH = 2; #$
- $MAX_LINK_DEPTH = 2; #$
- $BOTTOM_NAVIGATION = 1; #$
- #
- # The LaTeXe commands
- #
- sub do_cmd_textasciitilde {
- join('', '~', $_[0]); #$
- }
- #
- # Some from the ifthen package
- #
- sub do_cmd_equal {
- local($_) = @_; #$
- s/$next_pair_pr_rx//o; #$
- local($a) = $&;
- $a =~ s/$1//g;
- s/$next_pair_pr_rx//o; #$
- local($b) = $&;
- $b =~ s/$1//g;
- join('', ($a eq $b ? 1 : 0), $_);
- }
- sub do_cmd_ifthenelse {
- local($_) = @_; #$
- s/$next_pair_pr_rx//o; #$
- local($a) = $&;
- $a =~ s/<#$1#>//g;
- s/$next_pair_pr_rx//o; #$
- local($then) = $&;
- s/$next_pair_pr_rx//o; #$
- local($else) = $&;
- join('', ($a eq 1 ? $then : $else), $_);
- }
- sub do_cmd_tup {
- local($_) = @_; #$
- local($rest) = $_;
- $rest =~ s/$next_pair_pr_rx//o;
- join('', '<', $&, '>', $rest);
- }
- sub do_cmd_danger {
- join('', '<IMG ALIGN=LEFT ALT="DANGER" SRC="../images/dbend.gif">', $_[0]);
- } #$
- &ignore_commands (<<_IGNORED_CMDS_);
- closedanger
- font
- manual
- endgroup
- endgraf
- _IGNORED_CMDS_
- sub top_navigation_panel {
- "$CONTENTS $PREVIOUS_GROUP $PREVIOUS $UP $NEXT $NEXT_GROUP $INDEX"; #$
- }
- sub bot_navigation_panel {
- '<hr>List of Indices
- <ul>
- <li> <a href=../ns/CClassIndex.html>C++ classes in <em>ns</em></a>
- <li> <a href=../ns/CFuncIndex.html>C++ functions in <em>ns</em></a>
- <li> <a href=../ns/TclClassIndex.html>Tcl classes in <em>ns</em></a>
- <li> <a href=../ns/TclProcIndex.html>Tcl procedures in <em>ns</em></a>
- <li> <a href=../Tcl/CClassIndex.html>C++ classes in <em>ns/Tcl</em></a>
- <li> <a href=../Tcl/CFuncIndex.html>C++ functions in <em>ns/Tcl</em></a>
- <li> <a href=../Tcl/TclClassIndex.html>Tcl classes in <em>ns/Tcl</em></a>
- <li> <a href=../Tcl/TclProcIndex.html>Tcl procedures in <em>ns/Tcl</em></a>
- </ul><P>
- <a href=../ns.html>The main <em>ns</em> page</a>
- ';
- }
- ### Local Variables:
- ### mode: perl
- ### comment-column: 60
- ### backup-by-copying-when-linked: t
- ### file-precious-flag: nil
- ### End:
- 1; # This must be the last line