%-------------------------------------------------------------------------------
%
%          TeX looks for this file under the name:   "def.tex"
%
%-------------------------------------------------------------------------------
%                 GENERAL DEFINITIONS
%-------------------------------------------------------------------------------
\def\deg{^\circ} 
\newcount\AstLine
%
%-------------------------------------------------------------------------------
%              DEFINE HOW TO DIGEST INDIVIDUAL LINES
%-------------------------------------------------------------------------------
\def\-#1 {\noalign{\separator\global\AstLine=0}}
\def\N#1.{\cr\noalign{\message{#1}\bf #1}}
\def\\{\all}
\def\S{\noalign{\separat}\omit Synthesis\hfil\all}
\def\SYN{Synthesis}
%
\def\all#1|#2|#3|#4|#5|#6|#7|#8|{%% \ifnum \AstLine=0
                                  %% #1\message{Asteroid #1.}
                               %% \fi 
                               %% \global\advance\AstLine by 1 &
                               #2&
                               \senses#3!{}!{}&
                               %%% #4&
                               #5&
                               \shape#6{},{},{}&
                               #7&
                               #8\cr}
%
\def\senses#1!#2!#3&{\poles#1{}.{}.{}!\AAAnd 
                     \poles#2{}.{}.{}!&}
\def\poles#1.#2.#3!{\pole#1{},{},{}.\AAnd 
                     \pole#2{},{},{}.}
\def\pole#1,#2,#3.{#1\And #2}
%
\def\shape#1,#2,#3&{#1\And #2&}
%
\def\And{&}
\def\AAnd{&}
\def\AAAnd{&}
%
\def\MMMspan#1{\multispan#1 \def\And{}\def\AAnd{}\def\AAAnd{}}
\def\MMspan#1{\multispan#1 \def\And{}\def\AAnd{}}
\def\Mspan#1{\multispan#1 \def\And{}}
\def\+{\hidewidth}
%
\def\_{\def\deg{}}
%-------------------------------------------------------------------------------
%                        SEPARATORS
%-------------------------------------------------------------------------------
\def\separat{\smallskip \hrule height0.1mm \smallskip}   % 0.1mm
\def\separator{\smallskip \hrule height0.3mm \medskip}   % 0.3mm
\def\Separator{\medskip   \hrule height0.6mm \bigskip}   % 0.6mm
%-------------------------------------------------------------------------------
%             DEFINE THE HEADER APPEARING AT THE TOP OF EACH PAGE
%-------------------------------------------------------------------------------
\def\header{\message{Table heading.}
\message{Row 1.} % row 1:
                        %% \bf Ast. & 
                        \bf Basic & 
            \multispan8 \bf \hfil Spin vector solutions\hfil &
                     %%% \bf Sense & 
                        \bf Sidereal & 
            \multispan2 \bf Ellipsoidal & 
                        \bf Albedo &
                        \bf Refer-\quad \cr
\message{Row 2.} % row 2:
                        %% \bf No. & 
                        \bf data & 
            \multispan8 \hfil (ecliptic coordinates of equinox 1950)\hfil & 
                     %%% \bf of & 
                        \bf ~period & 
            \multispan2 \bf model & 
                        \bf varieg.& 
                        \bf ~ence \cr
\message{Row 3.} % row 3:
                        %% \bf &  
                        & 
                        \long & \lat & 
                        \long & \lat &
                        \long & \lat &
                        \long & \lat &
                     %%% \bf rotation &   
                        ~~(days)  &    
                        a/b &    
                        b/c & 
                        \bf & 
                        \bf ~code \cr
}
\def\long{\omit \hfil$\lambda_0$}
\def\lat{\omit \hfil$\beta_0$}
%-------------------------------------------------------------------------------
%           DEFINE HOW TO MOVE TO A NEW PAGE
%-------------------------------------------------------------------------------
\def\=#1 {\input endtable 
          \vfill\eject \message{End of page.}
          \input newtable }
%-------------------------------------------------------------------------------
