%%
%%     This is the file `kjas.sty',
%%     written by The Korean Statistical Society
%%     on <2000/12/12>.
%%
%% ====================================================================
%%
%%     filename   = "kjas.sty",
%%     version    = "2.0",
%%     date       = "2000/12/12",
%%     author     = "The Korean Statistical Society",
%%     copyright  = "Copying of this file is authorized only if either:
%%                   (1) you make absolutely no changes to your copy,
%%                   including name; OR
%%                   (2) if you do make changes, you first rename it
%%                   to some name other than kjas.sty.",
%%     address    = "The Korean Mathematical Society
%%                   The Korea Science and Technology
%%                   Center 308, 635-4 Yoeksam-dong,
%%                   Kangnam-ku, Seoul 135-703, Korea"
%%     telephone  = "(02)565-0361",
%%     FAX        = "(02)565-0364",
%%     abstract   = "This is used with AMS-\LaTeX.
%%                   It produces output conforming to the style
%%                   conventions of Korean Mathematical Society
%%                   publications."
%%     usage      = "The ending part of this file describes a template,
%%                   which may help you."
%%     bug report = "Bug reports or any question can be directed to the
%%                   above address"
%%
%% ====================================================================
\NeedsTeXFormat{LaTeX2e}
\def\m@th{\mathsurround\z@}
\def\hb@xt@{\hbox to}
\DeclareRobustCommand*\textsuperscript[1]{%
  \@textsuperscript{\selectfont#1}}
\def\@textsuperscript#1{%
  $\m@th^{\mbox{\fontsize\sf@size\z@$#1$}}$}
%----------------------------------
\RequirePackage{ifthen}
%----------------------------------
% Indentation after sectioning command
\let\@afterindentfalse\@afterindenttrue
\@afterindenttrue

%
% Page layout
%
\setlength{\paperheight}{297mm}%
\setlength{\paperwidth}{210mm}
\setlength{\textheight}{19.5cm}%
\setlength{\textwidth}{14cm}%
\setlength{\oddsidemargin}{1.00 cm}%{0.8cm}%{1.25cm}%
\setlength{\evensidemargin}{1.00 cm}%
\newcounter{endpage}
\newcounter{remark}
\newcounter{example}
\newcounter{ref}
\DeclareSymbolFont{AMSa}{U}{msa}{m}{n}
\DeclareMathSymbol\square           {\mathord}{AMSa}{"03}

% SUPERSCRIPTS AND SUBSCRIPTS
% Declaration which causes superscripts and subscripts to be output at normal
% text size
\def\bigscript{
  \scriptfont0=\textfont0
  \scriptscriptfont0=\textfont0
  \scriptfont1=\textfont1
  \scriptscriptfont1=\textfont1
  \scriptfont2=\textfont2
  \scriptscriptfont2=\textfont2
  \scriptfont3=\textfont3
  \scriptscriptfont3=\textfont3
  \def\xiipt{\textfont\z@\twlrm
    \scriptfont\z@\twlrm \scriptscriptfont\z@\twlrm
  \textfont\@ne\twlmi \scriptfont\@ne\twlmi \scriptscriptfont\@ne\twlmi
  \textfont\tw@\twlsy \scriptfont\tw@\twlsy \scriptscriptfont\tw@\twlsy
  \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
  \def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath
            \textfont\@ne\twlmi
            \textfont\tw@\twlsy \textfont\lyfam\twlly
            \@boldfalse}\@boldfalse
  \def\boldmath{\@ifundefined{twlmib}{\global\font\twlmib\@mbi\@magscale1\global
          \font\twlsyb\@mbsy \@magscale1\global\font
           \twllyb\@lasyb\@magscale1\relax\@addfontinfo\@xiipt
                {\def\boldmath{\everymath
                  {\mit}\everydisplay{\mit}\@prtct\@nomathbold
                  \textfont\@ne\twlmib \textfont\tw@\twlsyb
                  \textfont\lyfam\twllyb\@prtct\@boldtrue}}}{}\@xiipt\boldmath}%
  \def\prm{\fam\z@\twlrm}%
  \def\pit{\fam\itfam\twlit}\textfont\itfam\twlit \scriptfont\itfam\egtit
     \scriptscriptfont\itfam\sevit
  \def\psl{\fam\slfam\twlsl}\textfont\slfam\twlsl
       \scriptfont\slfam\tensl \scriptscriptfont\slfam\tensl
  \def\pbf{\fam\bffam\twlbf}\textfont\bffam\twlbf
     \scriptfont\bffam\ninbf \scriptscriptfont\bffam\ninbf
  \def\ptt{\fam\ttfam\twltt}\textfont\ttfam\twltt
     \scriptfont\ttfam\nintt \scriptscriptfont\ttfam\nintt
  \def\psf{\fam\sffam\twlsf}\textfont\sffam\twlsf
      \scriptfont\sffam\tensf \scriptscriptfont\sffam\tensf
  \def\psc{\@getfont\psc\scfam\@xiipt{\@mcsc\@magscale1}}%
  \def\ly{\fam\lyfam\twlly}\textfont\lyfam\twlly
     \scriptfont\lyfam\egtly \scriptscriptfont\lyfam\sixly
   \@setstrut \rm}
} %end bigscript

% Singlespaced hanging paragraph environment for uncited bibliographies.
\def\singlespace{\vskip\baselineskip \def\baselinestretch{1}\@normalsize
      \vskip-\baselineskip}
\def\endsinglespace{\par}

% Start to define Kjas.sty
\def\\numberwithinn#1#2{\@ifundefined{c@#1}{\@nocounterr{#1}}{%
  \@ifundefined{c@#2}{\@nocnterr{#2}}{%
  \@addtoreset{#1}{#2}%
  \toks@\expandafter\expandafter\expandafter{\csname the#1\endcsname}%
  \expandafter\xdef\csname the#1\endcsname
    {\expandafter\noexpand\csname the#2\endcsname
     .\the\toks@}}}}
\def\@begintheorem#1#2{\trivlist
   \item[\hskip \labelsep{\scshape #1\ #2}]\rmfamily}    
\def\@opargbegintheorem#1#2#3{\trivlist
      \item[\hskip \labelsep{\bfseries #1\ #2\ (#3)}]\rmfamily}
\def\pageref#1{\expandafter\@setref\csname r@#1\endcsname
                                   \@secondoftwo{#1}}
\newenvironment{eabstract}{\vskip 1em 
        \begin{center}%
          {\normalsize {\sc Abstract}\vspace{-0.7em}\vspace{\z@}}%
        \end{center}%
        \small \begin{quote} \hskip 1.5em}%
        {\end{quote}
                        \ifx\@submit\@final\label{sec:\theendpage} 
                       \ifthenelse{\isodd{\pageref{sec:\theendpage}}}{\markboth{}
                       {\@righttext}}{}%\@lefttext}{}  
                       % \fi
                       \fi \par \endtrivlist
                       }         
\renewcommand{\baselinestretch}{1.2}
\def\appendixname{{\그래프부록}}
\def\tablename{{표}}
\def\figurename{{그림}}
\def\abstractname{{요{} 약}}
\\numberwithinn{equation}{section}
\\numberwithinn{table}{section}
\\numberwithinn{figure}{section}
\\numberwithinn{example}{section}
\def\@final{final}              
\def\submit#1{\def\@submit{#1}
             \ifx\@submit\@final \@@final
             \else \@@draft \fi}                          
\def\@@final{\@twosidetrue \@mparswitchtrue  
            \def\@journalhead{{\rm 제 {\bf \@volumn}권} \@ho{}{\rm 호,} \the\year{\rm 년}, pp. %
            \thepage--\pageref{sec:\theendpage}}
            \def\@text{\@journaltitle{} \@journalhead}   
            \pagestyle{centerheadings} 
            \def\receive##1##2{\def\@receiveyear{##1}\def\@receivemonth{##2}}
            \def\revise##1##2{\def\@reviseyear{##1}\def\@revisemonth{##2}}
%            \def\heading##1##2{\def\@righttext{##1}\def\@lefttext{##2}}}
            \def\heading##1##2{\def\@righttext{\rm ##1}\def\@lefttext{\rm ##2}}}
\def\@@draft{\@twosidefalse \@mparswitchfalse  
            \pagestyle{centerheadings}
            \def\heading##1{\markboth{}{##1}}}
\def\title#1{\cleardoublepage 
             \renewcommand\section{\@startsection {section}{1}{\z@}%
                       {-3.5ex \@plus -1ex \@minus -.2ex}%
                       {2.3ex \@plus.2ex}%
                       {\center \bf\그래프\scshape\large}}
             \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\center \bf\그래프\scshape\normalsize}}%
             \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.0ex \@plus .2ex}%
                                     {\bf\그래프\scshape\normalsize}}%
    \def\@title{\그래프 #1}\par
    \def\@seccntformat##1{\csname the##1\endcsname . {}}
    \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\lower.8ex\hbox{%
                \fontsize{10}{1}\selectfont\@thefnmark}}} ##1}% 
  \setcounter{equation}{0}                                      
  \setcounter{section}{0} 
  \setcounter{remark}{0} 
  \setcounter{example}{0}
  \setcounter{footnote}{0}
  \setcounter{figure}{0}
  \setcounter{table}{0}
  \setcounter{definition}{0}
  \renewcommand{\thetable}{\thesection.\@arabic\c@table{}}
  \renewcommand{\thefigure}{\thesection.\@arabic\c@figure{}}
  \renewcommand{\thesection}{\arabic{section}}
  \renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}}%
  \renewcommand{\theexample}{\thesection.\arabic{example}}
  \renewcommand{\theremark}{\thesection.\arabic{remark}}
  \refstepcounter{endpage}
    \if@twocolumn
      \ifnum \col@number=\@ne
        \@maketitle
      \else
        \twocolumn[\@maketitle]%
      \fi
    \else
      \newpage
      \global\@topnum\z@   % Prevents figures from going at top of page.
     \@maketitle 
    \fi} 
\def\etitle#1{%\cleardoublepage  
    \def\@etitle{#1}\par
    \def\@seccntformat##1{\csname the##1\endcsname . {}}
    \setcounter{footnote}{0}
    \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\lower.8ex\hbox{%
                \fontsize{10}{1}\selectfont\@thefnmark}}} ##1}% 
    \if@twocolumn
      \ifnum \col@number=\@ne
        \@makeetitle
      \else
        \twocolumn[\@maketitle]%
      \fi
    \else
      \newpage
      \global\@topnum\z@   % Prevents figures from going at top of page.
     \@makeetitle 
    \fi} 
\def\@makeetitle{%
  \newpage 
  \null
  \vspace*{-0.2in}%
  \begin{center}%
    {\Large\bfseries \@etitle \par}%
    \vskip 1.0em%
  \end{center}}%
\def\@maketitle{%
  \newpage 
   \if@twoside 
          \thispagestyle{onesideheadings}
          \markboth{\@text}{\@text}      
          \markboth{\@lefttext}{\@righttext}
   \else 
          \thispagestyle{plain}
    \fi                                                              
  \null
  \vspace*{-0.2in}%
  \begin{center}%
    {\scshape\Large \@title \par}%
    \vskip 1.0em% 
  \end{center}}
\newlength{\Mylen}
\def\author#1{\def\@author{#1}
    \setcounter{footnote}{0}                                      
    \renewcommand\thefootnote{\@arabic\c@footnote}%
    \def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark)}$\hss}}%
    \long\def\@makefntext##1{\parindent 1em\noindent
            \hbox to 1.8em{\hss${\@thefnmark)}$} ##1}%           
            \vspace{-0.17in}
    \begin{center}{\large \@author} \end{center} \@thanks }
\def\ps@centerheadings{%
    \let\@oddfoot\@empty\let\@evenfoot\@empty
    \def\@evenhead{\thepage\hfil\slshape\leftmark\hfil\phantom{\thepage}}%
    \def\@oddhead{\phantom{\thepage}\hfil{\slshape\rightmark}\hfil\thepage}%
    \let\@mkboth\@gobbletwo
    \let\sectionmark\@gobble
    \let\subsectionmark\@gobble}
\def\ps@onesideheadings{%
    \let\@oddfoot\@empty\let\@evenfoot\@empty
    \def\@evenhead{\hfil\slshape\fontsize{8}{1}\selectfont\leftmark}%
    \def\@oddhead{{\slshape\fontsize{8}{1}\selectfont\rightmark}\hfil}%
    \let\@mkboth\@gobbletwo
    \let\sectionmark\@gobble
    \let\subsectionmark\@gobble} 
\newcommand{\nohyphens}{\hyphenpenalty=10000\exhyphenpenalty=10000\relax}
\newtheorem{theorem}{\그래프 정리}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{corollary}{\그래프 보조정리}[section]
\newtheorem{ddd}{\그래프 단계}[section]
\newtheorem{proposition}{Proposition}
%\newtheorem{definition}{{\그래프\scshape 정의}}
\newtheorem{definition}{\그래프 정의}[section]
\newcommand{\Appendix}{%
            \@startsection {section}{1}{\z@}%
             {-3.5ex \@plus -1ex \@minus -.2ex}%
             {2.3ex \@plus.2ex}%
             {\center \scshape\large \appendixname{} \thesection :{} }}        
\newcommand{\sAppendix}{%
            \@startsection {section}{1}{\z@}%
             {-3.5ex \@plus -1ex \@minus -.2ex}%
             {2.3ex \@plus.2ex}%
             {\center \scshape\large \appendixname } }                    
\renewcommand{\appendix}{\par  
  \setcounter{section}{0}%
  \setcounter{equation}{0}
  \setcounter{subsection}{0}%
  \renewcommand{\thesection}{\@Alph\c@section}
  \renewcommand{\thesubsection}{\@Alph\c@section.\arabic{subsection}}%
  \def\@seccntformat##1{\csname the##1 \endcsname {}}  
  \renewcommand{\section}{%
                \secdef\Appendix\sAppendix}}
\def\proof{\trivlist
    \item[\hskip \labelsep {\reset@font {\그래프\scshape 증명:}}]%\bfseries\itshape \proofname:}] 
    \hskip 3pt }
\def\endproof{{\hspace*{\fill}\nolinebreak[2]\hspace*{\fill}}$\square$\endtrivlist}         
\def\remark{\stepcounter{remark}   
    \trivlist
    \item[\hskip \labelsep {\reset@font %\bfseries\itshape 
                            \itshape Remark \theremark:}] 
    \hskip 3pt }
\def\endremark{\endtrivlist}         
\def\example{\stepcounter{example}   
    \trivlist
    \item[\hskip \labelsep {\reset@font \itshape {\그래프\scshape 예제 \theexample:}}] 
    \hskip 3pt }
\def\endexample{\endtrivlist}         

\def\@journaltitle{{\rm 응용통계연구}}   
\def\volumn#1#2{\def\@volumn{#1}\def\@ho{#2}}

\def\keywords#1{\vskip 1em %
                 \begin{flushleft} \noindent \textit{Keywords:} #1 \end{flushleft} }
\def\hkeywords#1{\vskip 1em %
                 \begin{flushleft} \noindent \normalsize{주요용어:} #1 \end{flushleft} }
\def\references{\setcounter{ref}{0}
  \vspace{\baselineskip} \par
  \begin{center}
  \scshape \large {\bf\그래프 참고문헌}
  \vspace{4mm}
  \end{center}  \par 
  \def\baselinestretch{1}\@normalsize%
%  \parindent=0pt \parskip=12pt%
   \list{}
%  \list{\@biblabel{\arabic{enumiv}}}%
       {\setlength\leftmargin{2.3em}
%        \advance\leftmargin\labelsep
        \setlength\labelsep{0.3em}
        \setlength\itemindent{-2em}
 %       \ifdim\baselinestretch pt>1 pt  %
         \parsep  0pt\relax
%         \parsep  6pt\relax
 %       \else
 %         \parsep  4pt\relax
 %       \fi
        \itemsep\parsep
        \usecounter{enumiv}%
        \let\p@enumiv\@empty
        \def\theenumiv{\arabic{enumiv}}%
        }%
  \let\newblock\bibitem\relax%
}
\def\endreferences{%\endenumerate
      \endlist
      \ifx\@submit\@final 
      \samepage
      \begin{center} 
      \vspace{2mm}
        [ \@receiveyear 년 \@receivemonth 월 접수, 
        \@reviseyear 년 \@revisemonth 월 채택 ]
      \end{center}                                             
      \else \par \fi}
\renewenvironment{abstract}{%
      \vskip 0.8em 
        \begin{center}%
          {\normalsize \abstractname\vspace{-0.5em}\vspace{\z@}}%-1.0
        \end{center}%
        \small  \begin{quote} \hskip 1.5em}{\end{quote}}%
\def\footnoterule{\kern-3\p@
  \hrule \@width 6cm \kern 2.6\p@} % the \hrule is .4pt high

\endinput
