summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/economic/erae.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-12-31 18:46:01 +0000
committerKarl Berry <karl@freefriends.org>2008-12-31 18:46:01 +0000
commit66a510089fd3f3f081f17b0f317f1834a9475f0b (patch)
tree1b6ae1809a8d28a406c8499fd2e49da9d0311c4f /Master/texmf-dist/tex/latex/economic/erae.cls
parente92f643b99a97c1ce1e3c1424f9d27a4155e6b0e (diff)
economic update (30dec08)
git-svn-id: svn://tug.org/texlive/trunk@11770 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/economic/erae.cls')
-rw-r--r--Master/texmf-dist/tex/latex/economic/erae.cls63
1 files changed, 60 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/economic/erae.cls b/Master/texmf-dist/tex/latex/economic/erae.cls
index 16446cd51e2..9bdf1aba9f1 100644
--- a/Master/texmf-dist/tex/latex/economic/erae.cls
+++ b/Master/texmf-dist/tex/latex/economic/erae.cls
@@ -2,7 +2,7 @@
%%% European Review of Agricultural Economics (ERAE)
%%%
%%% author: Arne Henningsen
-%%% version: 1.0.1 (28 August 2006)
+%%% version: 1.1 (10 November 2007)
%%% license: LaTeX Project Public License
%%%
%%% Note: This is an unofficial style file that may not fully comply
@@ -17,19 +17,42 @@
%%% amsmath, babel, courier, endfloat, geometry,
%%% helvet, mathptmx, natbib, setspace, titlesec, url
%%%
+%%% The class provides following options:
+%%% noendfloat - don't move floats to the end of the paper
+%%% author - show name(s) of authors(s)
+%%% date - show date
+%%%
%%% The corresponding BibTeX style file "erae.bst" should be used
%%% for the bibliography: \bibliographystyle{erae}
%%%
%%% This document class provides 4 new commands:
%%% \keywords can be use to show keywors below the abstract
%%% \jelclass can be use to show JEL classifications below the abstract
+%%% \affiliation can be used to add affiliation information
%%% \citetPage{page}{key} for citations like Author (Year: page)
%%% \citepPage{page}{key} for citations like (Author, year: page)
%%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{erae}[2006/08/22 LaTeX class for the European Review of Agricultural Economics]
+\ProvidesClass{erae}[2007/11/10 LaTeX class for the European Review of Agricultural Economics]
+
+\RequirePackage{ifthen}
+
+% option to NOT place floats at the end
+\newcounter{UseEndfloat}
+\setcounter{UseEndfloat}{1}
+\DeclareOption{noendfloat}{\setcounter{UseEndfloat}{0}}
+
+% option to show the authors' names
+\newcounter{ShowAuthor}
+\setcounter{ShowAuthor}{0}
+\DeclareOption{author}{\setcounter{ShowAuthor}{1}}
+
+% option to print the date
+\newcounter{ShowDate}
+\setcounter{ShowDate}{0}
+\DeclareOption{date}{\setcounter{ShowDate}{1}}
% pass any options on to the scrartcl class and load this class with some options
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
@@ -38,6 +61,10 @@
% pointednumbers = add final dot after ordinary section numbers
% tablecaptionabove = use \captionabove for tables
+% fontencoding + inputencoding
+\usepackage[T1]{fontenc}
+\usepackage[latin1]{inputenc}
+
% page format, margins
\RequirePackage{geometry}
\geometry{a4paper, tmargin=2.5cm, bmargin=2.8cm, lmargin=2.5cm,
@@ -96,11 +123,29 @@
\renewcommand{\captionformat}{.\ }
% titlepage without author and date
+\newcommand{\affiliation}[1]{\newcommand{\@affiliation}{#1}}
\renewcommand{\maketitle}{
+ \begin{center}
\begin{spacing}{1.5}
- \centering
\LARGE{\textbf{\@title}}%
\end{spacing}
+ \ifthenelse{\equal{\theShowAuthor}{1}}{
+ \begin{large}
+ \textbf{\@author}\\
+ \end{large}
+ \ifthenelse{ \isundefined\@affiliation }{}{
+ \vspace*{3mm}
+ \begin{small}
+ \@affiliation\\
+ \end{small}
+ }
+ \vspace*{5mm}
+ }{}
+ \ifthenelse{\equal{\theShowDate}{1}}{
+ \@date\\
+ \vspace*{5mm}
+ }{}
+ \end{center}
}
% abstract, keywords, JEL classification
@@ -114,10 +159,20 @@
\textbf{Abstract}
\end{center}
}{%
+\ifthenelse{ \isundefined\@keywords }{
+\ClassWarningNoLine{erae}{No keywords specified.
+ Please use the command \protect\keywords}
+}{
\smallskip\\ \noindent
Key words: \@keywords
+}
+\ifthenelse{ \isundefined\@jelclass }{
+\ClassWarningNoLine{erae}{No JEL classification specified.
+ Please use the command \protect\jelclass}
+}{
\smallskip\\ \noindent
JEL classification: \@jelclass
+}
\end{minipage}
\end{center}%
\noindent%
@@ -135,7 +190,9 @@ JEL classification: \@jelclass
\setlength{\emergencystretch}{3em}
% move floats to the end of the paper
+\ifthenelse{\equal{\theUseEndfloat}{1}}{
\RequirePackage[heads,tablesfirst,nolists]{endfloat}
+}{}
% use single quotes
\RequirePackage{csquotes}