source: anuga_work/publications/boxing_day_validation_2008/modsim07.sty @ 5486

Last change on this file since 5486 was 5486, checked in by jakeman, 14 years ago

Added tex source files of article presented at MODSIM07

File size: 5.5 KB
Line 
1\NeedsTeXFormat {LaTeX2e}[2001/06/01]
2\def \filename {modsim07.sty}
3\def \filedate {05-May-2005}
4\def \fileversion {1.0}
5\ProvidesPackage {modsim07}
6
7\typeout{Document Style Option `modsim07' for latex2e \fileversion\space\filedate\space by Dr. Glen Yu-Chu Tian.}
8\typeout{Note that this tries to fulfill the requirements of the files for MODSIM07.}
9
10% Author: Dr. Glen Yu-Chu Tian
11%         School of Software Engineering and Data Communications
12%         Faculty of Information Technology
13%         GPO Box 2434, Brisbane 4001
14%         Australia
15%         E-Mail: y.tian@qut.edu.au
16%         URL:    http://www.fit.qut.edu.au/~tian
17% The package is provided ``AS IS" without express or implied warranty.
18% It should be mentioned that:
19%   1. The author is not responsible for the consequences of using this style file.
20%   2. Modification is allowed to the style fle provided the modified version is marked as such and
21%   3. This notice is to remain intact.
22
23%% First thing we do is to make sure that documentclass "article" has been loaded.
24%% A common error is to try to use modsim07 as a documentstyle rather than a package.
25\@ifundefined{title}{\@latexerr{The `modsim07' option should be used
26as a package with the document class `article'}{You may want to read the
27modsim07 documentation.}}{}
28
29%----------use times font----------
30\usepackage{times}
31
32%--------set page layout----------
33       %useless: left 2.5cm, right 2cm, top 2cm, bottom 2cm
34%margins: left 30mm, right 25mm, top 25mm, bottom 30mm
35\setlength{\oddsidemargin}{1.6mm}
36\setlength{\evensidemargin}{1.6mm}
37\setlength{\topmargin}{-19.4mm}
38\setlength{\textwidth}{161mm}  % seems should be {155mm}
39\setlength{\textheight}{252mm} % seems should be {242mm}
40\setlength{\parindent}{0pt}
41\setlength{\parskip}{12pt}
42\twocolumn
43\setlength{\columnsep}{10mm}
44\sloppy
45\flushbottom
46\pagestyle{empty}
47
48%----------set brokenpenalty-------
49% Disallow page breaks at hyphens (this will give some underfull vbox's,
50% so an alternative is to use \brokenpenalty=100 and manually search
51% for and fix such page breaks)
52\brokenpenalty=9000
53
54%----------set hypenpenalty-------
55% Disallow hyphens (this will give some underfull vbox's,so an alternative
56% is to use disable this setting to allow default hyphenpenalty
57\hyphenpenalty=9000
58
59%----------set normalsize to 10pt
60\def\@normalsize{\@setsize\normalsize{11.9pt}\xpt\@xpt}
61
62%---------Define \institute and \keywords -----------
63\def\institute#1{\gdef\@institute{#1}}
64%\def\@institute{Institute}
65\def\keywords#1{\gdef\@keywords{#1}}
66%\def\@keywords{keywords}
67
68%---------Define \maketitle---------
69\def\maketitle{\par
70 \begingroup
71 \def\@makefnmark{\hbox{$^{\@thefnmark}$\hss}}
72 \if@twocolumn
73 \twocolumn[\@maketitle]
74 \else \newpage
75 \global\@topnum\z@ \@maketitle \fi\pagestyle{myheadings}\@thanks
76 \endgroup
77 \setcounter{footnote}{0}
78 \let\maketitle\relax
79 \let\@maketitle\relax
80 \gdef\@keywords\gdef\@institute\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
81
82\def\@maketitle{\newpage
83 \null \vskip 0pt %.3em
84\begin{center}
85 {\LARGE\bf \@title \par} \vskip 12pt {\normalsize \lineskip 12pt %.5em
86 \begin{tabular}[t]{c}\textbf{\@author}\\[12pt]
87\@institute\\[12pt]
88\textit{\textbf{Keywords:} \@keywords}
89 \end{tabular}\par}
90 \end{center}
91 \par
92% \vskip 1.5em
93}
94
95%-----------Renew \abstract----------
96\renewcommand{\abstract}{\noindent\textbf{ABSTRACT}\par}
97
98%-----------Renew \section and \subsection--------
99%--------renewcommands--------
100
101%section & subsection ****
102\renewcommand{\section}{%
103    \@startsection{section}{1}{\z@}%
104      {-0.5\baselineskip \@plus -.4\baselineskip \@minus -.2\baselineskip}%
105      %{0.5ex \@plus .3ex \@minus -.2ex}%
106    {0.5\baselineskip  \@plus 0.3\baselineskip \@minus -0.1\baselineskip}%
107      {\normalfont\normalsize\bfseries\uppercase}
108    }
109\renewcommand{\subsection}{%
110    \@startsection{subsection}{2}{\z@}% put B infront of the section title
111      {-0.5\baselineskip \@plus -.4\baselineskip \@minus -.2\baselineskip}%
112      % {0.3ex \@plus .2ex \@minus -.2ex}%
113    {0.5\baselineskip \@plus 0.3\baselineskip \@minus -0.1\baselineskip}%
114      {\normalfont\normalsize\bfseries}
115}
116
117%---------------------Renew Caption format----------------
118\renewcommand{\@makecaption}[2]{%
119        \setlength{\abovecaptionskip}{0.3\baselineskip}
120        \vskip\abovecaptionskip %
121        \sbox\@tempboxa{\normalsize\textbf{#1.}~#2}%
122        \ifdim \wd\@tempboxa >\hsize
123                \normalsize \textbf{#1.}~#2\par
124        \else
125                \global \@minipagefalse
126                \hb@xt@\hsize{%
127                        \hfill\box\@tempboxa\hfill}%
128        \fi
129        \setlength{\belowcaptionskip}{0.3\baselineskip}
130        \vskip\belowcaptionskip
131}
132
133%----------new command \ack and \acknowledegment
134\def\ack#1{\section{Acknowledgement}#1}
135
136%--------------renew thebibliography----------
137\def\@biblabel#1{}
138%\renewcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
139
140\def\thebibliography{%
141\newlength{\refindent}
142\setlength{\refindent}{5mm} %6.3mm
143\def\refname{REFERENCES}
144\section{\uppercase{\refname}}
145  \@thebibliography}
146\let\endthebibliography=\endlist
147\def\@thebibliography#1{%\@bibliosize
148  \list{\@biblabel{\arabic{enumiv}}}{
149  \settowidth\labelwidth{\@biblabel{#1}}
150  \labelwidth\z@ \labelsep\z@ \leftmargin\refindent %6.3mm% \parindent
151  \itemindent-\refindent %6.3mm %\parindent
152  \itemsep \z@ \@plus 0.5\p@ \@minus 0.5\p@
153  \usecounter{enumiv}\let\p@enumiv\@empty
154  \def\theenumiv{\arabic{enumiv}}
155  }%
156  \tolerance\@M
157  \hyphenpenalty=50
158  \hbadness5000 \sfcode`\.=1000\relax
159}
160
161%===============END OF modsim07.sty
Note: See TracBrowser for help on using the repository browser.