%% hangul.sty  04-Feb-1994 by koaunghi.un@zdv.uni-tuebingen.de
%%
%% ���۱��� GNU General Public License�� ���մϴ�.
%%
%% ������
%% ------
%% 1. ����ó���� �ҿ����մϴ�.
%%     ��:
%%       \cite{bib:label}�� ���ÿ� --> [2]�� ���ÿ�.
%%       ǥ \ref{tab:lang}�� �������� ---> ǥ 4�� ��������
%%     �ǵ����̸� �̷� ������ ����� ���ϵ��� �Ͻʽÿ�.
%%
%% 2. ����ó���� �������� �����ϴ�.
%%   1. �츮���� /�� 0���̿� �ɴϴ�.
%%   2. �츮���� KSC5601�ڵ忡 �ǰ��Ͽ� �ɹ�, �ѱ�, ������ ������
%%      �����ϴ�.
%%   3. makeindex�� ���� �����ۼ��ÿ� �츮���� `�����ٶ�...'�����
%%     �����ϴ� \indexspace�� �����ϴ�.
%%

\NeedsTeXFormat{LaTeX2e}
\def\filedate{1996/04/04}
\def\filename{hangul.sty}

\ProvidesPackage{hangul}[\filedate\space Document Package for HLaTeX]
\typeout{Hangul Document Package `\filename' <\filedate>.}

%%
%% option "hanja"�� �ܿ��� �̸����� ���ڷ� ǥ���մϴ�.
%% option "pshan"�� PostScript �ѱ� ������ ����ϵ��� �մϴ�.
%% option "hardbold"�� �̹� ������� bfseries �ѱ� ������ ����ϰ�,
%% option "softbold"�� bfseries�۲��� ��ġ���� ���� ���¿��� mdseries
%% �ѱ� ������ ����Ͽ� ��ũ�θ� ���� bfseries�� ����������� �մϴ�.
%% �� ���� �ƹ� �͵� �������� ������ "softbold"�� �˴ϴ�.
%% option "oldhan"�� �ѱ�LaTeX-0.92e���� ���Ǵ� �ѱ� �۲÷� ������
%% �ۼ��� �� �ʿ��� ���������Դϴ�.
%%
%% �� option�� ������ ������ ���� �մϴ�.
%%       \documentclass[hanja,...]{...}
%%       \usepackage{hangul,...}
%% Ȥ�� \documentclass�� ������
%%       \usepackage[hanja]{hangul}
%%

\newif\if@hanja
\newif\if@pshan
\newif\if@makebold
\newif\if@oldhan
\@hanjafalse \@pshanfalse \@makeboldtrue \@oldhanfalse

\DeclareOption{hanja}{\@hanjatrue}
\DeclareOption{pshan}{\@pshantrue\@makeboldtrue}
\DeclareOption{hardbold}{\@makeboldfalse}
\DeclareOption{softbold}{\@makeboldtrue}
\DeclareOption{oldhan}{\@oldhantrue}
\DeclareOption{kssection}{\relax}% ������ jhtex����ڵ��� ����

\ProcessOptions

%%
%% �ѱ� ������ ����
%%

\if@oldhan
  \input hfontold.tex
\else
  \input hfont.tex
\fi

%% ������ �ѱ�LaTeX ���̵忡 ����ϱ� ����.
\def\HLaTeXversion{0.95}
\def\HLaTeXdate{\expandafter\d@t@\filedate\relax}
\def\d@t@#1/#2/#3\relax{\if@hanja#1Ҵ #2�� #3��\else#1�� #2�� #3��\fi}

