%% hangul.sty  04-Feb-1994 by koaunghi.un@zdv.uni-tuebingen.de
%%
%% ÀúÀÛ±ÇÀº GNU General Public License¿¡ ÁØÇÕ´Ï´Ù.
%%
%% ¹®Á¦Á¡
%% ------
%% 1. \cite¿¡¼­ÀÇ Á¶»çÃ³¸®°¡ 100% ¿Ïº®ÇÏÁö ¾Ê½À´Ï´Ù.
%%     ¿¹:
%%       \cite{bib:label}À» º¸½Ã¿À --> [skating]¸¦ º¸½Ã¿À.
%%     bibliographyÀÛ¼º½Ã ÀÌ·± ¶óº§ÀÇ »ç¿ëÀ» ÇÇÇÏµµ·Ï ÇÏ½Ê½Ã¿ä.
%%
%% 2. »öÀÎÃ³¸®°¡ ¿Ïº®ÇÏÁö ¾ÊÀ¾´Ï´Ù.
%%   1. hlatex½ºÅ©¸³Æ®¸¦ ¾²Áö ¾ÊÀ» °æ¿ì:
%%      1) ¿ì¸®¸»Àº /¿Í 0»çÀÌ¿¡ ¿É´Ï´Ù.
%%      2) ¿ì¸®¸»Àº ÀÚ¼Ò¿¡ ÀÇÇÑ ±×·ìÀÇ ±¸º°ÀÌ ¾øÀ¾´Ï´Ù.
%%   2. hlatex½ºÅ©¸³Æ®¸¦ ½á¼­ ÀÛ¾÷ÇÒ °æ¿ì:
%%      1) ¿ì¸®¸»Àº ¿µ¹® ASCIIÄÚµå¿¡ ÀÇÇØ, ¿µ¹®´ÙÀ½¿¡ ½É¹ú, ÇÑ±Û, ùÓí®ÀÇ
%%         ¼ø¼­·Î ³ªÅ¸³³´Ï´Ù.
%%      2) hangul.ist¸¦ »ç¿ëÇÏÁö ¾ÊÀ¸¸é ¿ì¸®¸»ÀÇ `°¡³ª´Ù¶ó...'¸ñ·ÏÀÇ
%%         ±¸º°ÀÌ ¾ø°í ¿µ¹® ASCIIÄÚµå¿¡ ÀÇÇÑ \indexspace·Î ³ª´¹´Ï´Ù.
%%      3) hangul.ist¸¦ »ç¿ëÇÏ¸é ¿ì¸®¸»ÀÇ `°¡³ª´Ù¶ó...'¸ñ·ÏÀÇ ±¸º°ÀÌ
%%         µÇ¸ç, ½É¹ú°ú ÇÑÀÚ´Â °¢°¢ ÇÏ³ªÀÇ ±×·ìÀ¸·Î Ã³¸®µË´Ï´Ù.
%%   3. ÀÚµ¿Á¶»çÃ³¸®±â´É¿¡ ÀÇÇØ, makeidx.styÀ» ¾²¸é Á¤ÀÇµÇ´Â \seeÀÇ
%%      º¯¼ö°¡ \space¸¦ Æ÷ÇÔÇÏ°í ÀÖÀ¸¸é ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù. \space´ë½Å¿¡
%%      ~¸¦ ¾²¸é Á¦´ë·Î ÀÛµ¿ÇÕ´Ï´Ù. ¿¹:
%%      \index{»öÀÎÃ³¸®ÀÇ ¹®Á¦Á¡|see{ÀÚµ¿ Á¶»ç Ã³¸® ±â´É}}
%%        ¡æ \index{»öÀÎÃ³¸®ÀÇ ¹®Á¦Á¡|see{ÀÚµ¿~Á¶»ç~Ã³¸®~±â´É}}
%%

