summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/imac/imac.sty
blob: 412ce38f0080a89acf831ce496473807e5f9d620 (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
% This is imac.sty for producing IMAC-format (International
% Modal Analysis Conference)  articles using LaTeX2e 
% Supported by Joseph C. Slater
% jslater@cs.wright.edu
% http://www.cs.wright.edu/people/faculty/jslater
%
% Copyright (C) 1999 Joseph C. Slater
%
% This program is free software; you can redistribute it and/or
% modify it under the terms of the GNU General Public License
% as published by the Free Software Foundation; either version 2
% of the License, or (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
%
% Modified from the ASME style
% written by   Srinivas S. Sripada
%              Research Fellow,
%              Dept. of Mechanical Engg. & Applied Mechanics
%              University of Pennsylvania
%              Philadelphia
%
%%%
%%% Version 1.01, 5/18/99
%%%

\NeedsTeXFormat{LaTeX2e}

%%%setup 9pt font as the default size
%%% I really don't understand wny some of this works, and the other 
%%% commands seem to do nothing, but I'm leaving them in anyway.
\renewcommand{\familydefault}{cmss}
\renewcommand{\rmdefault}{cmss}
\renewcommand{\sfdefault}{cmss}
\renewcommand{\normalsize}{\fontsize{9pt}{11}\normalfont\sffamily}
%\renewcommand{\normalfont}{cmss}

\font\elevenHelveticaBf=cmssbx10 at 11truept
\font\tenHelveticaBf=cmssbx10 at 10truept
\font\tenHelvetica=cmss10 at 10truept
\font\nineHelveticaBf=cmssbx10 at 9truept
\font\nineHelvetica=cmss10 at 9truept
\font\eightHelvetica=cmss10 at 8truept

%% define the section headings
\setcounter{secnumdepth}{1}

\renewcommand{\section}{\@startsection
{section}{0}{0 in}{1\baselineskip}{.001 em}{\nineHelveticaBf\uppercase}}
%\renewcommand{\section}[1]{\Section{\uppercase{#1}}}


\renewcommand{\subsection}{\@startsection
{subsection}{1}{0in}{1\baselineskip}{0.001 em}{\nineHelveticaBf}}
%\renewcommand{\subsection}[1]{\Subsection{#1}}


\renewcommand{\subsubsection}{\@startsection
{subsubsection}{0}{0 in}{1\baselineskip}{.001 em}{\nineHelveticaBf\uppercase}}
%\renewcommand{\subsubsection}[1]{\Subsubsection{\uppercase{#1}}}


%% define headings for Bibliography listing, figures,tables,programs

\renewcommand{\refname}{\noindent {\nineHelveticaBf REFERENCES}}
\renewcommand{\abstractname}{\noindent {\nineHelveticaBf ABSTRACT}}
\renewcommand{\@makecaption}[2]{\vspace{10pt}%

% the following 3 lines give problems in many tex flavors so let's comment
% it. It's useful only if captions don't fit on one line.
%\newsavebox{\tempbox}\sbox{\tempbox}{\nineHelveticaBf #1: #2}%
%\ifthenelse{\lengthtest{\wd\tempbox > \linewidth}}%
%{ #1: #2\par}% then code
{\begin{center}{\nineHelveticaBf #1: #2}\end{center}}% else code
}

\def\tablename{\nineHelveticaBf TABLE}
\def\Programname{\nineHelveticaBf PROGRAM}


\setlength{\topmargin}{0in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\setlength{\textheight}{9in}
\setlength{\oddsidemargin}{-0.25 in}
\setlength{\textwidth}{7.0in}
\setlength{\columnsep}{.25in}
\setlength{\footskip}{0in}
%\setlength{\footheight}{0in}
\setlength{\itemsep}{0pt}
\setlength{\parskip}{.1875 in}
\setlength{\parindent}{0. in}%{1pc}
\renewcommand{\textfraction}{0.2}
\renewcommand{\floatsep}{18pt}
\renewcommand{\textfloatsep}{18pt}
\renewcommand{\intextsep}{.1875 in}
\renewcommand{\floatpagefraction}{.7}
\renewcommand{\dblfloatsep}{18pt}
\renewcommand{\dbltextfloatsep}{18pt}
\renewcommand{\dblfloatpagefraction}{0.8}


\usepackage{cite,citesort}
\usepackage{ifthen,amsmath}


% Defines citations to be bracketed superscript.

\renewcommand{\@cite}[2]{{$^{[#1]}$\ifthenelse{\boolean{@tempswa}}{,#2}{}}}
    
% We don't want any headers or footers. IMAC will put on what they like.
\pagestyle{empty}

% The following prevents the maketitle from putting a page number on 
% page 1
\let\ps@plain=\ps@empty

\newcommand{\vect}[1]{\ensuremath{\left\{#1\right\}}}
\newcommand{\matr}[1]{\ensuremath{\left[#1\right]}}
\newcommand{\elem}[1]{\ensuremath{\left(#1\right)}}
\newcommand{\dmat}[1]{\ensuremath{[\hbox{\textsf{\`}}#1\raisebox{-5pt}{\hbox{\textsf{\`}}}]}}
\newcommand{\pnorm}[1]{\ensuremath{\lVert#1\rVert_{p}}}

\endinput