home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / tex / inputs.sit / TeX-inputs / uacs.sty < prev    next >
Encoding:
Text File  |  1989-09-18  |  3.2 KB  |  110 lines  |  [TEXT/????]

  1. %
  2. % "uacs" document style option.
  3. %  October 30 1987
  4. % Peter Abbott Aston University Computing Service
  5. %
  6. % Redefines the parameters for Aston `house' style
  7. \typeout{Aston          Computing Service <6 May 1988>}
  8. \topmargin 0pt
  9. \headheight 0pt
  10. \headsep 0pt
  11. \textheight 702pt
  12. \oddsidemargin 10pt
  13. \evensidemargin 10pt
  14. \textwidth 432pt
  15. \parskip 8pt
  16. \parindent 0pt
  17.  
  18.  
  19. \mark{{}{}}
  20.  
  21. \if@twoside \def\ps@headings{\let\@mkboth\markboth
  22. \def\@oddfoot{\hfil \rm \thepage\hfil \rightmark}
  23. \def\@evenfoot{\@oddfoot}\def\@evenhead{}\def\@oddhead{}
  24. \def\sectionmark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
  25. >\z@
  26.  \thesection\hskip 1em\relax \fi ##1}}{}}\def\subsectionmark##1{\markright
  27. {\ifnum \c@secnumdepth >\@ne
  28.  \thesubsection\hskip 1em\relax \fi ##1}}}
  29. \else \def\ps@headings{\let\@mkboth\markboth
  30. \def\@oddfoot{\hfil \rm \thepage\hfil \rightmark}
  31. \def\@evenfoot{\@oddfoot}\def\@evenhead{}\def\@oddhead{}
  32. \def\sectionmark##1{\markright {\uppercase{\ifnum \c@secnumdepth
  33. >\z@
  34.  \thesection\hskip 1em\relax \fi ##1}}}}
  35. \fi
  36. \def\ps@myheadings{\let\@mkboth\@gobbletwo
  37. \def\@oddfoot{\rm \leftmark \hfil \rightmark}\def\@evenfoot{\@oddfoot}
  38. \def\@evenhead{}\def\@oddhead{}
  39. \def\sectionmark##1{}\def\subsectionmark##1{}}
  40.  
  41. \if@twoside \def\ps@pagefoot{\let\@mkboth\markboth
  42. \def\@oddfoot{\rm \leftmark\hfil \thepage\hfil \rightmark}
  43. \def\@evenfoot{\@oddfoot}\def\@evenhead{}\def\@oddhead{}
  44. \def\sectionmark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
  45. >\z@
  46.  \thesection\hskip 1em\relax \fi ##1}}{}}\def\subsectionmark##1{\markright
  47. {\ifnum \c@secnumdepth >\@ne
  48.  \thesubsection\hskip 1em\relax \fi ##1}}}
  49. \else \def\ps@pagefoot{\let\@mkboth\markboth
  50. \def\@oddfoot{\rm\leftmark\hfil\thepage\hfil \rightmark}
  51. \def\@evenfoot{\@oddfoot}\def\@evenhead{}\def\@oddhead{}
  52. \def\sectionmark##1{\markright {\uppercase{\ifnum \c@secnumdepth
  53. >\z@
  54.  \thesection\hskip 1em\relax \fi ##1}}}}
  55. \fi
  56. \def\ps@plainfoot{\let\@mkboth\@gobbletwo
  57. \def\@oddfoot{\rm \leftmark \hfil \rightmark}\def\@evenfoot{\@oddfoot}
  58. \def\@evenhead{}\def\@oddhead{}
  59. \def\sectionmark##1{}\def\subsectionmark##1{}}
  60.  
  61. % supertabular sty
  62. % Theo Jurriens 1988
  63. % TAJ@hgrrug5        P.O Box 800, 9700 AV Groningen
  64. %
  65. \def\@tablehead{\ }
  66. \def\tablehead#1{\gdef\@tablehead{#1}}
  67. \newcount\tablefractionperc
  68. \def\tablefraction#1{\global\tablefractionperc = #1}
  69. \tablefraction{100}
  70. \def\@tabletail{\ }
  71. \def\tabletail#1{\gdef\@tabletail{#1}}
  72. \newcount\numline  %
  73. \newcount\maxline %
  74. \newcount\startmaxline
  75. %
  76. \def\calmaxline{
  77. \global\maxline=\textheight
  78. \global\startmaxline=\textheight
  79. \global\advance\maxline by -\pagetotal
  80. \global\divide\maxline by \baselineskip
  81. \global\multiply\maxline by 9
  82. \global\divide\maxline by 10
  83. \global\divide\startmaxline by \baselineskip
  84. \global\multiply\startmaxline by 9
  85. \global\divide\startmaxline by 10
  86. \global\multiply\maxline by\tablefractionperc
  87. \global\divide\maxline by 100
  88. \global\advance\maxline by -2}
  89. %
  90. \newenvironment{supertabular}[1]{  %
  91. \edef\tableformat{\string#1} %
  92. \numline=0       %
  93. \calmaxline
  94. \begin{tabular}[t]{\tableformat}\@tablehead}{\@tabletail \end{tabular}}%
  95. %
  96. %
  97. \def\nextline{\global\advance\numline by 1 \\
  98. \ifnum\numline=\maxline
  99.         \@tabletail   %
  100.         \end{tabular}%
  101.         \newpage   %
  102.         \global\maxline=\startmaxline
  103.         \begin{tabular}[t]{\tableformat}%
  104.         \@tablehead %
  105.         \global\numline=0 %
  106. \fi}%
  107. %
  108.  
  109.  
  110.