\NeedsTeXFormat{LaTeX2e}
\def\filedate{1997/05/26}
\def\fileversion{0.97}
\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@makebold
\newif\if@oldhan
\@hanjafalse \@makeboldtrue \@oldhanfalse
\edef\@pshan{}

\DeclareOption{hanja}{\@hanjatrue}
\DeclareOption{pshan}{\edef\@pshan{p}}
\DeclareOption{hardbold}{\@makeboldfalse}
\DeclareOption{softbold}{\@makeboldtrue}
\DeclareOption{oldhan}{\@oldhantrue}

\if@compatibility
\InputIfFileExists{hltx209.cfg}{}{}
\else
\ProcessOptions
\fi

\if p\@pshan\ExecuteOptions{softbold}\fi

%% ´ÙÀ½Àº ÇÑ±ÛLaTeX °¡ÀÌµå¿¡ »ç¿ëÇÏ±â À§ÇÔ.
\let\HLaTeXversion\fileversion
\let\HLaTeXdate\filedate

%%
%% ÇÑ±Û ÀÚÇüÀÇ Á¤ÀÇ
%%

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

%%% 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}}}

\@nameuse{hfont.sty}
%%
%% hfont.styÀº ¿©±â¼­ ³¡³³´Ï´Ù.
%%

\begingroup
\let\KSC@\noexpand
\def\d@t@#1/#2/#3\relax{\if@hanja#1Ò´ #2êÅ #3ìí\else#1³â #2¿ù #3ÀÏ\fi}
\protected@xdef\HLaTeXdate{\expandafter\d@t@\HLaTeXdate\relax}
\endgroup

%%
%% 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@@}}{}
\@ifclassloaded{slides}{\setcounter{ks@ctr}{4}}{}

%%
%% ¾Æ·¡ÀÇ ÀÌ¸§µéÀº ¿ì¸®¸» ¹®¼­ÀÇ °÷°÷¿¡¼­ »ç¿ëµÉ ÀÌ¸§µéÀÔ´Ï´Ù.
%%
%% À§¿¡¼­ Á¤ÀÇµÈ ¿ì¸®¸» ÀÌ¸§µéÀ» \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{ï½}
  \def\kscolorlayer{½½¶óÀÌµå ßäßÓ}
  \def\ksglossaryname{åÞ~ýÄ}
\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{Àý}
  \def\kscolorlayer{½½¶óÀÌµå ºû±ò}
  \def\ksglossaryname{¾î~ÈÖ}
\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}
  \def\glossaryname{\ks@noexpand\ksglossaryname}}

%%
%% ´Ü¿øÀÇ ÇÑ±ÛÈ­
%% =============
%%
%% 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
     \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
     \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 \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 \normalfont
      \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@
      \setbox\z@=\hbox{\bfseries\ksTHE~\chaptername}
      \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}}

\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{%
      \@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}%
  \@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}}

\ifcase\theks@ctr
  \renewcommand*\l@section[2]{%
    \ifnum \c@tocdepth >\z@
      \addpenalty{\@secpenalty}%
      \addvspace{1.0em \@plus\p@}%
      \setbox\z@=\hbox{\bfseries\ksTHE~\sectionname}
      \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
      \endgroup
    \fi}
\or
  \renewcommand*\l@section{\@dottedtocline{1}{1em}{4em}}%1.5em 2.3em
\fi

