%  This is a style file for the contributions for the
%  "Physics of Magnetism'08" conference. It was designed with the aim
%  to mimic the publishing style of Acta Physica Polonica A.
%
\textwidth=124mm
\textheight=193mm
\hoffset=0mm
\voffset=0mm
\oddsidemargin=20mm
\evensidemargin=16.5mm
\parskip=0mm

\textfloatsep=4mm

\topmargin=15mm
\headheight=1em
\headsep=6.5mm

\newlength\aboveauthorskip
\aboveauthorskip 5mm plus1.5mm minus1.0mm

\newlength\aboveaddressskip
\aboveaddressskip 4.5mm plus1.0mm minus1.0mm

\def\@listI{\leftmargin\leftmargini
            \parsep 2\p@ plus1\p@ minus0.5\p@
            \topsep 4\p@ plus1\p@ minus2\p@
            \itemsep 2\p@ plus1\p@ minus0.5\p@}

\def\@listii {\leftmargin\leftmarginii
              \labelwidth\leftmarginii
              \advance\labelwidth-\labelsep
              \topsep    3\p@ plus1\p@ minus0.5\p@
              \parsep    1\p@ plus0.5\p@  minus0.5\p@
              \itemsep   \parsep}

\def\thefootnote{\fnsymbol{footnote}}
\def\thetable{\Roman{table}}

\def\pacs#1{\def\@pacs{#1}}

\def\@authoraddress{}

\def\author#1{\expandafter\def\expandafter\@authoraddress\expandafter
{\@authoraddress %
{%
{%\dimen0=-\prevdepth \advance\dimen0 by23pt
\nointerlineskip
\vskip\aboveauthorskip
\normalsize\sc
\ignorespaces#1
\par
}}}}

\def\address#1{\expandafter\def\expandafter\@authoraddress\expandafter
{\@authoraddress{
\nointerlineskip
\vskip\aboveaddressskip
\small\ignorespaces#1\par
}}}

\def\ps@firsthdr{
  \footskip=9.5mm
  \def\@oddhead{\noindent Vol.~{\bf 97}~(2000)\hfill {\sl ACTA PHYSICA
      POLONICA A}\hfill No. 1(2)}
  \def\@oddfoot{\centerline{ (\thepage )}}
  }

\def\ps@standardheadings{
  \def\@oddhead{\hfill\thepage}
  \def\@evenhead{\thepage\hfill}
  \def\@oddfoot{}
  \def\@evenfoot{}
  }

\pagestyle{standardheadings}
\renewcommand\maketitle{
  \thispagestyle{firsthdr}
  {\par  \parindent=-1.8cm  \rule{162mm}{0.32mm}\par}
  \vskip 6mm
  {\hfill \footnotesize Proceedings of the European Conference
                      ``Physics of Magnetism 08", Pozna\'n 2008}
  \vskip 7.5mm
  {\centering
    \baselineskip=7mm
    {\Large \@title }\par
    \vskip 0.5mm 
    \@authoraddress \par
    {\it (Version date: \@date)} \par
    \vskip 2mm \normalsize
    \setcounter{footnote}{0}}
  }

\renewenvironment{abstract} {%
  \begin{center}
    \begin{minipage}{107mm}
      \small
      \parindent 7mm
      }{\vskip 1mm PACS numbers: \@pacs \end{minipage}\end{center}\vskip 1mm}

\parindent=9mm
\def\@seccntformat#1{\csname the#1\endcsname.~}
\renewcommand\thesection {\@arabic\c@section}
\renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
\renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}
\renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {2mm plus 1mm minus0.5mm}%
                                   {2mm plus 1mm minus0.5mm}%
                                   {\centering \rm \bf}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                      {2mm plus 1mm minus0.5mm}%
                                      {2mm plus 1mm minus0.5mm}%
                                     {\centering \it}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                      {1mm plus 0.5mm minus0.2mm}%
                                      {1mm plus 0.5mm minus0.2mm}%
                                     {\it}}

\renewcommand\figurename{Fig.}
\renewcommand\tablename{TABLE}

\def\fnum@figure{\figurename~\thefigure}
\def\fnum@table{\tablename~\thetable}

\long\def\@makecaption#1#2{%
%  \vskip\abovecaptionskip
  \vskip 10pt
  \sbox\@tempboxa{\small #1. #2}%
  \ifdim \wd\@tempboxa >\hsize
    {\small #1. #2}\par
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
%  \vskip\belowcaptionskip}
   \vskip 0pt}

\def\tabcaption#1#2{%
  \refstepcounter\@captype
  \parbox{#1}{\small \baselineskip=1.1\baselineskip \hfill
    TABLE~\thetable \\\noindent #2}
  \vskip 0.1cm}

\def\thebibliography#1{\section*{\refname}%
  \small%
  \list{\@biblabel{\@arabic\c@enumiv}}%
  {%
     \leftmargin\labelwidth
     \advance\leftmargin\labelsep
     \usecounter{enumiv}%
     \let\p@enumiv\@empty
     \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  \sloppy
  \clubpenalty4000
  \@clubpenalty \clubpenalty
  \widowpenalty4000%
  \sfcode`\.\@m
  \itemsep=0.0mm
 }

\def\table{\renewcommand{\arraystretch}{1.1}
     \doublerulesep=1mm
     \intextsep=3mm
     \topsep=0mm
     \@float{table}}

