%%  Ovo je datoteka hob.cls (Hvar Observatory Bulliten)
%%
%%
%%
%%
%%
%%
%%
%%
%%
%%
%%

\NeedsTeXFormat {LaTeX2e}
\ProvidesClass {hob}[2000/06/16 Hvar. Obs.Bull. Classs]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\rmdj {d\llap{\raise 1.22ex\hbox
  {\vrule height 0.09ex width 0.315em}\kern 0.04em}}
\def\sldj {d\llap{\raise 1.22ex\hbox
  {\vrule height 0.09ex width 0.265em}}\rlap{\raise 1.22ex\hbox
  {\vrule height 0.09ex width 0.05em}}}
\def\itdj {d\llap{\raise 1.22ex\hbox
  {\vrule height 0.09ex width 0.2em}}\rlap{\raise 1.22ex\hbox
  {\vrule height 0.09ex width 0.06em}}}
\def\bfdj {d\llap{\raise 1.16ex\hbox
  {\vrule height 0.126ex width 0.308em}\kern 0.04em}}
\def\ttdj {\rlap{\kern 0.17em\raise 1.1ex\hbox
  {\vrule height 0.09ex width 0.295em}}d}
\def\scdj {\rlap{\kern 0.04em\raise 0.57ex\hbox
  {\vrule height 0.09ex width 0.20em}}d}
\def\sfdj {d\llap{\raise 1.22ex\hbox
  {\vrule height 0.10ex width 0.3em}\kern 0.02em}}

\def\dj{\ifvmode\leavevmode\fi\ifcase\fam \rmdj \or \or \or
  \or \itdj \or \sldj \or \bfdj \or \ttdj \or \sfdj \or \scdj \else \rmdj \fi}

\def\rmDj {\rlap{\kern 0.05em\raise 0.76ex\hbox
  {\vrule height 0.10ex width 0.28em}}D}
\def\slDj {\rlap{\kern 0.1em\raise 0.76ex\hbox
  {\vrule height 0.1ex width 0.28em}}D}
\def\itDj {\rlap{\kern 0.145em\raise 0.76ex\hbox
  {\vrule height 0.1ex width 0.274em}}D}
\def\bfDj {\rlap{\kern 0.044em\raise 0.72ex\hbox
  {\vrule height 0.126ex width 0.287em}}D}
\def\ttDj {\rlap{\kern 0.02em\raise 0.67ex\hbox
  {\vrule height 0.105ex width 0.20em}}D}
\def\scDj {\rlap{\kern 0.08em\raise 0.73ex\hbox
  {\vrule height 0.12ex width 0.24em}}D}
\def\sfDj {\rlap{\kern 0.02em\raise 0.727ex\hbox
  {\vrule height 0.126ex width 0.26em}}D}

\def\Dj{\ifvmode\leavevmode\fi\ifcase\fam \rmDj \or \or \or
  \or \itDj \or \slDj \or \bfDj \or \ttDj \or \sfDj \or \scDj \else \rmDj \fi}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\DeclareOption {oneside}{\OptionNotUsed}
\DeclareOption {a4paper}{\OptionNotUsed}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax

\LoadClass [11pt,twoside,b5paper]{article}

\renewcommand{\ps@headings}{%
       \renewcommand{\@oddhead}{\small\centerline{\it{\MakeUppercase\gore}}}
       \renewcommand{\@evenhead}{\small\centerline{\it{\MakeUppercase\gore}}}
       \renewcommand{\@oddfoot}{\small\it Hvar Obs. Bull. \bf \broj \rm \ 
                                (2003) \vol , \str \hfil
                                \thepage}
       \renewcommand{\@evenfoot}{\small\thepage \hfil \it Hvar Obs. Bull. \bf
                                 \broj \ \rm (2003) \vol , \str}
                            }%




\newcommand{\ps@naslovna}{%
       \renewcommand{\@oddhead}{}
       \renewcommand{\@evenhead}{}
       \renewcommand{\@oddfoot}{\small\it Hvar Obs. Bull.\ \bf \broj \rm \  
                                (2003) \vol , \str 
                                 \hfil \thepage}
       \renewcommand{\@evenfoot}{\small\thepage \hfil \it Hvar Obs. Bull.\ \bf
                                 \broj \rm \ (2003) \vol , 
                                 \str}
                       }%
                          
