rendered paste body%%
%%
%%
%%
%% Copyright (C) 2006 by SHANG Shulin<shangsl@gmail.com>
%% ZUO Nianming<nianming@gmail.com>
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3a
%% of this license or (at your option) any later version.
%% The latest version of this license is in:
%%
%% http://www.latex-project.org/lppl.txt
%%
%% and version 1.3a or later is part of all distributions of LaTeX
%% version 2004/10/01 or later.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ijac}[2006/10/01 v0.1 IJAC LaTeX template class] % Need to be changed with new release
%
\LoadClass[a4paper,10pt,twocolumn,twoside,final]{article}
\RequirePackage{ifthen}
\usepackage{flushend}
%\RequirePackage{picins}
%\RequirePackage{ccaption}
\RequirePackage{calc}
%
%
%%--------PAGE FORMAT---------%%
\setlength{\topmargin}{0pt}
\setlength{\headsep}{15pt} %
\setlength{\headheight}{6mm}
\setlength{\oddsidemargin}{-7mm}
\setlength{\evensidemargin}{-7mm}
\setlength{\voffset}{-0.40in} % one inch + \voffset
\setlength{\hoffset}{0mm}
\setlength{\footskip}{3.5em}
\setlength{\columnsep}{8mm} %
\textwidth \paperwidth%
\textheight \paperheight%
\addtolength\textwidth{-35mm}
\addtolength\textheight{-62mm}
% extra vertical space between paragraphs normally
\setlength{\parskip}{0mm}
% extra vertical space between paragraphs within a list item
%\setlength{\parsep}{0mm}
%% displaymath
\setlength{\abovedisplayskip}{8pt plus 2pt minus 2.5pt}
\setlength{\belowdisplayskip}{8pt plus 2pt minus 2.5pt}
\setlength{\doublerulesep}{0.5pt}
%%
\renewcommand{\baselinestretch}{1.10} % 1.22 --- 1.25
\renewcommand{\arraystretch}{1.11}
%
%
\newlength\ijac@linespace
\newcommand{\ijac@choosefont}[3]{%
\setlength{\ijac@linespace}{#1*\real{\baselinestretch}}%
\fontsize{#1}{\ijac@linespace plus#2 minus #3}\selectfont}
%
% thuthesishehttp://bbs.ctex.org/forums/index.php?showtopic=23862
% 1 in = 72 bp = 72.27 pt
% bpWORD
% TeXpt
\newcommand\zihao[1]{%
\ifthenelse{\equal{#1}{0}}{%
\ijac@choosefont{42bp}{.5pt}{.3pt}}{}%
\ifthenelse{\equal{#1}{0-}}{%
\ijac@choosefont{36bp}{.5pt}{.3pt}}{}%
\ifthenelse{\equal{#1}{1}}{%
\ijac@choosefont{26bp}{.5pt}{.3pt}}{}%
\ifthenelse{\equal{#1}{1-}}{%
\ijac@choosefont{24bp}{.5pt}{.3pt}}{}%
\ifthenelse{\equal{#1}{2}}{%
\ijac@choosefont{22bp}{.5pt}{.3pt}}{}%
\ifthenelse{\equal{#1}{2-}}{%
\ijac@choosefont{18bp}{.3pt}{.2pt}}{}%
\ifthenelse{\equal{#1}{3}}{%
\ijac@choosefont{16bp}{.3pt}{.2pt}}{}%
\ifthenelse{\equal{#1}{3-}}{%
\ijac@choosefont{15bp}{.3pt}{.2pt}}{}%
\ifthenelse{\equal{#1}{4}}{%
\ijac@choosefont{14bp}{.3pt}{.2pt}}{}%
\ifthenelse{\equal{#1}{4-}}{%
\ijac@choosefont{12bp}{.3pt}{.2pt}}{}%
\ifthenelse{\equal{#1}{5}}{%
\ijac@choosefont{10.5bp}{.3pt}{.2pt}}{}%
\ifthenelse{\equal{#1}{5-}}{%
\ijac@choosefont{9bp}{.2pt}{.1pt}}{}%
\ifthenelse{\equal{#1}{6}}{%
\ijac@choosefont{7.5bp}{.2pt}{.1pt}}{}%
\ifthenelse{\equal{#1}{6-}}{%
\ijac@choosefont{6.5bp}{.2pt}{.1pt}}{}%
\ifthenelse{\equal{#1}{7}}{%
\ijac@choosefont{5.5bp}{.1pt}{.1pt}}{}%
\ifthenelse{\equal{#1}{8}}{%
\ijac@choosefont{5bp}{.1pt}{.1pt}}{}}
%
%%----- Redefine \tiny \scriptsize \footnotesize\small ----------%%
%%-------------------------\normalsize --------------------------%%
%%---------------\large \Large \LARGE \huge \Huge ---------------%%
%% Refer to ctex
\def\tiny{\zihao{7-}}
\def\scriptsize{\zihao{7}}
\def\footnotesize{\zihao{6-}}
\def\small{\zihao{6}}
\def\normalsize{\zihao{5-}}%
\def\large{\zihao{5}}%
\def\Large{\zihao{4-}}%
\def\LARGE{\zihao{4}}%
\def\huge{\zihao{3}}%
\def\Huge{\zihao{2-}}%
\normalsize % make \baselinestretch take affect
%
\let\@afterindentfalse\@afterindenttrue\@afterindenttrue
%
\def\@cite#1#2{\textsuperscript{[{#1\if@tempswa, #2\fi}]}}
%
%
\setlength{\footnotesep}{0pt}
%
\def\footnoterule{\kern-3\p@ \hrule width .3\columnwidth height 0.4pt \kern 2.6\p@}
%
%%-------- maketitle --------%%
%
%
\renewcommand{\title}[1]{\gdef\ijac@title{{\huge\bf #1}}}
\renewcommand{\author}[1]{\gdef\ijac@author{{\large #1}}}
\newcommand{\address}[1]{\gdef\ijac@address{{\footnotesize #1}}}
%\newcommand{\email}[1]{\gdef\ijac@email{{\centering\footnotesize (E-mail: #1)}}}
\renewcommand{\abstract}[1]{\gdef\ijac@abstract{{\noindent\small {\bf Abstract:}\quad #1}}}
\newcommand{\keyword}[1]{\gdef\ijac@keyword{{\noindent\small {\bf Keywords:}\quad #1}}}
%
%
\renewcommand{\maketitle}{\par
\begingroup
\def\thefootnote{}% the \thanks{} mark type is empty
\def\footnotemark{}% and kill space from \thanks within author
\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
\long\def\@makefntext##1{\parindent 1em\noindent
\hb@xt@0.5em{%
\hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
\twocolumn[\@maketitle]%
\thispagestyle{ijac@firstheadings}%ssl
\@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\@title\@empty%
\global\let\title\relax%
\global\let\author\relax%
\global\let\address\relax%
\global\let\and\relax%
%
\global\let\cncl\relax%
\global\let\email\relax%
%
\global\let\ijac@title\relax%
\global\let\ijac@author\relax%
\global\let\ijac@address\relax%
\global\let\ijac@abstract\relax%
\global\let\ijac@keyword\relax%
%
\global\let\title\relax%
\global\let\author\relax%
\global\let\address\relax%
\global\let\abstract\relax%
\global\let\keyword\relax%
}
%
\def\@maketitle{%
\let\footnote\thanks%
\newpage\null% an empty hbox
\vskip 1.2\baselineskip%
{\centering%
{\ijac@title\par}%
{%\vskip 1.2em%
\vskip 1.2\baselineskip%
\begin{tabular}[t]{c}%
\ijac@author%
\end{tabular}%
%\vskip 0.3em%
\par%
}%
\vskip 0.2\baselineskip}%
{\centering%
{\ijac@address\par}%
\vskip 0.2\baselineskip%
\vskip 1.2\baselineskip}%
\hbox to \textwidth{\noindent\rule[2mm]{\textwidth}{0.5pt}}%
{\linespread{1.0}\selectfont\ijac@abstract\par%
\vskip 0.8\baselineskip%
\ijac@keyword\par%
}%
\vskip 0.2\baselineskip%
\hbox to \textwidth{\noindent\rule[2mm]{\textwidth}{0.5pt}}%
%\ccl\par%
\vskip 1.2\baselineskip%
}
%
\renewcommand{\refname}{\Large\bf References}
%\renewcommand{\figurename}{}
%\renewcommand{\tablename}{}
%
\newenvironment{acknowledgement}{
\vspace*{10pt}
{\noindent\Large\bfseries Acknowledgements\par}
\vspace*{10pt}
\begingroup
}{
\par
\endgroup
}
%
%%---------------- Define biography ----------------%%
\newenvironment{biography}[1][]{
\vskip 0.4\baselineskip%
\zihao{6}
\parpic{%
\includegraphics[height=3cm,width=2.4cm, keepaspectratio]{#1}}%
}{\vskip 0.4\baselineskip\par}
%
%% For author who has no photo
\newenvironment{biographynophoto}{\vskip 0.4\baselineskip\zihao{6}}{\vskip 0.4\baselineskip\par}
%%---------------- Redefine section -----------------%%
\setcounter{secnumdepth}{3}
\renewcommand\thesection {\@arabic\c@section}
\renewcommand\thesubsection {\thesection.\@arabic\c@subsection}
\renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-2.3ex \@plus -.2ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\Large\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-1.5ex \@plus -.2ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\large\bfseries}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-0.1ex \@plus -.2ex \@minus -.2ex}%
{0.1ex \@plus .2ex}%
{\normalsize\bfseries}}
\renewcommand*\l@section[2]{%
\ifnum \c@tocdepth >\z@
\addpenalty\@secpenalty
\addvspace{1.0em \@plus\p@}%
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \bfseries
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\endgroup
\fi}
%
\newcommand{\firstheadname}[1]{\gdef\ijac@firstheadname{\zihao{6} #1}}
\newcommand{\firstfootname}[1]{\gdef\ijac@firstfootname{#1}}
\newcommand{\headevenname}[1]{\gdef\ijac@headevenname{{\zihao{6} #1}}}
\newcommand{\headoddname}[1]{\gdef\ijac@headoddname{{\zihao{6} #1}}}
%%------------------ijac@firstheadings begin------------------------------------%%
\def\ps@ijac@firstheadings{
\let\@evenhead\@empty\let\@evenfoot\@empty
\let\@oddhead\@empty\let\@oddfoot\@empty
\def\@evenhead{%
\vbox{%
\vskip 1.2mm%
\hbox to \textwidth{{ \hbox{\small{International Journal of Automation and Computing}}\hfill\hbox{\small{X(X), X X, X-X}}} }%
\vskip 1.0mm%
\hbox to \textwidth{{\hfill \hbox{\small{DOI: XXX}}} }%
% \vskip 1.0mm%
% \hrule width\textwidth height0.63pt\vskip0.85pt \hrule width\textwidth height0.63pt%
}%
}
\def\@evenfoot{
\hbox{\ijac@firstfootname}
}
\let\@oddhead\@evenhead%
\let\@oddfoot\@evenfoot%
}
%%-----------------ijac@firstheadings end--------------------------------------%%
%%-------------------ijacheadings begin----------------------------------------%%
\def\ps@ijacheadings{
\let\@evenhead\@empty\let\@evenfoot\@empty
\let\@oddhead\@empty\let\@oddfoot\@empty
\def\@evenhead{%
\vbox{%
\vskip 3.2mm%
\hbox to \textwidth{{\thepage \hfill \hbox{\scriptsize {\sl {\ijac@firstheadname\ X(X), X X}}}} }%
% \vskip 2.0mm%
% \hbox to \textwidth{\noindent\rule[2mm]{\textwidth}{0.5pt}}%
}%
}
\def\@oddhead{%
\vbox{%
\vskip 3.2mm%
\hbox to \textwidth { \scriptsize {\sl {\ijac@headoddname}}\hfill{\normalsize \thepage}}%
% \vskip 2.0mm%
% \hbox to \textwidth{\noindent\rule[2mm]{\textwidth}{0.5pt}}%
}
}%
}
%---------------------headings end------------------------------------------%%
%
%%-------- Set the begin and end method for class -----%%
\AtBeginDocument{%
\flushend
% \captiondelim{ } % ``:''
% \captionnamefont{\small}%
% \captiontitlefont{\small}%
}
\AtEndDocument{\clearpage}
\endinput
%%-------- The end of ijac.cls -------------%%