% konames-utf.sty
%
% Copyright (C) 2007-2013 Koaunghi Un <koaunghi at kornet net>
%                         Kangsoo Kim <karnes at ktug or kr>
%                         Dohyun Kim  <nomos at ktug org>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) any later version.
% The latest version of this license is in
%  http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
% version 2006/05/20 or later.
%

\ProvidesPackage{konames-utf}[2013/02/23 v1.0 UTF-8 Hangul captions]

\if@hanja
  \def\today{\number\year 年 \number\month 月 \number\day 日}
  \def\enclname{同封物}
  \def\ccname{寫本}% 사전에서
  \def\headtoname{受信人}%
  \def\seename{\을~參考}%
  \def\alsoname{\을~參考}%
  \def\contentsname{目~次}%
  \def\listfigurename{그림~目次}%
  \def\listtablename{表~目次}%
  \def\refname{參考~文獻}% {參照~書籍}
  \def\indexname{索~引}
  \def\tablename{表}
  \def\abstractname{要~約}
  \def\bibname{著書~目錄}% 사전에서
  \def\appendixname{附錄}% 사전에서
  \def\KSTHE{第}
  \def\partname{篇}
  \def\chaptername{章}
  \def\sectionname{節}
  \def\colorlayer{幻燈版~色相}% 사전에서
  \def\glossaryname{語~彙}% 사전에서
\else
  \def\today{\number\year 년 \number\month 월 \number\day 일}
  \def\enclname{동봉물}
  \def\ccname{사본}%
  \def\headtoname{받는이}%
  \def\seename{\을~참고}%
  \def\alsoname{\을~함께~참고}%
  \def\contentsname{차~례}%
  \def\listfigurename{그림~차례}%
  \def\listtablename{표~차례}%
  \def\refname{참고~문헌}%
  \def\indexname{찾아보기}% 한자는 색~인
  \def\tablename{표}
  \def\abstractname{요~약}
  \def\bibname{참고~문헌}% 사전에서
  \def\appendixname{부록}% 사전에서
  \def\KSTHE{제}%
  \def\partname{편}% 부
  \def\chaptername{장}%
  \def\sectionname{절}% 단락 - subsection 소단락
  \def\colorlayer{환등판~색깔}% 사전에서
  \def\glossaryname{용어집}% 사전에서
\fi
\def\pagename{페이지}% 쪽
\def\figurename{그림}

\@ifclassloaded{book}{%
  \def\@chapapp#1#2{\KSTHE#1#2#1\chaptername}
  \def\@part[#1]#2{%
      \ifnum \c@secnumdepth >-2\relax
        \refstepcounter{part}%
        \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
      \else
        \addcontentsline{toc}{part}{#1}%
      \fi
      \markboth{}{}%
      {\centering
       \interlinepenalty \@M
       \normalfont
       \ifnum \c@secnumdepth >-2\relax
         \huge\bfseries \KSTHE\nobreakspace\thepart\ \partname
         \par
         \vskip 20\p@
       \fi
       \Huge \bfseries #2\par}%
      \@endpart}
}{}

\@ifclassloaded{report}{%
  \def\@chapapp#1#2{\KSTHE#1#2#1\chaptername}
  \def\@part[#1]#2{%
      \ifnum \c@secnumdepth >-2\relax
        \refstepcounter{part}%
        \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
      \else
        \addcontentsline{toc}{part}{#1}%
      \fi
      \markboth{}{}%
      {\centering
       \interlinepenalty \@M
       \normalfont
       \ifnum \c@secnumdepth >-2\relax
         \huge\bfseries \KSTHE\nobreakspace\thepart\ \partname
         \par
         \vskip 20\p@
       \fi
       \Huge \bfseries #2\par}%
      \@endpart}

}{}

\@ifclassloaded{article}{%
  \def\@part[#1]#2{%
    \ifnum \c@secnumdepth >\m@ne
      \refstepcounter{part}%
      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
    \else
      \addcontentsline{toc}{part}{#1}%
    \fi
    {\parindent \z@ \raggedright
     \interlinepenalty \@M
     \normalfont
     \ifnum \c@secnumdepth >\m@ne
       \Large\bfseries \KSTHE\nobreakspace\thepart\ \partname
       \par\nobreak
     \fi
     \huge \bfseries #2%
     \markboth{}{}\par}%
    \nobreak
    \vskip 3ex
    \@afterheading}
}{}

\endinput
