summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-01-10 22:32:56 +0000
committerKarl Berry <karl@freefriends.org>2007-01-10 22:32:56 +0000
commite3d51aa2578ac5632c8271c357540511411ff0a2 (patch)
tree0473edf7a9d2f0c1290755f365db4002b13bb2f5 /Master/texmf-dist/tex
parent3b74459d2df5406223af0ab9431433d3de67e5ef (diff)
economic update
git-svn-id: svn://tug.org/texlive/trunk@3312 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/economic/ajae.cls80
1 files changed, 77 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/economic/ajae.cls b/Master/texmf-dist/tex/latex/economic/ajae.cls
index e26b6fb40d7..612f70c71a3 100644
--- a/Master/texmf-dist/tex/latex/economic/ajae.cls
+++ b/Master/texmf-dist/tex/latex/economic/ajae.cls
@@ -36,6 +36,33 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ajae}[2006/08/22 LaTeX class for the American Journal of Agricultural Economics]
+\RequirePackage{ifthen}
+
+% option to use footnotes in place of endnotes
+\newcounter{UseEndnotes}
+\setcounter{UseEndnotes}{1}
+\DeclareOption{noendnotes}{\setcounter{UseEndnotes}{0}}
+
+% 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}}
+
+% option to print the 'preprint notice'
+\newcounter{ShowPreprintNote}
+\setcounter{ShowPreprintNote}{0}
+\DeclareOption{preprint}{\setcounter{ShowPreprintNote}{1}}
+
% pass any options on to the scrartcl class and load this class with some options
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\ProcessOptions\relax
@@ -112,12 +139,45 @@
% section and subsections are not numbered
\setcounter{secnumdepth}{0}
+% leading unnumbered footnote
+\def\leadingfootnote{\xdef\@thefnmark{}\@footnotetext}
+
% titlepage without author and date
+\newcommand{\affiliation}[1]{\newcommand{\@affiliation}{#1}}
\renewcommand{\maketitle}{
- \begin{spacing}{1.5}
- \centering
- \LARGE{\textbf{\@title}}%
+ \begin{center}
+ \begin{LARGE}
+ \begin{spacing}{1.25}
+ \textbf{\@title}
\end{spacing}
+ \end{LARGE}
+ \vspace*{10mm}
+ \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}
+ }{}
+ \ifthenelse{\equal{\theShowPreprintNote}{1}}{
+ \begin{small}
+ This is a preprint of an Article accepted for publication in
+ American Journal of Agricultural Economics.
+ \copyright{} \the\year ,
+ American Agricultural Economics Association
+ \end{small}
+ \vspace*{5mm}
+ }{}
+ \end{center}
}
% abstract, keywords, JEL classification
@@ -131,10 +191,20 @@
\textbf{Abstract}
\end{center}
}{%
+\ifthenelse{ \isundefined\@keywords }{
+\ClassWarningNoLine{ajae}{No keywords specified.
+ Please use the command \protect\keywords}
+}{
\smallskip\\ \noindent
Key words: \@keywords
+}
+\ifthenelse{ \isundefined\@jelclass }{
+\ClassWarningNoLine{ajae}{No JEL classification specified.
+ Please use the command \protect\jelclass}
+}{
\smallskip\\ \noindent
JEL classification: \@jelclass
+}
\end{minipage}
\end{center}%
\noindent%
@@ -152,6 +222,7 @@ JEL classification: \@jelclass
\setlength{\emergencystretch}{3em}
% use endnotes in place of footnotes
+\ifthenelse{\equal{\theUseEndnotes}{1}}{
\RequirePackage{endnotes}
\let\footnote=\endnote
\newcommand{\listofendnotes}{
@@ -162,9 +233,12 @@ JEL classification: \@jelclass
\theendnotes
\endgroup
}
+}{}
% move floats to the end of the paper
+\ifthenelse{\equal{\theUseEndfloat}{1}}{
\RequirePackage[tabhead,fighead,nomarkers,nolists]{endfloat}
+}{}
% for compatibility with erae.cls
\newcommand{\citetPage}[2]{\citeauthor{#2} (\citeyear{#2}, p.~#1)}