%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
%% NSCM-24 class for LaTeX files - 22.6.2011 RK
%%                                             
%% \maketitle makes the first page automatically
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
  
\NeedsTeXFormat{LaTeX2e}  
\ProvidesClass{nscm-24}[2008/10/28 NSCM-24 extented abstract class]  
  
\DeclareOption{10pt}{\OptionNotUsed}  
\DeclareOption{11pt}{\OptionNotUsed}  
\DeclareOption{twocolumn}{\OptionNotUsed}  
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}  
  
\ProcessOptions\relax  
  
\LoadClass[11pt,a4paper]{article}  
  
\RequirePackage[latin1]{inputenc}   % for unix 
%\RequirePackage[ansinew]{inputenc}  % for Windows 
%\RequirePackage[cp1252]{inputenc}   % alternative for Windows
%\RequirePackage[cp850]{inputenc}    % MS-DOS
%\RequirePackage[aplemac]{inputenc}  % for Macintosh


\RequirePackage{amsfonts,amssymb,amsbsy,amsmath}
\RequirePackage{booktabs}  
\RequirePackage{calc}  
\RequirePackage{epsfig}
\RequirePackage{graphicx}
\RequirePackage{lastpage}
\RequirePackage{paralist}  
\RequirePackage{stmaryrd}
\RequirePackage{setspace}

%\font\mathbbm=bbmb11
\font\slbgreek=cmmib11

\setlength{\paperheight}{297mm}
\setlength{\paperwidth}{210mm}
\setlength{\headheight}{0mm}
\setlength{\headsep}{0mm}
\setlength{\topmargin}{0mm}
\setlength{\hoffset}{3mm}  
\setlength{\voffset}{5mm}  
\setlength{\oddsidemargin}{0mm}  
\setlength{\textheight}{245mm}  
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% jostain syystä tämä tuottaa 150 mm leveän tekstin !!!!!
\setlength{\textwidth}{160mm}  
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setlength{\textfloatsep}{12pt}  
\setlength{\abovedisplayskip}{6pt}  
\setlength{\belowdisplayskip}{6pt}  
\setlength{\parindent}{6mm}  
\setlength{\abovecaptionskip}{6pt}  
\setlength{\belowcaptionskip}{6pt}  
\setlength{\itemsep}{0pt}  


%% Title  
\renewcommand{\maketitle}{%  
 \newpage  
 \begin{spacing}{1.0}%  
  {\noindent\normalfont{Proceedings of the 24$^\mathrm{th}$ Nordic Seminar on Computational Mechanics} \\
   J. Freund and R. Kouhia (Eds.) \\
 \copyright Aalto University, 2011}
 \end{spacing}
  {%3  
   \mbox{}\vspace{10mm}\\  
   \fontsize{16}{19}\selectfont\sffamily
   \bfseries{\@title}  
   \par  
  }%3  
  \vspace{18pt}%  
  {%4  
   \noindent\normalfont\@author  
   \par  
  }%4  
  \vspace{13pt}%  
  {%5  
   \def\and{\\\vspace{13pt}}  
   \noindent\normalfont\@address  
   \par  
  }%5  
}% End of \@maketitle  
  