%%
%% ´ÙÀ½Àº \ps@headings°ú \ps@myheadings¸¦ ÇÑ±Û¿¡ ¸Â°Ô ¼öÁ¤ÇÑ °ÍÀÔ´Ï´Ù.
%% °¢°¢ÀÇ classµéÀÌ ¼­·Î ´Ù¸¥ ¹æ½ÄÀ¸·Î ÆäÀÌÁö ¸Ó¸®¸¦ Â¥¹Ç·Î ¿ì¸®´Â
%% ¿©±â¼­ °¢°¢À» µû·Îµû·Î Á¤ÀÇÇØ ÁÖ¾î¾ß ÇÕ´Ï´Ù. \ps@myheadings´Â ¼­·Î
%% °ÅÀÇ °°À¸¹Ç·Î ¾ÆÁÖ °£´ÜÈ÷ ÇÑ±ÛÈ­ÇÒ ¼ö ÀÖÀ¾´Ï´Ù.
%% \LaTeXe¿¡ »õ·ÎÀÌ µµÀÔµÈ \MakeUpperCase´Â 8bit ±ÛÀÚ¸¦ ¾²´Â
%% isolatin°ú °°Àº ´Ù¸¥ package¸¦ »ç¿ëÇÒ ¶§ À¯¿ëÇÕ´Ï´Ù. -- ¾ÆÁ÷
%% ¥â-»óÅÂÀÌ¹Ç·Î ´Ü¼øÈ÷ \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@
            \ifx\ks@chapapp\@undefined
              \ks@the~\thesection~\sectionname
            \else\@chapapp~\thesection\fi
            \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
            \ifx\ks@chapapp\@undefined
              \ks@the~\thesection~\sectionname
            \else\@chapapp~\thesection\fi\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
                \ifx\ks@chapapp\@undefined
                  \ks@the\ \thechapter\ \@chapapp
                \else\@chapapp\ \thechapter\fi\ \ \fi
            \fi
            ##1}}{}}%
      \def\sectionmark##1{%
        \markright {\MakeUppercase{%
            \ifnum \c@secnumdepth >\z@
              \ks@the\ \thesection\ \sectionname\ \ \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
              \ifx\ks@chapapp\@undefined
                \ks@the\ \thechapter\ \@chapapp
              \else\@chapapp\ \thechapter\fi\ \ %
            \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
            \ifx\ks@chapapp\@undefined
              \ks@the\ \thechapter\ \@chapapp
            \else\@chapapp\ \thechapter\fi\ \ \fi
            ##1}}{}}%
      \def\sectionmark##1{%
        \markright {\MakeUppercase{\ifnum \c@secnumdepth >\z@
            \ks@the\ \thesection\ \sectionname\ \ \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
            \ifx\ks@chapapp\@undefined
              \ks@the\ \thechapter\ \@chapapp
            \else\@chapapp\ \thechapter\fi\ \ \fi
            ##1}}}}
  \fi
  }{}
\def\ps@myheadings{%
  \let\@oddfoot\@empty\let\@evenfoot\@empty
  \def\@evenhead{\thepage\hfil\slshape\leftmark}%
  \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
  \let\@mkboth\@gobbletwo
  \ifcase\theks@ctr\relax
    \let\subsectionmark\@gobble
  \else\let\chaptermark\@gobble
  \fi
  \let\sectionmark\@gobble
}

%%
%% \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\load@ksc\@gobbletwo\let\bold@ksc\@gobble%
        \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}}%
       {\hbox{\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}
%%
\def\make@josa#1{\decide@josa#1\relax}
\def\decide@josa{\afterassignment\analyse@ksc\let\next= }
\def\analyse@ksc{%
  \ifx\next\relax
    \if m\expandafter\@car\meaning\@second\relax\@nil
      \set@display@protect
      \edef\reserved@a{\@first~}%
      \@tempcnta\expandafter\expandafter\expandafter
        `\expandafter\@firstoftwo\reserved@a
      \edef\reserved@a{\@second~}%
      \@tempcntb\expandafter\expandafter\expandafter
        `\expandafter\@firstoftwo\reserved@a
      \count\z@\@tempcnta \divide\@tempcnta\sixt@@n
      \count@\@tempcnta \multiply\count@\sixt@@n
      \advance\count\z@-\count@
      \count\tw@\@tempcntb \divide\@tempcntb\sixt@@n
      \count@\@tempcntb \multiply\count@\sixt@@n
      \advance\count\tw@-\count@
      \set@typeset@protect
      \expandafter\ifx\csname\hexnumber@{\@tempcnta}%
        \hexnumber@{\count\z@}|\hexnumber@{\@tempcntb}%
        \hexnumber@{\count\tw@}\endcsname\relax\@jong\else%
       \expandafter\csname\hexnumber@{\@tempcnta}%
        \hexnumber@{\count\z@}|\hexnumber@{\@tempcntb}%
        \hexnumber@{\count\tw@}\endcsname\fi\else
    \ifx 0\@second\@jong\else
    \ifx 1\@second\ri@ul\else
    \ifx 2\@second\@jung\else
    \ifx 3\@second\@jong\else
    \ifx 4\@second\@jung\else
    \ifx 5\@second\@jung\else
    \ifx 6\@second\@jong\else
    \ifx 7\@second\ri@ul\else
    \ifx 8\@second\ri@ul\else
    \ifx 9\@second\@jong\else
    \ifx l\@second\ri@ul\else
    \ifx m\@second\@jong\else
    \ifx n\@second\@jong\else
    \ifx r\@second\ri@ul\else
    \ifx L\@second\ri@ul\else
    \ifx M\@second\@jong\else
    \ifx N\@second\@jong\else
    \ifx R\@second\ri@ul\else\@jung
    \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\else
  \let\@first\@second\let\@second\next\let\next\decide@josa\fi\next}

%%%% 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
  \fi}
\def\label#1{\@bsphack
  \protected@write\@auxout{\@ksromantrue}%
         {\string\newlabel{#1}{{\@currentlabel}{\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}%

%%% From File: ltfiles.dtx
\newif\if@ksroman\@ksromanfalse
\long\def \protected@write#1#2#3{%
      \begingroup
       #2%
       \if@ksroman\let\thepage\relax\else
       \let\ks@num\@gobble\def\@jung{}\def\@jong{}\def\ri@ul{}\fi
       \let\protect\@unexpandable@protect
       \edef\reserved@a{\write#1{#3}}%
       \reserved@a
      \endgroup
      \if@nobreak\ifvmode\nobreak\fi\fi
}

%%% From File: ltcounts.dtx
%% ¿µ¹®¼ýÀÚ¿¡¼­ ¿ì¸®¸» Á¶»çÃ³¸®
\def\@arabic#1{\number #1\ifx\protect\string\else
  \expandafter\ks@num\expandafter{\number #1}\fi}
\def\@roman#1{\romannumeral #1\ifx\protect\string\else
  \expandafter\ks@num\expandafter{\number #1}\fi}
\def\@Roman#1{\expandafter\uppercase\expandafter{\romannumeral #1}%
  \ifx\protect\string\else\expandafter\ks@num\expandafter{\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\alph@josa{#1}}
\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\alph@josa{#1}}
\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}\@jung}
\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}

%%%
%%% Á¶»çÀÚµ¿Ã³¸®±â´É ¹× ¿ì¸®¸» ±Û²Ã¹Ù²Þ¸í·É:
%%%   \Àº/\´Â \ÀÌ/\°¡ \À»/\¸¦ \¿Í/\°ú \À¸·Î/\·Î (\À¸·Î¼­/\·Î¼­ \À¸·Î½á/\·Î½á)
%%%   \¿¾±Û\¿Ü°û\¸íÁ¶\¸ñ°¢\°íµñ\±×·¡ÇÈ\±Ã¼­\»õ¸íÁ¶\ÇÊ±â\Ææ±Û¾¾\ÆæÈê¸²\º½±Û¾¾
%%%
%% ¿ì¸®¸» ¸í·É
\def\^^c0#1{%
  \ifx#1^^cc\@josa{°¡}{ÀÌ}\else% \ÀÌ(yi)
  \ifx#1^^ba\@josa{´Â}{Àº}\else% \Àº(eun)
  \ifx#1^^bb\@josa{¸¦}{À»}\else% \À»(eul)
  \ifx#1^^b8% \À¸(·Î)(eu)
    \if y\is@rieul\else\@josa{}{À¸}\fi
  \fi\fi\fi\fi}
\def\´Â{\Àº}% \´Â(neun)
\def\·Î{\if y\is@rieul\else\@josa{}{À¸}\fi·Î}% \·Î(ro)
% \¿¾±Û(yt)\¿Ü°û(ol), \¿Í(wa)
\def\^^bf{\@ifnextchar^^cd{\@josa{¿Í}{°ú}\@gobble}\yt@or@ol}
\def\yt@or@ol#1#2#3{\ifx#1^^be\ytfamily\else
        \ifx#1^^dc\olfamily\fi\fi\ignorespaces}
% \¸íÁ¶(mj)\¸ñ°¢(mg), \¸¦(reul)
\def\^^b8{\@ifnextchar^^a6{\À»\@gobble}\mj@or@mg}
\def\mj@or@mg#1#2#3{\ifx#1^^ed\mjfamily\else
        \ifx#1^^f1\mgfamily\fi\fi\ignorespaces}
% \°íµñ(gt), \°¡(ga)\°ú(gwa)
\def\^^b0{\@ifnextchar^^ed\only@gt\ga@or@gwa}
\def\only@gt#1#2#3{\ifx#1^^ed\gtfamily\fi\ignorespaces}
\def\ga@or@gwa#1{\ifx#1^^a1\ÀÌ\else\ifx#1^^fa\@josa{¿Í}{°ú}\fi\fi}
\def\^^b1{\@ifnextchar^^c3\only@gs\only@gr}                 % \±×·¡ÇÈ, \±Ã¼­
\def\only@gs#1#2#3{\ifx#1^^c3\gsfamily\fi\ignorespaces}
\def\only@gr#1#2#3#4#5{\ifx#1^^d7\grfamily\fi\ignorespaces}
\def\»õ¸íÁ¶{\smfamily\ignorespaces}                         % \»õ¸íÁ¶
\def\ÇÊ±â{\pgfamily\ignorespaces}                           % \ÇÊ±â
\def\Ææ#1#2#3#4{\pnfamily\ifx#1^^c8\itshape\fi\ignorespaces}% \Ææ±Û¾¾,\ÆæÈê¸²
\def\º½±Û¾¾{\bmfamily\ignorespaces}                         % \º½±Û¾¾
\def\Å¸ÀÚ{\tzfamily\ignorespaces}                           % \Å¸ÀÚ

\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}

\begingroup
\IfFileExists{josa.tab}{\if@oldhan\else%
  \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\fi}%
{\PackageWarningNoLine{\string\HLaTeX}{Missing ``josa.tab'' !!!^^J
  \@spaces\@spaces\@spaces\@spaces\@spaces\@spaces
  Automatic Josa's for citation will be incorrect}}
\endgroup

%% ¿ì¸®¸»¼ýÀÚ
\def\jaso#1{\@jaso{\@nameuse{c@#1}}}
\def\@jaso#1{\ifcase#1\or¤¡\or¤¤\or¤§\or¤©\ri@ul\else\@ijaso{#1}\fi\@jong}
\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\@jung}
\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¨´\ri@ul\else\@iojaso{#1}\fi\@jong}
\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\@jung}
\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©´\ri@ul\else\@ipjaso{#1}\fi\@jong}
\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\@jung}
\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\string\else
  \expandafter\ks@num\expandafter{\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\string\else
  \expandafter\ks@num\expandafter{\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\alph@josa{#1}}
\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\alph@josa{#1}}
\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}

%%
%% »öÀÎÀÛ¼º½Ã makeidx.styÀ» ¾²¸é \see°¡ Á¤ÀÇµË´Ï´Ù.
%%
\AtBeginDocument{%
  \@ifundefined{see}{}{%
    \renewcommand*\see[2]{#1\make@josa{#1}\emph{\À»\ \seename}}}
}

%% hangul.ist¸¦ »ç¿ëÇÏ¿© »öÀÎÀ» ÀÛ¼ºÇÒ ¶§, ´ÙÀ½ÀÇ ¸ÅÅ©·Î´Â ¿ì¸®¸»ÀÇ
%% ÀÚ¼Ò±×·ìÀ» ¾Ë¸Â°Ô ºÐ¸®ÇÕ´Ï´Ù.
\begingroup
\if@hanja\gdef\hj@head{ùÓí®}\else\gdef\hj@head{ÇÑÀÚ}\fi
\gdef\KSitem #1\endKS{\@tempcnta\expandafter`\@car#1\@nil\relax
  \ifnum\@tempcnta>"0A0
    \ifnum\@tempcnta<"0B0\let\hitem\item
      \expandafter\ifx\csname I|4\endcsname\relax
        \indexspace¡¼{\bfseries½É¹ú}¡½\hfil\nopagebreak
        \global\expandafter\let\csname I|4\endcsname\@empty\fi
    \else\ifnum\@tempcnta<"0CA\advance\@tempcnta-"0B0
      \gdef\hitem{\@ifnextchar#1{\@nameuse{I-\number\@tempcnta}}%
        {\def\reserved@f{#1}\expandafter\KS@item}}
    \else\let\hitem\item
      \expandafter\ifx\csname I|5\endcsname\relax
        \indexspace¡¼{\bfseries\hj@head}¡½\hfil\nopagebreak
        \global\expandafter\let\csname I|5\endcsname\@empty\fi\fi\fi
  \else\indexspace¡¼{\bfseries#1}¡½\hfil\nopagebreak\fi}
\gdef\KS@item#1#2{%
  \expandafter\ifx\reserved@f#1%
    \@tempcnta`#1\advance\@tempcnta-"0B0
    \@nameuse{I-\number\@tempcnta} #1#2%
  \else\ifx\protect#1\expandafter\KS@item#2
  \else\item #1#2\fi\fi}
\gdef\hindexhead#1{¡¼{\bfseries#1}¡½\hfil}
\def^^a0#1#2{\count@`#1\advance\count@-"0B0
  \@tempcnta`#2\advance\@tempcnta-"0A1
  \expandafter\xdef\csname I-\number\count@\endcsname ##1##2{%
    \noexpand\expandafter\noexpand\ifx\noexpand\csname
    I|\number\@tempcnta\noexpand\endcsname\relax
      \noexpand\indexspace\noexpand\hindexhead{\noexpand^^a4\noexpand#2}
      \noexpand\nopagebreak 
      \noexpand\global\noexpand\expandafter\let\noexpand\csname
      I|\number\@tempcnta\noexpand\endcsname\noexpand\@empty
    \noexpand\fi
    \noexpand\item ##1##2}}
\def^^ff#1#2#3#4{\count@`#1\advance\count@-"0B0
  \@tempcnta`#3\advance\@tempcnta-"0A1\@tempcntb\@tempcnta
  \ifnum\@tempcnta=1\advance\@tempcntb2\else
  \ifnum\@tempcnta=3\advance\@tempcntb3\else
  \ifnum\@tempcnta=8\advance\@tempcntb8\else
  \ifnum\@tempcnta=18\advance\@tempcntb2
  \else\advance\@tempcntb1\fi\fi\fi\fi
  \expandafter\xdef\csname I-\number\count@\endcsname ##1##2{%
    \noexpand\ifnum`##2<#2
      \noexpand\expandafter\noexpand\ifx\noexpand\csname
      I|\number\@tempcnta\noexpand\endcsname\relax
        \noexpand\indexspace\noexpand\hindexhead{\noexpand^^a4\noexpand#3}
        \noexpand\nopagebreak
        \noexpand\global\noexpand\expandafter\let\noexpand\csname
        I|\number\@tempcnta\noexpand\endcsname\noexpand\@empty
      \noexpand\fi
    \noexpand\else
      \noexpand\expandafter\noexpand\ifx\noexpand\csname
      I|\number\@tempcntb\noexpand\endcsname\relax
        \noexpand\indexspace\noexpand\hindexhead{\noexpand^^a4\noexpand#4}
        \noexpand\nopagebreak
        \noexpand\global\noexpand\expandafter\let\noexpand\csname
        I|\number\@tempcntb\noexpand\endcsname\noexpand\@empty
      \noexpand\fi
    \noexpand\fi
    \noexpand\item ##1##2}}
^^a0^^b0^^a1^^ff^^b1{"0EE}^^a1^^a2^^a0^^b2^^a2^^ff^^b3{"0AA}^^a2^^a4
^^ff^^b4{"0D9}^^a4^^a7^^ff^^b5{"0FB}^^a7^^a8^^ff^^b6{"0F3}^^a8^^a9
^^a0^^b7^^a9^^ff^^b8{"0B6}^^a9^^b1^^ff^^b9{"0D9}^^b1^^b2
^^ff^^ba{"0FC}^^b2^^b3^^ff^^bb{"0E7}^^b3^^b5^^a0^^bc^^b5
^^ff^^bd{"0CE}^^b5^^b6^^ff^^be{"0C6}^^b6^^b7^^a0^^bf^^b7
^^ff^^c0{"0DA}^^b7^^b8^^a0^^c1^^b8
\expandafter\gdef\csname I-18\endcsname #1#2{%
  \ifnum`#2<"0A5
    \expandafter\ifx\csname I|23\endcsname\relax
      \indexspace\hindexhead{¤¸}\nopagebreak
      \global\expandafter\let\csname I|23\endcsname\@empty
    \fi
  \else\ifnum`#2<"0F7
    \expandafter\ifx\csname I|24\endcsname\relax
      \indexspace\hindexhead{¤¹}\nopagebreak
      \global\expandafter\let\csname I|24\endcsname\@empty
    \fi
  \else
    \expandafter\ifx\csname I|25\endcsname\relax
      \indexspace\hindexhead{¤º}\nopagebreak
      \global\expandafter\let\csname I|25\endcsname\@empty
    \fi
  \fi\fi
  \item #1#2}
^^a0^^c3^^ba^^ff^^c4{"0AB}^^ba^^bb^^ff^^c5{"0B8}^^bb^^bc
^^ff^^c6{"0C4}^^bc^^bd^^ff^^c7{"0CF}^^bd^^be^^a0^^c8^^be
\endgroup
%% ¾îÈÖÁýÀ» ¸¸µé ¶§ ´ÙÀ½°ú °°Àº È¯°æÀÇ Á¤ÀÇ°¡ ÇÊ¿äÇÕ´Ï´Ù.
\let\gloitem\@idxitem
\def\glopage{\hfill}
\newenvironment{theglossary}
               {\if@twocolumn
                  \@restonecolfalse
                \else
                  \@restonecoltrue
                \fi
                \columnseprule \z@
                \columnsep 35\p@
                \twocolumn[\section*{\glossaryname}]%
                \@mkboth{\MakeUppercase{\glossaryname}}%
                        {\MakeUppercase{\glossaryname}}%
                \thispagestyle{plain}\parindent\z@
                \parskip\z@ \@plus .3\p@\relax
                \let\item\gloitem}
               {\if@restonecol\onecolumn\else\clearpage\fi}
\newcommand\printglossary{\@input@{\jobname.gls}}

%% ÇÑ±ÛLaTeXÀÇ logo·Î ÀÌ·± ±¸»óÀ» ÇØ º¸¾ÒÀ¾´Ï´Ù.
\DeclareRobustCommand{\HLaTeX}{ÇÑ\kern-.4ex\lower.3ex\hbox{±Û}\kern-.4ex\LaTeX}

%%% Local Variables:
%%% mode: plain-tex
%%% End:
