summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/asaetr/asaesub.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:51:40 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:51:40 +0000
commit07195949726c1814aaf986dfe993c777f324d0dc (patch)
tree9831af3bcf7f5c386bf7a35fd15342f754e93da3 /Master/texmf-dist/tex/latex/asaetr/asaesub.sty
parent24f95f5a37a2340e3bfeb44d5a6f944fc34ce34f (diff)
asaetr
git-svn-id: svn://tug.org/texlive/trunk@679 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/asaetr/asaesub.sty')
-rw-r--r--Master/texmf-dist/tex/latex/asaetr/asaesub.sty54
1 files changed, 54 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/asaetr/asaesub.sty b/Master/texmf-dist/tex/latex/asaetr/asaesub.sty
new file mode 100644
index 00000000000..e26ce823a62
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/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}