summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/asaetr/asaesub.sty
blob: e26ce823a62091130a459295e125158809e00a3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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}