%%
%% �Ʒ��� �̸����� �츮�� ������ �������� ���� �̸����Դϴ�.
%%
%% ������ ���ǵ� �츮�� �̸����� \LaTeX�� ����� �� �ְ� �մϴ�.
%% ���� �ٸ� package�� �� �̸����� �ٽ� ���ϰ� �� ��쿡�� ����
%% �������� ���ǵ� �̸��� ȿ���� ���� �˴ϴ�. �׷��� �츮��
%% hangul.sty�� ����ϰ� �� ���� �ѱ۹��������� �����ϰ� �Ʒ���
%% ���ǰ� ��� package�� �� ó���ϰ� �� ���� �������� ����ǵ���
%% �մϴ�. ���� ���� �̸��� �������Ϸ��� \begin{document}�տ���
%% \renewcommand�� ���� ������ �� �����ϴ�.
%%

\if@hanja
  \def\kstoday{\number\year Ҵ~\number\month ��~\number\day ��}
  \def\ksenclname{��ݾڪ}% Ȥ�� ����ڪ
  \def\ksccname{����}
  \def\ksheadtoname{������}
  \def\ksseename{����}
  \def\kscontentsname{��~�}
  \def\kslistfigurename{�׸�~���}
  \def\kslisttablename{��~���}
  \def\ksrefname{����~����}
  \def\ksindexname{��~��}
  \def\kstablename{��}
  \def\ksabstractname{�~�}
  \def\ksbibname{����~����}
  \def\ksappendixname{ݾ��}
  \def\ksTHE{�}
  \def\kspartname{��}
  \def\kschaptername{��}
  \def\kssectionname{�}
\else
  \def\kstoday{\number\year ��~\number\month ��~\number\day ��}
  \def\ksenclname{÷�ι�}% Ȥ�� ������
  \def\ksccname{�纻}
  \def\ksheadtoname{�޴���}
  \def\ksseename{����}
  \def\kscontentsname{��~��}
  \def\kslistfigurename{�׸�~����}
  \def\kslisttablename{ǥ~����}
  \def\ksrefname{����~����}
  \def\ksindexname{��~��}
  \def\kstablename{ǥ}
  \def\ksabstractname{��~��}
  \def\ksbibname{����~����}
  \def\ksappendixname{�η�}
  \def\ksTHE{��}
  \def\kspartname{��}
  \def\kschaptername{��}
  \def\kssectionname{��}
\fi
\def\kspagename{������}
\def\ksfigurename{�׸�}

\def\ks@noexpand{\ifx\protect\@typeset@protect\relax\else
  \expandafter\noexpand\fi}
\AtBeginDocument{%
  \def\today{\ks@noexpand\kstoday}
  \def\enclname{\ks@noexpand\ksenclname}
  \def\ccname{\ks@noexpand\ksccname}
  \def\headtoname{\ks@noexpand\ksheadtoname}
  \def\seename{\ks@noexpand\ksseename}
  \def\contentsname{\ks@noexpand\kscontentsname}
  \def\listfigurename{\ks@noexpand\kslistfigurename}
  \def\listtablename{\ks@noexpand\kslisttablename}
  \def\refname{\ks@noexpand\ksrefname}
  \def\indexname{\ks@noexpand\ksindexname}
  \def\tablename{\ks@noexpand\kstablename}
  \def\abstractname{\ks@noexpand\ksabstractname}
  \def\bibname{\ks@noexpand\ksbibname}
  \def\appendixname{\ks@noexpand\ksappendixname}
  \def\ks@the{\ks@noexpand\ksTHE}
  \def\partname{\ks@noexpand\kspartname}
  \def\chaptername{\ks@noexpand\kschaptername}
  \def\sectionname{\ks@noexpand\kssectionname}
  \def\pagename{\ks@noexpand\kspagename}
  \def\figurename{\ks@noexpand\ksfigurename}}

%%
%% standard class�� ���� �κ��� article�� book/report�� ���������� �޸�
%% �մϴ�. ������ counter�� �� ���� ������ �� �ֵ��� �մϴ�.
%%

\newcounter{ks@ctr}
\@ifclassloaded{article}{\setcounter{ks@ctr}{\z@}}{\setcounter{ks@ctr}{\@ne}}
\@ifclassloaded{letter}{\setcounter{ks@ctr}{\thr@@}}{}

