|
|
1.1 ! root 1: % LaTeX customization for NRTC ! 2: % ! 3: % 9/9/86 tpd ! 4: % 4/28/87 tpd ! 5: \makeatletter ! 6: % plain TeX compatibility ! 7: \def\oldstyle{\xdef\@oldstyle{\the\textfont\@ne}\mit\@oldstyle} ! 8: % Compatibility with NR-TeX ! 9: \def\smaller{\footnotesize} % smaller than small ! 10: \let\nfootnote=\footnote ! 11: \let\tell=\typeout ! 12: \def\implies{\quad\supset\ } ! 13: \def\tdots{\ldots\thinspace} ! 14: \let\bop=\newpage ! 15: \def\hbreak{\hfil\break} ! 16: \def\lp{\par\noindent} ! 17: \def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax} ! 18: \def\boxit#1{\fbox{\sc#1}} ! 19: % Draft Stuff ! 20: \newif\ifdraft \draftfalse ! 21: \def\draftstring{{\ifdraft \tt Draft\fi}} ! 22: \def\ds@DScustom{\ifdraft \@ifundefined{ds@draft}{}{\ds@draft}\fi} ! 23: % Extras ! 24: \newdimen\extra@wid \extra@wid=\z@ ! 25: \def\extra#1#2{% ! 26: \setbox\z@=\hbox{#2:\quad} ! 27: \ifnum\extra@wid<\wd\z@ \extra@wid=\wd\z@\fi ! 28: \def#1##1{% ! 29: \nobreak ! 30: \extra@skip ! 31: \vbox{% ! 32: \def\@filler{#2:\hfil\global\let\@filler=\empty}% ! 33: \let\\=\cr ! 34: \tabskip=\z@ ! 35: \halign{% ! 36: \hbox to\extra@wid{\@filler}\ignorespaces####\unskip\hfil\cr ! 37: ##1\cr ! 38: }% ! 39: }% ! 40: \nobreak ! 41: }% ! 42: } ! 43: \def\extra@skip{% ! 44: \vskip 2\baselineskip ! 45: \def\extra@skip{\vskip .15in}% ! 46: } ! 47: % Miscellany ! 48: \def\bigquote#1\endbigquote{% ! 49: \begin{quote} ! 50: \noindent\llap{``}\ignorespaces#1\unskip'' ! 51: \end{quote} ! 52: } ! 53: % Double Spacing Macro ! 54: \def\doublespace{ ! 55: \baselineskip=2\baselinestretch pt ! 56: } ! 57: \def\NRAA{\leavevmode\setbox0\hbox{h}\dimen@\ht0\advance\dimen@-1ex% ! 58: \rlap{\kern+.45ex\raise.67\dimen@\hbox{\char'27}}A} ! 59: \newcommand{\NRdF}{$^\circ$F} %degrees fahrenheit ! 60: \newcommand{\NRdC}{$^\circ$C} %degrees centigrade ! 61: % ! 62: % ! 63: % Definition for Footnote style ! 64: % ! 65: \def\footnotenumbering#1{% ! 66: \global\c@footnote \z@% ! 67: \gdef\thefootnote{\csname @#1\endcsname \c@footnote}% ! 68: }% ! 69: % ! 70: % Definition for Figure style ! 71: % ! 72: \def\figurenumbering#1{% ! 73: \global\c@figure \z@% ! 74: \gdef\thefigure{\csname @#1\endcsname \c@figure}% ! 75: }% ! 76: % ! 77: \def\nextfigure{% ! 78: \addtocounter{figure}{1}\thefigure\addtocounter{figure}{-1}% ! 79: }% ! 80: % ! 81: \def\NRcaption#1{% ! 82: \caption{\protect\parbox[t]{4.5in}{#1}}% ! 83: }% ! 84: % ! 85: % figure commands ! 86: % ! 87: \@ifundefined{fps@figure}{}{ ! 88: \setcounter{topnumber}{5} ! 89: \setcounter{bottomnumber}{5} ! 90: \setcounter{totalnumber}{10} ! 91: \renewcommand{\fps@figure}{hbtp} ! 92: \renewcommand{\topfraction}{.95} ! 93: \renewcommand{\bottomfraction}{.95} ! 94: \renewcommand{\textfraction}{.05} ! 95: \renewcommand{\floatpagefraction}{.95} ! 96: } ! 97: % ! 98: % Definition for Custom headings style ! 99: % ! 100: \def\NRoddhead#1{% ! 101: \def\@oddhead{#1}% ! 102: }% ! 103: % ! 104: \def\NRevenhead#1{% ! 105: \def\@evenhead{#1}% ! 106: }% ! 107: % ! 108: \def\NRhead#1{% ! 109: \def\@oddhead{#1}\def\@evenhead{#1}% ! 110: }% ! 111: % ! 112: % Footers ! 113: % ! 114: \def\NRoddfoot#1{% ! 115: \def\@oddfoot{#1}% ! 116: }% ! 117: % ! 118: \def\NRevenfoot#1{% ! 119: \def\@evenfoot{#1}% ! 120: }% ! 121: % ! 122: \def\NRfoot#1{% ! 123: \def\@oddfoot{#1}% ! 124: }% ! 125: % ! 126: % Modify Part/Chapter/Section/Subsection/SubSubSection/Paragraph/ ! 127: % SubParagraph ! 128: % ! 129: \makeatother
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.