%% 응용통계연구 논문 양식 -1996년 6월
%%
\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$}}$}

% Indentation after sectioning command
\let\@afterindentfalse\@afterindenttrue
\@afterindenttrue

\input hfont.tex
%\renewcommand{\familydefault}{cmr}
\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}
\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\numberwithin#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{\bfseries #1\ #2}]\rmfamily}    
   \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 \scshape Abstract \vspace{-0.7em}\vspace{\z@}}%
        \end{center}%
        \small \begin{quote} \hskip 1.5em}{\end{quote}
                        \ifx\@submit\@final\label{sec:\theendpage} 
%                       \ifodd\thepage\markboth{}{\@righttext}%{\@lefttext}{}  
                       \ifodd\pageref{sec:\theendpage}\markboth{}{\@righttext}%{\@lefttext}{}  
                       \fi \fi \par \endtrivlist}         
\renewcommand{\baselinestretch}{1.2}
\renewcommand{\refname}{{참고문헌}}
\def\appendixname{{부록}}
\def\tablename{{표}}
\def\figurename{{그림}}
\def\abstractname{{요{} 약}}
\numberwithin{equation}{section}
\numberwithin{table}{section}
\numberwithin{figure}{section}
\numberwithin{example}{section}
\def\@final{final}              
\def\submit#1{\def\@submit{#1}
             \ifx\@submit\@final \@@final
             \else \@@draft \fi}                          
\def\@@final{\@twosidetrue \@mparswitchtrue  
            \def\@journalhead{제 {\bf \@volumn}권 \@ho{}호, \the\year년, 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\@@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 \normalfont\large\bfseries}}
                       {\center \scshape\large}}
             \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\center \scshape\large}}
    \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\@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 . {}}
    \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}% 
    \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}
%          \markboth{\@text}{\@text}      
%          \markboth{\@lefttext}{\@righttext}  
    \fi                                                              
  \null
  \vspace*{-0.2in}%
  \begin{center}%
%    {\Large\bfseries \@title \par}%
    {\scshape\Large \@title \par}%
    \vskip 1.0em% 
  \end{center}}
\def\author#1{\def\@author{#1}
    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    \def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark}$\hss}}%
    \long\def\@makefntext##1{\parindent 1em\noindent
            \hbox to1.8em{\hss$\m@th^{\@thefnmark}$} ##1}%           
            \vspace{-0.17in}
    \begin{center}{\large {\@author}} \end{center} \@thanks 
    \theendnotes }    
\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}%
%    \def\@oddhead{{\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{proposition}{Proposition}
\newtheorem{definition}{{\scshape 정의}}
\newcommand{\Appendix}{%
            \@startsection {section}{1}{\z@}%
             {-3.5ex \@plus -1ex \@minus -.2ex}%
             {2.3ex \@plus.2ex}%
%             {\center \normalfont\large\bfseries \appendixname{} \thesection :{} }}        
             {\center \scshape\large \appendixname{} \thesection :{} }}        
\newcommand{\sAppendix}{%
            \@startsection {section}{1}{\z@}%
             {-3.5ex \@plus -1ex \@minus -.2ex}%
             {2.3ex \@plus.2ex}%
%             {\center \normalfont\large\bfseries \appendixname } }                    
             {\center \scshape\large \appendixname } }                    
\renewcommand{\appendix}{\par  
  \setcounter{section}{0}%
  \setcounter{equation}{0}
%  \renewcommand{\thetable}{\@Alph\c@table{} }
%  \renewcommand{\thefigure}{\@Alph\c@figure{}}
  \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{응용통계연구}   
%\def\journalcode#1{\def\@journalcode{#1}
%                   \ifx\@journalcode\@JKSS\def\@journaltitle{Journal of the Korean %
%                         Statistical Society} \fi                    
%                   \ifx\@journalcode\@JKA\def\@journaltitle{응용통계연구} \fi
%                   \ifx\@journalcode\@KCS\def\@\journaltitle{한국통계학회논문집}\fi }
\def\volumn#1#2{\def\@volumn{#1}\def\@ho{#2}}
\def\keywords#1{\vskip 1em %
                 \begin{flushleft} \noindent \textit{Keywords:} #1 \end{flushleft} }
\def\references{\vspace{\baselineskip} \par
%      \begin{center} \normalfont \large \bfseries \refname \end{center}  \par 
      \begin{center} \scshape \large \refname \end{center}  \par 
      \def\baselinestretch{1}\@normalsize
%      \raggedright 
      \parindent=0pt \parskip=6pt%12pt
      \everypar{\hangindent=24pt \hangafter=1}}
\def\endreferences{\ifx\@submit\@final 
                        \begin{center} 
                         [ \@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}}%
        
        
%       ****************************************
%       *           ADDRESS MACROS             *
%       ****************************************
%
\def\@makeenmark{\hbox{\mdseries $^{\@theenmark}$}}

\newdimen\endnotesep

\newcommand{\address}[1][]{\xdef\@theenmark{#1}\@endnotemark\@endnotetext}
\let\@doanenote=0
\let\@doanenotes=0
\let\@endanenote=0

\newwrite\@enotes
\newif\if@enotesopen \global\@enotesopenfalse

\def\@openenotes{\immediate\openout\@enotes=\jobname.ent\relax
      \global\@enotesopentrue}

\long\def\@endnotetext#1{%
     \if@enotesopen \else \@openenotes \fi
     \immediate\write\@enotes{\@doanenote{\@theenmark}}%
     \begingroup
        \def\next{\mbox{#1{ }}}%
        \newlinechar='40
        \immediate\write\@enotes{\meaning\next}%
     \endgroup                              
     \immediate\write\@enotes{\@endanenote}}

\def\endnotemark{\xdef\@theenmark{\theendnote}\@endnotemark}

\def\@endnotemark{\leavevmode\ifhmode
  \edef\@x@sf{\the\spacefactor}\fi\@makeenmark
   \ifhmode\spacefactor\@x@sf\fi\relax}

\def\enoteformat{%\rightskip\z@ \leftskip\z@ \parindent=0em%1.8em
     \leavevmode\llap{\hbox{$^{\@theenmark}$}\nolinebreak[4]}}
\def\enotesize{\footnotesize}
%\def\enotesize{\normalsize}

\def\theendnotes{\immediate\closeout\@enotes \global\@enotesopenfalse
  \begingroup
    \makeatletter
    \def\@doanenote##1##2>{\def\@theenmark{##1}%\par\begingroup
        \edef\@currentlabel{\csname p@endnote\endcsname\@theenmark} %DW
        \enoteformat}
    \def\@endanenote{}%\par\endgroup}%
    \def\ETC.{\errmessage{Some long endnotes will be truncated; %
                            use BIGLATEX to avoid this}%
          \def\ETC.{\relax}}
    \enotesize
%    \quotation
    \begin{center}
    \@input{\jobname.ent}%
    \end{center}
  \endgroup}
\endinput