%%
%% �ܿ��� �ѱ�ȭ
%% =============
%%
%% 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@@}

\ifcase\theks@ctr% <article>
  \renewcommand{\appendix}{\par
    \setcounter{section}{0}%
    \setcounter{subsection}{0}%
    \gdef\ks@chapapp{\ksappendixname}% �͹̳ο�
    \def\@chapapp{\appendixname}%
    \def\thesection{\@Alph\c@section}}%
\or% <report|book>
  \renewcommand{\thesection}{\@arabic\c@section}
  \renewcommand{\@chapapp}{\chaptername}%
  \renewcommand{\appendix}{\par
    \setcounter{chapter}{0}%
    \setcounter{section}{0}%
    \gdef\ks@chapapp{\ksappendixname}% �͹̳ο�
    \def\@chapapp{\appendixname}%
    \renewcommand{\thechapter}{\Alph{chapter}}}%
\fi

%%
%% ���Ͱ��� �����Ƿ� ������ ������ �߻��մϴ�.
%% 1. \part�� \partname~\thepart�� ������ �˴ϴ�. ��~I
%% 2. \chapter�� \@chapapp{} \thechapter��. ��~1
%% 3. \section�� \sectionname~\thesection����. ��~1
%% 4. �����ۼ��� indentation�� �츮�� ȯ�濡 �������� �ʽ��ϴ�.
%% 5. heading�� �۲��� slshape���� �ٲ����μ� �츮���� �Ҿ��������ϴ�.
%%
%% ������ �̷� ������ �����ϱ� ����, ��ũ���� �������Դϴ�.
%%

