summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/kotex-utf/contrib
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-11-09 00:52:44 +0000
committerKarl Berry <karl@freefriends.org>2013-11-09 00:52:44 +0000
commitd82f205d424457a0853f7501ab50cf5fb81b9f38 (patch)
tree171957cba33221dcc47623901f9e85e2107b0a82 /Master/texmf-dist/tex/latex/kotex-utf/contrib
parent521b3aca41e705539f95064ac2b4577a37ee5f3a (diff)
kotex-utf
git-svn-id: svn://tug.org/texlive/trunk@32103 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/kotex-utf/contrib')
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-cmap.sty88
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-enumerate.sty64
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-enumitem.sty55
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-gremph.sty106
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-interword.sty129
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-paralist.sty49
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-sectsty.sty259
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-setspace.sty204
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-trivcj.sty126
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-ucshyper.sty34
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucsfn.sty213
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/kotex-logo.sty24
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/contrib/kotex-varioref.sty48
13 files changed, 1399 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-cmap.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-cmap.sty
new file mode 100644
index 00000000000..17e1fd0f6e7
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-cmap.sty
@@ -0,0 +1,88 @@
+%% File `dhucs-cmap.sty`
+%%
+%% Copyright (C) 2007-2013 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{dhucs-cmap}
+ [2007/06/16 searchable PDF for dhucs upon pdftex]
+
+\RequirePackage{ifpdf}
+\ifpdf\else\expandafter\endinput\fi
+
+\newcommand*\AddUniSubCmap{%
+ \ifdefined \now@jamo@printing
+ \expandafter\jamo@dh@cmap
+ \else
+ \expandafter\normal@dh@cmap
+ \fi
+}
+
+\newcommand*\normal@dh@cmap[1]{%
+ \let\dh@cm@ppl@ne\@empty
+ \expandafter\uppercase\expandafter{\expandafter\count@\expandafter"#1\relax}%
+ \expandafter\get@unisubcm@p\expandafter{\number\numexpr256*\count@\relax}%
+ \expandafter\add@unisubcm@p\expandafter{\dh@cm@ppl@ne}%
+}
+
+\newcommand*\get@unisubcm@p[1]{%
+ \ifnum#1>65535
+ \expandafter\get@unisubcm@p\expandafter{\number\numexpr 55296+
+ \dimexpr.0009765625\dimexpr\number#1sp-\p@\relax\relax\relax}%
+ \expandafter\get@unisubcm@p\expandafter{\number\numexpr#1-9216
+ -1024*\dimexpr.0009765625\dimexpr\number#1sp-\p@\relax\relax\relax}%
+ \else
+ \@tempcnta\numexpr % 1 / 4096 = .000244140625
+ \number\dimexpr.000244140625\dimexpr#1sp\relax\relax\relax
+ \edef\dh@cm@ppl@ne{\dh@cm@ppl@ne\hexnumber@\@tempcnta}%
+ \count@\numexpr#1-4096*\@tempcnta\relax
+ \@tempcnta\numexpr % 1 / 256 = .00390625
+ \number\dimexpr.00390625\dimexpr\count@ sp\relax\relax\relax
+ \edef\dh@cm@ppl@ne{\dh@cm@ppl@ne\hexnumber@\@tempcnta}%
+ \count@\numexpr\count@-\@cclvi*\@tempcnta\relax
+ \@tempcnta\numexpr % 1 / 16 = .0625
+ \number\dimexpr.0625\dimexpr\count@ sp\relax\relax\relax
+ \edef\dh@cm@ppl@ne{\dh@cm@ppl@ne\hexnumber@\@tempcnta}%
+ \@tempcnta\numexpr\count@-\sixt@@n*\@tempcnta\relax
+ \edef\dh@cm@ppl@ne{\dh@cm@ppl@ne\hexnumber@\@tempcnta}%
+ \fi
+}
+
+\newcommand*\add@unisubcm@p[1]{%
+ \unless\ifcsname dhucs-cmap-\h@ngulpl@ne\endcsname
+ \immediate\pdfobj stream {%
+ /CIDInit /ProcSet findresource begin
+ 12 dict begin begincmap
+ /CIDSystemInfo << /Registry (TeX)
+ /Ordering (UNI\h@ngulpl@ne)
+ /Supplement 0 >> def
+ /CMapName /TeX-UNI\h@ngulpl@ne-0 def
+ /CMapType 2 def
+ 1 begincodespacerange <00> <FF> endcodespacerange
+ 1 beginbfrange <00> <FF> <#1> endbfrange
+ endcmap CMapName currentdict /CMap defineresource pop end end }%
+ \expandafter\xdef\csname dhucs-cmap-\h@ngulpl@ne\endcsname
+ {\the\pdflastobj}%
+ \fi
+ \pdffontattr\font@name{/ToUnicode
+ \csname dhucs-cmap-\h@ngulpl@ne\endcsname\space 0 R}%
+}
+
+\newcommand*\jamo@dh@cmap[1]{%
+ \unless\ifcsname dhucs-cmap-mid-#1\endcsname
+ \immediate\pdfobj stream file {oldhanyang#1.cmap}%
+ \expandafter\xdef\csname dhucs-cmap-mid-#1\endcsname{\the\pdflastobj}%
+ \fi
+ \pdffontattr\font@name{/ToUnicode
+ \csname dhucs-cmap-mid-#1\endcsname\space 0 R}%
+}
+
+\def\dhucs@define@newfont{\define@newfont\AddUniSubCmap\h@ngulpl@ne}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-enumerate.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-enumerate.sty
new file mode 100644
index 00000000000..e8fac0f6940
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-enumerate.sty
@@ -0,0 +1,64 @@
+%% File `dhucs-enumerate.sty`
+%%
+%% Copyright (c) 2007-2013 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{dhucs-enumerate}
+ [2009/03/15 partially support enumrate.sty under dhucs]
+
+\@ifpackageloaded{enumerate}{}{\RequirePackage{enumerate}}
+
+\ifx가가\g@addto@macro\@enhook{%
+ \ifx ^^^^ac00\@entemp \def\@tempa{\@enLabel\gana}\else
+ \ifx ^^^^2170\@entemp \def\@tempa{\@enLabel\hroman}\else
+ \ifx ^^^^2160\@entemp \def\@tempa{\@enLabel\hRoman}\else
+ \ifx ^^^^249c\@entemp \def\@tempa{\@enLabel\peng}\else
+ \ifx ^^^^24d0\@entemp \def\@tempa{\@enLabel\oeng}\else
+ \ifx ^^^^2474\@entemp \def\@tempa{\@enLabel\pnum}\else
+ \ifx ^^^^2460\@entemp \def\@tempa{\@enLabel\onum}\else
+ \ifx ^^^^320e\@entemp \def\@tempa{\@enLabel\pgana}\else
+ \ifx ^^^^326e\@entemp \def\@tempa{\@enLabel\ogana}\else
+ \ifx ^^^^3260\@entemp \def\@tempa{\@enLabel\ojaso}\else
+ \ifx ^^^^3131\@entemp \def\@tempa{\@enLabel\jaso}\else
+ \ifx ^^^^3200\@entemp \def\@tempa{\@enLabel\pjaso}%
+ \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}
+ \expandafter\endinput
+\fi
+
+\g@addto@macro\@enhook{%
+ \ifx^^ea\@entemp % 가,
+ \let\@tempa\@dhucs@enumerate\else %%%%%
+ \ifx^^e2\@entemp % ①, ⑴, ⒜, ⓐ, ⅰ, Ⅰ
+ \let\@tempa\@dhucs@enumerate\else %%%%%
+ \ifx^^e3\@entemp % ㄱ, ㉠, ㉮, ㈀, ㈎
+ \let\@tempa\@dhucs@enumerate
+ \fi\fi\fi}
+\def\@dhucs@enumerate#1#2#3{%
+ \bgroup\let\unihangulchar\@firstofone
+ \xdef\@dhucs@enum@temp{#1#2#3}\egroup
+ \ifnum\@dhucs@enum@temp=44032 \def\@tempa{\@enLabel\gana}\else
+ \ifnum\@dhucs@enum@temp=8560 \def\@tempa{\@enLabel\hroman}\else
+ \ifnum\@dhucs@enum@temp=8544 \def\@tempa{\@enLabel\hRoman}\else
+ \ifnum\@dhucs@enum@temp=9372 \def\@tempa{\@enLabel\peng}\else
+ \ifnum\@dhucs@enum@temp=9424 \def\@tempa{\@enLabel\oeng}\else
+ \ifnum\@dhucs@enum@temp=9332 \def\@tempa{\@enLabel\pnum}\else
+ \ifnum\@dhucs@enum@temp=9312 \def\@tempa{\@enLabel\onum}\else
+ \ifnum\@dhucs@enum@temp=12814 \def\@tempa{\@enLabel\pgana}\else
+ \ifnum\@dhucs@enum@temp=12910 \def\@tempa{\@enLabel\ogana}\else
+ \ifnum\@dhucs@enum@temp=12896 \def\@tempa{\@enLabel\ojaso}\else
+ \ifnum\@dhucs@enum@temp=12593 \def\@tempa{\@enLabel\jaso}\else
+ \ifnum\@dhucs@enum@temp=12800 \def\@tempa{\@enLabel\pjaso}\else
+ \PackageError{dhucs-enumerate}
+ {You can't use `\unexpanded{#1#2#3}' as enum label}
+ {Legal enum labels of hangul-ucs are: \MessageBreak\space\space
+ \unexpanded{가, ㄱ, ㉠, ㉮, ㈀, ㈎, ①, ⑴, ⒜, ⓐ, ⅰ, Ⅰ}.}
+ \fi\fi\fi\fi\fi \fi\fi\fi\fi\fi \fi\fi
+ \@tempa\relax}
+\endinput
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-enumitem.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-enumitem.sty
new file mode 100644
index 00000000000..79c0c06be7e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-enumitem.sty
@@ -0,0 +1,55 @@
+%% File `dhucs-enumitem.sty`
+%%
+%% (C) Copyright 2007-2013 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.
+%%
+\@ifpackageloaded{enumitem}{}{\RequirePackage{enumitem}[2007/03/12]}
+
+\@ifpackagelater{enumitem}{2007/03/12}
+ {% compatible with enumitem ver2.0 (2007/03/12)
+ \AddEnumerateCounter{\gana}{\gana}{가}
+ \AddEnumerateCounter{\jaso}{\jaso}{ㄱ}
+ \AddEnumerateCounter{\ogana}{\ogana}{㉮}
+ \AddEnumerateCounter{\pgana}{\pgana}{㈎}
+ \AddEnumerateCounter{\onum}{\onum}{①}
+ \AddEnumerateCounter{\pnum}{\pnum}{⑴}
+ \AddEnumerateCounter{\ojaso}{\ojaso}{㉠}
+ \AddEnumerateCounter{\pjaso}{\pjaso}{㈀}
+ \AddEnumerateCounter{\hnum}{\hnum}{하나}
+ \AddEnumerateCounter{\Hnum}{\Hnum}{일곱째}
+ \AddEnumerateCounter{\hroman}{\hroman}{ⅷ}
+ \AddEnumerateCounter{\hRoman}{\hRoman}{Ⅷ}
+ \AddEnumerateCounter{\hanjanum}{\hanjanum}{一}
+ \AddEnumerateCounter{\hNum}{\hNum}{일}
+ }
+ {% for enumitem version 1.x
+ \def\enit@normlabel#1{\begingroup \enit@refstar \arabic \enit@refstar \alph
+ \enit@refstar \Alph \enit@refstar \roman \enit@refstar \Roman
+ \enit@refstar \gana \enit@refstar \jaso
+ \enit@refstar \ogana \enit@refstar \pgana
+ \enit@refstar \onum \enit@refstar \pnum
+ \enit@refstar \ojaso \enit@refstar \pjaso
+ \enit@refstar \hnum \enit@refstar \Hnum
+ \enit@refstar \hroman \enit@refstar \hRoman
+ \enit@refstar \hanjanum \enit@refstar \hNum
+ \enit@refstar \value \enit@refstar \@arabic \enit@refstar \@alph
+ \enit@refstar \@Alph \enit@refstar \@roman \enit@refstar \@Roman
+ \protected@xdef \enit@a {#1}\endgroup}
+ }
+
+\endinput
+
+% USAGE EXAMPLE:
+% \begin{enumerate}[label={\bfseries\jaso*)}]
+% \item 가나다
+% \item 라마바
+% \end{enumerate}
+%
+%% end.
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-gremph.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-gremph.sty
new file mode 100644
index 00000000000..4cc0c12a6a1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-gremph.sty
@@ -0,0 +1,106 @@
+%% File `dhucs-gremph.sty`
+%%
+%% (C) Copyright 2007-2013 Kangsoo Kim <karnes at ktug org>
+%% 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.
+%%
+%% -------------------------------------------------------------------
+%% 2013/10/01. strip off untype1, \SetGremphFonts{outbt}{outgo}
+%% 2005/01/07. bfemph option
+%% 2005/04/22. Gremph Font Selection Rearranged.
+%% \usepackage[gremphhangul=<hangulfont>,gremphhanja=<hanjafont>,bfemph]{dhucs-gremph}
+%%
+\ProvidesPackage{dhucs-gremph}
+\RequirePackage{dhucs}
+
+\RequirePackage{xkeyval}
+
+\newif\if@bfemph\@bfemphfalse
+%\DeclareOption{bfemph}{\@bfemphtrue}
+%\ProcessOptions
+\DeclareOptionX{bfemph}[]{\@bfemphtrue}
+\newif\if@gremph\@gremphtrue
+
+\newif\if@vargremphhangulfont\@vargremphhangulfontfalse
+\newif\if@vargremphhanjafont\@vargremphhanjafontfalse
+\DeclareOptionX{gremphhangul}[nanumgt]{\@vargremphhangulfonttrue\def\GrEmphFont{#1}}
+\DeclareOptionX{gremphhanja}[nanumgt]{\@vargremphhanjafonttrue\def\GrEmphHanjaFont{#1}}
+%\define@key{dhucs-gremph.sty}{gremphhangulfont}[utgr]{\@vargremphhangulfonttrue\def\GremphFont{#1}}
+%\define@key{dhucs-gremph.sty}{gremphhanjafont}[utgt]{\@vargremphhanjafonttrue\def\GrEmphHanjaFont{#1}}
+
+\ProcessOptionsX
+
+%\if@bfemph
+% \def\GrEmphFont{utbt}
+% \def\GrEmphHanjaFont{utbt}
+%\else
+ \if@vargremphhangulfont\else
+ \def\GrEmphFont{nanumgt}\fi
+ \if@vargremphhanjafont\else
+ \def\GrEmphHanjaFont{nanumgt}\fi
+%\fi
+%\def\SetGremphFonts#1#2{%
+% \def\GrEmphFont{#1}%
+% \def\GrEmphHanjaFont{#2}%
+%}
+
+\if@bfemph
+\DeclareFontFamily{LUC}{grem}{\hyphenchar \font\m@ne}
+\DeclareFontShape{LUC}{grem}{m}{n}{<-> LUC * \GrEmphFont b}{}
+\DeclareFontShape{LUC}{grem}{m}{it}{<-> LUC * \GrEmphFont b}{}
+\DeclareFontShape{LUC}{grem}{m}{sl}{<-> LUC * \GrEmphFont b}{}
+\DeclareFontFamily{LUC}{gremhj}{\hyphenchar \font\m@ne}
+\DeclareFontShape{LUC}{gremhj}{m}{n}{<-> LUC * \GrEmphHanjaFont b}{}
+\DeclareFontShape{LUC}{gremhj}{m}{it}{<-> LUC * \GrEmphHanjaFont b}{}
+\DeclareFontShape{LUC}{gremhj}{m}{sl}{<-> LUC * \GrEmphHanjaFont b}{}
+\else
+\DeclareFontFamily{LUC}{grem}{\hyphenchar \font\m@ne}
+\DeclareFontShape{LUC}{grem}{m}{n}{<-> LUC * \GrEmphFont m}{}
+\DeclareFontShape{LUC}{grem}{m}{it}{<-> LUC * \GrEmphFont m}{}
+\DeclareFontShape{LUC}{grem}{m}{sl}{<-> LUC * \GrEmphFont m}{}
+\DeclareFontFamily{LUC}{gremhj}{\hyphenchar \font\m@ne}
+\DeclareFontShape{LUC}{gremhj}{m}{n}{<-> LUC * \GrEmphHanjaFont m}{}
+\DeclareFontShape{LUC}{gremhj}{m}{it}{<-> LUC * \GrEmphHanjaFont m}{}
+\DeclareFontShape{LUC}{gremhj}{m}{sl}{<-> LUC * \GrEmphHanjaFont m}{}
+\fi
+
+\DeclareRobustCommand\itshape
+ {\not@math@alphabet\itshape\mathit
+ \fontshape\itdefault\selectfont\SetAdhocFonts{grem}{gremhj}}
+
+%\DeclareRobustCommand\slshape\itshape
+\DeclareRobustCommand\slshape
+ {\not@math@alphabet\slshape\relax
+ \fontshape\sldefault\selectfont\SetAdhocFonts{grem}{gremhj}}
+
+\DeclareRobustCommand\regremph{%
+ \@gremphtrue
+ \DeclareRobustCommand\itshape
+ {\not@math@alphabet\itshape\mathit
+ \fontshape\itdefault\selectfont\SetAdhocFonts{grem}{gremhj}}%
+% \DeclareRobustCommand\slshape\itshape
+ \DeclareRobustCommand\slshape
+ {\not@math@alphabet\slshape\relax
+ \fontshape\sldefault\selectfont\SetAdhocFonts{grem}{gremhj}}%
+}
+
+\DeclareRobustCommand\ungremph{%
+ \@gremphfalse
+ \DeclareRobustCommand\itshape
+ {\not@math@alphabet\itshape\mathit
+ \fontshape\itdefault\selectfont}%
+ \DeclareRobustCommand\slshape
+ {\not@math@alphabet\slshape\relax
+ \fontshape\sldefault\selectfont}%
+}
+
+\endinput
+
+% end of style.
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-interword.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-interword.sty
new file mode 100644
index 00000000000..97c2cb37e9c
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-interword.sty
@@ -0,0 +1,129 @@
+%% File `dhucs-interword.sty`
+%%
+%% (C) Copyright 2007-2013 Kangsoo Kim <karnes 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{dhucs-interword}[2009/03/15]
+\RequirePackage{dhucs}
+
+\newif\if@HWP\@HWPfalse
+\DeclareOption{HWP}{\@HWPtrue\let\dhucs@interhchar\z@\HWPinterwordskip}
+\newif\if@default\@defaultfalse
+\DeclareOption{default}{\@defaulttrue\@nonfrenchtrue\DEFAULTskips}
+\newif\if@nonfrench\@nonfrenchfalse
+\DeclareOption{nonfrench}{\@nonfrenchtrue}
+\DeclareOption{wider}{\widerhangul}
+\DeclareOption{narrower}{\narrowerhangul}
+%\DeclareOption*{\DEFAULTskips}
+
+\newdimen\dimen@skip
+\dimen@skip=\f@size\p@
+
+%\let\dhucs@interhchar\setInterHangulSkip
+\newcommand\interHchar[1]{\setInterHangulSkip{#1}}
+\let\interhchar\interHchar
+
+%% finemath active
+\if@dhucsfinemath\else\@dhucsfinemathtrue\fi
+
+\newcommand\interhword[4][\@empty]{%
+ \ifx#1\@empty\setinterwordskip{#2}{#3}{#4}\else\setinterwordskip[#1]{#2}{#3}{#4}\fi
+}
+
+\def\narrowerhangul{%
+ \interHchar{-.75pt}%
+}
+\def\widerhangul{%
+ \interHchar{1pt}%
+}
+
+\def\setinterwordskip{\@ifnextchar[\setinterwordskip@\setinterwordskip@@}
+\def\setinterwordskip@[#1]#2#3#4{%
+ \spaceskip = #2\dimen@skip plus #3\dimen@skip minus #4\dimen@skip
+ \xspaceskip = #1\dimen@skip plus #3\dimen@skip minus #4\dimen@skip
+}
+\def\setinterwordskip@@#1#2#3{%
+ \spaceskip = #1\dimen@skip plus #2\dimen@skip minus #3\dimen@skip
+}
+
+\def\HWPinterwordskip{%
+ \let\dhucs@interhchar\z@
+ \if@nonfrench
+ \interhword[.6]{.475}{.111}{.111}%
+ \else
+ \interhword{.475}{.111}{.111}%
+ \fi
+}
+
+\def\DEFAULTskips{%
+% \let\dhucs@interhchar\z@
+ \interHchar{-.5pt}%
+ \if@nonfrench
+ \interhword[.55]{.413}{.11}{.1}%
+ \else
+ \interhword{.413}{.11}{.1}%
+ \fi
+}
+
+\ProcessOptions\relax
+
+\if@default
+\AtEndOfPackage{%
+\def\ucsfninterwordhook{%
+% \let\dhucs@interhchar\z@
+ \interHchar{-.55pt}%
+ \if@nonfrench
+ \interhword[.5]{.303}{.11}{.1}%
+ \else
+ \interhword{.303}{.11}{.1}%
+ \fi
+}}\else
+\if@HWP
+\AtEndOfPackage{%
+\def\ucsfninterwordhook{%
+ \let\dhucs@interhchar\z@
+ \if@nonfrench
+ \interhword[.55]{.331}{.133}{.1}%
+ \else
+ \interhword{.331}{.133}{.1}%
+ \fi
+}}\fi\fi
+
+\RequirePackage{verbatim}
+\renewcommand\verbatim@font{\normalfont
+ \ttfamily\spaceskip.5em\relax
+ \hyphenchar\font\m@ne
+ \let\do\do@noligs
+ \verbatim@nolig@list}
+
+% engtext env
+\@ifundefined{engtext}%
+ {%
+ \newenvironment{engtext}%
+ {\begingroup\spaceskip=\fontdimen2\font plus\fontdimen3\font minus\fontdimen4\font}%
+ {\endgroup}%
+ }{}
+
+% engtxt
+\newskip\ORIG@spaceskip
+\def\engtxt{\ORIG@spaceskip=\spaceskip
+ \spaceskip=\fontdimen2\font plus\fontdimen3\font minus\fontdimen4\font}
+\def\endengtxt{\spaceskip=\ORIG@spaceskip}
+
+\endinput
+%%
+%% End of file `dhucs-interword.sty'.
+
+%% CHANGE LOG.
+% 2005/09/22. finemath active, change default interhchar.
+% 2005/01/07. code clearance
+% 2005/05/12. add engtext env., HWP interhchar=0pt.
+% 2005/08/05. rewrite codes. introduce nonfrench option
+% 2005/11/17. \interhword bug fix.
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-paralist.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-paralist.sty
new file mode 100644
index 00000000000..81f4a3e161b
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-paralist.sty
@@ -0,0 +1,49 @@
+%% File `dhucs-paralist.sty`
+%%
+%% Copyright (c) 2007-2013 Dohyun Kim <nomos at krug org>
+%% modification from dhucs-enumerate.sty by Kangsoo Kim <karnes 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{dhucs-paralist}
+ [2006/07/09 partially support paralist.sty under dhucs]
+
+\@ifpackageloaded{paralist}{}{\RequirePackage{paralist}}
+
+\g@addto@macro\pl@hook{%
+ \ifx^^ea\pl@temp % 가,
+ \let\@tempa\@dhucs@enumerate\else %%%%%
+ \ifx^^e2\pl@temp % ①, ⑴, ⒜, ⓐ, ⅰ, Ⅰ
+ \let\@tempa\@dhucs@enumerate\else %%%%%
+ \ifx^^e3\pl@temp % ㄱ, ㉠, ㉮, ㈀, ㈎
+ \let\@tempa\@dhucs@enumerate
+ \fi\fi\fi}
+\def\@dhucs@enumerate#1#2#3{%
+ \bgroup\let\unihangulchar\@firstofone
+ \xdef\@dhucs@enum@temp{#1#2#3}\egroup
+ \ifnum\@dhucs@enum@temp=44032 \def\@tempa{\pl@label\gana}\else
+ \ifnum\@dhucs@enum@temp=8560 \def\@tempa{\pl@label\hroman}\else
+ \ifnum\@dhucs@enum@temp=8544 \def\@tempa{\pl@label\hRoman}\else
+ \ifnum\@dhucs@enum@temp=9372 \def\@tempa{\pl@label\peng}\else
+ \ifnum\@dhucs@enum@temp=9424 \def\@tempa{\pl@label\oeng}\else
+ \ifnum\@dhucs@enum@temp=9332 \def\@tempa{\pl@label\pnum}\else
+ \ifnum\@dhucs@enum@temp=9312 \def\@tempa{\pl@label\onum}\else
+ \ifnum\@dhucs@enum@temp=12814 \def\@tempa{\pl@label\pgana}\else
+ \ifnum\@dhucs@enum@temp=12910 \def\@tempa{\pl@label\ogana}\else
+ \ifnum\@dhucs@enum@temp=12896 \def\@tempa{\pl@label\ojaso}\else
+ \ifnum\@dhucs@enum@temp=12593 \def\@tempa{\pl@label\jaso}\else
+ \ifnum\@dhucs@enum@temp=12800 \def\@tempa{\pl@label\pjaso}\else
+ \PackageError{dhucs-paralist}
+ {You can't use `\unexpanded{#1#2#3}' as enum label}
+ {Legal enum labels of hangul-ucs are: \MessageBreak\space\space
+ \unexpanded{가, ㄱ, ㉠, ㉮, ㈀, ㈎, ①, ⑴, ⒜, ⓐ, ⅰ, Ⅰ}.}
+ \fi\fi\fi\fi\fi \fi\fi\fi\fi\fi \fi\fi
+ \@tempa\relax}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-sectsty.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-sectsty.sty
new file mode 100644
index 00000000000..235f0422b59
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-sectsty.sty
@@ -0,0 +1,259 @@
+%% File `dhucs-sectsty.sty`
+%%
+%% (C) Copyright 2007-2013 Kangsoo Kim <karnes 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{dhucs-sectsty}[2006/04/20]
+
+\RequirePackage{sectsty}
+%% borrowed from sectsty
+\DeclareOption{garrulous}{\def\SS@chatlevel{0}}
+\DeclareOption{chatty}{\def\SS@chatlevel{1}}
+\DeclareOption{taciturn}{\def\SS@chatlevel{2}}
+\DeclareOption{yorkshire}{\def\SS@chatlevel{3}}
+%% newly defined options
+\newif\if@ensec
+\DeclareOption{ensec}{\@ensectrue}
+\newif\if@adjchapnumskip
+\DeclareOption{THE}{\@adjchapnumskipfalse}
+\@ensecfalse
+\@adjchapnumskiptrue
+%% Now, process the options.
+\ProcessOptions
+
+\newlength\KSTHE@skip
+\setlength\KSTHE@skip{.3em}
+\newcommand\KSTHEskip{%
+ \hskip\KSTHE@skip
+}
+
+\def\kscntformat#1#2#3{\@namedef{pre@#1cnt}{#2}
+ \@namedef{post@#1cnt}{#3}}
+\if@adjchapnumskip
+\kscntformat{part}{\KSTHE\KSTHEskip}{\KSTHEskip\partname}
+\kscntformat{chapter}{\KSTHE\KSTHEskip}{\KSTHEskip\chaptername}
+\kscntformat{section}{\KSTHE\KSTHEskip}{\KSTHEskip\sectionname}
+\else\fi
+
+\@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\SS@partnumberfont \pre@partcnt\thepart\post@partcnt
+ \par\nobreak
+ \fi
+ \huge \bfseries\SS@parttitlefont #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\SS@partnumberfont \pre@partcnt\thepart\post@partcnt
+ \par
+ \vskip 20\p@
+ \fi
+ \Huge \bfseries\SS@parttitlefont #2\par}%
+ \@endpart}
+ }
+}
+
+\@ifclassloaded{book}{%
+ \def\@chapter[#1]#2{%
+ \ifnum \c@secnumdepth >\m@ne
+ \if@mainmatter
+ \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
+ \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\SS@chapnumfont
+ \pre@chaptercnt\thechapter\post@chaptercnt
+ \par\nobreak
+ \vskip 20\p@
+ \fi
+ \fi
+ \interlinepenalty\@M
+ \Huge \bfseries\SS@chaptitlefont #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\SS@chapnumfont
+ \pre@chaptercnt\thechapter\post@chaptercnt
+ \par\nobreak
+ \vskip 20\p@
+ \fi
+ \interlinepenalty\@M
+ \Huge \bfseries\SS@chaptitlefont #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{\bfseries\pre@chaptercnt\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}}
+
+\if@ensec
+\kscntformat{section}{}{}
+\newcommand\enc@sec@skip{2em}
+\renewcommand\section{\@startsection {section}{1}{\z@}%
+ {-3.5ex \@plus -1ex \@minus -.2ex}%
+ {2.3ex \@plus.2ex}%
+ {\normalfont\Large\bfseries\SS@sectfont}}
+\@ifclassloaded{article}{}{%
+ \renewcommand*\l@section{\@dottedtocline{1}{1.3em}{2em}}%
+ \renewcommand*\l@subsection{\@dottedtocline{2}{3.3em}{2.8em}}%
+}
+
+\else
+\@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\SS@sectfont{%
+ \@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\SS@sectfont{%
+ \@hangfrom{\hskip \z@}%
+ \interlinepenalty \@M #1\@@par}%
+ \endgroup
+ \@xsect{2.3ex \@plus.2ex}}
+}
+
+\@ifclassloaded{article}{%
+ \renewcommand*\l@section[2]{%
+ \ifnum \c@tocdepth >\z@
+ \addpenalty{\@secpenalty}%
+ \addvspace{1.0em \@plus\p@}%
+ \setbox\z@=\hbox{\bfseries\pre@sectioncnt\post@sectioncnt}%
+ \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}
+}{\@ifundefined{l@section}{}{%
+ \renewcommand*\l@section{\@dottedtocline{1}{1em}{4em}}}%1.5em 2.3em
+}
+
+\fi
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-setspace.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-setspace.sty
new file mode 100644
index 00000000000..8d54e2a29e1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-setspace.sty
@@ -0,0 +1,204 @@
+%% File `dhucs-secspace.sty`
+%%
+%% Copyright (C) 2007-2013 Kangsoo Kim <karnes 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.
+%%
+\NeedsTeXFormat{LaTeX2e}[1994/12/01]
+\def\filename{dhucs-setspace.sty}
+\def\filedate{2007/09/21}
+\def\fileversion{0.11}
+\ProvidesPackage{dhucs-setspace}[\filedate\space\fileversion\space
+ Line Spacing control of ko.TeX]
+
+\newif\if@singlespacefn\@singlespacefntrue
+\DeclareOption{nofloatspacing}{\@singlespacefnfalse}
+\newif\if@singlespacequote\@singlespacequotetrue
+\DeclareOption{noquotespacing}{\@singlespacequotefalse}
+\newif\if@hangul\@hangulfalse
+\DeclareOption{hangul}{\@hangultrue\AtEndOfPackage{\hangulspacing}}
+\newif\if@adjustfootnotesep\@adjustfootnotesepfalse
+\DeclareOption{adjustfootnotesep}{\@adjustfootnoteseptrue}
+\newif\if@adjustverbatim\@adjustverbatimfalse
+\DeclareOption{adjustverbatim}{\@adjustverbatimtrue}
+
+\DeclareOption*{\PassOptionsToPackage{\CurrentOptions}{setspace}}
+
+\ProcessOptions
+
+% |dhucs-interword|가 로드되지 않았을 경우를 대비하여
+\ifx\undefined\ucsfninterwordhook
+ \providecommand{\ucsfninterwordhook}{}%
+\fi
+
+\RequirePackage{setspace}
+
+%% Karnes.
+\newcommand{\Set@Hangulspace}[2]{%
+ \def\setspace@hangulspace{#1}%
+ \def\setspace@hangulfspace{#2}%
+ \setstretch{#1}%
+}
+
+\def\SetHangulspace#1#2{%
+ \AtBeginDocument{%
+ \gdef\setspace@hangulspace{#1}%
+ \gdef\setspace@hangulfspace{#2}%
+ }%
+ \setstretch{#1}%
+}
+
+\newcommand{\SetHangulVerbatimSpace}[1]{%
+ \def\setspace@hangulverbspace{#1}%
+}
+
+\if@hangul
+\Set@Hangulspace{1.333}{1.2}
+\else
+\Set@Hangulspace{1.0}{1.0}
+\fi
+
+\newcommand{\hangulspacing}{%
+ \setstretch{\setspace@hangulspace}% default
+}
+
+\newcommand{\hangulfspacing}{%
+ \setstretch{\setspace@hangulfspace}%
+}
+
+\newcommand{\hangulverbspacing}{%
+ \setstretch{\setspace@hangulverbspace}%
+}
+
+%% adjust verbatim
+%% if and only if [nofloatspacing] and [adjustverbatim] is on,
+%% the verbatim will be the same to the main text linestretch.
+%% if [hangul] it will adjust the linestretch to the quote or quotation
+%% the other case, it will be 1.0, I hope.
+%%
+\if@adjustverbatim
+\SetHangulVerbatimSpace{\setspace@hangulfspace}%
+\else
+\SetHangulVerbatimSpace{1.0}
+\fi
+
+%\let\latex@xfloat=\@xfloat
+\if@singlespacefn
+\def\@xfloat #1[#2]{%
+ \latex@xfloat #1[#2]%
+ \def\baselinestretch {\setspace@hangulfspace}%
+ \normalsize
+}
+\else
+ \let\@xfloat=\latex@xfloat
+\fi
+
+\if@adjustfootnotesep
+\if@hangul
+\if@singlespacefn
+ \ifcase \@ptsize \relax
+ \setlength\footnotesep{8.51 pt}% 10pt
+ \or
+ \setlength\footnotesep{9.6 pt}% 11pt
+ \or
+ \setlength\footnotesep{10.3 pt}% 12pt
+ \fi
+\else
+\fi
+\else\fi
+\else\fi
+
+\if@singlespacefn
+\long\def\@footnotetext#1{%
+ \insert\footins{%
+% GT: Next line added. Hook desired here!
+ \def\baselinestretch {\setspace@hangulfspace}%
+ \ucsfninterwordhook
+% \@SetFloatspaces
+ \reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark
+ }%
+ \color@begingroup
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+ \color@endgroup}}
+
+% Minipage footnotes.
+
+\long\def\@mpfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{%
+ \unvbox \@mpfootins
+% GT: Next line added. Hook desired here!
+ \def\baselinestretch {\setspace@hangulfspace}%
+ \ucsfninterwordhook
+% \@SetFloatspaces
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel{%
+ \csname p@mpfootnote\endcsname\@thefnmark}%
+ \color@begingroup
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+ \color@endgroup}}
+
+\else\fi
+
+\def\@quotespacinghook{%
+ \if@singlespacequote%
+ \hangulfspacing%
+ \else%
+ \hangulspacing%
+ \fi%
+}
+
+\renewenvironment{quotation}
+ {\list{}{\listparindent 1.5em%
+ \itemindent \listparindent
+ \rightmargin \leftmargin
+ \parsep \z@ \@plus\p@}%
+ \item\relax
+ \@quotespacinghook%
+ }
+ {\endlist}
+\renewenvironment{quote}
+ {\list{}{\rightmargin\leftmargin}%
+ \item\relax
+ \@quotespacinghook%
+ }
+ {\endlist}
+
+\def\@verbatim{\trivlist
+ \if@adjustverbatim\hangulverbspacing\else\fi%
+ \item\relax
+ \if@minipage\else\vskip\parskip\fi
+ \leftskip\@totalleftmargin\rightskip\z@skip
+ \parindent\z@\parfillskip\@flushglue\parskip\z@skip
+ \@@par
+ \@tempswafalse
+ \def\par{%
+ \if@tempswa
+ \leavevmode \null \@@par\penalty\interlinepenalty
+ \else
+ \@tempswatrue
+ \ifhmode\@@par\penalty\interlinepenalty\fi
+ \fi}%
+ \let\do\@makeother \dospecials
+ \obeylines \verbatim@font \@noligs
+ \hyphenchar\font\m@ne
+ \everypar \expandafter{\the\everypar \unpenalty}%
+}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-trivcj.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-trivcj.sty
new file mode 100644
index 00000000000..0c4f65c0520
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-trivcj.sty
@@ -0,0 +1,126 @@
+%% File `dhucs-trivcj.sty`
+%%
+%% Copyright (c) 2007-2013 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.
+%%
+%% -----------------------------------------------------------------
+%% \trivcjtypesetting for temporary chinese or japanese insertion
+\ProvidesPackage{dhucs-trivcj}
+ [2011/08/17 temporary chinese/japanese for dhucs]
+
+%%%%%% luatex & xetex
+\ifx가가\relax
+ \newcommand*\trivcjtypesetting{%
+ \parindent1em
+ \let\nbs\nobreakspace %% see CJK.sty
+ \def~{}}
+ \protected\edef\japanese{\unexpanded\expandafter{\japanese\trivcjtypesetting}}
+ \protected\edef\Schinese{\unexpanded\expandafter{\Schinese\trivcjtypesetting}}
+ \protected\edef\Tchinese{\unexpanded\expandafter{\Tchinese\trivcjtypesetting}}
+ \let\chinese\Schinese
+ \expandafter\endinput
+\fi
+
+%%%%% legacy tex
+\newskip\interCJskip
+\interCJskip=0em plus 0.1em minus 0.01em
+\newskip\interXCJskip
+\interXCJskip=.25em plus .15em minus .06em
+
+\newcommand*\trivcjtypesetting{%
+ \parindent1em
+ \let\nbs\nobreakspace %% see CJK.sty
+ \def~{\hskip\interXCJskip\ignorespaces}%% see CJK.sty
+ \edef\declarenobreakspacefactor{\unexpanded\expandafter
+ {\declarenobreakspacefactor\ignorespaces}}%
+ \edef\declarehanjaspacefactor{\unexpanded\expandafter
+ {\declarehanjaspacefactor\ignorespaces}}%
+ \def\check@next@to@sptoken@@{%
+ \ifx\par\dhucs@nextnext
+ \chardef\puncnobre@k\@ne
+ \else
+ %% if \dhucs@nextnext == \fi ???
+ \ifx\bgroup\dhucs@nextnext\else
+ \ifx\egroup\dhucs@nextnext\else
+ % \ifx&\dhucs@nextnext\else
+ \if\noexpand\dhucs@nextnext\relax\else
+ \chardef\nexttoh@ngul\@ne
+ \let\dhucs@next\relax
+ \fi\fi\fi %\fi
+ \fi
+ \unihangulchar@@@\dhucs@next}%
+ \def\kernbeforeasciichar{\hskip\interXCJskip}%
+ \def\breakbetweenhanja{\hskip\interCJskip}%
+ \def\nobreakbetweenhanja{\nobreak\hskip\interCJskip}%
+ \def\breakafterasciichar{\hskip\interXCJskip}%
+ \def\nobreakafterasciichar{\nobreak\hskip\interXCJskip}%
+ \let\breakafterinlinemath\breakafterasciichar
+ \let\nobreakafterinlinemath\nobreakafterasciichar
+ \let\breakbeforeasciichar\breakafterasciichar
+ \def\cjksymbolextraspace{\hskip.5em minus.5em\relax}%
+ \def\postcjksymskip{\futurelet\dhucs@next\@@postcjksymskip}%
+ \def\cjksymbolunskip{\ifhmode\unskip\fi}%
+ \def\cjksymbolskip{\cjksymbolunskip\cjksymbolextraspace}
+ \expandafter\let\csname nexttohangul-1\expandafter
+ \endcsname\csname nexttotrivcj-1\endcsname
+}
+\newcommand*\@@postcjksymskip{%
+ \ifx\dhucs@next.\else
+ \ifx\dhucs@next,\else
+ \ifx\dhucs@next:\else
+ \ifx\dhucs@next;\else
+ \ifx\dhucs@next!\else
+ \ifx\dhucs@next?\else
+ \cjksymbolextraspace
+ \fi\fi\fi\fi\fi \fi
+ \ifhmode\declarehanjaspacefactor\fi
+ \ignorespaces
+}
+
+\DeclareUnicodeCharacter{30FB}%
+ {\cjksymbolunskip\nobreak\hskip.25em minus.25em
+ \hbox to .5em{\hss\unihangulchar{"30FB}\hss}\hskip.25em minus.25em\relax}
+\DeclareUnicodeCharacter{FF01}% !
+ {\cjksymbolunskip\hbox to.1em{\unihangulchar{"FF01}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF0C}% ,
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"FF0C}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF0E}% .
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"FF0E}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF1A}% :
+ {\cjksymbolunskip\nobreak\hskip.25em minus.25em
+ \hbox to.5em{\hss\unihangulchar{"FF1A}\hss}\hskip.25em minus.25em\relax}
+\DeclareUnicodeCharacter{FF1B}% ;
+ {\cjksymbolunskip\nobreak\hskip.25em minus.25em
+ \hbox to.5em{\hss\unihangulchar{"FF1B}\hss}\hskip.25em minus.25em\relax}
+\DeclareUnicodeCharacter{FF1F}% ?
+ {\cjksymbolunskip\hbox to.1em{\unihangulchar{"FF1F}\hss}\postcjksymskip}
+
+%\newenvironment{japanese}{\SetHanjaFonts{jpmj}{jpgt}{jpgt}\trivcjtypesetting}{}
+%\newenvironment{chinese}{\SetHanjaFonts{cnmj}{cngt}{cngt}\trivcjtypesetting}{}
+% AR PL SungtiL GB
+\DeclareFontFamily{LUC}{gbsn}{\hyphenchar\font\m@ne}
+\DeclareFontShape{LUC}{gbsn}{m}{n}{<-> LUC * gbsnu}{}
+%% AR PL Mingti2L Big5
+\DeclareFontFamily{LUC}{bsmi}{\hyphenchar\font\m@ne}
+\DeclareFontShape{LUC}{bsmi}{m}{n}{<-> LUC * bsmiu}{}
+%% Japanese Wadalab
+\DeclareFontFamily{LUC}{min}{\hyphenchar\font\m@ne}
+\DeclareFontShape{LUC}{min}{m}{n}{ <-> LUC * udmj}{}
+%%
+\newenvironment{japanese}
+{\SetHanjaFonts{min}{min}{min}\trivcjtypesetting}{}
+\newenvironment{Schinese}
+{\SetHanjaFonts{gbsn}{gbsn}{gbsn}\trivcjtypesetting}{}
+\newenvironment{Tchinese}
+{\SetHanjaFonts{bsmi}{bsmi}{bsmi}\trivcjtypesetting}{}
+
+\let\chinese\Schinese\let\endchinese\endSchinese
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-ucshyper.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-ucshyper.sty
new file mode 100644
index 00000000000..5d393ccde73
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-ucshyper.sty
@@ -0,0 +1,34 @@
+%% File `dhucs-ucshyper.sty`
+%%
+%% Copyright (c) 2013 Kangsoo Kim <karnes 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.
+%%
+%% ko.TeX에서 없어진, 이전 hangul-ucs의 부가 스타일
+%% 하위 호환성을 위해서 같은 이름을 가진 스타일을 작성함.
+%%
+\newif\if@dvips\@dvipsfalse
+\DeclareOption{dvips}{\@dvipstrue}
+\ProcessOptions
+
+\RequirePackage{ifpdf}
+%\@ifpackageloaded{hyperref}{}{%
+\ifpdf
+ \RequirePackage[pdftex,unicode,bookmarks=true]{hyperref}
+ \input glyphtounicode\pdfgentounicode=1
+\else
+ \if@dvips
+ \RequirePackage[dvips,unicode]{hyperref}
+ \else
+ \RequirePackage[dvipdfm,unicode,bookmarks=true]{hyperref}
+ \fi
+\fi
+%}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucsfn.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucsfn.sty
new file mode 100644
index 00000000000..8fb556a8ce4
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/dhucsfn.sty
@@ -0,0 +1,213 @@
+%% File `dhucsfn.sty`
+%%
+%% (C) Copyright 2007-2013 Koaunghi Un <koaunghi at kornet net>
+%% Dohyun Kim <nomos at ktug org>
+%% Kangsoo Kim <karnes 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.
+%%
+%% -----------------------------------------------------
+%%
+%% 제공되는 선택 사항은 각주 번호 형식의 선택과 각주 판짜기 방식의
+%% 선택으로 나뉜다.
+%%
+%% 각주 번호 형식
+%% --------------
+%% - 첨자: 라텍의 기본 방식이다. 각주 번호가 각주면에 첨자로 짜진다.
+%% [superscript]
+%% - 괄호: 한글 문서에서 자주 접할 수 있는 방식이다. 각주 번호가
+%% 각주면 글자체의 크기로 짜지며 각주 번호 다음에 닫는
+%% 소괄호가 뒤따른다. 소괄호와 각주문의 사이에는 전각 넓이의
+%% 간격이 각주 번호와 각주문을 구별하는데 효과적이다.
+%% [parenthesis]
+%%
+%% ``첨자''의 경우, 각주 번호와 각주문의 간격은 0pt이고
+%% ``괄호''의 경우, 각주 번호와 각주문의 간격은 공간 문자의 넓이이다.
+%% 이 간격을 달리 하고자 할 때는 다음과 같이 \footnumbersep의 길이를
+%% 다시 준다.
+%% \setlength{\footnumbersep}{길이}
+%%
+%% 각주 판짜기 방식
+%% ----------------
+%% - 내어쓰기: 각주 번호가 본문의 왼쪽맞춤으로 짜지고 각주문은 첫
+%% 글자의 위치로 왼쪽맞춤 된다. (hang)
+%% - 다항이어쓰기: 각주가 새 행에서 시작하지 않고 앞의 각주에
+%% 이어진다. 짧은 각줄고만 구성될 때 유용하다. 줄바꿈으로 새 행이
+%% 시작하면 항상 새로운 각주가 시작되도록 짜여진다. (multipara}
+%% - 단순이어쓰기: 다항이어쓰기와 같으나 새로운 각주가 행을 시작하도록
+%% 하지 않는다. 앞의 각주가 끝나면 연이어 다음 각주가 시작한다. (para)
+%% - 왼쪽맞춤: 들여쓰기나 내어쓰기에 의해 각주 번호가 구별되도록 하지
+%% 않는다. 각주면 전체가 왼쪽맞춤으로 짜진다. (leftflush)
+%% - 들여쓰기: 각주 번호가 있는 행이 왼쪽에서 2배각 들여 써진다.
+%% 각주면의 각주 번호들은 오른쪽으로 정렬된다. (indent)
+%% - 들여왼쪽맞춤: 왼쪽맞춤과 같으나 각주면 전체가 2배각 들어간다. (leftflushindent)
+%% - 들여내어쓰기: 내어쓰기와 같으나 각주면 전체가 2배각 들어간다. (hangpar)
+%% - 들여괄호맞춤: 들여내어쓰기와 같으나 줄바꿈으로 새로 시작하는 행의
+%% 왼쪽 맞춤이 각주문의 첫 글자의 위치에서 왼쪽맞춤이 되지 않고
+%% 각주 번호의 괄호가 끝나는 위치에서 왼쪽맞춤된다. 각주 번호
+%% 형식은 ``괄호''가 애초값이다. (varhangpar)
+%%
+%% 기본 선택 사항
+%% --------------
+%% 선택 사항을 지정하지 않으면 ``첨자''와 ``내어쓰기''가 애초값이다.
+%%
+
+\def\filedate{2005/04/20}
+\def\fileversion{1.0}
+
+\ProvidesPackage{dhucsfn}[\filedate\space Korean footnote style]
+\typeout{Korean footnote style `dhucsfn' (a variant of `hangulfn') <\filedate>.}
+
+%% 주석 판짜기 설정
+
+\setlength{\footnotesep}{3pt}
+
+\def\footnoterule{\vfill\kern-3\p@
+ \hrule \@width 2in \kern 2.6\p@\vspace{2pt}} % the \hrule is .4pt high
+
+\newdimen\foot@parindent
+\newdimen\footnumbersep
+
+%% 라텍과 Λ를 구분하여 선택 사항 이름 규정
+
+%\ifx\nullocplist\undefined
+%\input hfn-k.tex
+%\else
+%\input hfn-u.tex
+%\fi
+
+%%% hfn-u.tex for hangul lambda
+
+\DeclareOption{superscript}{
+ \def\fn@markstyle{\@makefnmark}
+ \footnumbersep0pt
+}
+\DeclareOption{parenthesis}{
+ \def\fn@markstyle{\@thefnmark)}
+ \settowidth{\footnumbersep}{~}
+}
+
+%% 각주 내어쓰기
+%% ---------------------
+%% 1) 첫번째 줄
+%% 두번째 줄
+\DeclareOption{hang}{%
+ \long\def\@makefntext#1{
+ \settowidth{\foot@parindent}{\fn@markstyle}
+ \@setpar{\@@par\@tempdima \hsize
+ \advance\@tempdima-\foot@parindent
+ \parshape\@ne\foot@parindent \@tempdima}\par
+ \parindent8\p@\noindent
+ \hb@xt@\z@{\hss\hss\fn@markstyle\hskip\footnumbersep}#1}
+}
+
+%% 각주 다항이어쓰기
+%% ---------------------
+%% 1) 첫번째 각주 2) 두번째 각주
+%% 3) 세번째 각주
+\DeclareOption{multipara}{
+ \input{fnpara.sty}
+ \long\def\@makefntext#1{%
+ \hbox{\fn@markstyle\hskip\footnumbersep #1}
+ }%
+}
+
+%% 각주 단순이어쓰기
+%% ---------------------
+%% 1) 첫번째 각주 2) 두번째 각주 3) 세
+%% 번째 각주
+\DeclareOption{para}{
+ \input{fnpara.sty}
+ \long\def\@makefntext#1{%
+ \fn@markstyle\ifdim\footnumbersep=\z@\else~\fi #1
+ }%
+}
+
+%% 각주 왼쪽맞춤
+%% ---------------------
+%% 1) 첫번째 줄
+%% 두번째 줄
+%% \parindent: 본문의 별행 indent
+\DeclareOption{leftflush}{
+ \renewcommand\@makefntext[1]{%
+ \settowidth{\foot@parindent}{\reset@font 각주}
+ \parindent\foot@parindent\noindent%
+ \fn@markstyle\hskip\footnumbersep #1}%
+}
+
+%% 각주 들여쓰기
+%% ---------------------
+%% 1) 첫번째 줄
+%% 두번째 줄
+%% \parindent: 본문 별행 indent의 일정 배수
+%% 각주 번호 오른쪽 정렬
+\DeclareOption{indent}{
+ \renewcommand\@makefntext[1]{%
+ \settowidth{\foot@parindent}{\reset@font 각주}
+ \parindent\foot@parindent\noindent
+ \hb@xt@1.5\foot@parindent{\hss\fn@markstyle}\hskip\footnumbersep #1}
+}
+
+%% 각주 들여왼쪽맞춤
+%% ---------------------
+%% 1) 첫번째 줄
+%% 두번째 줄
+\DeclareOption{leftflushindent}{
+ \renewcommand\@makefntext[1]{%
+ \settowidth{\foot@parindent}{\reset@font 각주}
+ \leftskip\foot@parindent
+ \parindent\z@\noindent
+ \fn@markstyle\hskip\footnumbersep #1
+ }
+}
+
+%% 각주 들여내어쓰기
+%% ---------------------
+%% 1) 첫번째 줄
+%% 두번째 줄
+\DeclareOption{hangpar}{
+ \long\def\@makefntext#1{
+ \settowidth{\foot@parindent}{\reset@font 각주}
+ \settowidth{\footnumbersep}{\reset@font 주}
+ \divide\footnumbersep by2
+ \leftskip\foot@parindent
+ \@setpar{\@@par\@tempdima \hsize
+ \advance\@tempdima-\foot@parindent
+ \parshape\@ne\foot@parindent \@tempdima}\par
+ \parindent\z@\noindent
+ \hb@xt@\z@{\hss\hss\fn@markstyle\hskip\footnumbersep}#1}
+}
+
+%% 각주 들여괄호맞춤
+%% ---------------------
+%% 1) 첫번째 줄
+%% 두번째 줄
+\DeclareOption{varhangpar}{
+ \def\fn@markstyle{\@thefnmark)}
+ \settowidth{\footnumbersep}{~}
+ \long\def\@makefntext#1{
+ \settowidth{\leftskip}{\reset@font 각주}
+ \settowidth{\foot@parindent}{\fn@markstyle}
+ \settowidth{\footnumbersep}{\reset@font 주}
+ \@setpar{\@@par\@tempdima \hsize
+ \advance\@tempdima-\foot@parindent
+ \parshape\@ne\foot@parindent \@tempdima}\par
+ \parindent=\footnumbersep\noindent
+ \hb@xt@\z@{\hss\hss\fn@markstyle}\hskip\footnumbersep #1}
+}
+
+\ExecuteOptions{superscript,hang}
+
+%% 선택된 각주 판짜기 형식 실행
+
+\ProcessOptions
+
+\endinput
+
+%% end of dhucsfn.sty
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/kotex-logo.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/kotex-logo.sty
new file mode 100644
index 00000000000..9dd7d049dff
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/kotex-logo.sty
@@ -0,0 +1,24 @@
+%% File `kotex-logo.sty`
+%%
+%% Copyright (c) 2013 Kangsoo Kim <karnes 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.
+%%
+%% define \koTeX logo command
+\RequirePackage{hologo}
+
+\ifx\koTeX\undefined
+\providecommand*\ko{%
+ \leavevmode\textsf{k}\kern-0.0625em\textit{o}}
+\newcommand*\koTeX{%
+ \leavevmode\textsf{k}\kern-0.0625em\textit{o}\kern-0.11em%
+ \lower.15ex\hbox{.}\kern-0.1em\hologo{TeX}}
+\fi
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/contrib/kotex-varioref.sty b/Master/texmf-dist/tex/latex/kotex-utf/contrib/kotex-varioref.sty
new file mode 100644
index 00000000000..3b84adf60ca
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/contrib/kotex-varioref.sty
@@ -0,0 +1,48 @@
+%% File `kotex-varioref.sty`
+%%
+%% (C) Copyright 2008-2013 slomo
+%%
+%% 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.
+%%
+\@ifpackageloaded{varioref}{}{\RequirePackage{varioref}[2006/05/13]}
+
+
+%
+% user interfaces
+%
+\renewcommand{\vref}[2][\reftextcurrent]
+ {\vpageref[#1]{#2} \ref{#2}}
+\renewcommand{\vrefrange}[3][\reftextcurrent]
+ {\vpagerefrange[#1]{#2}{#3}의 \reftextlabelrange{#2}{#3}}
+
+
+%
+% reftexts
+%
+\renewcommand{\reftextfaceafter}{다음 \pagename}%
+\renewcommand{\reftextfacebefore}{앞 \pagename}%
+\renewcommand{\reftextafter}{다음 \pagename}%
+\renewcommand{\reftextbefore}{앞 \pagename}%
+\renewcommand{\reftextcurrent}{현재 \pagename}%
+\renewcommand{\reftextfaraway}[1]{\pageref{#1}\pagename}%
+\renewcommand{\reftextpagerange}[2]{\pageref{#1}--\pageref{#2}\pagename}%
+\renewcommand{\reftextlabelrange}[2]{\ref{#1}에서 \ref{#2}}
+
+%
+% labelformats
+%
+\labelformat{part}{#1\partname}
+\labelformat{chapter}{#1\chaptername}
+\labelformat{section}{#1\sectionname}
+\labelformat{figure}{\figurename~#1}
+\labelformat{table}{\tablename~#1}
+\labelformat{footnote}{각주~#1}
+
+\endinput
+