% article.sty 23 Sep 85
\typeout{Document Style Carlsberg Introduction. Experimental.}
\typeout{T.N. Teodoro Lopez Moratalla. ROA. December 1993.}

\typeout{Document Style 'article'. Released 23 September 1985}

\def\@ptsize{0} \@namedef{ds@11pt}{\def\@ptsize{1}}
\@namedef{ds@12pt}{\def\@ptsize{2}}
\def\ds@twoside{\@twosidetrue \@mparswitchtrue} \def\ds@draft{\overfullrule
5pt}
\@options
\input art1\@ptsize.sty\relax


\def\labelenumi{\arabic{enumi}.}
\def\theenumi{\arabic{enumi}}
\def\labelenumii{(\alph{enumii})}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}
\def\labelenumiii{\roman{enumiii}.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}
\def\labelenumiv{\Alph{enumiv}.}
\def\theenumiv{\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii}

\def\labelitemi{$\bullet$}
\def\labelitemii{\bf --}
\def\labelitemiii{$\ast$}
\def\labelitemiv{$\cdot$}

\def\quotation{\list{}{\listparindent 1.5em
 \itemindent\listparindent
 \rightmargin\leftmargin \parsep 0pt plus 1pt}\item[]}
\let\endquotation=\endlist
\def\quote{\list{}{\rightmargin\leftmargin}\item[]}
\let\endquote=\endlist

\def\descriptionlabel#1{\hspace\labelsep \bf #1}
\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
 \let\makelabel\descriptionlabel}}
\let\enddescription\endlist



\def\theequation{\arabic{equation}}


\def\titlepage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \else \newpage \fi \thispagestyle{empty}\c@page\z@}
\def\endtitlepage{\if@restonecol\twocolumn \else \newpage \fi}

\arraycolsep 5pt \tabcolsep 6pt \arrayrulewidth .4pt \doublerulesep 2pt
\tabbingsep \labelsep

\skip\@mpfootins = \skip\footins
\fboxsep = 3pt \fboxrule = .4pt

\newcounter{part}
\newcounter {section}
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]

\def\thepart{\Roman{part}} \def\thesection {\arabic{section}}
\def\thesubsection {\thesection.\arabic{subsection}}
\def\thesubsubsection {\thesubsection .\arabic{subsubsection}}
\def\theparagraph {\thesubsubsection.\arabic{paragraph}}
\def\thesubparagraph {\theparagraph.\arabic{subparagraph}}

\def\@pnumwidth{5.55em} % MODIFICADO EN RELACION A article
\def\@tocrmarg {7.55em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{3}

% tableofcontents MODIFICADO EN RELACION A article

\def\tableofcontents{
   \null
   \vfill
   \pagestyle{empty}
   \section*{Contents\markboth{CONTENTS}{CONTENTS}}
   \@starttoc{toc}
   \vfill
   \null
   \cleardoublepage
   \pagestyle{plain}}
\def\l@part#1#2{\addpenalty{\@secpenalty}
 \addvspace{2.25em plus 1pt} \begingroup
 \@tempdima 3em \parindent \z@ \rightskip \@pnumwidth \parfillskip
-\@pnumwidth
 {\large \bf \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
 \nobreak \endgroup}
\def\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
\def\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
\def\listoffigures{
   \null
   \vfill
   \pagestyle{empty}
   \section*{List of Figures\markboth {LIST OF FIGURES}{LIST OF FIGURES}}
   \@starttoc{lof}
   \vfill
   \null
   \cleardoublepage
   \pagestyle{plain}}
\def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
\def\listoftables{
   \null
   \vfill
   \pagestyle{empty}
   \section*{List of Tables\markboth{LIST OF TABLES}{LIST OF TABLES}}
   \@starttoc{lot}
   \vfill
   \null
   \cleardoublepage
   \pagestyle{plain}}
\let\l@table\l@figure


\def\thebibliography#1{\section*{References\markboth
 {REFERENCES}{REFERENCES}
 \addcontentsline{toc}{section}{References}}\list
 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \sloppy
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist


\newif\if@restonecol
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
\columnseprule \z@
\columnsep 35pt\twocolumn[\section*{Index}]
 \markboth{INDEX}{INDEX}\thispagestyle{plain}\parindent\z@
 \parskip\z@ plus .3pt\relax\let\item\@idxitem}
\def\@idxitem{\par\hangindent 40pt}
\def\subitem{\par\hangindent 40pt \hspace*{20pt}}
\def\subsubitem{\par\hangindent 40pt \hspace*{30pt}}
\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
\def\indexspace{\par \vskip 10pt plus 5pt minus 3pt\relax}

\def\footnoterule{\kern-3\p@
 \hrule width .4\columnwidth
 \kern 2.6\p@}