\ifcase\theks@ctr% <article>
  \def\@part[#1]#2{%
    \ifnum \c@secnumdepth >\m@ne
      \refstepcounter{part}%
      \addcontentsline{toc}{part}{\ks@the\ \thepart\ \partname\hspace{1em}#1}%
    \else
      \addcontentsline{toc}{part}{#1}%
    \fi
    {\parindent \z@ \raggedright
     \interlinepenalty \@M
     \reset@font%\normalfont
     \ifnum \c@secnumdepth >\m@ne
       \Large\bfseries \ks@the\ \thepart\ \partname
       \par\nobreak
     \fi
     \huge \bfseries #2%
     \markboth{}{}\par}%
   \nobreak
   \vskip 3ex
   \@afterheading}
\or% <report|book>
  \def\@part[#1]#2{%
    \ifnum \c@secnumdepth >-2\relax
      \refstepcounter{part}%
      \addcontentsline{toc}{part}{\ks@the\ \thepart\ \partname\hspace{1em}#1}%
    \else
      \addcontentsline{toc}{part}{#1}%
    \fi
    \markboth{}{}%
    {\centering
     \interlinepenalty \@M
     \reset@font%\normalfont
     \ifnum \c@secnumdepth >-2\relax
       \huge\bfseries \ks@the\ \thepart\ \partname
       \par
       \vskip 20\p@
     \fi
     \Huge \bfseries #2\par}%
   \@endpart}
\fi

\@ifclassloaded{book}{%
  \def\@chapter[#1]#2{%
    \ifnum \c@secnumdepth >\m@ne
      \if@mainmatter
        \refstepcounter{chapter}%
        \ifx\ks@chapapp\@undefined
          \typeout{\ksTHE\space\thechapter\space\kschaptername.}%
        \else\typeout{\ks@chapapp\space\thechapter.}\fi
        \addcontentsline{toc}{chapter}{%
          \ifx\ks@chapapp\@undefined
            \protect\numberline{\ks@the\ \thechapter\ \@chapapp}
          \else\protect\numberline{\@chapapp\ \thechapter}\fi
          #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 \reset@font%\normalfont
     \ifnum \c@secnumdepth >\m@ne
       \if@mainmatter
         \huge\bfseries
         \ifx\ks@chapapp\@undefined%
           \ks@the\ \thechapter\ \@chapapp
         \else\@chapapp\ \thechapter\fi
         \par\nobreak
         \vskip 20\p@
       \fi
     \fi
     \interlinepenalty\@M
     \Huge \bfseries #1\par\nobreak
     \vskip 40\p@
     }}}%
{\ifcase\theks@ctr\relax\or% <report>
  \def\@chapter[#1]#2{%
    \ifnum \c@secnumdepth >\m@ne
      \refstepcounter{chapter}%
      \ifx\ks@chapapp\@undefined
        \typeout{\ksTHE\space\thechapter\space\kschaptername.}%
      \else\typeout{\ks@chapapp\space\thechapter.}\fi
      \addcontentsline{toc}{chapter}{%
        \ifx\ks@chapapp\@undefined%
          \protect\numberline{\ks@the\ \thechapter\ \@chapapp}
        \else\protect\numberline{\@chapapp\ \thechapter}\fi%
        #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 \reset@font
      \ifnum \c@secnumdepth >\m@ne
        \huge\bfseries
        \ifx\ks@chapapp\@undefined%
          \ks@the\ \thechapter\ \@chapapp
        \else\@chapapp\ \thechapter\fi
        \par\nobreak
        \vskip 20\p@
      \fi
      \interlinepenalty\@M
      \Huge \bfseries #1\par\nobreak
      \vskip 40\p@
    }}
 \fi}

\@ifundefined{chapter}{}{%
  \renewcommand\l@chapter[2]{%
    \ifnum \c@tocdepth >\m@ne
      \addpenalty{-\@highpenalty}%
      \vskip 1.0em \@plus\p@
      \setlength\@tempdima{4em}%{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
        \penalty\@highpenalty
      \endgroup
    \fi}}

\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}%
    \ifx\ks@chapapp\@undefined%
      \protected@edef\@svsec{\ks@the\ \thesection\ \sectionname\quad\relax}%
    \else\protected@edef\@svsec{\@chapapp\ \thesection\quad\relax}\fi
  \fi
  \begingroup \normalfont\Large\bfseries\relax
  \@hangfrom{\hskip \z@\relax\@svsec}%
            {\interlinepenalty \@M #2\par}%
  \endgroup
  \sectionmark{#1}
  \addcontentsline{toc}{section}{%
    \ifnum \c@secnumdepth<1 \else
      \ifx\ks@chapapp\@undefined%
        \protect\numberline{\ks@the\ \thesection\ \sectionname}
      \else\protect\numberline{\@chapapp\ \thesection}\fi%
    \fi
    #1}
  \par \nobreak
  \vskip 2.3ex\@plus.2ex\relax
  \@afterheading
  \ignorespaces}
\def\ks@ssect#1{%
  \begingroup
  \normalfont\Large\bfseries\relax
  \@hangfrom{\hskip \z@}{\interlinepenalty \@M #1\par}%
  \endgroup
  \@xsect{2.3ex \@plus.2ex}}
\ifcase\theks@ctr
  \renewcommand\l@section[2]{%
    \ifnum \c@tocdepth >\z@
      \addpenalty{\@secpenalty}%
      \addvspace{1.0em \@plus\p@}%
      \setlength\@tempdima{5em}%
      \begingroup
        \parindent \z@ \rightskip \@pnumwidth
        \parfillskip -\@pnumwidth
        \leavevmode \bfseries
        \advance\leftskip\@tempdima
        \hskip -\leftskip
        #1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss #2}\par
      \endgroup
    \fi}
\or
  \renewcommand\l@section{\@dottedtocline{1}{1em}{4em}}
\fi

%%
%% ������ \ps@headings�� \ps@myheadings�� �ѱۿ� �°� ������ ���Դϴ�.
%% ������ class���� ���� �ٸ� ������� ������ �Ӹ��� ¥�Ƿ� �츮��
%% ���⼭ ������ ���ε��� ������ �־�� �մϴ�. \ps@myheadings�� ����
%% ���� �����Ƿ� ���� ������ �ѱ�ȭ�� �� �����ϴ�.
%% \normalh@ngul�� heading�� ������ \slshape���� ���Կ� ���� �׿�
%% �ش��ϴ� �ѱ��� ������ shape�κ���(mj, gs, ...) �Ҿ��������Ƿ�
%% �̸� �����ϱ� �����Դϴ�.
%% \LaTeXe�� ������ ���Ե� \MakeUpperCase�� 8bit ���ڸ� ����
%% isolatin�� ���� �ٸ� package�� ����� �� �����մϴ�. -- ����
%% ��-�����̹Ƿ� �ܼ��� \uppercase�� ��ġ�մϴ�. �� \uppercase�� ����
%% ��ȯ�� ���� \mark�� ��ĵ� �Ѱ��� ������ �ϴ� 8bit �ý��ۿ� �°�
%% �Ǿ� �����ϴ�. �츮���� �� ���� \expand���� �ʴ� \mark�����
%% �ʿ��մϴ�.
%%

\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\normalh@ngul\slshape\leftmark}%
      \def\@oddhead{{\normalh@ngul\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
      \def\sectionmark##1{\def\@ks@mark{##1}%
        \markboth {\MakeUppercase{%
          \ifnum \c@secnumdepth >\z@
            \ifx\ks@chapapp\@undefined
              \ks@the~\thesection~\sectionname
            \else\@chapapp~\thesection\fi
            \hskip 1em\relax\fi
          \noexpand\@ks@mark}}{}}%
      \def\subsectionmark##1{%
        \markright {\ifnum \c@secnumdepth >\@ne
            \thesubsection\hskip 1em\relax \fi
            ##1}}}
  \else
    \def\ps@headings{%
      \let\@oddfoot\@empty
      \def\@oddhead{{\normalh@ngul\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
      \def\sectionmark##1{\def\@ks@mark{##1}%
        \markright {\MakeUppercase{%
          \ifnum \c@secnumdepth >\m@ne
            \ifx\ks@chapapp\@undefined
              \ks@the\ \thesection\ \sectionname
            \else\@chapapp\ \thesection\fi\quad
          \fi
          \noexpand\@ks@mark}}}}
  \fi
  }{}

\@ifclassloaded{book}{%
  \if@twoside
    \def\ps@headings{%
      \let\@oddfoot\@empty\let\@evenfoot\@empty
      \def\@evenhead{\thepage\hfil\normalh@ngul\slshape\leftmark}%
      \def\@oddhead{{\normalh@ngul\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
      \def\chaptermark##1{\def\@ks@mark{##1}%
        \markboth {\MakeUppercase{%
            \ifnum \c@secnumdepth >\m@ne
              \if@mainmatter
                \ifx\ks@chapapp\@undefined
                  \ks@the\ \thechapter\ \@chapapp
                \else\@chapapp\ \thechapter\fi\ \ \fi
            \fi
            \noexpand\@ks@mark}}{}}%
      \def\sectionmark##1{\def\@ks@mark{##1}%
        \markright {\MakeUppercase{%
            \ifnum \c@secnumdepth >\z@
              \ks@the\ \thesection\ \sectionname\ \ \fi
            \noexpand\@ks@mark}}}}
  \else
    \def\ps@headings{%
      \let\@oddfoot\@empty
      \def\@oddhead{{\normalh@ngul\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
      \def\chaptermark##1{\def\@ks@mark{##1}%
        \markright {\MakeUppercase{%
          \ifnum \c@secnumdepth >\m@ne
            \if@mainmatter
              \ifx\ks@chapapp\@undefined
                \ks@the\ \thechapter\ \@chapapp
              \else\@chapapp\ \thechapter\fi\ \ %
            \fi
          \fi
          \noexpand\@ks@mark}}}}
  \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{\def\@ks@mark{##1}%
        \markboth {\MakeUppercase{%
          \ifnum \c@secnumdepth >\m@ne
            \ifx\ks@chapapp\@undefined
              \ks@the\ \thechapter\ \@chapapp
            \else\@chapapp\ \thechapter\fi\ \ \fi
            \noexpand\@ks@mark}}{}}%
      \def\sectionmark##1{\def\@ks@mark{##1}%
        \markright {\MakeUppercase{\ifnum \c@secnumdepth >\z@
            \ks@the\ \thesection\ \sectionname\ \ \fi
            \noexpand\@ks@mark}}}}
  \else
    \def\ps@headings{%
      \let\@oddfoot\@empty
      \def\@oddhead{{\normalh@ngul\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
      \def\chaptermark##1{\def\@ks@mark{##1}%
        \markright {\MakeUppercase{%
          \ifnum \c@secnumdepth >\m@ne
            \ifx\ks@chapapp\@undefined
              \ks@the\ \thechapter\ \@chapapp
            \else\@chapapp\ \thechapter\fi\ \ \fi
            \noexpand\@ks@mark}}}}
  \fi
  }{}

\def\ps@myheadings{%
  \let\@oddfoot\@empty\let\@evenfoot\@empty
  \def\@evenhead{\thepage\hfil\normalh@ngul\slshape\leftmark}%
  \def\@oddhead{{\normalh@ngul\slshape\rightmark}\hfil\thepage}%
  \let\@mkboth\@gobbletwo
  \ifcase\theks@ctr\relax
    \let\subsectionmark\@gobble
  \else\let\chaptermark\@gobble
  \fi
  \let\sectionmark\@gobble
}

%%
%% slides.cls���� makeidx option�� ���� \see�� ���ǵ˴ϴ�.
%%

\@ifundefined{see}{}{%
  \renewcommand\see[2]{##1�� \seename}}

%%
%% �ܿ�(part, section, ...)�� �� �� \LaTeX�� ������ \reset@font�μ�
%% �ʱ�ȭ��ŵ�ϴ�. �׷��� �ѱ��� ���� ��ȯ ��ũ��(\mj, \gs, ...)��
%% \fontshape�� ������ ������ ��ȯ��Ű�Ƿ� \reset@font�� �ѱ�������
%% \fontshape�� �ʱ�ȭ��ų ���� �����ϴ�. �׷��� �츮�� ��
%% ��ũ�ο��� �ѱ������� \fontshape�� ������ ������ ���� �ʱ�ȭ�ϴ�
%% ��ũ�� \normalh@ngul�� �ΰ��մϴ�.
%%

\let\reset@@font\reset@font
\def\reset@font{\normalh@ngul\reset@@font}

%%
%% ������ enumerateȯ�濡�� ������ �ѱ� ��ȣ���Դϴ�.
%%

\def\jaso#1{\@jaso{\@nameuse{c@#1}}}
\def\@jaso#1{\ifcase#1\or ��\or ��\or ��\or ��\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}

\def\gana#1{\@gana{\@nameuse{c@#1}}}
\def\@gana#1{\ifcase#1\or ��\or ��\or ��\or ��\else\@igana{#1}\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 ��\or ��\or ��\or ��\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}

\def\ogana#1{\@ogana{\@nameuse{c@#1}}}
\def\@ogana#1{\ifcase#1\or ��\or ��\or ��\or ��\else\@iogana{#1}\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 ��\or ��\or ��\or ��\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}

\def\pgana#1{\@pgana{\@nameuse{c@#1}}}
\def\@pgana#1{\ifcase#1\or ��\or ��\or ��\or ��\else\@ipgana{#1}\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}
\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}
\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}
\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}
\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}

%%
%% �ѱ�LaTeX�� logo�� �̷� ������ �� �������ϴ�.
%%

\DeclareRobustCommand{\HLaTeX}{��\kern-.4ex\lower.3ex\hbox{��}\kern-.4ex\LaTeX}

%%
%% End of file `hangul.sty'.

%%% Local Variables: 
%%% mode: tex
%%% End: 
