summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/geophysics.sty
blob: 21c39d887ad522292098f79eff0d4376d4e47302 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
% geophysics.sty
% For Geophysics, a publication of the Society of Exploration Geophysicists.
%
% This style option is designed to work with the article document
% style of LaTeX version 2.09.  Use
% \documentstyle[geophysics]{article}
%
% The rules here are from "Instructions to authors" Geophysics January 1986.

% 15 Jan 87

% Copyright (c) 1987 by Stephen Gildea
% Permission to copy all or part of this work is granted, provided
% that the copies are not made or distributed for resale, and that
% the copyright notice and this notice are retained.
% 
% THIS WORK IS PROVIDED ON AN "AS IS" BASIS.  THE AUTHOR PROVIDES NO
% WARRANTY WHATSOEVER, EITHER EXPRESS OR IMPLIED, REGARDING THE WORK,
% INCLUDING WARRANTIES WITH RESPECT TO ITS MERCHANTABILITY OR FITNESS
% FOR ANY PARTICULAR PURPOSE.

% If you make any improvements, I'd like to hear about them.

% Stephen Gildea
% MIT Earth Resources Lab
% Cambridge, Mass. 02139
% mit-erl!gildea
% gildea@erl.mit.edu


\oddsidemargin=.25in
\topmargin=0in
\textwidth=6in

% set \textheight to about 8in.  Must be multiple of \baselineskip.
\ifcase \@ptsize
    % 10 pt (\baselineskip=12pt)
    \textheight=576pt
\or % 11 pt (\baselineskip=13.6pt)
    \textheight=584.8pt
\or % 12 pt  (\baselineskip=15pt)
    \textheight=585pt
\fi

%everything is to be double spaced, and 1.5 looks double spaced.
\def\baselinestretch{1.5}

\parindent=1em
\parskip=0in

\def\fnum@figure{{\sc Fig.}\ \thefigure}

% Use period instead of colon
\long\def\@makecaption#1#2{
 \vskip 10pt 
 \setbox\@tempboxa\hbox{#1.\ #2}
 \ifdim \wd\@tempboxa >\hsize \unhbox\@tempboxa\par \else \hbox
to\hsize{\hfil\box\@tempboxa\hfil} 
 \fi}

\def\thebibliography#1{\section*{References\markboth
 {REFERENCES}{REFERENCES}}\list
 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}\@bibsetup}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \sloppy
 \sfcode`\.=1000\relax}

% Don't put the citation in an hbox.
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \def\@citea{}\@cite{\@for\@citeb:=#2\do
    {\@citea\def\@citea{\@citesep}\@ifundefined
       {b@\@citeb}{{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
{\csname b@\@citeb\endcsname}}}{#1}}

% undent first line of reference by using negative \itemindent.
\def\@bibsetup{\itemindent=-\leftmargin}

% Use a semicolon instead of a comma between multiple citations.
\def\@citesep{; }

% round parens instead of square brackets
\def\@cite#1#2{({#1\if@tempswa , #2\fi})}
 
% Labels should not be printed in References
\def\@biblabel#1{\hfill}

% Headings:
%   for principal heading use \section
%   for lower rank heading use \subsection
%   for still lower rank heading use \subsubsection
\setcounter{secnumdepth}{0}

% \section is tricky because we want to both support \section* and have
% the section title uppercased.
\def\section{\secdef\@sectionb\@sections}
\def\@sectionb[#1]#2{\@sections{#2}}
\def\@sections#1{\@startsection
  {section}{1}{\z@}{14pt}{14pt}{\centering\bf}{\uppercase{#1}}}
\def\subsection{\@startsection {subsection}{2}{\z@}{14pt}{14pt}{\bf}}
\def\subsubsection#1{\par\addvspace{14pt}{\bf #1.---\/}\ignorespaces}

\def\acknowledgments{\section{Acknowledgments}}