\def\filedate{2005/03/30}
\def\fileversion{1.0}

\ProvidesPackage{hangul}[\filedate\space Document Package for �ѱ�LaTeX]
\typeout{�ѱ� ���� �ٷ��� `\filename' <\filedate>.}

%% �߰� ���� ó��
%% --------------
%%
%% �߰� ���� "hanja"�� �ܿ��� �̸����� ���ڷ� ǥ���Ѵ�.

\newif\if@hanja\@hanjafalse

\DeclareOption{hanja}{\@hanjatrue}

%% ���� �԰�
\DeclareOption{������}{%������(105x148)<105x148>
  \setlength\paperheight{148mm}
  \setlength\paperwidth {105mm}
  \@resetpapersize
}
\DeclareOption{����}{%����(148x210)<148x210>
  \setlength\paperheight{210mm}
  \setlength\paperwidth {148mm}
  \@resetpapersize
}
\DeclareOption{�ű���}{%����=20/25, �¿�=22.5/22.5,�Ӹ�����=0/0
  \setlength\paperheight{225mm}
  \setlength\paperwidth {152mm}
  \@resetpapersize
}
\DeclareOption{������}{%������(210x297)<210x297>
  \setlength\paperheight{297mm}
  \setlength\paperwidth {210mm}
  \@resetpapersize
}
\DeclareOption{�����}{%�����(128x188)<128x182>
  \setlength\paperheight{182mm}
  \setlength\paperwidth {128mm}
  \@resetpapersize
}
\DeclareOption{�������}{%����=25/30, �¿�=30/30 �Ӹ�����=15/0
  \setlength\paperheight{257mm}
  \setlength\paperwidth {182mm}
  \@resetpapersize
}
\DeclareOption{ũ�����}{%ũ�����(176x248)<176x248>
  \setlength\paperheight{248mm}
  \setlength\paperwidth {176mm}
  \@resetpapersize
}
\DeclareOption{�ż���}{%�ż���(�����)(103x182)<103x182>
  \setlength\paperheight{182mm}
  \setlength\paperwidth {103mm}
  \@resetpapersize
}
\DeclareOption{�����}{%�����
  \setlength\paperheight{182mm}
  \setlength\paperwidth {103mm}
  \@resetpapersize
}
\DeclareOption{Ÿ�����̵���}{%<Ÿ�����̵�>
  \setlength\paperheight{364mm}
  \setlength\paperwidth {257mm}
  \@resetpapersize
}
\DeclareOption{�������}{%�������%
  \setlength\paperheight{128mm}
  \setlength\paperwidth {94mm}
  \@resetpapersize
}
\DeclareOption{��������}{%��������
  \setlength\paperheight{374mm}
  \setlength\paperwidth {254mm}
  \@resetpapersize
}
\DeclareOption{�뱹����}{%�뱹����
  \setlength\paperheight{244mm}
  \setlength\paperwidth {172mm}
  \@resetpapersize
}
\DeclareOption{�������}{%�������
  \setlength\paperheight{205mm}
  \setlength\paperwidth {125mm}
  \@resetpapersize
}
\DeclareOption{�����}{%�����
  \setlength\paperheight{148mm}
  \setlength\paperwidth {84mm}
  \@resetpapersize
}
\def\@resetpapersize{
  \setlength\@tempdima{\paperwidth}
  \divide\@tempdima by9
  \if@twoside
    %% ���� ����: 0.3\@tempdima
    \setlength\oddsidemargin{1.3\@tempdima}
    \setlength\evensidemargin{1.7\@tempdima}
  \else
    \setlength\oddsidemargin{1.5\@tempdima}
    \setlength\evensidemargin{1.5\@tempdima}
  \fi
  \setlength\marginparwidth{\evensidemargin}
  \addtolength{\marginparwidth}{-3\marginparsep}
  \setlength\textwidth{\paperwidth}
  \addtolength\textwidth{-3\@tempdima}
  \addtolength\oddsidemargin{-1in}
  \addtolength\evensidemargin{-1in}
  \setlength\topmargin{\paperheight}
  \divide\topmargin by9
  \setlength\headheight{12\p@}
%  \setlength\headsep{14.65pt}
  \setlength\headsep{25\p@}
  \addtolength\topmargin{-\headheight}
  \addtolength\topmargin{-\headsep}
  \setlength\textheight{\paperheight}
  \addtolength\textheight{-2\topmargin}
  \addtolength\textheight{-\headheight}
  \addtolength\textheight{-\headsep}
  \addtolength\textheight{-\footskip}
  \addtolength\topmargin{-1in}
}

%% LaTeX�� �� ������ ������ ���� �߰� ������ �� �ִ�.
%% �߰� ���� "nojosa"�� �ڵ�����ó������� �����Ų��.
%% �߰� ���� "hardbold"�� �̹� ������� bfseries �ѱ� ����ü�� ����ϰ�,
%% �߰� ���� "softbold"�� bfseries ����ü�� ��ġ���� ���� ���¿���
%%   mdseries ����ü�� ����Ͽ� �������� ���� bfseries��
%%   ����������� �Ѵ�.
%%   �� ���� �ƹ� �͵� �������� ������ "softbold"�� �ȴ�.
%%
%% �߰� ������ ������ ������ ���� �Ѵ�.
%%       \documentclass[hanja,...]{...}
%%       \usepackage{hangul,...}
%% Ȥ�� \documentclass�� ������
%%       \usepackage[hanja]{hangul}
\newif\if@makebold
\newif\if@josa
\@hanjafalse \@makeboldfalse \@josatrue

\DeclareOption{hardbold}{\@makeboldfalse}
\DeclareOption{softbold}{\@makeboldtrue}
\DeclareOption{nojosa}{\@josafalse}

\ProcessOptions

%% �ѱ� ����ü�� ����
\input hfont.tex

%%% From File: lterror.dtx
\def\@latex@warning@no@line#1{\let\protect\relax%
   \@latex@warning{#1\@gobble}}

%%% From File: ltfsstrc.dtx
\def\@font@warning#1{\let\protect\relax%
         \GenericWarning{(Font)\@spaces\@spaces\@spaces\space\space}%
                        {LaTeX Font Warning: #1}}%

%%% From File: ltmiscen.dtx
\expandafter\def\expandafter\centering\expandafter{\centering\ks@break}
\expandafter\def\expandafter\raggedright\expandafter{\raggedright\ks@break}
\expandafter\def\expandafter\raggedleft\expandafter{\raggedleft\ks@break}

%%% From File: ltsect.dtx
\def\thanks#1{\footnotemark\let\KSC@\noexpand
    \protected@xdef\@thanks{\@thanks
        \protect\footnotetext[\the\c@footnote]{#1}}%
}

%%% From File: ltpage.dtx
\def\markboth#1#2{\gdef\@themark{{#1}{#2}}{%
     \let\protect\@unexpandable@protect \let\KSC@\noexpand
     \let\label\relax \let\index\relax \let\glossary\relax
     \mark{\@themark}}\if@nobreak\ifvmode\nobreak\fi\fi}
\def\@markright#1#2#3{\let\KSC@\noexpand \gdef\@themark{{#1}{#3}}}

%% hfont.sty�� ���⼭ ������.
\@nameuse{hfont.sty}

%% EUC-KR ��ȣ�� �����ϴµ����� ���ǰ� �䱸�ȴ�.
\def\ks@noexpand{\ifx\protect\@typeset@protect\relax\else
  \expandafter\noexpand\fi}

%% �츮�� ������ �������� ���� �̸����� \ksnamedef ������� ���ǵȴ�.
%%
%% �ٸ� �ٷ��̰� �� �̸����� �ٽ� ���ϰ� �� ��쵵 �����Ƿ� �Ʒ���
%% ���Ǵ� ��� �ٷ��̸� �� ó���ϰ� �� �� \begin{document}�� ���� ��
%% ȿ���� ������ �Ѵ�.  �̷� �̸����� \begin{document} �տ���
%% \renewcommand�� ���� ������ �� �ִ�.

\def\ksnamedef#1#2{%
\AtBeginDocument{\@namedef{ks#1}{#2\protect\make@josa{#2}}
                 \@namedef{#1}{\expandafter\protect\csname ks#1\endcsname}}}

\if@hanja
  \ksnamedef{today}{\number\year Ҵ~\number\month ��~\number\day ��}
  \ksnamedef{enclname}{����ڪ}
  \ksnamedef{ccname}{����}
  \ksnamedef{headtoname}{������}
  \def\seename{\��~����}
  \ksnamedef{contentsname}{��~�}
  \ksnamedef{listfigurename}{�׸�~���}
  \ksnamedef{listtablename}{��~���}
  \ksnamedef{refname}{����~����}
  \ksnamedef{indexname}{��~��}
  \ksnamedef{tablename}{��}
  \ksnamedef{abstractname}{�~�}
  \ksnamedef{bibname}{����~����}
  \ksnamedef{appendixname}{ݾ��}
  \ksnamedef{ksTHE}{�}
  \ksnamedef{partname}{��}
  \ksnamedef{chaptername}{��}
  \ksnamedef{sectionname}{�}
  \ksnamedef{colorlayer}{������~����}
  \ksnamedef{glossaryname}{��~��}
\else
  \ksnamedef{today}{\number\year ��~\number\month ��~\number\day ��}
  \ksnamedef{enclname}{������}
  \ksnamedef{ccname}{�纻}
  \ksnamedef{headtoname}{�޴���}
  \def\seename{\��~����}
  \ksnamedef{contentsname}{��~��}
  \ksnamedef{listfigurename}{�׸�~����}
  \ksnamedef{listtablename}{ǥ~����}
  \ksnamedef{refname}{����~����}
  \ksnamedef{indexname}{ã�ƺ���}
  \ksnamedef{tablename}{ǥ}
  \ksnamedef{abstractname}{��~��}
  \ksnamedef{bibname}{����~����}
  \ksnamedef{appendixname}{�η�}
  \ksnamedef{ksTHE}{��}
  \ksnamedef{partname}{��}
  \ksnamedef{chaptername}{��}
  \ksnamedef{sectionname}{��}
  \ksnamedef{colorlayer}{ȯ����~����}
  \ksnamedef{glossaryname}{���~Ǯ��}
\fi
\ksnamedef{pagename}{��}
\ksnamedef{figurename}{�׸�}

%% �ܿ��� �ѱ�ȭ
%% =============
%%
%% Part I       --> �� I ��, � I ��
%% Chapter 1    --> �� 1 ��, � 1 ��   <book,report>
%% Section 1    --> �� 1 ��, � 1 �
%% Appendix A   --> �η�  A, ݾ��  A
%%
%% ���� ���� �ܿ��� �ѱ�ȭ�� ��(�)���� ������ ��ģ��. �׷��Ƿ� �츮��
%% ������ \subsubsection���� �ܿ��� ��ȣ�� �Բ� �������� �Ѵ�.
%% article������ �̹� 3���� �����Ǿ�����, �׿ܿ����� 2�� �����Ǿ�
%% \subsection������ ��ȣ�� ������ �������� �Ǿ� �ִ�.
\setcounter{secnumdepth}{\thr@@}

\@ifclassloaded{article}{% <article>
  \renewcommand{\appendix}{\par
    \setcounter{section}{0}%
    \setcounter{subsection}{0}%
    \def\@chapapp{\appendixname}% �η��� �ѱ�ȭ�� ���� �ʿ�.
    \kscntformat{section}{\appendixname~}{}
    \gdef\thesection{\@Alph\c@section}}%
}{\@ifundefined{@chapapp}{}{% <report|book>
    \renewcommand\thesection{\@arabic\c@section}
    \renewcommand\appendix{\par
      \setcounter{chapter}{0}%
      \setcounter{section}{0}%
      \gdef\@chapapp{\appendixname}%
      \kscntformat{chapter}{\appendixname~}{}
      \gdef\thechapter{\@Alph\c@chapter}}%
}}

%% ���Ͱ��� �����Ƿ� ������ ���� ������ �߻��Ѵ�.
%% 1. \part�� \partname~\thepart�� ������ �ȴ�. ��~I
%% 2. \chapter�� \@chapapp{} \thechapter��. ��~1
%% 3. \section�� \sectionname~\thesection����. ��~1
%% 4. �����ۼ��� �鿩���Ⱑ �츮�� ȯ�濡 �������� �ʴ�.
%% 5. ������ heading�� ����ü�� \slshape���� �ٲ����μ� �츮����
%%    �Ҿ���������.
%%
%% �̷� ������ �����ϱ� ���� �ܿ��� �Ϸù�ȣ�� �հ� �ڿ� ��������
%% ����� ������ ���� �����Ѵ�.
\def\kscntformat#1#2#3{\@namedef{pre@#1cnt}{#2}
                       \@namedef{post@#1cnt}{#3}}
\kscntformat{part}{\ksTHE~}{~\partname}
\kscntformat{chapter}{\ksTHE~}{~\chaptername}
\kscntformat{section}{\ksTHE~}{~\sectionname}

\@ifclassloaded{article}{% <article>
  \def\@part[#1]#2{%
    \ifnum \c@secnumdepth >\m@ne
      \refstepcounter{part}%
      \addcontentsline{toc}{part}%
        {\pre@partcnt\thepart\post@partcnt\hspace{1em}#1}%
    \else
      \addcontentsline{toc}{part}{#1}%
    \fi
    {\parindent \z@ \raggedright
     \interlinepenalty \@M
     \normalfont
     \ifnum \c@secnumdepth >\m@ne
       \Large\bfseries \pre@partcnt\thepart\post@partcnt
       \par\nobreak
     \fi
     \huge \bfseries #2%
     \markboth{}{}\par}%
   \nobreak
   \vskip 3ex
   \@afterheading}
}{% <report|book>
  \@ifundefined{@part}{}{%
    \def\@part[#1]#2{%
      \ifnum \c@secnumdepth >-2\relax
        \refstepcounter{part}%
        \addcontentsline{toc}{part}%
          {\pre@partcnt\thepart\post@partcnt\hspace{1em}#1}%
      \else
        \addcontentsline{toc}{part}{#1}%
      \fi
      \markboth{}{}%
      {\centering
       \interlinepenalty \@M
       \normalfont
       \ifnum \c@secnumdepth >-2\relax
         \huge\bfseries \pre@partcnt\thepart\post@partcnt
         \par
         \vskip 20\p@
       \fi
       \Huge \bfseries #2\par}%
     \@endpart}
  }
}

\@ifclassloaded{book}{%
  \def\@chapter[#1]#2{%
    \ifnum \c@secnumdepth >\m@ne
      \if@mainmatter
        \refstepcounter{chapter}%
        \begingroup
        \let\protect\string
        \edef\reserved@a{\pre@chaptercnt\thechapter\post@chaptercnt}
        \typeout{\expandafter\strip@prefix\meaning\reserved@a}%
        \endgroup
        \addcontentsline{toc}{chapter}%
          {\protect\numberline{%
             \pre@chaptercnt\thechapter\post@chaptercnt}#1}%
      \else
        \addcontentsline{toc}{chapter}{#1}%
      \fi
    \else
      \addcontentsline{toc}{chapter}{#1}%
    \fi
    \chaptermark{#1}%
    \addtocontents{lof}{\protect\addvspace{10\p@}}%
    \addtocontents{lot}{\protect\addvspace{10\p@}}%
    \if@twocolumn
      \@topnewpage[\@makechapterhead{#2}]%
    \else
      \@makechapterhead{#2}%
      \@afterheading
    \fi}
  \def\@makechapterhead#1{%
    \vspace*{50\p@}%
    {\parindent \z@ \raggedright \normalfont
     \ifnum \c@secnumdepth >\m@ne
       \if@mainmatter
         \huge\bfseries
         \pre@chaptercnt\thechapter\post@chaptercnt
         \par\nobreak
         \vskip 20\p@
       \fi
     \fi
     \interlinepenalty\@M
     \Huge \bfseries #1\par\nobreak
     \vskip 40\p@
     }}}{}%
\@ifclassloaded{report}{%
  \def\@chapter[#1]#2{%
    \ifnum \c@secnumdepth >\m@ne
      \refstepcounter{chapter}%
      \typeout{\pre@chaptercnt\thechapter\post@chaptercnt}
      \addcontentsline{toc}{chapter}%
        {\protect\numberline{%
           \pre@chaptercnt\thechapter\post@chaptercnt}#1}%
    \else
      \addcontentsline{toc}{chapter}{#1}%
    \fi
    \chaptermark{#1}%
    \addtocontents{lof}{\protect\addvspace{10\p@}}%
    \addtocontents{lot}{\protect\addvspace{10\p@}}%
    \if@twocolumn
      \@topnewpage[\@makechapterhead{#2}]%
    \else
      \@makechapterhead{#2}%
      \@afterheading
    \fi}
  \def\@makechapterhead#1{%
    \vspace*{50\p@}%
    {\parindent \z@ \raggedright \normalfont
      \ifnum \c@secnumdepth >\m@ne
        \huge\bfseries
        \pre@chaptercnt\thechapter\post@chaptercnt
        \par\nobreak
        \vskip 20\p@
      \fi
      \interlinepenalty\@M
      \Huge \bfseries #1\par\nobreak
      \vskip 40\p@
    }}}{}

\@ifundefined{chapter}{}{%
  \renewcommand*\l@chapter[2]{%
    \ifnum \c@tocdepth >\m@ne
      \addpenalty{-\@highpenalty}%
      \vskip 1.0em \@plus\p@%
      \setbox\z@=\hbox{\c@chapter=1\relax\bfseries\pre@chaptercnt\thechapter\post@chaptercnt~}
      \setlength\@tempdima{1.5em}
      \advance\@tempdima\wd\z@
      \begingroup
        \parindent \z@ \rightskip \@pnumwidth
        \parfillskip -\@pnumwidth
        \leavevmode \bfseries
        \advance\leftskip \@tempdima
        \hskip -\leftskip
        #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
        \penalty\@highpenalty
      \endgroup
    \fi}}

\@ifundefined{section}{}{%
  \def\section{%
    \if@noskipsec \leavevmode \fi
    \par
    \@afterindentfalse
    \if@nobreak
      \everypar{}%
    \else
      \addpenalty\@secpenalty\addvspace{3.5ex \@plus 1ex \@minus .2ex\relax}
    \fi
    \secdef\ks@sect\ks@ssect}
  \def\ks@sect[#1]#2{%
    \ifnum \c@secnumdepth<1
      \let\@svsec\@empty
    \else
      \refstepcounter{section}%
      \protected@edef\@svsec{%
        \noexpand\pre@sectioncnt\thesection\noexpand\post@sectioncnt
        \quad\relax}%
    \fi
    \begingroup
      \normalfont\Large\bfseries{%
        \@hangfrom{\hskip \z@\relax\@svsec}%
        \interlinepenalty \@M #2\@@par}%
    \endgroup
    \sectionmark{#1}%
    \addcontentsline{toc}{section}{%
      \ifnum\c@secnumdepth<1 \else
        \protect\numberline{\pre@sectioncnt\thesection\post@sectioncnt}%
      \fi
      #1}
    \@xsect{2.3ex \@plus.2ex}}
  \def\ks@ssect#1{%
    \begingroup
      \normalfont\Large\bfseries{%
        \@hangfrom{\hskip \z@}%
        \interlinepenalty \@M #1\@@par}%
    \endgroup
    \@xsect{2.3ex \@plus.2ex}}
}

\def\@startsection#1#2#3#4#5#6{%
  \if@noskipsec \leavevmode \fi
  \par
  \@tempskipa #4\relax
  \@afterindenttrue
  \ifdim \@tempskipa <\z@
    \@tempskipa -\@tempskipa \@afterindentfalse
  \fi
  \if@nobreak
    \everypar{}%
  \else
    \addpenalty\@secpenalty\addvspace\@tempskipa
  \fi
  \@ifstar
    {\@ssect{#3}{#4}{#5}{#6}}%
    {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}

\@ifclassloaded{article}{%
  \renewcommand*\l@section[2]{%
    \ifnum \c@tocdepth >\z@
      \addpenalty{\@secpenalty}%
      \addvspace{1.0em \@plus\p@}%
      \settowidth{\@tempdima}{\bfseries\pre@sectioncnt\post@sectioncnt}
      \addtolength{\@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}
}{\@ifundefined{l@section}{}{%
    \renewcommand*\l@section{%
      \settowidth{\@tempdima}{\bfseries\pre@sectioncnt\post@sectioncnt}
      \addtolength{\@tempdima}{2.3em}
      \@dottedtocline{1}{1em}{\@tempdima}}}%1.5em 2.3em
}

%% ������ \ps@headings�� \ps@myheadings�� �ѱۿ� �°� ������ ���̴�.
%% ������ class���� ���� �ٸ��� �� �Ӹ��� ���� ¥�Ƿ� �츮��
%% ���⼭ ������ ���ε��� ������ �־�� �Ѵ�.
%% \LaTeXe�� ���� ���Ե� \MakeUpperCase�� 8��Ʈ ���ڸ� ����
%% iso-latin�� ���� �ٸ� �ٷ��̸� ����� �� �����ϴ�. -- ����
%% ��-�����̹Ƿ� �ܼ��� \uppercase�� ��ġ�Ѵ�.
\DeclareRobustCommand{\MakeUppercase}[1]{\uppercase{#1}}
\DeclareRobustCommand{\MakeLowercase}[1]{\lowercase{#1}}

\@ifclassloaded{article}{%
  \if@twoside
    \renewcommand\ps@headings{%
      \let\@oddfoot\@empty\let\@evenfoot\@empty
      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
      \def\sectionmark##1{%
        \markboth {\MakeUppercase{%
          \ifnum \c@secnumdepth >\z@
            \pre@sectioncnt\thesection\post@sectioncnt\quad
          \fi
          ##1}}{}}%
      \def\subsectionmark##1{%
        \markright {%
          \ifnum \c@secnumdepth >\@ne
            \thesubsection\quad
          \fi
          ##1}}}
  \else
    \def\ps@headings{%
      \let\@oddfoot\@empty
      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
      \def\sectionmark##1{%
        \markright {\MakeUppercase{%
          \ifnum \c@secnumdepth >\m@ne
            \pre@sectioncnt\thesection\post@sectioncnt\quad
          \fi
          ##1}}}}
  \fi
}{}

\@ifclassloaded{book}{%
  \if@twoside
    \def\ps@headings{%
      \let\@oddfoot\@empty\let\@evenfoot\@empty
      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
      \def\chaptermark##1{%
        \markboth {\MakeUppercase{%
            \ifnum \c@secnumdepth >\m@ne
              \if@mainmatter
                 \pre@chaptercnt\thechapter\post@chaptercnt\quad%
              \fi
            \fi
            ##1}}{}}%
      \def\sectionmark##1{%
        \markright {\MakeUppercase{%
            \ifnum \c@secnumdepth >\z@
              \pre@sectioncnt\thesection\post@sectioncnt\quad%
            \fi
            ##1}}}}
  \else
    \def\ps@headings{%
      \let\@oddfoot\@empty
      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
      \def\chaptermark##1{%
        \markright {\MakeUppercase{%
          \ifnum \c@secnumdepth >\m@ne
            \if@mainmatter
              \pre@chaptercnt\thechapter\post@chaptercnt\quad%
            \fi
          \fi
          ##1}}}}
  \fi
  \pagestyle{headings}
  }{}

\@ifclassloaded{report}{%
  \if@twoside
    \def\ps@headings{%
      \let\@oddfoot\@empty\let\@evenfoot\@empty
      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
      \def\chaptermark##1{%
        \markboth {\MakeUppercase{%
          \ifnum \c@secnumdepth >\m@ne
            \pre@chaptercnt\thechapter\post@chaptercnt\quad%
          \fi
          ##1}}{}}%
      \def\sectionmark##1{%
        \markright {\MakeUppercase{%
          \ifnum \c@secnumdepth >\z@
            \pre@sectioncnt\thesection\post@sectioncnt\quad%
          \fi
          ##1}}}}
  \else
    \def\ps@headings{%
      \let\@oddfoot\@empty
      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
      \def\chaptermark##1{%
        \markright {\MakeUppercase{%
          \ifnum \c@secnumdepth >\m@ne
            \pre@chaptercnt\thechapter\post@chaptercnt\quad%
          \fi
          ##1}}}}
  \fi
}{}

%%% From File: ltcounts.dtx
%% �������ڿ��� �츮�� ����ó��
\def\@arabic#1{\number #1\ifx\protect\relax\ks@num{\number #1}\fi}
\def\@roman#1{\romannumeral #1\ifx\protect\relax\ks@num{\number #1}\fi}
\def\@Roman#1{\expandafter\uppercase\expandafter{\romannumeral #1}%
  \ifx\protect\relax\ks@num{\number #1}\fi}
\def\@alph#1{%
  \ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or j\or
   k\or l\or m\or n\or o\or p\or q\or r\or s\or t\or u\or v\or w\or x\or
    y\or z\else\@ctrerr\fi\ifx\protect\relax\alph@josa{#1}\fi}
\def\@Alph#1{%
  \ifcase#1\or A\or B\or C\or D\or E\or F\or G\or H\or I\or J\or
   K\or L\or M\or N\or O\or P\or Q\or R\or S\or T\or U\or V\or W\or X\or
    Y\or Z\else\@ctrerr\fi\ifx\protect\relax\alph@josa{#1}\fi}
\def\@fnsymbol#1{\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or
   \mathchar "278\or \mathchar "27B\or \|\or **\or \dagger\dagger
   \or \ddagger\ddagger \else\@ctrerr\fi}\ifx\protect\relax\@jung\fi}
\def\alph@josa#1{%
  \ifnum#1=12 \ri@ul\else
  \ifnum#1=13 \@jong\else
  \ifnum#1=14 \@jong\else
  \ifnum#1=18 \ri@ul\else\@jung
  \fi\fi\fi\fi}

%% �����ڵ�ó������:
%%   \��/\�� \��/\�� \��/\�� \��/\�� \����/\�� (\���μ�/\�μ� \���ν�/\�ν�)
\DeclareRobustCommand*{\@jung}{\gdef\is@rieul{n}%
  \global\let\@josa\@firstoftwo\ignorespaces}
\DeclareRobustCommand*{\@jong}{\gdef\is@rieul{n}%
  \global\let\@josa\@secondoftwo\ignorespaces}
\DeclareRobustCommand*{\ri@ul}{\gdef\is@rieul{y}%
  \global\let\@josa\@secondoftwo\ignorespaces}
\DeclareRobustCommand*{\ks@num}[1]{{\count@#1%
  \ifnum\count@<\z@ \count@-\count@ \fi\count2\count@
  \divide\count2 10 \multiply\count2 10 \advance\count@-\count2
  \ifcase\count@\@jong\or\ri@ul\or\@jung\or\@jong\or\@jung\or
  \@jung\or\@jong\or\ri@ul\or\ri@ul\or\@jung\fi}\ignorespaces}

%% ����������
\if@josa
\begingroup
\IfFileExists{josa.tab}{%
  \newread\JS@tab
  \endlinechar\m@ne
  \def\JS@{\read\JS@tab to\@t \expandafter\split@t\@t\relax
    \ifnum\count@=2 \let\next\relax \else
      \ifcase\count@\let\next\@jung\or\let\next\ri@ul\fi
      \global\expandafter\let\csname\reserved@a\endcsname\next
      \let\next\JS@ \fi\next}
  \def\split@t##1,##2,##3\relax{\count@##1\def\reserved@a{##2|##3}}%
  \openin\JS@tab=josa.tab \JS@ \closein\JS@tab}%
{\PackageWarningNoLine{\string\HLaTeX}{``josa.tab''�� �����ϴ�!!!^^J
  \@spaces\@spaces\@spaces\@spaces\@spaces\@spaces
  �ο뿡 ���Ǵ� �ڵ������ �߸� ó���� �� �����ϴ�.}}
\endgroup
\fi

%% �츮������
\def\jaso#1{\@jaso{\@nameuse{c@#1}}}
\def\@jaso#1{\ifcase#1\or ��\@jong\or ��\@jong\or ��\@jong\or ��\ri@ul
  \else\@ijaso{#1}\fi}
\def\@ijaso#1{\ifcase#1\or\or\or\or\or ��\or ��\or ��\or ��\or ��\or
  ��\or ��\or ��\or ��\or ��\else\@ctrerr\fi\ifx\protect\relax\@jong\fi}
\def\gana#1{\@gana{\@nameuse{c@#1}}}
\def\@gana#1{\ifcase#1\or ��\or ��\or ��\or ��\else\@igana{#1}\fi
  \ifx\protect\relax\@jung\fi}
\def\@igana#1{\ifcase#1\or\or\or\or\or ��\or ��\or ��\or ��\or ��\or
  ��\or ī\or Ÿ\or ��\or ��\else\@ctrerr\fi}
\def\ojaso#1{\@ojaso{\@nameuse{c@#1}}}
\def\@ojaso#1{\ifcase#1\or ��\@jung\or ��\@jung\or ��\@jung\or
  ��\ri@ul\else\@iojaso{#1}\fi}
\def\@iojaso#1{\ifcase#1\or\or\or\or\or ��\or ��\or ��\or ��\or ��\or
  ��\or ��\or ��\or ��\or ��\else\@ctrerr\fi\ifx\protect\relax\@jong\fi}
\def\ogana#1{\@ogana{\@nameuse{c@#1}}}
\def\@ogana#1{\ifcase#1\or ��\or ��\or ��\or ��\else\@iogana{#1}\fi
  \ifx\protect\relax\@jung\fi}
\def\@iogana#1{\ifcase#1\or\or\or\or\or ��\or ��\or ��\or ��\or ��\or
  ��\or ��\or ��\or ��\or ��\else\@ctrerr\fi}
\def\pjaso#1{\@pjaso{\@nameuse{c@#1}}}
\def\@pjaso#1{\ifcase#1\or ��\@jong\or ��\@jong\or ��\@jong\or
  ��\ri@ul\else\@ipjaso{#1}\fi}
\def\@ipjaso#1{\ifcase#1\or\or\or\or\or ��\or ��\or ��\or ��\or ��\or
  ��\or ��\or ��\or ��\or ��\else\@ctrerr\fi\ifx\protect\relax\@jong\fi}
\def\pgana#1{\@pgana{\@nameuse{c@#1}}}
\def\@pgana#1{\ifcase#1\or ��\or ��\or ��\or ��\else\@ipgana{#1}\fi
  \ifx\protect\relax\@jung\fi}
\def\@ipgana#1{\ifcase#1\or\or\or\or\or ��\or ��\or ��\or ��\or ��\or
  ��\or ��\or ��\or ��\or ��\else\@ctrerr\fi}
\def\onum#1{\@onum{\@nameuse{c@#1}}}
\def\@onum#1{\ifcase#1\or ��\or ��\or ��\or ��\else\@ionum{#1}\fi
  \ifnum#1<\sixt@@n\ifx\protect\relax\ks@num{\number #1}\fi\fi}
\def\@ionum#1{\ifcase#1\or\or\or\or\or ��\or ��\or ��\or ��\or ��\or
  ��\or ��\or ��\or ��\or ��\or ��\else\@ctrerr\fi}
\def\pnum#1{\@pnum{\@nameuse{c@#1}}}
\def\@pnum#1{\ifcase#1\or ��\or ��\or ��\or ��\else\@ipnum{#1}\fi
  \ifnum#1<\sixt@@n\ifx\protect\relax\ks@num{\number #1}\fi\fi}
\def\@ipnum#1{\ifcase#1\or\or\or\or\or ��\or ��\or ��\or ��\or ��\or
  ��\or ��\or ��\or ��\or ��\or ��\else\@ctrerr\fi}
\def\oeng#1{\@oeng{\@nameuse{c@#1}}}
\def\@oeng#1{\ifcase#1\or ��\or ��\or ��\or ��\else\@ioeng{#1}\fi
  \ifx\protect\relax\alph@josa{#1}\fi}
\def\@ioeng#1{\ifcase#1\or\or\or\or\or ��\or ��\or ��\or ��\or ��\or
  ��\or ��\or ��\or ��\or ��\or ��\or ��\or ��\or ��\or ��\or ��\or
  ��\or ��\or ��\or ��\or ��\or ��\else\@ctrerr\fi}
\def\peng#1{\@peng{\@nameuse{c@#1}}}
\def\@peng#1{\ifcase#1\or ��\or ��\or ��\or ��\else\@ipeng{#1}\fi
  \ifx\protect\relax\alph@josa{#1}\fi}
\def\@ipeng#1{\ifcase#1\or\or\or\or\or ��\or ��\or ��\or ��\or ��\or
  ��\or ��\or ��\or ��\or ��\or ��\or ��\or ��\or ��\or ��\or ��\or
  ��\or ��\or ��\or ��\or ��\or ��\else\@ctrerr\fi}
\def\hnum#1{\@hnum{\@nameuse{c@#1}}}
\def\@hnum#1{\ifcase#1\or �ϳ�\or ��\or ��\or ��\or\@ihnum{#1}\fi}
\def\@ihnum#1{\ifcase#1\or\or\or\or\or �ټ�\or ����\or �ϰ�\or ����\or
  ��ȩ\or ��\or ���ϳ�\or ����\or ����\or ����\or ���ټ�\or ������\or
  ���ϰ�\or ������\or ����ȩ\or ����\or �����ϳ�\or ������\or
  ������\or ������\else\@ctrerr\fi\ifx\protect\relax\@tempcnta#1%
  \ifnum\@tempcnta>9\advance\@tempcnta-10\fi
  \ifnum\@tempcnta>9\advance\@tempcnta-10\fi
  \ifcase\@tempcnta\ri@ul\or\@jung\or\ri@ul\else\@jong\fi\fi}
\def\Hnum#1{\@Hnum{\@nameuse{c@#1}}}
\def\@Hnum#1{\ifcase#1\or ù\or ��\or ��\or ��\or\@iHnum{#1}\fi
  °\ifx\protect\relax\@jung\fi}
\def\@iHnum#1{\ifcase#1\or\or\or\or\or �ټ�\or ����\or �ϰ�\or ����\or
  ��ȩ\or ��\or ���ϳ�\or ����\or ����\or ����\or ���ټ�\or ������\or
  ���ϰ�\or ������\or ����ȩ\or ����\or �����ϳ�\or ������\or ������\or
  ������\else\@ctrerr\fi}

%% �����ۼ��� makeidx.sty�� ���� \see�� \seealso�� ���ǵȴ�.
\AtBeginDocument{%
  \@ifundefined{see}{}{%
    \renewcommand*\see[2]{#1\emph{\make@josa{#1}\seename}}
    \providecommand*\seealso[2]{#1\emph{\make@josa{#1}\alsoname}}}
}

%% �ѱ�LaTeX�� logo�� �̷���.
\DeclareRobustCommand{\HLaTeX}{��\kern-.4ex\lower.3ex\hbox{��}\kern-.4ex\LaTeX}

%% \LaTeX�� �ѱ�ȭ:
%% ----------------
%%% From File: ltbibl.dtx
\def\@lbibitem[#1]#2{\item[\@biblabel{#1}\hfill]\if@filesw
      {\let\protect\noexpand
       \immediate
       \write\@auxout{\string\bibcite{#2}%
        {#1\string\make@josa{#1}}}}\fi\ignorespaces}
\def\@bibitem#1{\item\if@filesw
       {\let\protect\noexpand\immediate\write\@auxout
        {\string\bibcite{#1}{\the\value{\@listctr}%
         \string\ks@num{\the\value{\@listctr}}}}}\fi\ignorespaces}
\def\bibcite{\let\protect\string\@newl@bel b}
\def\@citex[#1]#2{\let\protect\string%
  \let\@citea\@empty
  \@cite{\@for\@citeb:=#2\do
    {\@citea\def\@citea{,\penalty\@m\ }%
     \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
     \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
     \let\protect\@typeset@protect
     \@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}%
       \G@refundefinedtrue
       \@latex@warning
         {Citation `\@citeb' on page \thepage \space undefined}}%
       {\@cite@ofmt{\csname b@\@citeb\endcsname}}}}{#1}
       \let\protect\@typeset@protect}
