% -*-LaTeX-*-
% TROFFMS.STY for tr2latex - troff to latex translator
% These macros are intended to be referenced by a LaTeX
% \documentstyle[troffms,twoside]{article}
% command. You can insert an 11pt or 12pt option if you like larger
% type--sizes set here are computed from the LaTeX point size setting.
% You need these macros since they are refered to by the translator.
% You can modify them if you want.
% I would very much want better macros for the headers and footers.
% Please pass your suggestions to me. -Christian
% Extended by L. Jostameling
\def\makefootline{\baselineskip24\p@\line{\the\footline}}
\def\makeheadline{\vbox to 0pt{\vskip-22.5pt \line{vbox to 8.5pt{}\the\headline}\vss}\nointerlineskip}
% Dimens for A4 paper
\topmargin=0cm
\ifcase \@ptsize
% mods for 10 pt
% \baselineskip = 12pt
\textheight 53\baselineskip %= 636pt
\or % mods for 11 pt
% \baselineskip = 13.6pt
\textheight 46\baselineskip % = 625pt
\or % mods for 12 pt
% \baselineskip = 15pt
\textheight 42\baselineskip % = 630pt
\fi
\advance\textheight by \topskip
\textwidth=6.3in
\textfloatsep 30pt plus 3pt minus 6pt
\parskip=5pt
\oddsidemargin=0in
\evensidemargin=6in
\voffset=0in
\newdimen\singlespacing
\singlespacing=11pt % single line spacing
\normalbaselineskip=15pt % 1.5 line spacing
\baselineskip=\normalbaselineskip
\parindent=5\en
\let\@listi\@listii
% change the BEFORESKIP and AFTERSKIP to make a break after tht head
\def\paragraph{\@startsection
{paragraph}{4}{\z@}{-2ex plus -lex minus -.2ex}{1ex}{\normalsize\bf}}
% set levelnumber for subparagraph to 5 and make no indent
\def\subparagraph{\@startsection
{subparagraph}{5}{\z@}{-2ex plus -lex minus -.2ex}{lex}{\normalsize\bf}}
\setcounter{secnumdepth}{5} % to number paragraphs and subpara iraphs A
\setcounter{tocdepth}{4} % let paragraphs apear in ToC
% define ABSTRACT, INTRODUCTION, DISCUSSION, CONCLUSIONS, REFERENCES
% and APPENDIX as the first three letters
\def\ABS{\mhead{ABSTRACT}}
\def\INT{\mhead{INTRODUCTION}}
\def\DIS{\mhead{DISCUSSION}}
\def\CON{\mhead{CONCLUSIONS}}
\def\ACK{\mhead{ACKNOWLEDGMENT}}
\def\REF{\mhead{REFERENCES}}
\def\APP{\mhead{APPENDIX}}
\renewcommand{\abstractname}{\ABS}
\def\nwl{\ifhmode \unskip\hfil \penalty -\@M\relax\fi}
% similar to latex's \newline but does lot
% complain if there is no line to break
\def\ind#1{\par\noindent\everypar{\hangindent=#1\hangafter=0}}
\def\tmpind#1{\par\hskip#1}
\newenvironment{SEPcntr}{\begin{center}}{\end{center}}
\def\cntr#1{\begin{SEPcntr}#1\end{SEPcntr}}
% displayed text* indented* justification off
\def\displaybegin{\par\begingroup\medskip\narrower\narrower\noindent
\obeylines\obeyspaces}
\def\displayend{\endgroup\smallskip\noindent}
% fill and nofill
%\def\nofill{\par\begingroup\noindent\obeylines
% \frenchspacing\@vobeyspaces\linepenalty10000}
\def\nofill{\par\noindent\obeylines
\frenchspacing\@vobeyspaces\linepenalty10000}
%{\catcode`\ =\active\gdef\@vobeyspaces{\catcode`\ \active \let \@xobeysp}}
\def\@xobeysp{\leavevmode{}}
%\def\fill{\endgroup\noindent}
\def\fill{\nonfrenchspacing\allowbreak\noindent}
% define a boxing macro
\def\boxit#1{\vbox{\hrule\hbox{\vrule\kern10pt\vbox{\medskip\kern5pt#1\bigskip
\kern5pt}\kern10pt\vrule}\hrule}}
% for own defined strings
\def\defTroffString#1#2{\@namedef{TroffString@#1}{#2}}
%
\newcommand{\useTroffString}[1]{\@nameuse{TroffString@#1}}
%\@ifnextchar ({\@@useTroffString}{\@useTroffString}}%
%\def\@useTroffString#1{\@nameuse{TroffString@#1}}%
%\def\@@useTroffString (#1#2{\@nameuse{TroffString@#1#2}}%