summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/asaetr/asaesub.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/asaetr/asaesub.sty')
-rw-r--r--macros/latex/contrib/asaetr/asaesub.sty54
1 files changed, 54 insertions, 0 deletions
diff --git a/macros/latex/contrib/asaetr/asaesub.sty b/macros/latex/contrib/asaetr/asaesub.sty
new file mode 100644
index 0000000000..e26ce823a6
--- /dev/null
+++ b/macros/latex/contrib/asaetr/asaesub.sty
@@ -0,0 +1,54 @@
+% asaesub.sty 12-Feb-92
+% James Darrell McCauley
+% Department of Agricultural Engineering
+% Texas A&M University
+% College Station, TX 77843-2117
+% jdm5548@diamond.tamu.edu
+% jdm5548@tamagen.bitnet
+% Usage: \documentstyle[asaesub]{asaetr}
+% Function: make document suitable for paper submission to ASAE
+
+% change to single column
+\onecolumn
+
+% change to double spacing
+%\input doublespace.sty
+\def\baselinestretch{2}
+
+% get rid of dropped letters
+\def\drop#1{#1}
+% name and page number in top-right of each page (except first)
+\pagestyle{myheadings}
+\gdef\@firstauthor{}
+\def\firstauthor#1{\gdef\@firstauthor{#1}}
+\markboth{\hfill{\rm \@firstauthor,}}{\hfill{\rm \@firstauthor,}}
+%\markboth{\hfill\rm McCauley\ }{\hfill\rm McCauley\ }
+
+% don't double space tables and figures (stolen from doublespace.sty)
+\def\@xfloat#1[#2]{\ifhmode \@bsphack\@floatpenalty -\@Mii\else
+ \@floatpenalty-\@Miii\fi\def\@captype{#1}\ifinner
+ \@parmoderr\@floatpenalty\z@
+ \else\@next\@currbox\@freelist{\@tempcnta\csname ftype@#1\endcsname
+ \multiply\@tempcnta\@xxxii\advance\@tempcnta\sixt@@n
+ \@tfor \@tempa :=#2\do
+ {\if\@tempa h\advance\@tempcnta \@ne\fi
+ \if\@tempa t\advance\@tempcnta \tw@\fi
+ \if\@tempa b\advance\@tempcnta 4\relax\fi
+ \if\@tempa p\advance\@tempcnta 8\relax\fi
+ }\global\count\@currbox\@tempcnta}\@fltovf\fi
+ \global\setbox\@currbox\vbox\bgroup
+ \def\baselinestretch{1}\small\normalsize
+ \boxmaxdepth\z@
+ \hsize\columnwidth \@parboxrestore}
+\long\def\@footnotetext#1{\insert\footins{\def\baselinestretch{1}\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces
+ #1\strut}}}
+
+
+% try to put floats on a page by themselves
+\def\floatpagefraction{.01}