summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/economic/ajae.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/ajae.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/ajae.cls')
-rw-r--r--Master/texmf-dist/tex/latex/economic/ajae.cls99
1 files changed, 70 insertions, 29 deletions
diff --git a/Master/texmf-dist/tex/latex/economic/ajae.cls b/Master/texmf-dist/tex/latex/economic/ajae.cls
index 77df3d104c6..8dedd39d56f 100644
--- a/Master/texmf-dist/tex/latex/economic/ajae.cls
+++ b/Master/texmf-dist/tex/latex/economic/ajae.cls
@@ -2,7 +2,7 @@
%%% American Journal of Agricultural Economics (AJAE)
%%%
%%% author: Arne Henningsen
-%%% version: 1.2 (13 May 2007)
+%%% version: 1.4 (3 September 2007)
%%% license: LaTeX Project Public License
%%%
%%% Note: This is an unofficial style file that may not fully comply
@@ -23,6 +23,7 @@
%%% author - show name(s) of authors(s)
%%% date - show date
%%% preprint - print the 'preprint notice'
+%%% published - print a notice that the paper has been published
%%%
%%%
%%% The corresponding BibTeX style file "ajae.bst" should be used
@@ -37,6 +38,9 @@
%%% \matlatin should be used for latin symbols that denote matrices
%%% \vecgreek should be used for greek symbols that denote vectors
%%% \matgreek should be used for greek symbols that denote matrices
+%%% \ajaeyear, \ajaeissue, \ajaenumber, and \ajaepages should be used
+%%% after the publication to specify the year, issue, number,
+%%% and pages, respectively.
%%%
%%% If you use footnotes, add following lines before the reference section:
%%% \clearpage
@@ -44,34 +48,39 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{ajae}[2006/08/22 LaTeX class for the American Journal of Agricultural Economics]
+\ProvidesClass{ajae}[2007/09/03 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}}
+\newif\if@UseEndnotes
+\@UseEndnotestrue
+\DeclareOption{noendnotes}{\@UseEndnotesfalse}
% option to NOT place floats at the end
-\newcounter{UseEndfloat}
-\setcounter{UseEndfloat}{1}
-\DeclareOption{noendfloat}{\setcounter{UseEndfloat}{0}}
+\newif\if@UseEndfloat
+\@UseEndfloattrue
+\DeclareOption{noendfloat}{\@UseEndfloatfalse}
% option to show the authors' names
-\newcounter{ShowAuthor}
-\setcounter{ShowAuthor}{0}
-\DeclareOption{author}{\setcounter{ShowAuthor}{1}}
+\newif\if@ShowAuthor
+\@ShowAuthorfalse
+\DeclareOption{author}{\@ShowAuthortrue}
% option to print the date
-\newcounter{ShowDate}
-\setcounter{ShowDate}{0}
-\DeclareOption{date}{\setcounter{ShowDate}{1}}
+\newif\if@ShowDate
+\@ShowDatefalse
+\DeclareOption{date}{\@ShowDatetrue}
% option to print the 'preprint notice'
-\newcounter{ShowPreprintNote}
-\setcounter{ShowPreprintNote}{0}
-\DeclareOption{preprint}{\setcounter{ShowPreprintNote}{1}}
+\newif\if@ShowPreprintNote
+\@ShowPreprintNotefalse
+\DeclareOption{preprint}{\@ShowPreprintNotetrue}
+
+% option to print the 'published notice'
+\newif\if@ShowPublishedNote
+\@ShowPublishedNotefalse
+\DeclareOption{published}{\@ShowPublishedNotetrue}
% pass any options on to the scrartcl class and load this class with some options
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
@@ -157,10 +166,15 @@
\setcounter{secnumdepth}{0}
% leading unnumbered footnote
-\def\leadingfootnote{\xdef\@thefnmark{}\@footnotetext}
+\long\def\leadingfootnote#1{\begingroup%
+ \def\thefootnote{\fnsymbol{footnote}}\footnote[0]{#1}\endgroup}
% titlepage without author and date
\newcommand{\affiliation}[1]{\newcommand{\@affiliation}{#1}}
+\newcommand{\ajaeissue}[1]{\newcommand{\@ajaeissue}{#1}}
+\newcommand{\ajaenumber}[1]{\newcommand{\@ajaenumber}{#1}}
+\newcommand{\ajaeyear}[1]{\newcommand{\@ajaeyear}{#1}}
+\newcommand{\ajaepages}[1]{\newcommand{\@ajaepages}{#1}}
\renewcommand{\maketitle}{
\begin{center}
\begin{LARGE}
@@ -169,7 +183,7 @@
\end{spacing}
\end{LARGE}
\vspace*{10mm}
- \ifthenelse{\equal{\theShowAuthor}{1}}{
+ \if@ShowAuthor
\begin{large}
\textbf{\@author}\\
\end{large}
@@ -180,20 +194,47 @@
\end{small}
}
\vspace*{5mm}
- }{}
- \ifthenelse{\equal{\theShowDate}{1}}{
+ \fi
+ \if@ShowDate
\@date\\
\vspace*{5mm}
- }{}
- \ifthenelse{\equal{\theShowPreprintNote}{1}}{
+ \fi
+ \if@ShowPreprintNote
\begin{small}
This is a preprint of an Article accepted for publication in
- American Journal of Agricultural Economics.
+ \textit{American Journal of Agricultural Economics}.
\copyright{} \the\year ,
American Agricultural Economics Association
\end{small}
\vspace*{5mm}
- }{}
+ \fi
+ \if@ShowPublishedNote
+ \begin{small}
+ This is an electronic version of an Article published in\\
+ \textit{American Journal of Agricultural Economics}%
+ \ifthenelse{ \isundefined\@ajaeissue }{%
+ \ClassWarningNoLine{ajae}{No issue of the AJAE publication specified.
+ Please use the command \protect\ajaeissue}%
+ }{, \@ajaeissue{}}%
+ \ifthenelse{ \isundefined\@ajaenumber }{%
+ \ClassWarningNoLine{ajae}{No number of the AJAE publication specified.
+ Please use the command \protect\ajaenumber}%
+ }{(\@ajaenumber{})}%
+ \ifthenelse{ \isundefined\@ajaepages }{%
+ \ClassWarningNoLine{ajae}{No pages of the AJAE publication specified.
+ Please use the command \protect\ajaepages}%
+ }{, p.~\@ajaepages{}}.\\
+ \copyright{}%
+ \ifthenelse{ \isundefined\@ajaeyear }{%
+ \ClassWarningNoLine{ajae}{No year of the AJAE publication specified.
+ Please use the command \protect\ajaeyear}%
+ }{\@ajaeyear{}}
+ American Agricultural Economics Association.\\
+ The final version is available on
+ \url{http://www.blackwell-synergy.com/loi/AJAE}
+ \end{small}
+ \vspace*{5mm}
+ \fi
\end{center}
}
@@ -249,7 +290,7 @@ JEL classification: \@jelclass
\setlength{\emergencystretch}{3em}
% use endnotes in place of footnotes
-\ifthenelse{\equal{\theUseEndnotes}{1}}{
+\if@UseEndnotes
\RequirePackage{endnotes}
\let\footnote=\endnote
\newcommand{\listofendnotes}{
@@ -260,12 +301,12 @@ JEL classification: \@jelclass
\theendnotes
\endgroup
}
-}{}
+\fi
% move floats to the end of the paper
-\ifthenelse{\equal{\theUseEndfloat}{1}}{
+\if@UseEndfloat
\RequirePackage[tabhead,fighead,nomarkers,nolists]{endfloat}
-}{}
+\fi
% for compatibility with erae.cls
\newcommand{\citetPage}[2]{\citeauthor{#2} (\citeyear{#2}, p.~#1)}