summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/misc/iagproc.cls
blob: 4848959b1d1af4f75680854fd7cd08ec134a660b (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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
%%
%% This is the file `iagproc.cls' intended for formatting submissions to
%% IAG (International Association of Geodesy) Proceedings.
%%
%% Originally written as 'banff.cls', for the Banff GGG2000 symposium.
%% An adaptation from 'article.cls', (c) The LaTeX3 Project and
%% individual authors:
%%
%%          Leslie Lamport
%%          Johannes Braams
%%          David Carlisle
%%          Alan Jeffrey
%%          Frank Mittelbach
%%          Chris Rowley
%%          Rainer Schoepf
%%     
%% License
%%   
%% 'iagproc.cls' is free software that can be redistributed and/or 
%% modified under the terms of the LaTeX Project Public License as 
%% specified in the LaTeX Project Public License:
%%
%%		http://www.latex-project.org/lppl.html
%%
%% Adapted from 'article.cls' (c) Martin Vermeer 2000
%% Small adaptations (c) Hussein Abd-Elmotaal 2000
%% Small adaptations (c) Martin Vermeer 2003
%%
%% Your class definition should be 
%%
%%     \documentclass{iagproc}
%%
\NeedsTeXFormat{LaTeX2e}

\ProvidesClass{iagproc}
          [2003/01/22 v0.3 IAG Conference Proceedings]
% Options:
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
%
\LoadClass[10pt,twocolumn]{article}
%%\RequirePackage{mathptm}
%%\RequirePackage{times}
\RequirePackage{natbib}
%%\RequirePackage{apalike}
% Redefine \maketitle:
\renewcommand\maketitle{\par
 \begingroup
   \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
   \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
   \long\def\@makefntext##1{\parindent 1em\noindent
           \hb@xt@1.8em{%
               \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
 \twocolumn[\@maketitle]%
 \global\@topnum\z@   % Prevents figures from going at top of page.
 \thispagestyle{empty}%
 \@thanks
 \endgroup
 \setcounter{footnote}{0}%
 \global\let\thanks\relax
 \global\let\maketitle\relax
 \global\let\@maketitle\relax
 \global\let\@thanks\@empty
 \global\let\@author\@empty
 \global\let\@date\@empty
 \global\let\@title\@empty
 \global\let\title\relax
 \global\let\author\relax
 \global\let\date\relax
 \global\let\and\relax
}
%
\def\@maketitle{%
 \newpage
 \vbox to 4.8cm {
   \let \footnote \thanks
   {\par\normalfont\huge\bfseries\sffamily%
     \raggedright%
   \@title\par}%
   \vskip 0.6cm
   \normalfont\normalsize\@author%
 }%
}%
%
\newcommand\keywordsname{Keywords}

\newcommand*\abstractlabel[1]{\normalfont\bfseries\abstractname.\quad}%
\newcommand*\keywordslabel[1]{\normalfont\bfseries\keywordsname.\quad}%
\renewenvironment{abstract}{%
  \list{}{\topsep\z@%
          \labelsep\z@%
          \labelwidth\z@%
          \itemindent\z@%
      \rightmargin\z@%
      \leftmargin\z@%
          \let\makelabel\abstractlabel}%
      \item\relax
      }%
     {\endlist}%
%
\newenvironment{keywords}{%
  \list{}{\topsep\z@%
          \labelsep\z@%
          \labelwidth\z@%
          \itemindent\z@%
      \rightmargin\z@%
	  \leftmargin\z@%
          \let\makelabel\keywordslabel}%
      \item\relax
      }%
     {\endlist\par\vskip4mm\hrule}%
%
% Redefine \section and \subsection:
%\renewcommand\chapter{\@startsection {chapter}{0}{\z@}%
%                                  {-3.25ex \@plus -0.6ex \@minus -.2ex}%
%                                  {4mm \@plus0.1ex}%
%   {\normalfont\raggedright\Large\bfseries\sffamily}}
\renewcommand\section{\@startsection {section}{1}{\z@}%
                                  {-4mm \@plus -0.6ex \@minus -.2ex}%
                                  {4mm \@plus0.1ex}%
   {\normalfont\raggedright\large\bfseries\sffamily}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                    {-4mm \@plus -0.3ex \@minus -.2ex}%
                                    {4mm \@plus0ex}%
   {\normalfont\raggedright\bfseries\sffamily}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                    {-4mm \@plus -0.2ex \@minus -.2ex}%
                                    {4mm \@plus0ex}%
   {\normalfont\raggedright\sffamily\bfseries\itshape}}
% Redefine section, subsection numbering:
\renewcommand \thesection {\@arabic\c@section}
\renewcommand\thesubsection{\thesection.\@arabic\c@subsection}
\renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}

%
\newcommand{\journal}[1]{\def\@journal{#1\ }}

\setlength\intextsep{8mm}
\setlength\floatsep{8mm}
\setlength\abovecaptionskip{2mm}
\setlength\belowcaptionskip{2mm}

% Redefine default font etc.:
\long\def\@makecaption#1#2{%
 \vskip\abovecaptionskip
 \small
 \sbox\@tempboxa{\textbf{#1.} #2}%
%% \ifdim \wd\@tempboxa >\hsize
%%   \@hangfrom{\textbf{#1.} }#2\par
   \textbf{#1.} #2\par
%% \else
%%   \global \@minipagefalse
%%   \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
%% \fi
 \vskip\belowcaptionskip
}%
\renewenvironment{table}
               {\@float{table}\small}
               {\end@float}
\renewenvironment{table*}
               {\@dblfloat{table}\small}
               {\end@dblfloat}
\newenvironment{acknowledgements}{%
  \list{}{\labelsep\z@%
          \labelwidth\z@%
          \itemindent\z@%
	  \leftmargin\z@%
          \let\makelabel\acknowslabel}%
	  \item\relax
	  \small\itshape}%
	 {\endlist}%

\def\refname{References}

\def\@cite#1#2{(#1\if@tempswa , #2\fi)}
\def\@biblabel#1{}

\def\thebibliography#1{\section*{\refname\@mkboth
  {\sl\uppercase{\refname}}{\sl\uppercase{\refname}}}\list
  {\relax}{\setlength{\labelsep}{0em}
  \setlength{\itemindent}{-4mm}
  \setlength{\leftmargin}{4mm}}
  \setlength{\parsep}{0pt}
  \setlength{\itemsep}{0pt plus 2pt} 
%    \def\newblock{\hskip .11em plus .33em minus .07em}
    \sloppy\clubpenalty4000\widowpenalty4000
    \sfcode`\.=1000\relax}%

