From 44bd5ae67f840efc1bc7d0c15945f31410a37e7f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 29 Sep 2006 14:01:46 +0000 Subject: new bibtex+latex package economic (27sep06) git-svn-id: svn://tug.org/texlive/trunk@2218 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/economic/aer.sty | 20 +++ Master/texmf-dist/tex/latex/economic/aertt.sty | 23 +++ Master/texmf-dist/tex/latex/economic/ajae.cls | 171 +++++++++++++++++++++++ Master/texmf-dist/tex/latex/economic/cje.sty | 21 +++ Master/texmf-dist/tex/latex/economic/erae.cls | 146 +++++++++++++++++++ Master/texmf-dist/tex/latex/economic/harvard.sty | 104 ++++++++++++++ 6 files changed, 485 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/economic/aer.sty create mode 100644 Master/texmf-dist/tex/latex/economic/aertt.sty create mode 100644 Master/texmf-dist/tex/latex/economic/ajae.cls create mode 100644 Master/texmf-dist/tex/latex/economic/cje.sty create mode 100644 Master/texmf-dist/tex/latex/economic/erae.cls create mode 100644 Master/texmf-dist/tex/latex/economic/harvard.sty (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/economic/aer.sty b/Master/texmf-dist/tex/latex/economic/aer.sty new file mode 100644 index 00000000000..52cefdc2eca --- /dev/null +++ b/Master/texmf-dist/tex/latex/economic/aer.sty @@ -0,0 +1,20 @@ +\message{Document style option `aer.sty' (29 May 1993) for LaTeX 2.09.} +\textwidth=28pc +\textheight=46pc + +\def\bysame{\leavevmode\hbox to\leftmargin{\leaders\hrule height 3pt depth -2.5pt\hfill\,\,}} + +\def\thebibliography#1{\section*{\refname\@mkboth + {\uppercase{\refname}}{\uppercase{\refname}}}\list + {\@biblabel{\arabic{enumiv}}}{\labelwidth=12pt + \labelsep=0pt + \leftmargin\labelwidth + \advance\leftmargin\labelsep + \itemsep=0pt\parsep=0pt + \usecounter{enumiv}% + \let\p@enumiv\@empty + \def\theenumiv{\arabic{enumiv}}}% + \def\newblock{\hskip .11em plus.33em minus.07em}% + \sloppy\clubpenalty4000\widowpenalty4000 + \raggedright + \sfcode`\.=1000\relax} diff --git a/Master/texmf-dist/tex/latex/economic/aertt.sty b/Master/texmf-dist/tex/latex/economic/aertt.sty new file mode 100644 index 00000000000..a1371a883c9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/economic/aertt.sty @@ -0,0 +1,23 @@ +\message{Document style option `aertt.sty' (29 May 1993) for LaTeX 2.09.} +\textwidth=28pc +\textheight=46pc + +\input ulem.sty + +\def\bysame{\leavevmode\uline{\hskip\leftmargin}\,\,} + +\def\thebibliography#1{\section*{\refname\@mkboth + {\uppercase{\refname}}{\uppercase{\refname}}}\list + {\@biblabel{\arabic{enumiv}}}{\labelwidth=12pt + \labelsep=0pt + \leftmargin\labelwidth + \advance\leftmargin\labelsep + \itemsep=0pt\parsep=0pt + \usecounter{enumiv}% + \let\p@enumiv\@empty + \def\theenumiv{\arabic{enumiv}}}% + \def\newblock{\hskip .11em plus.33em minus.07em}% + \sloppy\clubpenalty4000\widowpenalty4000 + \raggedright + \sfcode`\.=1000\relax} + diff --git a/Master/texmf-dist/tex/latex/economic/ajae.cls b/Master/texmf-dist/tex/latex/economic/ajae.cls new file mode 100644 index 00000000000..e26b6fb40d7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/economic/ajae.cls @@ -0,0 +1,171 @@ +%%% LaTeX class for manuscripts submitted to the +%%% American Journal of Agricultural Economics (AJAE) +%%% +%%% author: Arne Henningsen +%%% version: 1.0 (22 August 2006) +%%% license: LaTeX Project Public License +%%% +%%% Note: This is an unofficial style file that may not fully comply +%%% with the AJAE Formatting Instructions in every detail. +%%% Please report any problems to . +%%% Further information is available at +%%% http://www.uni-kiel.de/agrarpol/ahenningsen/latex-bibtex.html +%%% +%%% This document class is based on the "scrartcl" class +%%% from the KOMA script bundle. +%%% Following additional packages are required: +%%% amsmath, babel, bm, courier, endfloat, endnotes, geometry, +%%% helvet, mathptmx, natbib, setspace, titlesec, url +%%% +%%% The corresponding BibTeX style file "ajae.bst" should be used +%%% for the bibliography: \bibliographystyle{ajae} +%%% +%%% This document class provides 6 new commands: +%%% \keywords can be use to show keywors below the abstract +%%% \jelclass can be use to show JEL classifications below the abstract +%%% \veclatin should be used for latin symbols that denote vectors +%%% \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 +%%% +%%% If you use footnotes, add following lines before the reference section: +%%% \clearpage +%%% \listofendnotes + + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{ajae}[2006/08/22 LaTeX class for the American Journal of Agricultural Economics] + +% pass any options on to the scrartcl class and load this class with some options +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}} +\ProcessOptions\relax +\LoadClass[12pt,english,tablecaptionabove]{scrartcl} +% tablecaptionabove = use \captionabove for tables + +% page format, margins +\RequirePackage{geometry} +\geometry{letterpaper, tmargin=1.0in, bmargin=1.1in, lmargin=1.25in, + rmargin=1.25in, headheight=0in, headsep=0in, footskip=0.5in } + +% double spacing +\RequirePackage{setspace} +\doublespacing + +% spacing around (sub)section headers +\RequirePackage{titlesec} +\titlespacing*{\section}{0pt}{1em}{0.25em} +\titlespacing*{\subsection}{0pt}{0.85em}{0.15em} + +% spacing around formulas +\AtBeginDocument{ +\setlength{\abovedisplayshortskip}{6pt} +\setlength{\belowdisplayshortskip}{6pt} +\setlength{\abovedisplayskip}{6pt} +\setlength{\belowdisplayskip}{6pt} +\allowdisplaybreaks +} + +% spacing around captions and floats +\setlength{\abovecaptionskip}{6pt} +\setlength{\belowcaptionskip}{3pt} +\setlength{\floatsep}{0pt} +\setlength{\textfloatsep}{20pt} +\setlength{\intextsep}{5pt} + +% font families: times/helvetica/courier +\RequirePackage{mathptmx} +\RequirePackage[scaled=.90]{helvet} +\RequirePackage{courier} + +% font for section headers +\setkomafont{section}{\normalfont\bfseries} + +% font for subsection headers +\setkomafont{subsection}{\normalfont\itshape} + +% fonts for math +\RequirePackage[leqno,fleqn]{amsmath} +\RequirePackage{bm} +% latin symbols for vectors and matrices +\newcommand{\veclatin}[1]{\bm{#1}} +\newcommand{\matlatin}[1]{\bm{#1}} +% greek symbols for vectors and matrices +\newcommand{\vecgreek}[1]{\pmb{#1}} +\newcommand{\matgreek}[1]{\pmb{#1}} + +% font for URLs +\RequirePackage{url} +\def\UrlFont{\rmfamily} + +% citations and bibliography +\RequirePackage[authoryear]{natbib} +\bibpunct{(}{)}{;}{a}{}{,} +\setlength{\bibsep}{0pt} + +% captions of figures and tables +\setcapwidth[l]{\textwidth} +\setcapindent{0pt} +\setkomafont{captionlabel}{\normalfont\bfseries} +\setkomafont{caption}{\normalfont\bfseries} +\renewcommand{\captionformat}{.\ } + +% section and subsections are not numbered +\setcounter{secnumdepth}{0} + +% titlepage without author and date +\renewcommand{\maketitle}{ + \begin{spacing}{1.5} + \centering + \LARGE{\textbf{\@title}}% + \end{spacing} +} + +% abstract, keywords, JEL classification +\newcommand{\keywords}[1]{\newcommand{\@keywords}{#1}} +\newcommand{\jelclass}[1]{\newcommand{\@jelclass}{#1}} +\renewenvironment{abstract}{% +\begin{center} +\begin{minipage}{0.9 \textwidth} +\small +\begin{center} +\textbf{Abstract} +\end{center} +}{% +\smallskip\\ \noindent +Key words: \@keywords +\smallskip\\ \noindent +JEL classification: \@jelclass +\end{minipage} +\end{center}% +\noindent% +} + +% use babel package and set language to english +\RequirePackage[english]{babel} + +% avoid clubs and widows +\clubpenalty=10000 +\widowpenalty=10000 +% \displaywidowpenalty=10000 + +% increase stretchability of the spaces (avoid overful hboxes) +\setlength{\emergencystretch}{3em} + +% use endnotes in place of footnotes +\RequirePackage{endnotes} +\let\footnote=\endnote +\newcommand{\listofendnotes}{ + \begingroup + \parindent 0pt + \parskip 2ex + \def\enotesize{\normalsize} + \theendnotes + \endgroup +} + +% move floats to the end of the paper +\RequirePackage[tabhead,fighead,nomarkers,nolists]{endfloat} + +% for compatibility with erae.cls +\newcommand{\citetPage}[2]{\citeauthor{#2} (\citeyear{#2}, p.~#1)} +\newcommand{\citepPage}[2]{\citetext{\citealp{#2}, p.~#1}} diff --git a/Master/texmf-dist/tex/latex/economic/cje.sty b/Master/texmf-dist/tex/latex/economic/cje.sty new file mode 100644 index 00000000000..356c9de5d91 --- /dev/null +++ b/Master/texmf-dist/tex/latex/economic/cje.sty @@ -0,0 +1,21 @@ +\message{Document style option `cje.sty' (29 May 1993) for LaTeX 2.09.} +\textwidth=28pc +\textheight=46pc + +\def\bysame{\leavevmode\hbox to\leftmargin{\leaders\hrule height 3pt depth -2.5pt\hfill\,\,}} + +\def\thebibliography#1{\section*{\refname\@mkboth + {\uppercase{\refname}}{\uppercase{\refname}}}\list + {\@biblabel{\arabic{enumiv}}}{\labelwidth=12pt + \labelsep=0pt + \leftmargin\labelwidth + \advance\leftmargin\labelsep + \itemsep=0pt\parsep=0pt + \usecounter{enumiv}% + \let\p@enumiv\@empty + \def\theenumiv{\arabic{enumiv}}}% + \def\newblock{\hskip .11em plus.33em minus.07em}% + \sloppy\clubpenalty4000\widowpenalty4000 + \raggedright + \sfcode`\.=1000\relax} + diff --git a/Master/texmf-dist/tex/latex/economic/erae.cls b/Master/texmf-dist/tex/latex/economic/erae.cls new file mode 100644 index 00000000000..16446cd51e2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/economic/erae.cls @@ -0,0 +1,146 @@ +%%% LaTeX class for manuscripts submitted to the +%%% European Review of Agricultural Economics (ERAE) +%%% +%%% author: Arne Henningsen +%%% version: 1.0.1 (28 August 2006) +%%% license: LaTeX Project Public License +%%% +%%% Note: This is an unofficial style file that may not fully comply +%%% with the ERAE Formatting Instructions in every detail. +%%% Please report any problems to . +%%% Further information is available at +%%% http://www.uni-kiel.de/agrarpol/ahenningsen/latex-bibtex.html +%%% +%%% This document class is based on the "scrartcl" class +%%% from the KOMA script bundle. +%%% Following additional packages are required: +%%% amsmath, babel, courier, endfloat, geometry, +%%% helvet, mathptmx, natbib, setspace, titlesec, url +%%% +%%% 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 +%%% \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] + +% pass any options on to the scrartcl class and load this class with some options +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}} +\ProcessOptions\relax +\LoadClass[12pt,english,pointednumbers,tablecaptionabove]{scrartcl} +% pointednumbers = add final dot after ordinary section numbers +% tablecaptionabove = use \captionabove for tables + +% page format, margins +\RequirePackage{geometry} +\geometry{a4paper, tmargin=2.5cm, bmargin=2.8cm, lmargin=2.5cm, + rmargin=2.5cm, headheight=0cm, headsep=0cm, footskip=1.2cm } + +% one half spacing +\RequirePackage{setspace} +\onehalfspacing + +% spacing around (sub)section headers +\RequirePackage{titlesec} +\titlespacing*{\section}{0pt}{1em}{0.25em} +\titlespacing*{\subsection}{0pt}{0.85em}{0.15em} + +% spacing around formulas +\AtBeginDocument{ +\setlength{\abovedisplayshortskip}{6pt} +\setlength{\belowdisplayshortskip}{6pt} +\setlength{\abovedisplayskip}{6pt} +\setlength{\belowdisplayskip}{6pt} +\allowdisplaybreaks +} + +% spacing around captions and floats +\setlength{\abovecaptionskip}{6pt} +\setlength{\belowcaptionskip}{3pt} +\setlength{\floatsep}{0pt} +\setlength{\textfloatsep}{20pt} +\setlength{\intextsep}{5pt} + +% font families: times/helvetica/courier +\RequirePackage{mathptmx} +\RequirePackage[scaled=.90]{helvet} +\RequirePackage{courier} + +% amsmath +\RequirePackage{amsmath} +% for compatibility with ajae.cls +\newcommand{\veclatin}[1]{#1} +\newcommand{\matlatin}[1]{#1} +\newcommand{\vecgreek}[1]{#1} +\newcommand{\matgreek}[1]{#1} + +% font for URLs +\RequirePackage{url} +\def\UrlFont{\rmfamily} + +% citations and bibliography +\RequirePackage[authoryear]{natbib} +\setlength{\bibsep}{0pt} + +% captions of figures and tables +\setcapwidth[l]{\textwidth} +\setcapindent{0pt} +\setkomafont{captionlabel}{\normalfont\bfseries} +\renewcommand{\captionformat}{.\ } + +% titlepage without author and date +\renewcommand{\maketitle}{ + \begin{spacing}{1.5} + \centering + \LARGE{\textbf{\@title}}% + \end{spacing} +} + +% abstract, keywords, JEL classification +\newcommand{\keywords}[1]{\newcommand{\@keywords}{#1}} +\newcommand{\jelclass}[1]{\newcommand{\@jelclass}{#1}} +\renewenvironment{abstract}{% +\begin{center} +\begin{minipage}{0.9 \textwidth} +\small +\begin{center} +\textbf{Abstract} +\end{center} +}{% +\smallskip\\ \noindent +Key words: \@keywords +\smallskip\\ \noindent +JEL classification: \@jelclass +\end{minipage} +\end{center}% +\noindent% +} + +% use babel package and set language to english +\RequirePackage[english]{babel} + +% avoid clubs and widows +\clubpenalty=10000 +\widowpenalty=10000 +% \displaywidowpenalty=10000 + +% increase stretchability of the spaces (avoid overful hboxes) +\setlength{\emergencystretch}{3em} + +% move floats to the end of the paper +\RequirePackage[heads,tablesfirst,nolists]{endfloat} + +% use single quotes +\RequirePackage{csquotes} +\MakeInnerQuote{°} + +% cite page numbers after colon +\newcommand{\citetPage}[2]{\citeauthor{#2} (\citeyear{#2}: #1)} +\newcommand{\citepPage}[2]{\citetext{\citealp{#2}: #1}} diff --git a/Master/texmf-dist/tex/latex/economic/harvard.sty b/Master/texmf-dist/tex/latex/economic/harvard.sty new file mode 100644 index 00000000000..32eecb689c5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/economic/harvard.sty @@ -0,0 +1,104 @@ +\message{harvard bibliography,} + +\def\@hiteml[#1]#2#3#4{\item[]\if@filesw% + { \def\protect##1{\string ##1\space}\immediate% +\write\@auxout{\string\harvardcite{#4}{#2}{#1}{#3}}}\fi% +\protect\hspace*{-\labelwidth}\protect\hspace*{-\labelsep}\ignorespaces} + +\def\@hitem#1#2#3{\item[]\if@filesw% + { \def\protect##1{\string ##1\space}\immediate% +\write\@auxout{\string\harvardcite{#3}{#1}{#1}{#2}}}\fi% +\protect\hspace*{-\labelwidth}\protect\hspace*{-\labelsep}\ignorespaces} + +\def\harvarditem{\@ifnextchar [{\@hiteml}{\@hitem}} + +\def\harvardcite#1#2#3#4{ + \global\@namedef{bhf@#1}{#2} + \global\@namedef{bha@#1}{#3} + \global\@namedef{bhy@#1}{#4}\global\@namedef{b@#1}{\csname bhf@#1\endcsname} +} + +\def\cite{\@ifnextchar [{\@tempswatrue\@citex}{\@tempswafalse\@citex[]}} +\def\citeasnoun{\@ifnextchar [{\@tempswatrue\@citexasnoun} + {\@tempswafalse\@citexasnoun[]} +} +\def\citeyear{\@ifnextchar [{\@tempswatrue\@citexyear} + {\@tempswafalse\@citexyear[]} +} +\def\citename{\@ifnextchar [{\@tempswatrue\@citexname} + {\@tempswafalse\@citexname[]} +} + +% \def\@enamedef#1{\expandafter\edef\csname #1\endcsname} +% Previous line should be replaced by the following to prevent +% problems with the NFSS. Solution by Bernd Raichle. +\def\@enamedef#1{\expandafter\def\csname #1\expandafter\endcsname\expandafter} + +\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi + \def\@citea{}\@cite{\@for\@citeb:=#2\do + {\@citea\def\@citea{\@hisep\penalty\@m\ }\@ifundefined + {b@\@citeb}{{\bf ?}\@warning + {Citation `\@citeb' on page \thepage \space undefined}}% +{{\csname b@\@citeb\endcsname\@hysep\csname bhy@\@citeb\endcsname}% +\global\@enamedef{b@\@citeb}{\csname bha@\@citeb\endcsname}}% +}}{#1}} + +\def\@citexasnoun[#1]#2{% +\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi% +\@citeasnoun{{\@ifundefined% +{b@#2}% +{{\bf ?}\@warning{Citation `#2' on page \thepage \space undefined}}% +{{\csname b@#2\endcsname\ (\csname bhy@#2\endcsname}% +\global\@namedef{b@#2}{\csname bha@#2\endcsname}}% +}}{#1}} + +\def\@citexname[#1]#2{% +\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi% +\@citename{{\@ifundefined% +{b@#2}% +{{\bf ?}\@warning{Citation `#2' on page \thepage \space undefined}}% +{{\csname bhf@#2\endcsname}}% +}}{#1}} + +\def\@citexyear[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi + \def\@citeayear{}\@cite{\@for\@citebyear:=#2\do + {\@citeayear\def\@citeayear{\@hisep\penalty\@m\ }\@ifundefined + {b@\@citebyear}{{\bf ?}\@warning + {Citation `\@citebyear' on page \thepage \space undefined}}% +{{\csname bhy@\@citebyear\endcsname}% +}% +}}{#1}} + +\gdef\hysep@agsm{\ }\gdef\hisep@agsm{,}% +\gdef\hysep@dcu{, }\gdef\hisep@dcu{;}% +\let\@hysep\hysep@agsm \let\@hisep\hisep@agsm +\def\citationstyle#1{% +\global\@namedef{@hysep}{\csname hysep@#1\endcsname}% +\global\@namedef{@hisep}{\csname hisep@#1\endcsname}} + +%DEFAULT DEFINITIONS +\def\@cite#1#2{({#1\if@tempswa , #2\fi})} +\def\@citeasnoun#1#2{{#1\if@tempswa , #2\fi)}} +\def\@citename#1#2{{#1\if@tempswa \ (#2)\fi}} + +% CHANGE \end{document} - to handle double definitions +\def\enddocument{\@checkend{document}\clearpage\begingroup +\if@filesw \immediate\closeout\@mainaux +\def\global\@namedef##1##2{}\def\newlabel{\@testdef r}% +\def\bibcite{\@testdef b}% +\def\harvardcite{\@testbibh}\@tempswafalse \makeatletter\input \jobname.aux +\if@tempswa \@warning{Label(s) may have changed. Rerun to get +cross-references right}\fi\fi\endgroup\deadcycles\z@\@@end} + +\def\@testbibh #1#2#3{ + \def\@tempa{#2}\expandafter + \ifx \csname bhf@#1\endcsname \@tempa + \def\@tempa{#3}\expandafter + \ifx \csname bha@#1\endcsname \@tempa + \else \@tempswatrue + \fi + \else + \@tempswatrue + \fi +} + -- cgit v1.2.3