%
%                  PZ.STY Ver 1.0.2  LaTeX style file for the
%              "Peremennye Zvezdy" (Varuable Stars) Main Journal
%                      http://www.astronet.ru/db/varstats
%                      02-12-2005   Mikhail E. Prokhorov
%
%     Sternberg Astronomical Institute, Moscow, Russia
%     Institute of Astronomy Russian Academy of Science, Moscow, Russia
%     WWW.ASTRONET.RU, Moscow, Russia

% Use the following documentstyle definition:
% \documentstyle[pz,epsf]{article}
% or 
% \documentstyle{article}
% \input pz.sty
% \input epsf.sty
% epsf is needed only if there are figures

% PZ.STY screen message
\typeout{}
\typeout{PZ.STY <Ver. 1.0 - 02-12-2005>}
\typeout{PZ.STY <Ver. 1.0.1 - 14-12-2005>}
\typeout{PZ.STY <Ver. 1.0.2 - 20-12-2005>}
\typeout{Peremennye Zvezdy (Variable Stars) - SAI, INASAN, Astronet.ru}
\typeout{}

\font\ff=cmss12    
\font\ft=cmbx12   
\font\figcap=cmr10
\font\figfon=cmbx10

\topmargin=-1truecm
\pagestyle{myheadings}
\makeatletter
  \def\@evenhead{\thepage\hfil{\leftmark}\hfil}%
  \def\@oddhead{\hfil{\rightmark}\hfil\thepage}%
\makeatother
\oddsidemargin=0cm
\evensidemargin=0cm
\textheight=24.5truecm
\textwidth=16truecm

\def\hr{\hbox{$^{\rm h}$}}                 % Hours
\def\fhr{\hbox{$.\!\!^{\rm h}$}}           % Fractions of hours
\def\deg{\hbox{$^\circ$}}                  % Degree
\def\fdeg{\hbox{$.\!\!^\circ$}}            % Fractions of degrees
\def\sec{\hbox{$^{\rm s}$}}                % Seconds
\def\fsec{\hbox{$.\!\!^{\rm s}$}}          % Fractions of seconds
\def\arcm{\hbox{$^\prime$}}                % Arcminutes
\def\farcm{\hbox{$.\mkern-4mu^\prime$}}    % Fractions of arcminutes
\def\arcs{\hbox{$^{\prime\prime}$}}        % Arcseconds
\def\farcs{\hbox{$.\!\!^{\prime\prime}$}}  % Fractions of arcseconds
\def\day{\hbox{$^{\rm d}$}}                % Days
\def\fday{\hbox{$.\!\!^{\rm d}$}}          % Fractions of days
\def\per{\hbox{$^{\rm p}$}}                % Period
\def\fper{\hbox{$.\!\!^{\rm p}$}}          % Fractions of period
\def\mm{\hbox{$^{\rm m}$}}                 % Magnitude or minute
\def\fmm{\hbox{$.\!\!^{\rm m}$}}           % Fractions of magnitudes
\def\ts{\thinspace}                        % Thinspace

% Definition of macro \PZabstract
\long\def\PZabstract#1{\def\abstractname{}
\begin{abstract}#1\end{abstract}}