\renewcommand\labelitemi[0]{\(\circ\)}
\renewcommand\labelitemii[0]{\(\triangleright\)}
\renewcommand\labelitemiii[0]{\normalfont\bfseries{--}}
\renewcommand\labelitemiv[0]{\(\cdot\)}
%
\renewcommand{\topfraction}{.9}
\renewcommand{\bottomfraction}{.9}
\renewcommand{\textfraction}{.1}
\pagestyle{plain}
%\input{fleqn.clo}                             %%% deactived by Hussein
\setlength{\columnsep}{8mm}
\setlength{\textheight}{224mm}
\setlength{\textwidth}{156mm}
%
\setlength\parindent{4mm}
\flushbottom
%\setlength\mathindent{4mm}                    %%% deactivated Hussein
%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% This is a new section added by Hussein
%% to allow the balance of the two columns
%% of the last page of the manuscript
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\@BAlancecol}{\if@twocolumn
  \setbox0=\vbox{\unvbox\@outputbox} \@tempdima=\ht0
  \advance\@tempdima by \topskip \advance\@tempdima
     by -\baselineskip \divide\@tempdima by 2
     \splittopskip=\topskip
  {\vbadness=\@M \loop \global\setbox3=\copy0
   \global\setbox1=\vsplit3 to \@tempdima
   \ifdim\ht3>\@tempdima \global\advance\@tempdima by 1pt \repeat}
   \setbox\@leftcolumn=\vbox to \@tempdima{\unvbox1\vfil}
   \setbox\@outputbox=\vbox to \@tempdima
     {\dimen2=\dp3\unvbox3\kern-\dimen2
      \vfil}
  \fi}
\newif\if@BAlanceone
\global\@BAlanceonefalse
\newdimen\oldvsize
\newcommand{\@BAdblcol}{\if@firstcolumn
       \unvbox\@outputbox \penalty\outputpenalty
       \global\oldvsize=\@colht \global\multiply \@colht by 2
       \global\@BAlanceonetrue
       \global\@firstcolumnfalse
  \else \global\@firstcolumntrue
       \if@BAlanceone
       \global\@BAlanceonefalse\@BAlancecol
       \global\@colht=\oldvsize \else
       \PackageWarningNoLine{balance}
          {You have called \protect\balance\space
             in second column\MessageBreak
           Columns might not be balanced}\fi
     \setbox\@outputbox\vbox to \@colht{\hbox to\textwidth
     {\hbox to\columnwidth {\box\@leftcolumn \hss}\hfil
      \vrule width\columnseprule\hfil \hbox to\columnwidth
      {\box\@outputbox \hss}}\vfil}\@combinedblfloats
     \@outputpage \begingroup \@dblfloatplacement
     \@startdblcolumn \@whilesw\if@fcolmade \fi
     {\@outputpage\@startdblcolumn}\endgroup
  \fi}
\newcommand{\@BAcleardblpage}{\clearpage\if@twoside \ifodd\c@page\else
  \hbox{}\newpage\fi\fi}
\newcommand{\balance}{\global\let\@outputdblcol=\@BAdblcol
  \global\let\cleardoublepage=\@BAcleardblpage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% This is a new section added by Hussein
%% for float seperation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\dblfloatsep 10pt plus 2pt minus 4pt \dbltextfloatsep 10pt plus 2pt minus 4pt
\@fptop 0pt plus 1fil \@fpsep 10pt plus 2fil \@fpbot 0pt plus 1fil 
\@dblfptop 0pt plus 1fil \@dblfpsep 10pt plus 2fil \@dblfpbot 0pt plus 1fil

\endinput
%%
%% End of file `iagproc.cls'.