\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{daily}[2007/01/06 v0.01 Basic class for daily news]
\RequirePackage{fancyhdr,graphicx,framed,pstricks}

\usepackage[a4paper,left=1cm,right=1cm,top=1cm,nofoot,bottom=1cm]{geometry}

% \newrgbcolor{DarkOrange}{1 .498 0}
% \newrgbcolor{DarkGrey}{.3 .3 .3}

\setlength{\columnsep}{8mm}
\parskip 4mm
\parindent 0mm

\newcommand{\subtitle}[1]{\def\thesubtitle{#1}}
\renewcommand{\title}[1]{\def\thetitle{#1}}
\renewcommand{\author}[1]{\def\theauthor{#1}}
\renewcommand{\date}[1]{\def\thedate{#1}}
\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}%
        \twocolumn[\@maketitle]%
    \thispagestyle{empty}\@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
}

\def\@maketitle{\vskip -40mm
  \begin{center}
    \huge{\textsf{\textbf{\thetitle}}}\\
    \large{\textsf{\textbf{\thesubtitle}}}\\[1mm]
    \normalfont 
    \begin{tabular}{p{.5\textwidth}p{.45\textwidth}}
      \begin{minipage}{.5\textwidth}
        \textsf{\theauthor}
      \end{minipage}
      &
      \begin{minipage}{.45\textwidth}
        \begin{flushright}
          \textsf{\thedate}
        \end{flushright}
      \end{minipage}
    \end{tabular}
    \vskip -2mm
    \rule{.98\textwidth}{2pt}
  \end{center}
  \vskip 2mm
}

\renewcommand\section{\@startsection{section}{1}{0pt}%
   {5mm}{1mm}{\Large\sffamily\bfseries}}

\renewcommand\subsection{\@startsection{subsection}{2}{0pt}%
   {5mm}{1mm}{\large\sffamily\bfseries}}

\renewcommand\subsubsection{\@startsection{subsubsection}{3}{0pt}%
   {5mm}{1mm}{\sffamily\bfseries}}


\newenvironment{block}[1]{
  \begin{framed}
    \subsection*{\vskip -1cm\noindent#1}
    \small\it
}{\end{framed}}

\renewenvironment{abstract}{\begin{block}{\abstractname}}{\end{block}}
\pagestyle{empty}
\twocolumn
\sloppy
\flushbottom

\endinput