\def\author{\@ifnextchar[{\@getshortauthor}{\@getauthor}}  
\def\@getauthor#1{\gdef\@author{#1}\gdef\@shortauthor{#1}}  
\def\@getshortauthor[#1]#2{\gdef\@shortauthor{#1}\gdef\@author{#2}}  
  
\newcommand{\address}[1]{\gdef\@address{#1}}  
  
  
%\def\sectionLevel{1}  
%\def\sectionIndent{0pt}  
%\def\sectionSpaceBefore{12pt}  
%\def\sectionSpaceAfter{6pt}  
%\def\sectionStyle{\normalsize\bfseries\MakeUppercase}  
  
%\renewcommand{\section}{%  
%  \@startsection{section}{\sectionLevel}{\sectionIndent}{\sectionSpaceBefore}%  
%                {\sectionSpaceAfter}{\sectionStyle}}%  

  
  
  
\renewcommand{\@makecaption}[2]{%  
  \vskip\abovecaptionskip  
  \sbox\@tempboxa{\normalsize\fontsize{10}{12}\selectfont #1. #2}%  
  \ifdim \wd\@tempboxa >\hsize  
    \normalsize\fontsize{10}{12}\selectfont #1. #2\par  
  \else  
    \global \@minipagefalse  
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%  
  \fi  
  \vskip\belowcaptionskip}  
  
\renewenvironment{thebibliography}[1]  
  {\section*{\refname\@mkboth{\refname}{\refname}}%  
   \list{\@biblabel{\@arabic\c@enumiv}}%  
        {\settowidth\labelwidth{\@biblabel{#1}}%  
         \leftmargin\labelwidth  
         \advance\leftmargin\labelsep  
         \@openbib@code  
         \usecounter{enumiv}%  
         \let\p@enumiv\@empty  
         \renewcommand\theenumiv{\@arabic\c@enumiv}}%  
   \sloppy  
   \clubpenalty4000  
   \@clubpenalty \clubpenalty  
   \widowpenalty4000%  
   \sfcode`\.\@m}  
  {\def\@noitemerr  
   {\@latex@warning{Empty `thebibliography' environment}}%  
   \endlist}  

  
  
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\summary{
\begin{small}
%\fontsize{11}{12}
\begin{spacing}{0.8}
\paragraph{\sffamily{Summary.}}
}
%\def\endsummary{}
\def\endsummary{\end{spacing}\end{small}}
\mark{}


\newcommand\keywordssec{\@startsection{paragraph}{4}{\z@}{6pt}{-1.1ex}{\itshape}}

\def\keywords{
\begin{small}
\keywordssec{Key words:}
}
\def\endkeywords{\end{small}}
\mark{}

\renewcommand\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
 -.2ex}{1.5ex plus .2ex}{\normalsize\sffamily\bfseries}}
\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
 -.2ex}{1.1ex plus .2ex}{\normalsize\sffamily\itshape}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus 
 -1ex minus -.2ex}{1.1ex plus .2ex}{\normalsize\itshape}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\renewcommand{\footnoterule}{\hrule width 0pt}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% bold Greek alphabets

\def\balpha{\hbox{\boldmath$\alpha$}}
\def\bbeta{\hbox{\boldmath$\beta$}}
\def\bsigma{\hbox{\boldmath$\sigma$}}
\def\bvepsilon{\hbox{\boldmath$\varepsilon$}}
\def\bepsilon{\hbox{\boldmath$\epsilon$}}
\def\blambda{\hbox{\boldmath$\lambda$}}
\def\bvtheta{\hbox{\boldmath$\vartheta$}}
\def\btheta{\hbox{\boldmath$\theta$}}
\def\bphi{\hbox{\boldmath$\phi$}}
\def\bvphi{\hbox{\boldmath$\varphi$}}
\def\bpsi{\hbox{\boldmath$\psi$}}
\def\bdelta{\hbox{\boldmath$\delta$}}
\def\bkappa{\hbox{\boldmath$\kappa$}}
\def\bgamma{\hbox{\boldmath$\gamma$}}
\def\bxi{\hbox{\boldmath$\xi$}}
\def\bet{\hbox{\boldmath$\eta$}}
\def\btau{\hbox{\boldmath$\tau$}}
\def\bomega{\hbox{\boldmath$\omega$}}
\def\bzeta{\hbox{\boldmath$\zeta$}}
\def\bmu{\hbox{\boldmath$\mu$}}
\def\bnu{\hbox{\boldmath$\nu$}}
\def\brho{\hbox{$\boldsymbol{\rho}$}}
\def\bchi{\hbox{\boldmath$\chi$}}
%
\def\bGamma{\hbox{$\boldsymbol{\Gamma}$}}
\def\bDelta{\hbox{$\boldsymbol{\Delta}$}}
\def\bTheta{\hbox{$\boldsymbol{\Theta}$}}
\def\bLambda{\hbox{$\boldsymbol{\Lambda}$}}
\def\bPi{\hbox{$\boldsymbol{\Pi}$}}
\def\bXi{\hbox{$\boldsymbol{\Xi}$}}
\def\bSigma{\hbox{$\boldsymbol{\Sigma}$}}
\def\bPhi{\hbox{$\boldsymbol{\Phi}$}}
\def\bPsi{\hbox{$\boldsymbol{\Psi}$}}
\def\bOmega{\hbox{$\boldsymbol{\Omega}$}}

%\def\bGamma{\hbox{\slbgreek\char0}}
%\def\bDelta{\hbox{\slbgreek\char1}}
%\def\bTheta{\hbox{\slbgreek\char2}}
%\def\bLambda{\hbox{\slbgreek\char3}}
%\def\bPi{\hbox{\slbgreek\char5}}
%\def\bSigma{\hbox{\slbgreek\char6}}
%\def\bPhi{\hbox{\slbgreek\char8}}
%\def\bPsi{\hbox{\slbgreek\char9}}
%\def\bOmega{\hbox{\slbgreek\char10}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% some operators
\newcommand{\bo}[1]{\mbox{\boldmath${\mathit{#1}}$}}
\newcommand{\bu}[1]{\mbox{$\mathbf{#1}$}}
\newcommand{\jump}[1]{\mbox{$\left[\hspace{-2pt}\left[{#1}\right]\hspace{-2pt}\right]$}}
\newcommand{\enorm}[1]{\,|\!|\!| {{#1}} |\!|\!|}

\newcommand{\Div}{\operatorname{Div}}
\newcommand{\diver}{\operatorname{div}}
\newcommand{\grad}{\operatorname{grad}}
\newcommand{\Grad}{\operatorname{Grad}}
\newcommand{\dev}{\operatorname{dev}}
\newcommand{\tr}{\operatorname{tr}}
\newcommand{\dd}[1]{\mbox{${\mathrm d}{#1}$}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
\AtBeginDocument{%  
%  \pagestyle{empty}  
  \maketitle  
  \let\maketitle\relax  
\setcounter{secnumdepth}{-2}
}  
  
\endinput  