\long\def\@makefntext#1{\parindent 1em\noindent
 \hbox to 1.8em{\hss$^{\@thefnmark}$}#1}


\setcounter{topnumber}{2}
\def\topfraction{.7}
\setcounter{bottomnumber}{1}
\def\bottomfraction{.3}
\setcounter{totalnumber}{3}
\def\textfraction{.2}
\def\floatpagefraction{.5}
\setcounter{dbltopnumber}{2}
\def\dbltopfraction{.7}
\def\dblfloatpagefraction{.5}

\long\def\@makecaption#1#2{
 \vskip 10pt
 \setbox\@tempboxa\hbox{#1: #2}
 \ifdim \wd\@tempboxa >\hsize \unhbox\@tempboxa\par \else \hbox
to\hsize{\hfil\box\@tempboxa\hfil}
 \fi}


\newcounter{figure}
\def\thefigure{\@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{Figure \thefigure}
\def\figure{\@float{figure}}
\let\endfigure\end@float
\@namedef{figure*}{\@dblfloat{figure}}
\@namedef{endfigure*}{\end@dblfloat}
\newcounter{table}
\def\thetable{\@arabic\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{Table \thetable}
\def\table{\@float{table}}
\let\endtable\end@float
\@namedef{table*}{\@dblfloat{table}}
\@namedef{endtable*}{\end@dblfloat}


      

\mark{{}{}}

\if@twoside \def\ps@headings{\def\@oddfoot{}\def\@evenfoot{}\def\@evenhead{\rm
\thepage\hfil \sl \leftmark}\def\@oddhead{\hbox{}\sl \rightmark \hfil
\rm\thepage}\def\sectionmark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
>\z@
 \thesection\hskip 1em\relax \fi ##1}}{}}\def\subsectionmark##1{\markright
{\ifnum \c@secnumdepth >\@ne
 \thesubsection\hskip 1em\relax \fi ##1}}}
\else \def\ps@headings{\def\@oddfoot{}\def\@evenfoot{}\def\@oddhead{\hbox
{}\sl \rightmark \hfil \rm\thepage}\def\sectionmark##1{\markright
{\uppercase{\ifnum \c@secnumdepth >\z@
 \thesection\hskip 1em\relax \fi ##1}}}}
\fi
\def\ps@myheadings{\def\@oddhead{\hbox{}\sl\rightmark \hfil
\rm\thepage}\def\@oddfoot{}\def\@evenhead{\rm \thepage\hfil\sl\leftmark\hbox
{}}\def\@evenfoot{}\def\sectionmark##1{}\def\subsectionmark##1{}}


\def\today{\ifcase\month\or
 January\or February\or March\or April\or May\or June\or
 July\or August\or September\or October\or November\or December\fi
 \space\number\day, \number\year}

\ps@plain \pagenumbering{arabic} \onecolumn \if@twoside\else\raggedbottom\fi


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% PARAMETROS %%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\belowdisplayskip40.0pt plus 3.0pt minus 6.0pt
\abovedisplayskip40.0pt plus 3.0pt minus 6.0pt
\parskip1.5mm

\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\topmargin}{0mm}
\setlength{\headheight}{0mm}
\setlength{\headsep}{0mm}
\setlength{\textwidth}{160mm}
\setlength{\textheight}{240mm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% NUEVOS COMANDOS %%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% ENTORNO 'explanation' PARA LA EXPLICACION DEL CATALOGO
%
\def\explanationlabel#1{#1\hfil}
\def\explanation{\list{}{\setlength{\labelsep}{3mm}
               \setlength{\labelwidth}{3.5cm}
               \setlength{\leftmargin}{4cm}
               %\setlength{\rightmargin}{3cm}
               \setlength{\topsep}{2ex}
               \setlength{\itemsep}{1.5ex}
\let\makelabel\explanationlabel}}
\let\endexplanation\endlist
%
%------------------------------------------------------------------------
%
\newcommand{\catnumber}{}       % numero de catalogo
\newcommand{\catperiod}{}       % periodo del catalogo
\newcommand{\catyear}{}         % a%o
\newcommand{\issn}{}            % ISSN
\newcommand{\isbn}{}            % ISBN
\newcommand{\nipo}{}            % NIPO
%
% TITULO DEL CATALOGO (portada)
%
\newcommand{\cattitle}{
         \begin{titlepage} 
          \null
          \vfil
          \vskip2in
          \begin{center}
          \LARGE 
               {\huge\bf
                 CARLSBERG MERIDIAN CATALOGUES\\[1.5ex]
                      LA PALMA\\
             \vskip1.3in 
                  \LARGE\bf Numbers \catnumber\\ 
             \vskip0.7in
                 Observations of positions of stars and planets\\
                       \catperiod}\\
             \vspace{1.3in}
          \small\bf 
                 COPENHAGEN UNIVERSITY OBSERVATORY\\[1.2ex]
                 ROYAL GREENWICH OBSERVATORY\\[1.2ex]
          \mbox{REAL INSTITUTO Y OBSERVATORIO DE LA ARMADA EN SAN FERNANDO}\\
             \vspace{0.9in}
              \large\bf  \catyear
         \end{center}
         \vfil
         \null
         \end{titlepage}
         }
%
% PRIMERA PAGINA Y REVERSO (ISSN, ISBN, NIPO, ...)
%
\newcommand{\firstpage}{
         \thispagestyle{empty}
          \null
         \vspace*{\fill} 
          \vskip1in
          \begin{center}
          \LARGE 
               \bf
                 CARLSBERG MERIDIAN CATALOGUES\\
                      LA PALMA\\
             \vskip1in 
                      Numbers \catnumber
          \end{center}
         \vspace*{\fill} 
         \begin{center}
         \tabcolsep1cm
         \begin{tabular}{@{}ll@{}}
         The Niels Bohr Inst. for Astronomy,  & Royal Greenwich Observatory \\
         \hspace{1cm} Physics and Geophysics  & Madingley Road              \\
         Astronomical Observatory             & Cambridge CB3 0EZ           \\
         University of Copenhagen             & UNITED KINGDOM              \\
         Juliane Maries Vej 30                &                             \\
         DK-2100 Copenhagen {\O}              &                             \\
         DENMARK                              &                             \\
         \end{tabular}
         
         \vskip.5cm
         \begin{tabular}{l}
         Real Instituto y Observatorio de la Armada\\
         11110 San Fernando \\
         C\'adiz\\
         SPAIN
         \end{tabular}
         \end{center}
         \null
       \newpage }
%         \thispagestyle{empty}
%         \null
%         \vspace*{\fill} 
%         \begin{center}
%         \tabcolsep1cm
%         \footnotesize
%         \begin{tabular}{@{}ll@{\quad}l@{}}
%            Impreso en Espa\~na --- Printed in Spain  & 
%                       Edita:   & Servicio Publicaciones Armada             \\
%                    &  Imprime: & Real Instituto y Observatorio de la Armada\\
%                    &           & San Fernando (C\'adiz) \catyear           \\
%                    &           & Dep\'osito legal: Ca 832--86              \\
%                    &           & ISSN \issn                                \\
%                    &           & ISBN \isbn                                \\
%                    &           & NIPO \nipo
%         \end{tabular}
%         \end{center}
%  
%         \vskip1cm
%         \newpage
%         }
%
% RESUMEN
%
\newcommand{\summary}[2]{
       \cleardoublepage
       \vspace*{\fill} 
       \section*{Summary}  
          \addcontentsline{toc}{section}{Summary}
          #1
       \section*{Resumen}
          #2
       \cleardoublepage
       \null
       \vskip5cm}
%
% TITULO DE LAS DISTINTAS OBSERVACIONES
%
\newcommand{\header}[3]{
       \cleardoublepage
       \thispagestyle{empty}
       \pagenumbering{arabic}
       \setcounter{page}{#1}
       \vspace*{\fill} 
       \Large
      \begin{center}
        Carlsberg Meridian Catalogues\\La Palma\\
        Numbers \catnumber\\ 
        \vspace{1in}
        {\bf #3\\
         \catperiod}
        \vspace{1in}
      \end{center}
      \addcontentsline{toc}{section}{#2}
      \vspace*{\fill} 
      \null}
\newcommand{\HEADER}[3]{
       \cleardoublepage
       \thispagestyle{empty}
       \pagenumbering{arabic}
       \setcounter{page}{#1}
       \vspace*{\fill} 
       \Large
      \begin{center}
        Carlsberg Meridian Catalogues\\La Palma\\
        Numbers \catnumber\\ 
        \vspace{1in}
        {\bf #3}
        \vspace{1in}
      \end{center}
      \addcontentsline{toc}{section}{#2}
      \vspace*{\fill} 
      \null}
%
% ERRATA
%
\newenvironment{errata}{
      \pagestyle{empty}
      \null
      \vspace*{\fill}
      \begin{center}
         \Large
         {\bf ERRATA}\\[6ex]
         \large
         Carlsberg Meridian Catalogue La Palma Number 7\\[4ex]
      \end{center}}{
      \vspace*{\fill}
      \null
      \cleardoublepage
      \pagestyle{plain}
}
\newenvironment{tableerrata}{
          \begin{center}
            \begin{tabular}{rrcc}
            \multicolumn{1}{c}{Page}&Number&For&Read\\}{
            \end{tabular}
          \end{center}}
%
% LOMO
%
\newcommand{\spine}{\newpage{\large{\bf CARLSBERG MERIDIAN CATALOGUE - LA PALMA - No. \catnumber}}}