\def\nocite#1{\@bsphack\let\protect\string%
  \@for\@citeb:=#1\do{%
    \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
    \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
    \let\protect\relax
    \@ifundefined{b@\@citeb}{\G@refundefinedtrue
        \@latex@warning{Citation `\@citeb' undefined}}{}}%
  \@esphack}
%%
\if@josa
  \def\make@josa#1{%
    \begingroup\set@display@protect
    \xdef\reserved@a{#1}%
    \endgroup
    \expandafter\last@two@codes\reserved@a\endjosa
    \ifnum\k@second>160
      \@tempcnta\k@first \divide\@tempcnta\sixt@@n
      \@tempcntb\@tempcnta \multiply\@tempcntb\sixt@@n
      \advance\k@first-\@tempcntb
      \edef\reserved@a{\hexnumber@{\@tempcnta}\hexnumber@{\k@first}}%
      \@tempcnta\k@second \divide\@tempcnta\sixt@@n
      \@tempcntb\@tempcnta \multiply\@tempcntb\sixt@@n
      \advance\k@second-\@tempcntb
      \edef\reserved@b{\hexnumber@{\@tempcnta}\hexnumber@{\k@second}}%
      \expandafter\ifx\csname\reserved@a|\reserved@b\endcsname\relax\@jong
      \else\expandafter\csname\reserved@a|\reserved@b\endcsname\fi
    \else
      \ifnum`0=\k@second\@jong\else
      \ifnum`1=\k@second\ri@ul\else
      \ifnum`3=\k@second\@jong\else
      \ifnum`6=\k@second\@jong\else
      \ifnum`7=\k@second\ri@ul\else
      \ifnum`8=\k@second\ri@ul\else
      \ifnum`l=\k@second\ri@ul\else
      \ifnum`m=\k@second\@jong\else
      \ifnum`n=\k@second\@jong\else
      \ifnum`r=\k@second\ri@ul\else
      \ifnum`L=\k@second\ri@ul\else
      \ifnum`M=\k@second\@jong\else
      \ifnum`N=\k@second\@jong\else
      \ifnum`R=\k@second\ri@ul\else\@jung
      \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
    \fi
  }
  \def\last@two@codes{\afterassignment\loop@josa\let\next= }
  \def\loop@josa{%
    \ifx\next\endjosa\let\next\relax
    \else
      \k@first\k@second
      \expandafter\next@char\meaning\next\@nil
      \let\next\last@two@codes
    \fi\next
  }
  \newcount\k@first \newcount\k@second
  \def\next@char#1 #2 #3\@nil{\k@second`#3}
\else
  \def\make@josa#1{\@jong}
\fi

%%%% From File: ltxref.dtx
\def\@setref#1#2#3{%
  \let\protect\relax
  \ifx#1\relax
   \protect\G@refundefinedtrue
   \nfss@text{\reset@font\bfseries ??}%
   \@latex@warning{Reference `#3' on page \thepage \space
             undefined}%
  \else
   \expandafter#2#1\null
  \fi}
\def\label#1{\@bsphack
  \protected@write\@auxout{}%
         {\string\newlabel{#1}%
          {{\@currentlabel\string\make@josa{\@currentlabel}}%
           {\thepage\string\make@josa{\thepage}}}}%
  \@esphack}
\def\ref#1{\let\protect\string
        \expandafter\@setref\csname r@#1\endcsname\@firstoftwo{#1}}
\def\pageref#1{\let\protect\string
          \expandafter\@setref\csname r@#1\endcsname\@secondoftwo{#1}}
\def\newlabel{\let\protect\string\@newl@bel r}%

%%% �ڵ�������� �� ����ü�ٲ� �츮�� ����:
%%%   \��=\�� \��=\�� \��=\�� \��=\�� \����=\�� (\���μ�=\�μ� \���ν�=\�ν�)
%%%   \�� \�� (koaunghi: 2004/04/07 �߰�)
%%%   \����\�ܰ�\����\��\����\�׷���\�ü�\������\�ʱ�\��۾�\���긲\���۾�
%%%   \�ʱ�a\�𳪷� (koaunghi: 2004/04/07 �߰�)
%% �츮�� ����

\let\@josa\@firstoftwo
\def\^^c0{\@ifnextchar^^da\f@rj@mo\f@rjos@}
\def\f@rjos@#1{%
  \ifx#1^^cc\@josa{��}{��}\else%   ��(C0CC)
  \ifx#1^^ba\@josa{��}{��}\else%   ��(C0BA)
  \ifx#1^^bb\@josa{��}{��}\else%   ��(C0BB)
  \ifx#1^^b8\��%                   ��(C0B8) ��(��/��)
  \fi\fi\fi\fi}
\def\f@rj@mo^^da��#1#2#3#4{%    �ڸ�(C0DAB8F0)
  \ifx#1^^b8\hfontfamily{jmj}\else% ����(B8EDC1B6)
  \ifx#1^^b0\hfontfamily{jgt}\else% ����(B0EDB5F1)
  \ifx#1^^b3\hfontfamily{jnv}\else% �뺧(B3EBBAA7)
  \ifx#1^^bc\hfontfamily{jsr}%      �Ҷ�(BCD2B6F3)
  \fi\fi\fi\fi\ignorespaces}%
\def\��{\��}%                                  ��(B4C2)
\def\��{\�ѷ�}% ��(B7CE) (��/��)
\def\^^bf{%
  \@ifnextchar^^cd{\@josa{��}{��}\@gobble}\yt@or@ol}% ��(BFCD)
\def\yt@or@ol#1#2#3{%
  \ifx#1^^be\hfontfamily{yt}\else%                    ����(BFBDB1BD)
  \ifx#1^^dc\hfontfamily{ol}\fi\fi\ignorespaces}%     �ܰ�(BFDCB0FB)
\def\^^b8{\@ifnextchar^^a6{\��\@gobble}\mj@or@mg}% ��(B8A6)
\def\mj@or@mg#1#2#3{%
  \ifx#1^^ed\hfontfamily{mj}\else%                 ����(B8EDC1B6)
  \ifx#1^^f1\hfontfamily{mg}\fi\fi\ignorespaces}%  ��(B8F1B0A2)
\def\^^b0{\@ifnextchar^^ed\only@gt\ga@or@gwa}
\def\only@gt#1#2#3{%
  \ifx#1^^ed\gtfamily\fi\ignorespaces}% ����(B0EDB5F1)
\def\ga@or@gwa#1{%
  \ifx#1^^a1\��\else%                   ��(B0A1)
  \ifx#1^^fa\@josa{��}{��}\fi\fi}%      ��(B0FA)
\def\^^b1{\@ifnextchar^^c3\gs@or@gh\only@gr}
\def\gs@or@gh#1#2#3#4#5{%
  \ifx#2^^bc\hfontfamily{gs}#4#5\else%         �ü�(B1C3BCAD)
  \hfontfamily{gh}\fi\ignorespaces}%           ���긲(B1C3C8EAB8B2)
\def\only@gr#1#2#3#4#5{%
  \ifx#1^^d7\hfontfamily{gr}\fi\ignorespaces}% �׷���(B1D7B7A1C7C8)
%
\def\������{\hfontfamily{sm}\ignorespaces}% ������(BBF5B8EDC1B6)
% \�ʱ�!=\�ʱ�a �߰� (2005/04/07)
\def\�ʱ�{%
  \@ifnextchar a{\hfontfamily{pga}\@gobble}{\hfontfamily{pg}\ignorespaces}}
%\def\�ʱ�{\hfontfamily{pg}\ignorespaces}%   �ʱ�  (C7CAB1E2)
\def\��#1#2#3#4{\ifx#1^^c8\hfontfamily{ph}% ���긲(C6E6C8EAB8B2)
  \else\hfontfamily{pn}\fi\ignorespaces}%   ��۾�(C6E6B1DBBEBE)
\def\���۾�{\hfontfamily{bm}\ignorespaces}% ���۾�(BABDB1DBBEBE)
\def\Ÿ��{\hfontfamily{tz}\ignorespaces}%   Ÿ��  (C5B8C0DA)
\def\�Ź�{\hfontfamily{sh}\ignorespaces}%   �Ź�  (BDC5B9AE)
\def\�ٴ�{\hfontfamily{vd}\ignorespaces}%   �ٴ�  (B9D9B4D9)
\def\�𳪷�{\hfontfamily{dn}\ignorespaces}% �𳪷� (B5EFB3AAB7E7)

%%% �Ű� ���� ``��'' (2005/04/07) {\��}
%%% ������    ``��'' (2005/04/07) {\��}
\def\^^a4#1{%
  \ifx#1^^d1\if y\is@rieul\else\@josa{}{��}\fi% ��(A4D1)
  \else\@josa{}{��}\fi}%                        ��(A4D3)

%%% �巯��ǥ (2005/04/10 koaunghi@kornet.net)
\def\circemph@size#1{\leavevmode%
  \setbox0\hbox{\fontencoding{OT1}\fontseries{m}\selectfont!}%
  \dimen@\ht0\advance\dimen@-.3ex%
  \rlap{\raise.7\dimen@\hbox{\fontencoding{OT1}\fontseries{m}\selectfont\rule{.3\dimen@}{0pt}\char'27}}#1}
\def\dotemph@size#1{\leavevmode%
  \setbox0\hbox{\fontencoding{OT1}\fontseries{m}\selectfont!}%
  \dimen@\ht0\advance\dimen@-.3ex%
  \rlap{\raise.7\dimen@\hbox{\fontencoding{OT1}\fontseries{m}\selectfont\rule{.7\dimen@}{0pt}\char'137}}#1}

\def\circem{\let\hemph@size\circemph@size}
\def\dotem#1{\let\hemph@size\dotemph@size}
\def\circemph#1{{\let\hemph@size\circemph@size #1}}
\def\dotemph#1{{\let\hemph@size\dotemph@size #1}}

%% ù �� �鿩����: 2�谢
\settowidth{\parindent}{\reset@font �ѱ�}

%%% End of file `euc-kr.tex'.