% Definition of macro \PZhead
% #1 - num, #2 - vol, #3 - year, #4 - receiv.date, #5 - accept date
\def\PZhead#1#2#3#4#5{\thispagestyle{empty}
  {\emph{Peremennye Zvezdy} (\emph{Variable Stars}) {\bf #2}, No.\,#1, #3}
  \def\PZno{#1}\def\PZvol{#2}\def\PZyr{#3}
  \vskip 0.3cm
  {\normalsize Received #4; accepted #5.}
  \vskip 0.8cm
}


% Definition of macro \PZtitle
\def\PZtitle#1{{\ft #1}\vskip 0.5cm plus 0.4cm minus 0.2cm}


% Definition of macro \PZtitletl - two-line titles
\def\PZtitletl#1#2{% 
	{\ft #1} \vskip 2mm plus 1mm minus 1mm
	{\ft #2} \vskip 0.5cm plus 0.4cm minus 0.2cm
}


% Definition of macro \PZsubtitle
\def\PZsubtitle#1{
  \vskip -8pt plus 1pt minus 1pt
  #1
  \vskip 18pt plus 2pt minus 2pt
}


% Definition of the PZfm macro (PZ footnotemark)
\def\PZfm{\renewcommand{\thefootnote}{\fnsymbol{footnote}}\footnotemark[2]}


% Definition of the PZfoot macro
\def\PZfoot#1{
        \renewcommand{\thefootnote}{\fnsymbol{footnote}}
        \footnotetext[2]{#1}}


% Definition of the author and affiliation macros
\def\PZauth#1{#1 \vskip 0.3cm plus 0.1cm minus 0.1cm}

\newcounter{authno}

\def\PZinst#1 {\small \addtocounter{authno}{1} $^{\arabic{authno}}$ #1 
        \vskip 1mm \large}
% This is for defining a second affiliation
\def\PZx#1 {\small \ts $^*$ #1 \vskip 1mm \large}
% This is for defining the affiliation, if there is only one (without numbering)
\def\PZinsto#1 {\small \ts #1 \vskip 1mm \large}


% The next items do not affect the appearance of the document -
% they are intended for search and indexing
% PZobj contains an object (variable stars)
\def\PZobj#1 {\typeout{PZobj : #1}}
% SIMBADobj holds the SIMBAD identifier of an object
\def\SIMBADobj#1 {\typeout{SIMBADobj : #1}}
% SIMBADobjAlias an identifier of an object, together with an alias,
% both acceptable by SIMBAD
\def\SIMBADobjAlias#1#2 {\typeout{SIMBADobjAlias : #1 = #2}}
% SIMBADobjJ2000 holds the SIMBAD identifier of an object, together with 
% its J2000 coordinates
\def\SIMBADobjJ2000#1#2 {\typeout{SIMBADobjJ2000 : #1 -> #2}}
% SIMBADobjAliasJ2000 is for two identifiers + J2000 coordinates
\def\SIMBADobjAliasJ2000#1#2#3 {\typeout{SIMBADobjAliasJ2000 : #1 = #2 -> #3}}
% PZindexobj - objects with no links, but appearing in the index
\def\PZindexobj#1 {\typeout{PZindexobj : #1}}
% PZtableobj - objects in etables
\def\PZtableobj#1 {\typeout{ #1}}
% PZtyp should contain the variable star type designation, as in the GCVS
\def\PZtyp#1 {\typeout{PZtyp : #1}}
% PZkey may contain any other kind of keywords
\def\PZkey#1 {\typeout{PZkey : #1}}
% PZabs may hold a single abstract line - use max. 5 for an abstract
\def\PZabs#1 {\typeout{PZabs : #1}}
% BIBCODE holds standard bibliographic code for a reference
\def\BIBCODE#1 {\typeout{BIBCODE : #1}}
% ADSBIBCODE for handling bibliographic codes not resolved by CDS
\def\ADSBIBCODE#1 {\typeout{ADSBIBCODE : #1}}
% PZetable - filename of an electronic-only LaTeX table
\def\PZetable#1 {\typeout{PZetable : #1}}
% PZefigure - filename of an electronic-only PS figure
\def\PZefigure#1 {\typeout{PZefigure : #1}}
% PZtablefigure - filename of an electronic-only PS figure in a table
\def\PZtablefigure#1 {\typeout{ #1}}
% PZedata - filename of an electronic-only data file
\def\PZedata#1 {\typeout{PZedata : #1}}
% PZecomment - short comments for only the HTML version
\def\PZecomment#1 {\typeout{PZecomment : #1}}
% PZlink - link appearing only in the HTML version
\def\PZlink#1 {\typeout{PZlink : #1}}
% PZshortlink - link appearing only in the HTML version
\def\PZshortlink#1#2 {\typeout{PZlink : #1 #2}}
% GCVSobj - link to the electronic GCVS
\def\GCVSobj#1 {\typeout{GCVSobj : #1}}
% PZfigKey - figure keyword and metainfo
\def\PZfigKey#1#2#3 {\typeout{PZfigKey : #1 #2 #3} \write15{PZfigKey : #1 : #2 : #3}}
% PZdataKey - datafile keyword and metainfo
\def\PZdataKey#1#2#3 {\typeout{PZdataKey : #1 #2 #3}}
% AladinChart
\def\AladinChart#1 {\typeout{AladinChart : #1}}

\def\nobibcode {\typeout{No BIBCODE should be generated for this reference automatically}}


% Definition of macro \PZbegintext { Shortly: Autror(s): Title }
\def\PZbegintext#1{
        \vskip 1cm plus 0.4cm minus 0.4cm
        \large \baselineskip=5mm 
        \markboth{#1}{#1}
        \renewcommand{\thefootnote}{\arabic{footnote}}
        \setcounter{footnote}{0}
        \noindent}


% Definition of macro \PZfig
\def\PZfig#1#2#3 {\refstepcounter{figure} 
        \begin{figure}[htb]
        \normalsize
        \vskip 3mm plus 1mm minus 1mm
        \epsfysize=#1\centerline{\epsffile{#2}}
        \vskip 2mm plus 1mm minus 1mm
        {\figfon Figure \thefigure .} 
        \figcap #3 \large
        \label{fig:#2}
        \end{figure}
        \vskip 4mm plus 1mm minus 1mm
	\write15{PZfig : #2 : #3}}


% Definition of macro \PZ2fig for two-column arrangement of figures
\def\PZtwofig#1#2#3#4#5 {
\vskip 3mm plus 1mm minus 1mm
\begin{figure}[hpt]
        \normalsize
        \hfil
        \begin{minipage}{#1}
                \epsfxsize7.5cm \begin{center} \leavevmode \hspace*{-5mm}
                \epsfbox{#2} 
                \end{center}
        \end{minipage}
        \hfil
        \begin{minipage}{#1}
                \epsfxsize7.5cm \begin{center} \leavevmode
                \epsfbox{#4} 
                \end{center}
        \end{minipage}
        \hfil \hfil
\vskip 2mm plus 1mm minus 1mm
\parbox[t]{7.5cm}{
        \refstepcounter{figure} 
        {\figfon Figure \thefigure .} 
        \figcap #3
        \label{fig:#2}}
\hfil
\parbox[t]{7.5cm}{
        \refstepcounter{figure} 
        {\figfon Figure \thefigure .} 
        \figcap #5
        \label{fig:#4}}
\large
\end{figure}
\vskip 4mm plus 1mm minus 1mm
\write15{PZtwofig : #2 : #3} 
\write15{PZtwofig : #4 : #5}
}


% Definition of macro \PZfigNoCaption
\def\PZfigNoCaption#1#2 {
        \begin{figure}[hpt]
        \vskip 3mm plus 1mm minus 1mm
        \epsfysize=#1
        \centerline{\epsffile{#2}}
        \vskip 2mm plus 1mm minus 1mm
        \label{fig:#2}
        \end{figure}
        \vskip 4mm plus 1mm minus 1mm}


% Definition of macro \references
\def\references {\vskip 1cm plus 0.5cm minus 0.5cm
\noindent References: \hfil
  \vskip 0.3 cm plus 0.1 cm minus 0.1cm
\parindent=-1cm \leftskip 1cm}


% Definition of macro \reference 
\def\reference {\vskip 1cm plus 0.5cm minus 0.5cm
\noindent Reference: \hfil
  \vskip 0.3 cm plus 0.1 cm minus 0.1cm
\parindent=-1cm \leftskip 1cm}


% Definition of macro \endreferences
\def\endreferences {\vskip 1cm plus 0.5cm minus 0.5cm
\parindent=15.0pt \leftskip -0cm}


% Definition of macro \PZerratum
\def\PZerratum#1 {\uppercase
  {\centerline {\ft ERRATUM for PZ #1} \vskip 0.5cm plus 0.4cm minus 0.2cm}}


% Definition of macro \PZerrata
\def\PZerrata#1 {\uppercase
  {\centerline {\ft ERRATA for PZ #1} \vskip 0.5cm plus 0.4cm minus 0.2cm}}


% IBVS(2) analogy

\let\IBVStwofig=\PZtwofig
\let\IBVSabs=\PZabs
\let\IBVSauth=\PZauth
\let\IBVSdataKey=\PZdataKey
\let\IBVSecomment=\PZecomment
\let\IBVSedata=\PZedata
\let\IBVSefigure=\PZefigure
\let\IBVSerrata=\PZerrata
\let\IBVSerratum=\PZerratum
\let\IBVSetable=\PZetable
\let\IBVSfigKey=\PZfigKey
\let\IBVSfigNoCaption=\PZfigNoCaption
\let\IBVSfig=\PZfig
\let\IBVSfm=\PZfm
\let\IBVSfoot=\PZfoot
\let\IBVShead=\PZhead
%\let\IBVSheadUnnumbered=\PZheadUnnumbered
\let\IBVSindexobj=\PZindexobj
\let\IBVSinsto=\PZinsto
\let\IBVSinst=\PZinst
\let\IBVSkey=\PZkey
\let\IBVSlink=\PZlink
\let\IBVSobj=\PZobj
\let\IBVSshortlink=\PZshortlink
\let\IBVSsubtitle=\PZsubtitle
\let\IBVStablefigure=\PZtablefigure
\let\IBVStableobj=\PZtableobj
\let\IBVStitle=\PZtitle
\let\IBVStitletl=\PZtitletl
\let\IBVStyp=\PZtyp
\let\IBVSx=\PZx
\let\begintext=\PZbegintext

% -------------------------------------------------------------------------