\newcommand{\ps@uvod}{%
       \renewcommand{\@oddhead}{}
       \renewcommand{\@evenhead}{}
       \renewcommand{\@oddfoot}{\small \hfil \thepage}
       \renewcommand{\@evenfoot}{\small \thepage}
                       }%



\renewcommand\maketitle{\par%
 \begingroup
  \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
  \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
  \long\def\@makefntext##1{\parindent 1em\noindent
              \hb@xt@1.8em{%
                 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
     \newpage
     \global\@topnum\z@
     \@maketitle
  \thispagestyle{naslovna}\@thanks
 \endgroup
 \setcounter{footnote}{0}%
\global\let\thanks\relax
\global\let\maketitle\relax
\global\let\@maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\@title\@empty
\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
}


\renewcommand\@maketitle{%
\newpage
\null
\vskip -1em%
\hfill \rm ISSN 0351--2657\par
\hfill \rm HOBUD7 \broj (\vol) \thepage \ (2003) 
\vskip 1.5em
\begin{center}%
\let\footnote\thanks
 {\large \bfseries{\MakeUppercase\@title} \par}%
 \vskip 1.5em%
 {\small
  \lineskip .5em%
  \begin{tabular} [t] {c}%
     \@author
  \end{tabular}\par}%
  \vskip 1em%
 {\small {UDC \udk \par
  \vrsta}}%
\end{center}
\par
\vskip 1.5em}


\renewenvironment{abstract}{
  \footnotesize
  \noindent \bf \abstractname .\rm}


\newcommand{\keywords}{
             \footnotesize
             \par\vskip .8em%
             \noindent{\bf Key words: }}



\renewcommand\thesection{\@arabic\c@section.}
\renewcommand\thesubsection{{\thesection\@arabic\c@subsection.}}
\renewcommand\thesubsubsection{\thesubsection\@arabic\c@subsubsection.}

\renewcommand\section{\@startsection {section}{1}{\z@}%
                                     {-3.5ex \@plus -1ex \@minus -.2ex}%
                                     {2.3ex \@plus .2ex}%
                               {\normalfont\normalsize\bfseries\center}}

\renewcommand\subsection{\@startsection {subsection}{1}{\z@}%
                                     {-3.5ex \@plus -1ex \@minus -.2ex}%
                                     {2.3ex \@plus .2ex}%
                               {\normalfont\normalsize\sc}} 

\renewcommand\subsubsection{\@startsection {subsubsection}{1}{\z@}%
                                     {-3.5ex \@plus -1ex \@minus -.2ex}%
                                     {2.3ex \@plus .2ex}%
                               {\normalfont\normalsize\sc}} 



\renewcommand \thefigure {\@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{\footnotesize {\it \figurename~\thefigure}}


\renewcommand\thetable{\@Roman\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{\footnotesize{\bf \tablename~\thetable}\rm}

%\renewcommand\thetable {\bf \Roman{table}}
%\renewcommand\tablename{\footnotesize {\bf Table}}

\pagestyle{headings}
\pagenumbering{arabic}
\frenchspacing


\setlength\textheight {178mm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%                       HRVATSKA STRANICA                  %%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\newcommand{\naslov}{%
    \newpage   
    \null
    \vskip -3em%
      \begin{center}
          {\large \bfseries{\MakeUppercase\hrnaslov} \par}
                    }%         
\newcommand{\autor}{    
                {\vskip 1.5em%
                 \small
                 \lineskip .5em%
                 \begin{tabular} [t] {c}%
                   \hrautor
                 \end{tabular}\par}
 \vskip 1em%
 {\small{UDK \udk \par
  \hrvrsta}}%
\end{center}
\par
\vskip 1.5em
}%

\def\imes{Sa\v{z}etak}
\newenvironment{sazetak}{
  \footnotesize
  \noindent \bf \imes .\rm}


\newcommand{\krijeci}{\footnotesize
             \par\vskip .8em%
             \noindent{\bf Klju\v{c}ne rije\v{c}i: }}



\endinput    
