% Style to International Cosmic Ray Conference Merida Yucatan Mexico 2007
% icrctc07.sty LATex 2e Version 1.6
%% Copyright 2007 by Victor De la Luz
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
% 
% This Current Maintainer of this work is Victor De la Luz.
%                                         <vdelaluz@inaoep.mx>
%
% This work consists of the files icrctc07.sty.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% HISTORY:
% Revision: 22/April/2007
% Revision: 17/April/2007
% Revision: 9/April/2007
% Revision: 4/April/2007
% Revision: 31/March/2007
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{icrctc07}[1994/06/01 Standard LaTeX package]
\usepackage{graphicx}
\usepackage{ftnright}
\usepackage{fancyhdr}
\usepackage{times}
\DeclareOption{twoside}{\@twosidetrue}
\ExecuteOptions{twoside}
\twocolumn
%\flushbottom 
\sloppy
%Preliminary Declarations
\hoffset 0mm
\voffset 0mm
%tope de impresion 25.4mm
\oddsidemargin   -10.4mm   %Margen impar
\evensidemargin  -10.4mm   %Margen par
\textwidth        150mm
%---------------------- 
\paperwidth       180mm
\topmargin          2mm  
\headheight         4mm
\headsep            5mm
\textheight       210mm
\footskip           8mm
%--------------------
\paperheight      240mm 
\columnsep         8mm
\parskip            1mm
\parindent          0mm
\marginparsep       0mm
\headwidth        150mm
\def\addcontentsline#1#2#3{}
%New declarations to Authors, paperid, etc.
\newcommand{\@authors}{}
\newcommand{\authors}[1]{\renewcommand{\@authors}{#1}}
\newcommand{\@paperid}{}
\newcommand{\paperid}[1]{\renewcommand{\@paperid}{#1}}
\newcommand{\@shorttitle}{}
\newcommand{\shorttitle}[1]{\renewcommand{\@shorttitle}{#1}}
\newcommand{\@shortauthors}{}
\newcommand{\shortauthors}[1]{\renewcommand{\@shortauthors}{#1}}
\newcommand{\@afiliations}{}
\newcommand{\afiliations}[1]{\renewcommand{\@afiliations}{#1}}
\newcommand{\@email}{}
\newcommand{\email}[1]{\renewcommand{\@email}{#1}}
\newcommand{\@abstract}{}
\renewcommand{\abstract}[1]{\renewcommand{\@abstract}{#1}}
%fonts
\def\@normalsize{\@setsize\normalsize{10pt}\xipt\@xipt}   % 10 point on 11
\def\small{\@setsize\small{10pt}\ixpt\@ixpt}            % 9 point on 10
\def\footnotesize{\@setsize\footnotesize{10pt}\ixpt\@ixpt} % 9 point on 10
\def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt} % 7 point on 8
\def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}               % 6 point on 7
\def\large{\@setsize\large{12pt}\xipt\@xipt}            % 11 point on 12
\def\Large{\@setsize\Large{14pt}\xiipt\@xiipt}          % 12 point on 14
\def\LARGE{\@setsize\LARGE{16pt}\xivpt\@xivpt}          % 14 point on 16
\def\huge{\@setsize\huge{20pt}\xviipt\@xviipt}          % 17 point on 20
\def\Huge{\@setsize\Huge{23pt}\xxpt\@xxpt}              % 20 point on 23
%The logoblack.eps source
\newcommand{\@logosource}{logoblack}
\DeclareOption{black}{\gdef\@logosource{logoblack}}
\newcommand{\logosource}[1]{\gdef\@logosource{#1}}
\newlength{\@line}
\setlength{\@line}{12pt}
\pagestyle{fancyplain}
%special Headings
\lhead[\small \sc \@shorttitle \hfill]{} 
\rhead[]{\small \sc30th International Cosmic Ray Conference\hfill}
%don't work! I need fancyhdr
%\markboth{\small \sc \@shorttitle \hfill}{\small \sc30th International Cosmic Ray Conference \@email\hfill}
%The line footnote
\footnotesep 6.65pt %
\skip\footins 9pt plus 4pt minus 2pt
\def\footnoterule{\kern-3pt \hrule width 5pc \kern 2.6pt }
\setcounter{footnote}{0}
%Making the title
\renewcommand{\maketitle}{
\twocolumn[\begin{@twocolumnfalse}  
\null\begingroup\thispagestyle{empty}%
\hbox{%
  \vbox{\hsize=98mm%
    {\footnotesize\sc30th International Cosmic Ray Conference\hfill}    
   \vspace{18mm}%
  }%
  \vbox{\hsize = 52mm 
    \hfill\includegraphics{\@logosource}
  }} 
 \vspace{5mm}
    {\bf\Large\@title}\hfill \vspace{3mm}\\
    {\sc\@authors}\\ 
    {\it\@afiliations}\\
    {\it\small\@email}    
    %\vspace{1mm} 
    \vspace{0.5ex} \begin{quote}\small
      {\bf  Abstract:} {\@abstract}
    \end{quote}\vskip 1ex
    \vskip 5\p@
    \endgroup
  \setcounter{footnote}{0}%
\end{@twocolumnfalse}]
}
%figures
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\fnum@figure{\figurename~\thefigure}
\def\figure{\@float{figure}}
\def\endfigure{\end@float\gdef\@currentlabel{}}
%Not page numeration
\renewcommand{\thepage}{}
% no section number display
\makeatletter
\def\@seccntformat#1{}
\makeatother
% no numbers in toc
\renewcommand{\numberline}[1]{}
%Viudas y huerfanas!
\clubpenalty=10000
\widowpenalty=10000
%bibliography skips
  \let\oldthebibliography=\thebibliography
  \let\endoldthebibliography=\endthebibliography
  \renewenvironment{thebibliography}[1]{%
    \begin{oldthebibliography}{#1}%
      \setlength{\parskip}{0ex}%
      \setlength{\itemsep}{0ex}%
  }%
  {%
    \end{oldthebibliography}%
  }
%end 
%22 April Mexico City 2007
