%%
%% DO NOT EDIT THIS FILE!
%%
%% This is file 'OSGeoJournal.sty',
%% Copied from 'GRASSNews',
%% derived from 'RNews.sty' file
%% kindly provided by the R Project..
%%
\def\fileversion{v1}
\def\filename{OSGeoJournal}
\def\filedate{2008/07/01}
\def\docdate {2008/07/01}
%%
%% Package `OSGeoJournal' to use with LaTeX2e
%% Copyright (C) 2004 GRASS Development Team
%%
%% -*- LaTeX -*-
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
%\ProvidesPackage{\filename}[\filedate\space\fileversion\space
%                        OSGeoJournal package]
\typeout{Package: `\filename\space\fileversion \@spaces <\filedate>'}
\typeout{English documentation as of <\docdate>}
\RequirePackage{ifthen}
\newboolean{OSGeoJournal@driver}
\DeclareOption{driver}{\setboolean{OSGeoJournal@driver}{true}}
\DeclareOption*{\PackageWarning{\filename}{Unknown option
    `\CurrentOption'}}
\ProcessOptions\relax
\ifthenelse{\boolean{OSGeoJournal@driver}}{}{
\RequirePackage{multicol,graphicx,color,fancyhdr,hyperref}
\newcommand{\volume}[1]{\def\OSGeoJournal@volume{#1}}
\newcommand{\volnumber}[1]{\def\OSGeoJournal@number{#1}}
\renewcommand{\date}[1]{\def\OSGeoJournal@date{#1}}
\setcounter{secnumdepth}{-1}
\renewcommand{\author}[1]{\def\OSGeoJournal@author{#1}}
\renewcommand{\title}[1]{\def\OSGeoJournal@title{#1}}
\newcommand{\subtitle}[1]{\def\OSGeoJournal@subtitle{#1}}
\newenvironment{article}{%
  \author{}\title{}\subtitle{}}{\end{multicols}%\hrulefill
}
\renewcommand{\maketitle}{
  \begin{multicols}{2}[\chapter{\OSGeoJournal@title}\refstepcounter{chapter}][3cm]
    \ifx\empty\OSGeoJournal@subtitle\else\noindent\textbf{\OSGeoJournal@subtitle}
    \par\nobreak\addvspace{\baselineskip}\fi
    \ifx\empty\OSGeoJournal@author\else\noindent\textit{\OSGeoJournal@author}
    \par\nobreak\addvspace{\baselineskip}\fi
    \@afterindentfalse\@nobreaktrue\@afterheading}
\renewcommand\chapter{\secdef\OSGeoJournal@chapter\@schapter}
\providecommand{\nohyphens}{%
  \hyphenpenalty=10000\exhyphenpenalty=10000\relax}
\newcommand{\OSGeoJournal@chapter}{%
  \renewcommand{\@seccntformat}[1]{}%
  \@startsection{chapter}{0}{0mm}{%
    -2\baselineskip \@plus -\baselineskip \@minus -.2ex}{\p@}{%
    \normalfont\Huge\bfseries\raggedright}}
\renewcommand*\l@chapter{\@dottedtocline{0}{0pt}{1em}}
\def\@schapter#1{\section*#1}
\renewenvironment{figure}[1][]{%
  \def\@captype{figure}
  \noindent
  \begin{minipage}{\columnwidth}}{%
  \end{minipage}\par\addvspace{\baselineskip}}
\renewcommand{\theequation}{\@arabic\c@equation}
\def\equation{%
  \let\refstepcounter\H@refstepcounter
  \H@equation
  \def\newname{\arabic{chapter}.\theequation}%
  \let\theHequation\newname%
  \hyper@makecurrent{equation}%
  \Hy@raisedlink{\hyper@anchorstart{\@currentHref}}%
  \let\refstepcounter\new@refstepcounter}%
\def\endequation{\Hy@raisedlink{\hyper@anchorend}\H@endequation}
\renewcommand{\thefigure}{\@arabic\c@figure}
\renewcommand{\thetable}{\@arabic\c@table}
\renewcommand{\contentsname}{Contents of this volume:}
\renewcommand\tableofcontents{%
  \section*{\contentsname
    \@mkboth{%
      \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
  \@starttoc{toc}}

\newenvironment{widepart}%
{ \setlength{\textwidth}{27cm}
  \setlength{\textheight}{40cm}
  \setlength{\topmargin}{0mm}
  }
  
  %%%% Tmitchell: add coverpage for this volume here %%%%%
\newcommand{\coverpage}{
\pagestyle{fancy}
 \noitemsep
\fancyhf{}
\fancyhead[L]{OSGeo Journal}
\fancyhead[C]{\ChapName}
\fancyhead[R]{Vol.~\OSGeoJournal@volume, \OSGeoJournal@date}
\fancyfoot[L]{ISSN 1994-1897}
\fancyfoot[R]{\thepage}
}

\renewcommand{\titlepage}{%
\setlength{\textwidth}{21.6cm}
 \includepdf[]{graphics/cover_a4paper_front.pdf}
\pagestyle{fancy}
 \noitemsep
  \fancyhf{}
  \fancyhead[L]{OSGeo Journal}
    \fancyhead[C]{\ChapName}
  \fancyhead[R]{Vol.~\OSGeoJournal@volume, \OSGeoJournal@date}
  \fancyfoot[L]{ISSN 1994-1897}
  \fancyfoot[R]{\thepage}
}
\setlength{\textheight}{225mm}
\setlength{\topmargin}{0mm}
\setlength{\textwidth}{18cm}
\setlength{\oddsidemargin}{-8mm}
\setlength{\columnseprule}{.1pt}
\setlength{\columnsep}{20pt}
\RequirePackage{ae,mathpple}
\RequirePackage[T1]{fontenc}
\renewcommand{\rmdefault}{ppl}
\renewcommand{\sfdefault}{aess}
\renewcommand{\ttdefault}{aett}
\definecolor{Red}{rgb}{0.7,0,0}
\definecolor{Blue}{rgb}{0,0,0.8}
\definecolor{hellgrau}{rgb}{0.55,0.55,0.55}
\newcommand{\R}{R}
\newcommand{\address}[1]{\addvspace{\baselineskip}\noindent\emph{#1}}
\newcommand{\email}[1]{\href{mailto:#1}{\normalfont\texttt{#1}}}
\newsavebox{\OSGeoJournal@box}
\newlength{\OSGeoJournal@len}
\newenvironment{bottombox}{%
  \begin{figure}[b]
    \begin{center}
      \noindent
      \begin{lrbox}{\OSGeoJournal@box}
        \begin{minipage}{0.99\textwidth}}{%
       \end{minipage}
      \end{lrbox}
      \addtolength{\OSGeoJournal@len}{\fboxsep}
      \addtolength{\OSGeoJournal@len}{\fboxrule}
      \hspace*{-\OSGeoJournal@len}\fbox{\usebox{\OSGeoJournal@box}}
    \end{center}
  \end{figure}}

\RequirePackage{verbatim}
\def\boxedverbatim{%
  \def\verbatim@processline{%
    {\setbox0=\hbox{\the\verbatim@line}%
    \hsize=\wd0 \the\verbatim@line\par}}%
  \@minipagetrue
  \@tempswatrue
  \setbox0=\vbox
  \bgroup\small\verbatim
}
\def\endboxedverbatim{%
  \endverbatim
  \unskip\setbox0=\lastbox
  \egroup
  \fbox{\box0}
}

\newcommand{\ChapName}[1]{}
\newcommand*{\oldChapter}{}
\let\oldChapter\chapter
\renewcommand*{\chapter}{%
  \@ifstar{%
    \starchapter
  }{%
    \@dblarg\nostarchapter
  }%
}
\newcommand*{\starchapter}[1]{%
  \renewcommand{\ChapName}{#1}%
  \oldChapter*{#1}%
}
\newcommand{\nostarchapter}{}
\def\nostarchapter[#1]#2{%
% #1: toc entry
% #2: main entry
  \renewcommand{\ChapName}{#2}%
  \oldChapter[{#1}]{#2}%
}

%%% New Page Style %%%  

\pagestyle{empty}
} % \ifthenelse{\boolean{OSGeoJournal@driver}}
\newcommand\code{\bgroup\@codex}
\def\@codex#1{{\normalfont\ttfamily\hyphenchar\font=-1 #1}\egroup}
\newcommand{\kbd}[1]{{\normalfont\texttt{#1}}}
\newcommand{\key}[1]{{\normalfont\texttt{\uppercase{#1}}}}
\newcommand\samp{`\bgroup\@noligs\@sampx}
\def\@sampx#1{{\normalfont\texttt{#1}}\egroup'}
\newcommand{\var}[1]{{\normalfont\textsl{#1}}}
\let\env=\code
\newcommand{\file}[1]{{`\normalfont\textsf{#1}'}}
\let\command=\code
\let\option=\samp
\newcommand{\dfn}[1]{{\normalfont\textsl{#1}}}
\newcommand{\acronym}[1]{{\normalfont\textsc{\lowercase{#1}}}}
\newcommand{\strong}[1]{{\normalfont\fontseries{b}\selectfont #1}}
\let\pkg=\strong
\RequirePackage{alltt}
\newenvironment{example}{\begin{alltt}}{\end{alltt}}
\newenvironment{smallexample}{\begin{alltt}\small}{\end{alltt}}
\newenvironment{display}{\list{}{}\item\relax}{\endlist}
\newenvironment{smallverbatim}{\small\verbatim}{\endverbatim}
\providecommand{\operatorname}[1]{%
  \mathop{\operator@font#1}\nolimits}
\renewcommand{\P}{%
  \mathop{\operator@font I\hspace{-1.5pt}P\hspace{.13pt}}}
\newcommand{\E}{%
  \mathop{\operator@font I\hspace{-1.5pt}E\hspace{.13pt}}}
\newcommand{\VAR}{\operatorname{var}}
\newcommand{\COV}{\operatorname{cov}}
\newcommand{\COR}{\operatorname{cor}}
\RequirePackage{amsfonts}
\endinput


%%
%% End of file `OSGeoJournal.sty'.
