summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/ChangeLog155
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/README147
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/fig/allowbreak-dhucs.pdfbin0 -> 58245 bytes
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/fig/fntexp.pdfbin0 -> 323278 bytes
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/fig/fntnormal.pdfbin0 -> 323162 bytes
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/fig/histkotex.jpgbin0 -> 91906 bytes
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/fig/linebreaktest.pdfbin0 -> 238997 bytes
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/fig/testdhucsallowbreak.pdfbin0 -> 80132 bytes
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/kotexdoc.pdfbin0 -> 7132348 bytes
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/kotexdoc.tex3096
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/sample-finemath-setup.tex7
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/yettext.tex13
-rw-r--r--Master/texmf-dist/doc/latex/kotex-utf/yettext.txt13
-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
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/dhucs-nanumfont.sty39
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/dhucs.sty127
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/hfontspec.default11
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/kosections-utf.sty548
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/kotex.cfg8
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty548
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/lucenc.dfu155
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/lucuhcmj.fd18
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/tex4ht/dhucs.4ht22
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/tex4ht/dhucs.cfg40
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/tex4ht/kosections-utf.4ht131
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-langcjk.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/kotex-utf.tlpsrc1
40 files changed, 6480 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/ChangeLog b/Master/texmf-dist/doc/latex/kotex-utf/ChangeLog
new file mode 100644
index 00000000000..f84c885db95
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/ChangeLog
@@ -0,0 +1,155 @@
+2013-11-08 Kihwang Lee <leekh at ktug org>
+
+ Version 2.0.1
+
+ * ChangeLog: newly added
+
+2013-11-07 Kangsoo Kim <karnes at ktug org>
+
+ No version change
+
+ * kotexdoc.tex: revised for new Xindy related matters
+
+2013-10-24 Kihwang Lee <leekh at ktug org>
+
+ No version change
+
+ * Uploaded to CTAN
+
+2013-10-22 Kangsoo Kim <karnes at ktug org>
+
+ * kotexutf.sty: use cjk-ko's ko-names, ko-sections, and ko-labels
+
+2013-10-21 Kihwang Lee <leekh at ktug org>
+
+ Version 2.0.0
+
+ * kotex-utf packaging, uploaded to https://github.com/kihwanglee/kotex-utf
+
+2013-10-21 Kangsoo Kim <karnes at ktug org>
+
+ * kotexutf.sty: use xetexko's tab files
+
+2013-10-01 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs-gremph.sty: strip off untype1, \SetGremphFonts{outbt}{outgo}
+
+2009-03-05 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 5.0.0
+ wrapper for various engines
+
+2008-08-28 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.1.4
+ work around error under using babel package
+
+2008-05-26 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.1.3
+ fallback of hangul font family is now serif font
+
+2008-03-15 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.1.2
+ redefine hyphendemerits only under finemath
+
+2008-01-30 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.1.1
+ fix a bug of heading mark
+
+2008-01-29 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.1.0
+ write raw chars in aux, toc, idx ...
+
+2007-12-28 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.0.14
+ compatible with footmisc.sty (reported by 서상현)
+
+2007-12-01 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.0.13
+ spacefactor=1000 between hangul and `)'
+
+2007-10-30 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.0.12
+ fix on \dhucs@next == \ifx
+
+2007-10-29 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.0.11
+ nobreak after \nobreak in \cjksymbolskip
+
+2007-10-25 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.0.10
+ simplify code related to \dhucs@next
+
+2007-10-07 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.0.9
+ bug fix related to \dhucs@next == \fi
+
+2007-07-18 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.0.8
+ part of ko.TeX
+ PUA is now hangul class 2 (= hanja)
+
+2007-06-30 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.0.7
+ skip instead of kern after cjksymbol
+
+2007-06-26 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.0.6
+ option strictcharcheck introduced
+ * dhucs.sty: version 4.0.5
+ redefine U+2018, U+2019, U+201C, U+201D
+
+2007-06-25 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.0.4
+ fix bugs introduced by previous minor upgrade
+
+2007-06-22 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.0.3
+ lowering multiple punctuations
+
+2007-06-16 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs.sty: version 4.0.2
+ support ulem.sty
+
+2005-11-17 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs-interword.sty: \interhword bug fix.
+
+2005-09-22 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs-interword.sty: finemath active, change default interhchar.
+
+2005-08-05 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs-interword.sty: rewrite codes. introduce nonfrench option
+
+2005-05-12 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs-interword.sty: add engtext env., HWP interhchar=0pt.
+
+2005-04-22 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs-gremph.sty: Gremph Font Selection Rearranged.
+ \usepackage[gremphhangul=<hangulfont>,gremphhanja=<hanjafont>,bfemph]{dhucs-gremph}
+
+2005-01-07 Kangsoo Kim <karnes at ktug org>
+
+ * dhucs-gremph.sty: bfemph option
+ * dhucs-interword.sty: code clearance
+
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/README b/Master/texmf-dist/doc/latex/kotex-utf/README
new file mode 100644
index 00000000000..c2825d62403
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/README
@@ -0,0 +1,147 @@
+kotex-utf
+=========
+
+Introduction
+------------
+
+kotex-utf is a macro package for typesetting Hangul, the native
+alphabet of the Korean language. The input Korean text should be
+encoded in UTF-8. kotex-utf belongs to ko.TeX, a comprehensive
+Korean typesetting system together with packages kotex-oblivoir,
+kotex-plain, kotex-utils, cjk-ko, xetexko, and luaxexko.
+
+Dependencies
+------------
+
+kotex-utf depends on the following packages:
+
+* xetexko: Hangul and hanja mapping tables
+* cjk-ko: main style, Korean counters and captions
+
+Files
+-----
+
+### TeXinputs
+
+ dhucs-nanumfont.sty -> tex/latex/kotex/
+ dhucs.sty -> tex/latex/kotex/
+ hfontspec.default -> tex/latex/kotex/
+ kosections-utf.sty -> tex/latex/kotex/
+ kotex.cfg -> tex/latex/kotex/
+ kotexutf.sty -> tex/latex/kotex/
+ lucenc.dfu -> tex/latex/kotex/
+ lucuhcmj.fd -> tex/latex/kotex/
+ contrib/dhucs-cmap.sty -> tex/latex/kotex/contrib/
+ contrib/dhucs-enumerate.sty -> tex/latex/kotex/contrib/
+ contrib/dhucs-enumitem.sty -> tex/latex/kotex/contrib/
+ contrib/dhucs-gremph.sty -> tex/latex/kotex/contrib/
+ contrib/dhucs-interword.sty -> tex/latex/kotex/contrib/
+ contrib/dhucs-paralist.sty -> tex/latex/kotex/contrib/
+ contrib/dhucs-sectsty.sty -> tex/latex/kotex/contrib/
+ contrib/dhucs-setspace.sty -> tex/latex/kotex/contrib/
+ contrib/dhucs-trivcj.sty -> tex/latex/kotex/contrib/
+ contrib/dhucs-ucshyper.sty -> tex/latex/kotex/contrib/
+ contrib/dhucsfn.sty -> tex/latex/kotex/contrib/
+ contrib/kotex-logo.sty -> tex/latex/kotex/contrib/
+ contrib/kotex-varioref.sty -> tex/latex/kotex/contrib/
+
+### TeX4ht
+
+ tex4ht/dhucs.4ht -> tex/latex/kotex/tex4ht/
+ tex4ht/dhucs.cfg -> tex/latex/kotex/tex4ht/
+ tex4ht/kosections-utf.4ht -> tex/latex/kotex/tex4ht/
+
+### Documents
+
+ README (this file) -> doc/latex/kotex-utf/
+ doc/kotexdoc.pdf -> doc/latex/kotex-utf/
+ doc/kotexdoc.tex -> doc/latex/kotex-utf/
+ doc/sample-finemath-setup.tex -> doc/latex/kotex-utf/
+ doc/yettext.tex -> doc/latex/kotex-utf/
+ doc/yettext.txt -> doc/latex/kotex-utf/
+ doc/fig/allowbreak-dhucs.pdf -> doc/latex/kotex-utf/fig/
+ doc/fig/fntexp.pdf -> doc/latex/kotex-utf/fig/
+ doc/fig/fntnormal.pdf -> doc/latex/kotex-utf/fig/
+ doc/fig/histkotex.jpg -> doc/latex/kotex-utf/fig/
+ doc/fig/linebreaktest.pdf -> doc/latex/kotex-utf/fig/
+ doc/fig/testdhucsallowbreak.pdf -> doc/latex/kotex-utf/fig/
+
+Usage
+-----
+
+Call `kotex.sty` (in cjk-ko package) with package options as follows:
+
+ \usepackage[<options>]{kotex}
+
+When kotex-utf is installed and appropriate options are given,
+kotex-utf will be used for Hangul typesetting.
+Certain package options are inter-related to the TeX engines
+that are used for compilation.
+For pdfLaTeX and LaTeX, you can use *utf* option:
+
+ \usepackage[utf]{kotex}
+
+This will activate the default behavior of kotex-utf. The option
+*utf* does not need to be specified since it is a default option.
+You can use other common options such as *hangul*, *hanja*,
+and *nojosa*.
+
+Calling kotex.sty in the following way
+
+ \usepackage[cjk]{kotex}
+
+will typeset Hangul using the cjk-ko package. Options *usedotemph*
+and *usecjkt1font* can be specified in addition to the common options.
+
+For XeLaTeX and LuaLaTeX, you can just load kotex.sty without
+any package options. kotex-utf will call XeTeX-ko or LuaTeX-ko accordingly.
+
+Sample document
+---------------
+
+The following document is a sample document utilizing the iftex
+package for coping with multiple engines:
+
+ \documentclass{article}
+ \usepackage{amsmath,amssymb}
+ \usepackage{hyperref}
+ \usepackage[hangul]{kotex}
+ \usepackage{kotex-logo}
+ \usepackage{iftex}
+ \ifPDFTeX
+ \usepackage{dhucs-nanumfont}
+ \hypersetup{pdftex,unicode,bookmarks}
+ \input glyphtounicode
+ \pdfgentounicode=1
+ \else\ifXeTeX
+ \setmainhangulfont[Ligatures=TeX]{HCR Batang LVT}
+ \setsanshangulfont[Ligatures=TeX]{HCR Dotum LVT}
+ \else\ifLuaTeX
+ \hypersetup{unicode,bookmarks}
+ \setmainhangulfont[Ligatures=TeX]{HCR Batang LVT}
+ \setsanshangulfont[Ligatures=TeX]{HCR Dotum LVT}
+ \fi\fi\fi
+ \begin{document}
+ \title{\koTeX-article 템플릿}
+ \author{저자}
+ \date{}
+ \maketitle
+ \section{절 제목}
+ \subsection{소절 제목}
+ 이 문서는 \koTeX\ 문서입니다.
+ \end{document}
+
+For more information, please refer to the included documentation (written in Korean).
+
+License
+-------
+
+kotex-utf is licensed under the LaTeX Project Public
+License (LPPL).
+
+Contacts
+--------
+
+Please report any errors or suggestions to the package maintainer,
+Kihwang Lee <leekh at ktug org>.
+
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/fig/allowbreak-dhucs.pdf b/Master/texmf-dist/doc/latex/kotex-utf/fig/allowbreak-dhucs.pdf
new file mode 100644
index 00000000000..b76f6e071f1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/fig/allowbreak-dhucs.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/fig/fntexp.pdf b/Master/texmf-dist/doc/latex/kotex-utf/fig/fntexp.pdf
new file mode 100644
index 00000000000..790915cf0df
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/fig/fntexp.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/fig/fntnormal.pdf b/Master/texmf-dist/doc/latex/kotex-utf/fig/fntnormal.pdf
new file mode 100644
index 00000000000..50144e70aae
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/fig/fntnormal.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/fig/histkotex.jpg b/Master/texmf-dist/doc/latex/kotex-utf/fig/histkotex.jpg
new file mode 100644
index 00000000000..57aca9b091c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/fig/histkotex.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/fig/linebreaktest.pdf b/Master/texmf-dist/doc/latex/kotex-utf/fig/linebreaktest.pdf
new file mode 100644
index 00000000000..68d402a10d2
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/fig/linebreaktest.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/fig/testdhucsallowbreak.pdf b/Master/texmf-dist/doc/latex/kotex-utf/fig/testdhucsallowbreak.pdf
new file mode 100644
index 00000000000..437c1f45075
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/fig/testdhucsallowbreak.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/kotexdoc.pdf b/Master/texmf-dist/doc/latex/kotex-utf/kotexdoc.pdf
new file mode 100644
index 00000000000..84a4fb688b7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/kotexdoc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/kotexdoc.tex b/Master/texmf-dist/doc/latex/kotex-utf/kotexdoc.tex
new file mode 100644
index 00000000000..0b06ae95c25
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/kotexdoc.tex
@@ -0,0 +1,3096 @@
+%!TEX encoding = UTF-8 Unicode
+%!TEX program = arara
+% arara: pdflatex: {options: -synctex=1}
+% arara: komkindex
+% arara: pdflatex: {options: -synctex=1}
+%%% file `kotexdoc.tex`
+%% Written by Kangsoo Kim <karnes at ktug kr>
+%%
+%% 2013/09/30
+%% 2013/11/07
+%%
+%% part of ko.TeX v2.0
+%% LPPL, maintained.
+%
+\documentclass[a4paper,%
+ 10.5pt,%
+ amsmath,%
+% uset1font,%
+ chapter,%
+ twoside,%
+ openany,%
+ finemath,%
+ oldfontcommands]%
+{oblivoir}
+
+\usepackage{fancyvrb}
+\usepackage{eurosym}
+
+\ifPDFTeX
+ \SetHanjaFonts{uhcmj}{nanumgt}{nanumgt}
+ \usepackage[pdftex]{graphicx}
+ \SetGremphFonts{nanumgt}{nanumgt}
+ \usepackage[normalem]{ulem}
+ \usepackage{dhucs-trivcj}
+ \usepackage{dhucs-midkor}
+ \input sample-finemath-setup.tex
+ \usepackage[T1]{fontenc}
+ \renewcommand{\rmdefault}{nanummj}
+\else
+ \ifLuaOrXeTeX
+ \usepackage{xob-dotemph}
+ \setkormainfont(* ExtraBold)(*){NanumMyeongjo}(){HCR Batang LVT}
+ \def\다{\nobreak 다}
+\fi\fi
+
+\usepackage[x11names,dvipsnames,svgnames]{xcolor}
+
+\ifXeTeX
+ \usepackage[normalem]{ulem}
+\fi
+
+\usepackage[dbl4x6]{fapapersize}
+\usepackage{boxedminipage}
+
+\SetHangulspace{1.5}{1.1}
+
+\usepackage{hologo}
+\def\pdfTeX{\hologo{pdfTeX}}
+\def\pdfLaTeX{\hologo{pdfLaTeX}}
+\def\XeTeX{\hologo{XeTeX}}
+\def\XeLaTeX{\hologo{XeLaTeX}}
+\def\eTeX{\hologo{eTeX}}
+\def\LuaTeX{\hologo{LuaTeX}}
+\def\LuaLaTeX{\hologo{LuaLaTeX}}
+\newcommand*\kotex{\texorpdfstring{\textsf{k}\kern-0.0625em\textit{o}\kern-1.5pt\lower.15ex\hbox{.}\kern-1pt\protect\TeX}{ko.TeX}}
+\def\ko{\textsf{k}\textit{o}}
+\def\kotexplain{\kotex-\hologo{plain}}
+\newcommand\kotexversion{v2.0}
+\newcommand\kotexdate{2013년 11월}
+
+%\usepackage[
+% backend=biber,
+% style=authoryear,
+% sortlocale=UTF-8,
+% natbib=true,
+% url=true,
+% doi=false,
+% eprint=false,
+%]{biblatex}
+%\addbibresource{kotexguide.bib}
+%\addbibresource{texbook1.bib}
+%\addbibresource{texbook3.bib}
+%
+
+\newenvironment{preamtext}{%
+ \section*{일러두기}
+}{\clearpage}
+
+\newenvironment{preamtexttwo}{%
+ \section*{제2판 일러두기}
+}{\clearpage}
+
+\def\util#1{\texttt{#1}\index{Utilities!#1}\index{#1}}
+\def\pkg#1{\textsf{#1}\index{Packages!#1}}
+\def\option#1{\texttt{[#1]}\index{Options!#1}}
+\def\wi#1{#1\index{#1}}
+\def\thispkg{\kotex}
+\def\file#1{\texttt{#1}\index{Files!#1}}
+
+\def\OMEGA{$\mathrm{\Omega}$}
+
+\copypagestyle{part}{empty}
+
+\renewcommand\cftsectionaftersnumb{\hspace{1.2em}}
+\renewcommand\cftsubsectionaftersnumb{\hspace{1em}}
+
+\def\xample{예시}
+\renewcommand{\cmd}[1]{\cmdprint{#1}%
+ \index{Commands!\string\cmdprint{\string#1}}}
+
+\makeindex
+
+\begin{document}
+
+\frenchspacing
+
+\title{한국어 텍 \kotex~\kotexversion~사용 설명서}
+\author{김강수}
+\date{\kotexdate}
+
+\begin{titlingpage}
+\maketitle
+\end{titlingpage}
+
+\frontmatter
+
+\begin{preamtexttwo}
+2007년에 \kotex 이 만들어진 이후, 이 패키지는 사실상 한국어 문헌의
+조판과 식자에 있어 가장 널리 사용되는 패키지가 되었습니다.
+저자들은 이에 대해 매우 자랑스러움을 느끼고 있으며, 개선을 위해 고언을
+마다하지 않으신 사용자 여러분께 깊이 감사드립니다.
+
+2007년 이후, 텍 사용환경에는 극적이라 해도 좋을 만한 변화가 초래되었습니다.
+특히 \XeTeX 이나 \LuaTeX 과 같은 새로운 엔진이 등장하여,
+한글 식자 문제에 있어 결정적인 진보를 이룬 것은 특기할 만한 것입니다.
+\kotex 의 저자들은 이와 같은 텍 환경 변화에 발맞추어 \XeTeX-\ko, \LuaTeX-\ko와 같은 패키지를 개발하여 한글 사용을 더 쉽고 강력하게 만드는 데 헌신해왔습니다.
+
+이에 2013년에 접어든 지금, \kotex 을 전반적으로 정비하고 그 사용 설명서를
+작성하게 되었습니다. \kotex 은 더 발전할 것이고, 더 훌륭한 한글 문헌의
+조판을 가능하게 할 것입니다.
+
+이 문서가 조금이라도 도움이 되기를 바랍니다.
+
+\bigskip
+
+\hfill 2013년 9월
+
+\hfill (대표필자) 김강수 (識)
+
+\end{preamtexttwo}
+
+\begin{preamtext}
+\kotex 은 H\LaTeX 과 hangul-ucs가 결합하여 탄생한, 명실
+상부한 ``한국어(한글) 텍 시스템''입니다. ``한글 라텍(H\LaTeX)''은 1990년대 이후
+텍에서의 한글 사용에 \dotemph{사실상 표준}이었으며, hangul-ucs는
+한글 라텍의 현저한 영향 아래서 성장한 유니코드 한글 텍 매크로였던 것입니다.
+
+이제 한국텍학회(KTS)의 주도 아래, 한글 라텍과 hangul-ucs가
+하나의 매크로 시스템으로 통합된 것을 매우 기쁘게 생각합니다.
+이와 더불어 더욱 알차고 유용한 사용자 안내서를 작성하기 위해
+많은 노력을 하였습니다.
+
+한글 라텍의 표준 문서였던 ``한글 라텍 길잡이''(\wi{은광희})는 아마도 가장 많이
+읽힌 한글로 된 라텍 관련 문서 중 하나가 아닐까 합니다. 이 문서는 단순히 한글
+사용법을 넘어서서, 텍에 입문하는 데 있어서도 많은 도움을 주었습니다.
+
+이 문서는 한글 라텍 길잡이를 바탕으로 \kotex 에 맞도록 개정하여
+쓴 것입니다. 감사의 말과 머리말은 거의 그대로 보존하였으며, \kotex 이
+등장하는 경과를 설명하는 소절을 하나 추가하는 정도에 그쳤습니다.
+다만 문체의 일치를 유지하기 위하여 이 일러두기와 감사의 말을 제외하고는
+경어체를 평어체로 고쳐썼습니다. 또한
+사용법에 있어서 한글 라텍 이후의 여러 가지 발전 사항을 새로운 편제로
+서술하려 하였습니다. 지나치게 기술적인 서술을 피하고 실제 사용자에게
+구체적인 지침을 제공하는 데 이 문서의 목적이 있습니다.
+
+이 문서가 \kotex 을 사용하는 분에게 조금이라도 도움이 되기를 바랍니다.
+뜻하지 않은 잘못된 내용이나 실수, 빠진 내용, 오식을 바로잡아 주시면 더 나은
+사용자 안내서를 만드는 데 크게 도움이 될 것입니다.
+
+\bigskip
+\rightline{2007년 7월}
+\rightline{\wi{은광희} \wi{김도현} 김강수 (識)}
+
+\end{preamtext}
+
+\tableofcontents*
+
+
+\mainmatter
+\pagestyle{hangul}
+
+\part{총론}
+
+\chapter{\kotex 에 관하여}
+
+\section{\kotex 의 구성}
+
+\kotex\footnote{\kotex은 텍스트
+ 상황에서 \texttt{ko.TeX}이라고 쓰고 ``케이오텍'' 또는
+ ``코리언 텍''이라고 읽는다. ``코텍'' 또는 ``코텍스''라고
+ 읽지 않기를 희망한다.
+ \texttt{ko}는 한국어를 의미하는
+ 국제부호에서 취한 것이다. \texttt{ko}를 소문자로 쓴다.}%
+은 한국어/한글 식자를 위한 \TeX, \LaTeX\ 패키지군을 아울러 부르는 말이다.
+\wi{한국텍학회}(KTS; Korean \TeX\ Society)에서 공식적으로 개발을 후원하고 배포를 담당하고 있으며,
+주개발자인 \wi{김도현} 이외 많은 기여자들이 개발에 참여하고 있다.
+
+2013년 현재, \kotex 은 다음과 같은 패키지들을 총칭하는 것이다.
+\begin{enumerate}[(1)]
+\item \textbf{\kotex-utf}. 유니코드 (UTF-8) 한글
+식자 패키지로서, ``legacy \TeX\ 엔진'' ({\small \util{tex}, \util{latex}, \util{pdftex}, \util{pdflatex}을 실행하는 경우 운용되는 \TeX\ 엔진})에
+대응한다. \LaTeX 을 위한 \pkg{dhucs}와 \hologo{plainTeX}을 위한 \pkg{kotexplain}, 그 부수파일들로 이루어져 있다.\index{dhucs}
+\item \textbf{cjk-\ko}. Werner Lemberg의 \pkg{CJK} 패키지를 이용하여
+유니코드 한글을 식자하는 패키지이다. legacy \TeX\ 엔진에 대응한다.
+이 패키지는 그 기원과 동작이 \kotex 과는
+제법 다르게 출발하였지만 \kotex 의 몇 가지 중요한 기능\explpunc.자동조사 등.\ 을 구현하고 있는 등, 여러 면에서 \kotex 의 일부로 간주할 수 있다.
+\cmd{\usepackage\{kotex\}} 문법을 사용한다.
+\item \textbf{\XeTeX-\ko}. \XeTeX\ 엔진에 대응하는 한글 식자 패키지이다.
+\item \textbf{\LuaTeX-\ko}. \LuaTeX\ 엔진에 대응하는 한글 식자 패키지이다.
+\item \textbf{oblivoir}. \pkg{memoir} 클래스를 이용하여 한글 문서를 작성하도록 도와주는 클래스와 패키지 묶음이다.
+\item \textbf{\kotex\ utilities}. 한글 문서 작성에 필요한 유틸리티들이다.
+예를 들면 색인을 만들기 위한 \util{komkindex}와 \util{xindy modules} 등이 포함되어 있다.
+\end{enumerate}
+
+다음 패키지는 이전 버전까지 \kotex 에 포함되어 있던 것들이나, 2.0 버전에서
+제외되어 현재 ``개발 중단(obsolete)'' 상태로 간주되는 것들이다. 이 패키지들은
+편의를 위하여 현재까지 \kotex\ 저장소에서 서비스하고 있다.
+\begin{enumerate}[(1)]
+\item \textbf{kotex-euc}. EUC-KR 한글을 식자하는 패키지였다.
+\wi{은광희}의 H\LaTeX\ 1.0.1의 \LaTeX\ 파트를 바탕으로 약간의 수정을 가한 상태로
+\kotex\ 1.0에 포함되어 있었다.
+\item \textbf{untype1}.\index{은글꼴 type 1} 은글꼴 type 1 폰트 묶음이다. 역시 ``개발중단''
+상태이고 \kotex\ 2.0에서는 불필요하나 이 글꼴 묶음을 필요로 하는 분이 계실 것을 감안하여 당분간
+\kotex\ 저장소를 통하여 제공받을 수 있다.\footnote{참고로, 그동안 \kotex 은 편의를 위하여
+ 은글꼴 트루타입도 함께 배포해왔으나, 이것은 원래부터 \kotex 의 일부는 아니었고 단지
+ 은글꼴 트루타입을 기본 글꼴로 간주한 패키지가 존재했던 데서 연유한다.}
+%\item \textbf{kotex-euc-utils}. \pkg{kotex-euc} 패키지에 딸려 있는
+%유틸리티들이다. \util{hmakeindex}와 \util{hbibtex}으로 이루어져 있다.
+\end{enumerate}
+
+이밖에 \kotex 의 일부는 아니지만 이와 밀접한 관계를 갖고 있는 패키지는 다음과 같다.
+\begin{enumerate}[(1)]
+\item \textbf{nanumtype1}. CTAN에 등록되어 있는 (유니코드) 한글 type 1 글꼴이다. 패키지의 관리자는 \kotex 의 주개발자인 \wi{김도현}이다.
+\end{enumerate}
+
+%\begin{figure}
+%\centering
+%\includegraphics[width=.95\linewidth]{fig/whatkotexconsistof}
+%\caption{\protect\kotex 의 연혁과 구성}\label{fig:consistsof}
+%\end{figure}
+
+\section{간단한 연혁}
+
+\subsection{\protect\kotex 의 탄생 (2007)}
+
+\begin{figure}[t]
+\centering
+\includegraphics[width=\linewidth]{fig/histkotex}
+\caption{\protect\kotex 의 탄생}\label{fig:hist}
+\end{figure}
+
+그림~\ref{fig:hist}\는 H\LaTeX 에서 출발하여 \kotex 에 이르는
+한글 텍의 발전 과정을 요약한 것이다.
+
+2007년 6월 30일, 한국텍학회 모임에서, \wi{은광희}\cntrdot \wi{김도현}\cntrdot 김강수 등
+한글 라텍 및 hangul-ucs의 저자들과 KTS 임원\cntrdot 회원 등이 모인 자리에서
+이 두 한글 매크로 패키지를 통합하여 \wi{통합 한글 텍 패키지}를 제작하기로
+의견을 모은 것이다. 이것은 그동안 한글 사용에 있어서 둘 이상의 패키지가
+존재함으로 인해 빚어진 혼란을 불식하고 향후 한글 텍/라텍의 발전의
+근거를 마련했다는 점에서도 중요한 일보전진이었고, 한글 라텍으로부터
+오랜 시간 발전해 온 라텍에서의 한글 사용을 총체적으로 점검할 기회를
+얻게 되었다는 점에서도 의미가 있는 결정이었다.
+
+그로부터 일 개월 정도의 작업을 통하여 \kotex\ 베타 버전이 공개되었다.
+\kotex 은 Unicode/UTF-8 인코딩과 EUC-KR을 모두 지원하기로 하였으나
+원칙적으로 향후의 발전 방향은 Unicode로 합의하였다. 또한 \wi{은광희}의
+UHC 글꼴을 발전시킨 `은글꼴 type 1'을 기본 글꼴로 채택하고 이를
+EUC-KR 버전에도 적용시킴으로써, 폰트를 둘러싼 이런저런 불편한 점을
+일소하였으며, pdf 제작 및 매크로의 호환성과 안정성에 있어서
+몇 가지 중요한 진보를 이루었다.
+
+\subsection{그 후의 발전}
+
+\kotex 은 \TeX\,Live\index{TeX Live}에 대응하여 개발되기 시작하였다. 2008년부터
+\TeX\,Live의 사설 저장소를 만들고 이를 통하여 \kotex 을 배포해왔다.
+이 시기의 중요한 사실을 요약하면 다음과 같다.
+\begin{itemize}
+\item KTUG을 통해 이루어진 Hanyang PUA project의 결과, 고문헌
+조판에 필요한 유틸리티를 갖추게 되었다.
+\item \XeTeX-\ko와 \LuaTeX-\ko가 개발되었다.
+글꼴의 제약이 사라짐으로써 누리게 된 이점 때문에 사실상 \XeLaTeX 을
+한글 문헌 조판에서 본격적으로 사용하게 되었다. 이에 더하여 \pkg{oblivoir}의 \XeTeX 판인 \pkg{xoblivoir}가 별도로 개발되었다.
+\item \pkg{cjk-ko}, \pkg{nanumtype1}, \pkg{luatexko}, \pkg{xetexko}가 \TeX\,Live를 통해 배포되기 시작하였다.
+\end{itemize}
+
+현재 한글 문헌을 가장 안정적으로 조판할 수 있는 것은
+\XeTeX-\ko이다. \LuaTeX-\ko는 실험적인 성격이 강하고,
+레거시 텍을 위한 \kotex-utf는 하위호환성이나 특수한 상황\footnote{%
+ 모바일 기기에서 텍을 이용한다든가 하는 상황. 특히 \pkg{cjk-ko}는
+ 이러한 목적을 위하여 개발되었다.}%
+을 위하여
+필요로 하는 정도가 되었다.
+특히 유니코드 텍 엔진의 등장은 \kotex 을 개발하면서 직면했던 많은 고민들,
+예컨대 글꼴 사용의 문제 같은 것을 일소할 수 있게 하였다.
+
+\section{\kotex 의 로고}
+
+\kotex 의 로고는 다음과 같다.
+\begin{center}
+\LARGE\kotex
+\end{center}
+\begin{boxedverbatim}
+\newcommand*\koTeX{%
+ \textsf{k}\kern-0.0625em\textit{o}\kern-0.11em%
+ \lower.15ex\hbox{.}\kern-0.1em\protect\TeX}
+\end{boxedverbatim}
+이 로고는 \kotex 의 견고함과 아름다움, 그리고 유연한 표현능력을 상징한다.
+\pkg{kotex-logo} 패키지에 정의되어 있으므로 \cmd{\usepackage\{kotex-logo\}}를
+선언하면 \cmd{\koTeX} 명령을 쓸 수 있다.
+
+\section{개발자와 라이선스}
+
+\kotex 의 주개발자는 다음과 같다. 개발자는 LPPL의 maintainer를 겸한다.
+\begin{description}\tightlist
+\item [\kotex-utf] \wi{김도현}, 김강수 (LPPL, maintained)
+\item [\XeTeX-\ko] \wi{김도현} (LPPL, maintained)
+\item [\LuaTeX-\ko] \wi{김도현} (LPPL, maintained)
+\item [cjk-\ko] \wi{김도현} (GPL, LPPL)
+\item [oblivoir] 김강수, 이기황 (LPPL, maintained)
+\item [\kotex-euc] \wi{은광희}, \wi{김도현}, 김강수 (obsolete)
+\item [untype1]\index{은글꼴 type 1} \wi{은광희}, \wi{박원규}, \wi{김도현}, 김강수 (obsolete)
+\end{description}
+
+\pkg{untype1}과 \pkg{cjk-ko}의 일부 파일을 제외한 모든 패키지가 LPPL 라이선스를 가진다.\footnote{참고로, untype1은 GPL이다.}
+
+\chapter{사용법 개관}
+
+\section{kotex.sty}\label{sec:kotexsty}
+
+\kotex\ 전체를 통틀어 \pkg{kotex}이라는 패키지가 기본으로 불린다.
+이 패키지는 현재 동작하는 \TeX\ 엔진과 주어진 옵션에 따라 적절한
+\kotex\ 패키지를 불러오는 wrapper 역할을 한다.
+
+\begin{boxedverbatim}
+\usepackage[<options>]{kotex}
+\end{boxedverbatim}
+
+줄 수 있는 옵션은 실제 호출되는 한글 패키지의 기능과 동작에 따라 조금씩 다르지만, \option{hangul}
+옵션은 특기할 만하며, 문서의 줄 간격, `이름' 등을 한글화한다.
+\option{hanja}도
+이와 비슷한데, 기본적으로 \option{hangul}을 적용한 후에 캡션 등을
+한자화한다.
+이 두 옵션은 모든 \kotex\ 패키지군에 공통적으로 적용된다.
+
+\begin{table}
+\centering
+\caption{실제로 동작하는 \kotex\ 패키지}\label{tab:engines}
+\begin{tabular}{c|c|c}
+\hline
+\cmd{\usepackage} & 대응 엔진 & 동작하는 패키지 \\ \hline \hline
+\cmd{[cjk]\{kotex\}} & \pdfLaTeX & \pkg{cjkutf8-ko} \\ \hline
+\cmd{...\{kotex\}} & \pdfLaTeX & \pkg{dhucs} \\ \hline
+\cmd{...\{kotex\}} & \XeLaTeX & \pkg{xetexko} \\ \hline
+\cmd{...\{kotex\}} & \LuaLaTeX & \pkg{luatexko} \\
+\hline
+\end{tabular}
+\end{table}
+
+\tref{tab:engines}에서 보는 바와 같이 동일한 호출 명령을 주어도
+실제로 동작하는 한글 패키지가 어떤 것이냐 하는 것은 실행되는
+텍 엔진과 옵션에 따라 달라진다.\footnote{%
+ 이전까지 존재하던 \option{euc} 옵션은 \pkg{kotex-euc}를
+ 로드하도록 하는 것이었다. 하위 호환성을 위하여 이 옵션은 (이 문서에서는
+ 설명하지 않지만) 여전히 유지되고 있다.}
+
+\section{\protect\pdfLaTeX\ 또는 \LaTeX 으로 컴파일}
+
+\noindent\cmd{\usepackage[cjk]\{kotex\}}
+
+위와 같이 \option{cjk}가 주어지면 \pkg{cjk-ko} 패키지를 부른다.
+정확하게는 \pkg{cjkutf8-ko.sty}라는 파일을 불러온다.
+추가할 수 있는 동작은 \option{hangul}, \option{hanja},
+\option{nojosa}라는 공통 옵션 이외에 \option{usedotemph},
+\option{usecjkt1font}가 있다. 각각의 의미와 동작에 대해서는
+\Cref{chap:docu}에서 언급한 문서를 보라.
+
+\bigskip
+
+\noindent\cmd{\usepackage[utf]\{kotex\}}
+
+\pkg{dhucs.sty}를 찾는다. 이것이 기본값이며,
+이 문서의 제\,\ref{part:two}\,편에서 설명하는 것이 이 경우의
+문서 작성법이다.
+\XeTeX과 같은 새로운 엔진이 등장하기 전에
+\kotex 이라 하면 \pkg{dhucs}를
+통하여 \pdfLaTeX 으로 한글을 식자하는 것을
+일컫는 것이었다.
+기본값이므로 \option{utf}를 지정하지 않아도 된다.
+추가 옵션에 대해서는 이 문서의 해당 부분(제\,\ref{part:two}\,편)을 참고하라.
+
+\section{\XeLaTeX\ 또는 \LuaLaTeX 으로 컴파일}
+
+각각 \pkg{xetexko.sty}와 \pkg{luatexko.sty}를 찾는다.
+즉 \cmd{\usepacakge\{kotex\}}을 지정하는 것은 동일하지만
+\util{xelatex}으로 문서를 컴파일한다면 전혀 다른 패키지를 사용하는
+것인 셈이다.
+
+이 엔진과 패키지를 사용하는 것은 종래의 \pdfLaTeX 으로 작업하는 것과는
+몇몇 부분이 다르다. 따라서 해당 문서를 잘 읽고 이에 대응해야 한다.
+그러나 \option{hangul}, \option{hanja} 옵션은 여전히
+비슷한 의미로 동작한다.
+
+\section{엔진별 동작의 예시}
+
+어떤 문서를 작성하였고, 어떤 엔진으로 컴파일될지 모르는 상황이라면
+되도록 호환성있게 원본 자체를 작성하면 좋을 것이다.
+이럴 때 요긴하게 쓸 수 있는 패키지로 \pkg{iftex}이 있다.
+다음 보기는 이러한 상황에 대응하는 한 가지 예이다. (cjk-\ko를 이용하는
+경우는 예시에서 제외되었다.)
+
+\begin{boxedverbatim}
+\documentclass{article}
+
+\usepackage[hangul]{kotex}
+
+\usepackage{iftex}
+\ifPDFTeX
+ \usepackage{dhucs-nanumfont}
+\else\ifXeTeX
+ \setmainhangulfont{NanumMyeongjo}
+\else\ifLuaTeX
+ \setmainhangulfont{NanumMyeongjo}
+\fi\fi\fi
+\end{boxedverbatim}
+
+\section{pdf 문서 작성을 위한 설정}\label{sec:makepdf}
+
+\subsection{Legacy \TeX}
+
+\paragraph{pdf bookmark}
+
+\pkg{hyperref}에
+\option{unicode} 옵션을 지정하는 것으로 pdf bookmark 문제가
+모두 해결된다.
+\begin{verbatim}
+\usepackage{kotex}
+\usepackage{ifpdf}
+\usepackage{pdftex,unicode,bookmarks]{hyperref}
+\end{verbatim}
+여기서는 \option{unicode} 옵션이 반드시 지정되어야 한다.
+\option{pdftex}은 컴파일 상황에 따라 \option{dvipdfmx}
+또는 \option{dvips}를
+지정할 수 있다.
+
+위의 예에 상당하는 컴파일 절차 예시는 다음과 같다.
+\begin{verbatim}
+$ (pdf)latex foo
+$ (pdf)latex foo
+$ (dvipdfmx foo)
+\end{verbatim}
+
+\paragraph{텍스트 검색과 추출}
+pdf 문서의 텍스트 검색과 추출은 매우 중요한 문제이다.
+이것은 어떤 드라이버로 pdf를 생성하느냐에 따라 조금 달라지는데, 일괄
+요약하면 다음과 같다.
+\begin{description}
+\item[dvipdfmx] type 1 글꼴을 매우 잘 처리하고
+이로부터 검색 및 추출이 가능한 pdf를 만들어낸다. 별도의 조치가
+필요없다.
+\item[dvips] 트루타입을 처리하지 못하는 점 때문에 이전부터
+문제가 있다고 생각되었으나 type 1 폰트를 사용하는 한
+검색 추출에 문제는 없다. 역시 별도의 조치가 필요없다.
+\item[pdftex] 이때는 \cmd{\pdfgentounicode}를
+활성화해주어야 한다.
+\end{description}
+그러므로 \wi{전처리부}(preamble)\explpunc.\cmd{\begin\{document\}} 명령이 놓이기 전.\ 에 다음과 같이 선언하는 것으로 충분하다.
+\begin{verbatim}
+\ifpdf
+ \input glyphtounicode
+ \pdfgentounicode=1
+\fi
+\end{verbatim}
+
+어떤 드라이버를 사용하든 모두 포스트스크립트 윤곽선 글꼴이 사용되고,
+pdf 북마크가 잘 만들어지며 한글 텍스트의 검색과 추출이 자유롭다.
+
+\paragraph{oblivoir}
+\pkg{oblivoir}는 위의 절차를 모두 자동화해두었다.
+
+\subsection{\LuaTeX, \XeTeX}
+
+이 엔진을 사용하는 경우, 기본 output이 pdf 포맷이다.
+pdf bookmark의 경우만이 문제가 되는데, \pkg{hyperref}을 사용할 때
+\begin{itemize}
+\item \XeTeX: \option{unicode}를 지정하지 않는다.
+\item \LuaTeX: \option{unicode}를 지정한다.
+\end{itemize}
+는 사실만을 기억하면 될 것이다.
+물론 \pkg{oblivoir}라면 이 모두가 자동화되어 있다.
+
+\chapter{문서와 도움말}\label{chap:docu}
+
+이 문서는 \kotex\ 전반에 대한 개괄적 사항을 언급하는 것과 더불어
+\kotex-utf 설명서(제\,\ref{part:two}\,편)를 겸한다. \kotex-utf 이외의 패키지,
+\XeTeX-\ko나 \LuaTeX-\ko의 경우 별도의 사용안내서가 마련되어 있다.
+그러므로 사용법에 대한 안내를 얻으려면 각 패키지별 문서들을 참조하여야 한다.
+문서를 읽을 때는 \TeX\,Live 유틸리티 \util{texdoc}을 이용한다.
+이 문서 자체는 명령행에서 \cmd{texdoc kotex}으로 읽을 수 있다.
+
+\begin{description}
+\item [cjk-ko] cjk-ko-doc 문서를 찾아 읽는다. 명령행에서 \cmd{texdoc cjk-ko} 명령을 내리면 읽을 수 있다.
+\item [\XeTeX-\ko] xetexko-doc 문서를 찾아 읽는다. 명령행에서 \cmd{texdoc xetexko} 명령을 내리면 읽을 수 있다.
+\item [\LuaTeX-\ko] luatexko-doc 문서를 찾아 읽는다. 명령행에서 \cmd{texdoc luatexko} 명령을 내리면 읽을 수 있다.
+\item [oblivoir] memoir 안내서를 보아야 한다. 이것은
+\cmd{texdoc memman} 명령으로 읽을 수 있다.. 한편, 한글화 부분에 대한 사항을 참고하려면 \cmd{texdoc ultrasimple} 명령으로 볼 수 있는 문서와 \cmd{texdoc memucs-manual}으로 볼 수 있는 문서를 함께 참고한다.
+\end{description}
+
+%2.0 버전에서 제외된 패키지들을 굳이 사용할 필요가 있을 때,
+\kotex-euc와 \pkg{untype1}의
+사용법을 알려면 다음 문서를 참고하라.
+
+\begin{description}
+\item [kotexguide] \kotex\ 0.1.0 사용자 설명서이다.
+특히 \kotex-euc\index{Packages!kotex-euc}와 \pkg{untype1}\index{은글꼴 type 1}에 관한 방대한 사용 설명이 존재한다.
+\pkg{kotex-euc}를 설치하면 포함되어 있다.
+\end{description}
+
+
+\chapter{배포와 설치}
+
+\section{배포 방식}
+현재 \kotex 의 배포 방식은 크게 두 가지로 구분되어 있다.
+\begin{enumerate}[(1)]
+\item \wi{CTAN}\footnote{\url{http://ctan.tug.org}}에 등재
+\item \kotex\ 사설 저장소\footnote{\url{http://ftp.ktug.org/KTUG/texlive}}를 통하여 배포
+\end{enumerate}
+
+2013년 11월 현재, \kotex\ 패키지군은 거의 모두
+CTAN에 등재되었다. CTAN을 통해 배포되는 패키지는 다음과 같다:
+\begin{quote}
+\pkg{kotex-utf}, \pkg{xetex-ko}, \pkg{luatex-ko},
+\pkg{cjk-ko}, \pkg{kotex-oblivoir}, \pkg{kotex-utils},
+\pkg{kotex-plain}
+\end{quote}
+
+이 가운데, \pkg{kotex-plain}, \pkg{cjk-ko}, \pkg{xetex-ko},
+\pkg{kotex-utf}는 서로 필요로 하는 파일이 의존되어 있어 함께
+설치하는 것이 좋다. \pkg{luatex-ko}에서도 \pkg{xetex-ko}에서
+필요한 파일을 찾을 때가 있다.
+
+\hologo{pdfLaTeX}을 사용하려면 (다른 폰트를 설치하지 않은 경우) \pkg{nanumtype1}이 필요하다. 이 역시
+CTAN을 통해 배포된다.
+
+%\kotex\ 패키지군 가운데 2013년 11월 현재 CTAN에 등재되어 있는 것은
+%\pkg{cjk-ko}, \pkg{xetexko}, \pkg{luatexko}, 세 종류이다.
+%이들은 \TeX\,Live\index{TeX Live} 배포판에도 포함되어 있다.
+%\pkg{nanumtype1} 패키지 역시 그러하다.
+
+%\kotex\ 사설 저장소에는 이보다 많은 패키지가 서비스되고 있다. \kotex-utf의
+%매크로와 유틸리티도
+%이곳에서 배포된다.\footnote{%
+% 멀지 않은 장래에 \pkg{dhucs}, 즉 \kotex-utf도 CTAN을 통하여 배포될 전망이다.}
+
+현재 사설 저장소에서 서비스되는 패키지는 \pkg{kotex-base}, \pkg{kotex-extra}, \pkg{jiwonlipsum}, \pkg{kotex-midkor}, \pkg{kotex-euc}인데 필수적인 패키지는 모두 CTAN으로 올라갔고 \kotex 의 기능을
+확장하는 보충적인 패키지들이 사설 저장소를 통하여 제공되고 있다.
+
+CTAN에 등재된 패키지들은 \TeX\,Live, MiK\TeX\ 등의 텍 배포판에
+포함될 수 있다. 따라서 \TeX\,Live를 설치한 경우 별도의 추가 작업 없이도
+\kotex\ 관련 패키지를 설치 운영할 수 있게 되는 것이다.
+
+\section{\kotex\ 사설 저장소의 이용 방법}
+
+\kotex\ 사설 저장소는\index{ko.TeX repository} \TeX\,Live의 \util{tlmgr} 유틸리티를 통하여
+간단히 등록하고 관리할 수 있다.
+먼저 다음 명령을 내리면 저장소가 등록된다.
+\begin{verbatim}
+$ tlmgr repository add http://ftp.ktug.org/KTUG/texlive/2013 kotex
+\end{verbatim}
+이제 이 저장소를 이용하기 위하여 \TeX\,Live의 texmf 트리 아래의 \file{tlpkg} 디렉터리에
+\begin{boxedverbatim}
+kotex:*
+\end{boxedverbatim}
+이라는 내용을 갖는 \file{pinning.txt} 파일을 만들고
+\begin{verbatim}
+$ tlmgr install collection-kotex
+\end{verbatim}
+명령을 통하여 \kotex\ 패키지를 설치할 수 있다.
+
+\bigskip
+
+사설 저장소는 파일들을 몇 가지 ``설치용'' 패키지로 나누어서 제공한다.\footnote{%
+ 여기서 `패키지'란 \LaTeX\ 매크로 패키지를 가리키는 것이 아니라
+ 저장소에서 파일을 구분하는 단위를 말한다.}
+\begin{description} \tightlist
+%\item [\texttt{collection-kotex}] 중요한 설치 패키지를 한꺼번에 관리하기 위한
+%메타패키지이다. 여기에는 \file{kotex}, \file{kotex-utils}, \file{jiwonlipsum},
+%\file{kotex-dev}가 포함된다.
+%\item [\texttt{kotex}] \pkg{dhucs} 관련 파일의 묶음이다.
+%\item [\texttt{kotex-dev}] \pkg{oblivoir} 관련 파일 묶음이다.
+%\item [\texttt{kotex-utils}] \kotex 이 제공하는 유틸리티 프로그램과 스타일 패키지를 포함한다.
+\item [\texttt{kotex-midkor}] 옛한글 식자에 필요한 패키지와 폰트 묶음이다.
+\item [\texttt{kotex-base}] 은글꼴 type 1과 트루타입이다. kotex-base라는 이름은 종래 은글꼴이 \kotex 의 기본 글꼴이었던 데서 연유한다. 이 명칭은 지금 형편에 맞지 않으므로 추후 개명될 전망이다. 은바탕, 은돋움, 은그래픽, 은타자 글꼴이 포함되어 있다.
+\item [\texttt{kotex-extra}] 은글꼴 type 1과 트루타입으로 base에 포함되지 않은 것들이다.
+\item [\texttt{jiwonlipsum}] lipsum의 한글화 버전이다.
+\item [\texttt{kotex-euc}] 이전 버전 \kotex 의 euc-kr 한글 식자 관련 파트이다. 이 패키지를 사용하려면 \pkg{kotex-base}가 필요하다.
+\end{description}
+
+%다음 설치 패키지들도 함께 제공한다.
+%\begin{description} \tightlist
+%\item [\texttt{kotex-euc}] \pkg{kotex-euc}와 \pkg{kotexguide} 등 이전 버전에
+%포함되어 있던 파트를 서비스한다.
+%\item [\texttt{kotex-base}] \pkg{untype1}이다. 이름이 kotex-base로 되어 있는 것은
+%예전 버전에서 은글꼴 type 1이 기본 글꼴이었던 데서 유래한다. 이 명칭은 지금 형편에 맞지 않으므로
+%추후 개명될 전망이다.
+%은바탕, 은돋움, 은그래픽, 은타자 글꼴이 포함된다.
+%\item [\texttt{kotex-extra}] \pkg{untype1}의 extra 부분이다.
+%\end{description}
+
+이들 각각을 자신의 \TeX\,Live 시스템에 설치하려면
+\begin{verbatim}
+$ tlmgr install kotex-midkor
+\end{verbatim}
+와 같은 방식의 명령을 내리면 된다.
+
+\section{\kotex\,Live}\index{ko.TeX Live}
+
+\wi{한국텍학회}와 \wi{KTUG}에서는 텍 시스템과 \kotex\ 설치와 운영에 곤란을 겪는
+\wi{윈도우즈 운영체제} 사용자를 위하여 \TeX\,Live와 \kotex 을 한번에
+설치할 수 있게 도와주는 설치 프로그램 \kotex\,Live를 제공하고 있다.\index{ko.TeX Live}
+
+저장소의 등록, 관리와 같은 번거로운 절차를 자동화하였고 한글 문서 작성에
+필요한 도구와 예제를 제공한다. 윈도우즈 상에서 \kotex 을 설치하는 가장 손쉬운 방법이다.
+
+이에 대한 자세한 사항은 KTUG\footnote{\url{http://www.ktug.org}}을
+방문하여 정보를 얻을 수 있다.
+
+\section{\TeX\,Live 이외의 텍 배포판의 경우}
+
+예컨대 윈도우즈의 MiK\TeX 과 같은 배포판이라면, 적어도 CTAN에 등재된
+패키지는 설치가 가능하다. 즉 현재 \pkg{cjk-ko}, \pkg{xetex-ko}, \pkg{luatex-ko}, \pkg{kotex-utf}, \pkg{kotex-plain}, \pkg{kotex-oblivoir}
+MiK\TeX 의 패키지매니저를 이용하여 설치 운용할 수 있다.\index{MiKTeX}
+
+\util{tlmgr}이 없는 텍 배포판이라도 \TeX\,Live를 바탕으로 하고 있다면 마찬가지로 \kotex 을 운용하는 것이
+가능할 것이다. 적어도 \file{collection-langcjk}라는 콜렉션 패키지를 설치하면 된다.
+
+그 이외의 경우에는 앞서 언급한 \kotex\ 패키지 저장소를 직접 방문하여 자신의 시스템에
+설치할 수 있다. 이 문제에 대해서 이 글에서는 더 다루지 않겠다.
+
+\part{\kotex-utf 사용설명}\label{part:two}
+
+\chapter{유니코드 문서 작성하기}
+
+\section{개관}
+
+\kotex-utf는 \wi{UTF-8} \wi{유니코드}로 입력되는 한글을 \LaTeX\ 문서에서
+식자하고 조판하게 하려는 스타일 패키지로서, 그 핵심 부분인 \pkg{dhucs}를
+\wi{김도현}이 작성하였다.
+
+\section{첫번째 문서}
+\subsection{간단한 문서 작성}
+그림~\ref{fig:firstdoc}\과 같은 간단한 문서를 작성해보자.
+\begin{figure}[tbp]
+\begin{Verbatim}[fontsize=\small,numbers=left]
+\documentclass{article}
+
+\usepackage[hangul,nonfrench,finemath]{kotex}
+\usepackage{dhucs-nanumfont}
+
+\usepackage{ifpdf}
+\ifpdf
+ \usepackage[unicode,pdftex,colorlinks]{hyperref}
+ \input glyphtounicode \pdfgentounicode=1
+\else
+ \usepackage[unicode,dvipdfmx,colorlinks]{hyperref}
+\fi
+
+\begin{document}
+
+\section{들어가기}
+처음 문서를 작성합니다.
+
+\end{document}
+\end{Verbatim}
+\caption{첫번째 문서, 예제}\label{fig:firstdoc}
+\end{figure}
+
+제3행에서 \texttt{kotex} 패키지를 \cmd{\usepackage}한다.
+\kotex 의 모든 패키지는 이 wapper를 통하여 호출된다.
+\pdfLaTeX 이 실행되고 \option{cjk}나 \option{euc}같은
+옵션이 없으면 이 스타일은 \pkg{dhucs}를 부른다.
+(\pageref{sec:kotexsty}페이지 \ref{sec:kotexsty}절을 보라.)
+%또한 대부분의 contrib 패키지의 명칭은
+%\texttt{dhucs-}로 시작한다.
+
+제8행 이후에서 \pkg{hyperref}\을 로드한다. 반드시
+\option{unicode} 옵션을 주어야 한다.
+\wi{bookmarks} 설정은 \pkg{hyperref}의 default이므로 별도로 지정하지 않아도
+책갈피가 만들어진다. 만약 책갈피를 만들지 않고자 한다면
+옵션에서 \verb|bookmarks=false|라고 한다.
+\cmd{\hypersetup} 명령을
+이용해서 설정값을 추가할 수도 있다.
+%\footnote{%
+% hangul-ucs 4.0 이전 버전에서는 \texttt{dhucs-ucshyper}라는
+% 부가 패키지가 제공되었으나, hyperref의 기능 향상에
+% 따라 불필요해졌으므로 \kotex 에서는 이 부가 패키지를 제공하지
+% 않는다.}
+
+제7행 이후의 \verb|\ifpdf .. \else .. \fi| 구문은 pdf\LaTeX 의
+실행 여부에 따라 서로 다른 설정을 하는 부분이다. 이 구문을
+사용하려면 \pkg{ifpdf}\가 필요하다.
+주로 컴파일 루트가 \util{pdflatex}으로부터 직접 \file{pdf}를 얻는
+것이 아니라 \util{dvipdfmx}를 이용하여 \file{dvi}를 \file{pdf} 변환하는
+방식으로 작업할 때를 위하여 이런 구문을 쓴다.
+
+제9행은 pdf\LaTeX 에서 텍스트의 검색\cntrdot 추출을 가능하게
+하는 행이다.
+%DVIPDFM$x$를 위해서는 별도의 설정이 필요없다.
+
+%제4행부터 제8행까지는 반드시 필요한 경우가 아니면 꼭 지정하지 않아도 상관없다.
+%각 (부가) 패키지의 작용 등은 이 문서를 읽으면 알 수 있다.
+%제5행은 \pkg{dhucs-interword}\를 로드했기 때문에 선언한
+%것으로서 이에 관련된 문제는 \pageref{sec:interword} 페이지의
+%\ref{sec:interword}절에 설명되어 있다.
+
+이 내용을 \file{firsttest.tex}이라는 이름으로 저장한다.
+
+\subsection{컴파일}
+
+이 문서를 \wi{컴파일}하려면 \wi{명령행}에서 다음과 같이 한다.
+\begin{Verbatim}[fontsize=\small]
+$ pdflatex firsttest
+\end{Verbatim}
+
+또는 (선택한 작업 루트에 따라서) \util{latex}으로 얻어진 \file{.dvi}에 대하여 \util{dvipdfmx}를
+실행한다.
+\begin{Verbatim}[fontsize=\small]
+$ latex firsttest
+$ dvipdfmx firsttest
+\end{Verbatim}
+
+\subsection{옵션들}
+\kotex-utf가 제공하는 옵션은 다음과 같다.
+\begin{description}
+\item[\texttt{hangul}]
+한글 문서 서식을 설정한다. \wi{장과 절 포맷}은 ``제 1 장''과 같은 형태로
+식자된다. 기본값은 한글 문서 서식을 설정하지 않는 것이다.
+\item[\texttt{nojosa}]
+자동조사 기능을 끈다. dhucs 초기 버전에서 다른 패키지와의 호환을
+위하여 제공되었던 것이지만 현재는 굳이 이 옵션을 사용해야 할 필요가
+거의 없다. 그러나 옵션으로서는 유지되고 있다.
+\item[\texttt{hanja}]
+한글 문서 서식을 설정하는 것은 \texttt{hangul} 옵션과 같으나,
+한글 이름 대신 한자 이름을 사용한다.
+\item[\texttt{nonfrench}]
+한글 문장에 대해서도 non-french-spacing을 적용한다. 즉, 마침표 등의
+뒤의 공백이 다른 공백보다 조금 더 길다. 기본값은 \wi{french-spacing}으로
+식자하는 것이다.
+\item[\texttt{finemath}]
+원래는 문장 중의 수학 식과 이어지는
+한글 사이에 적절한(fine) 간격을 부여하기 위한 것이었으나, 곧
+문장부호 등을 포함한 개념으로 확대되었다.
+\item[\texttt{strictcharcheck}]
+한글 폰트 가운데 \file{.tfm}은 있으나 해당 문자가 결락되어 있는
+것이 있다. 이럴 경우에 에러를 보여주도록 하는 옵션이다. 이 옵션을
+지시하지 않으면 문자가 없어서 식자하지 못한 것을 \file{.log}에 기록만
+하고 에러는 발생시키지 않는다.
+\end{description}
+
+\section{몇 가지 한글화}
+
+\subsection{기호문자 처리}
+기호문자 중 일부에 대해서는 미리 식자방법을 정의해두었다.
+½, ¼, ‥ 등의 문자와 같은 몇 가지 한글 기호문자는 \texttt{[hangul]} 옵션을
+준 경우에 식자할 수 있다.
+
+참고로 한글 기호문자에 \euro 가 있지만 이것은
+\pkg{eurofont} 또는 \pkg{eurosym} 패키지를 사용하여
+\cmd{\euro}와 같이 입력하는 편이 좋다.
+
+\begin{table}
+\centering
+\begin{tabular}{cccccccccc}
+\hline
+자판 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\ \hline
+ㄱ &  & !& '&,&.&/&:&;&?\\
+ & ^&_&`&|& ̄&、&。&·&‥ \\
+ & …&¨&〃&­&―&∥&\&∼&´ \\
+ & ~&ˇ&˘&˝&˚&˙&¸& ˛ & ¡ \\
+ & ¿ & Ð \\ \hline
+ㄴ & "&(&)&[&]&{&}&‘ & ’\\
+ &“&”&〔&〕&〈&〉&《&》&「 \\
+ &」&『&』&【&】 \\ \hline
+ㄷ &+&-&<&=&>&±&×&÷&≠ \\
+ &≤&≥&∞&∴&♂&♀&∠&⊥& ⌒\\
+ &∂&∇&≡&≒&≪&≫&√&∽&∝\\
+ &∵&∫&∬&∈&∋&⊆&⊇&⊂&⊃\\
+ &∪&∩&∧&∨&¬&⇒&⇔&∀&∃\\
+ &∮&∑&∏\\ \hline
+ㄹ & $ & % & ₩ & F & ′ & ″ & ℃ & Å & ¢ \\
+ & £ & ¥ & ¤ & ℉ & ‰ & \euro & ㎕ & ㎖ & ㎗ \\
+ &ℓ&㎘&㏄&㎣&㎤&㎥&㎦&㎙&㎚\\
+ &㎛&㎜&㎝&㎞&㎟&㎠&㎡&㎢&㏊\\
+ &㎍&㎎&㎏&㏏&㎈&㎉&㏈&㎧&㎨\\
+ &㎰&㎱&㎲&㎳&㎴&㎵&㎶&㎷&㎸\\
+ &㎹&㎀&㎁&㎂&㎃&㎄&㎺&㎻&㎼\\
+ &㎽&㎾&㎿&㎐&㎑&㎒&㎓&㎔&Ω\\
+ &㏀&㏁&㎊&㎋&㎌&㏖&㏅&㎭&㎮\\
+ &㎯&㏛&㎩&㎪&㎫&㎬&㏝&㏐&㏓\\
+ &㏃&㏉&㏜&㏆ \\ \hline
+ㅁ &#&&&*&@&§&※&☆&★&○\\
+ &●&◎&◇&◆&□&■&△&▲&▽\\
+ &▼&→&←&↑&↓&↔&〓&◁&◀\\
+ &▷&▶&♤&♠&♡&♥&♧&♣&⊙\\
+ &◈&▣&◐&◑&▒&▤&▥&▨&▧\\
+ &▦&▩&♨&☏&☎&☜&☞&¶&†\\
+ &‡&↕&↗&↙&↖&↘&♭&♩&♪\\
+ &♬&㉿&㈜&№&㏇&™&㏂&㏘&℡\\
+ &®&ª&º \\ \hline
+\end{tabular}
+\caption{Windows 특수문자 입력방식에 의한 특수문자}\label{tab:symbols}
+\end{table}
+
+\wi{윈도우즈} 기본 \wi{한글 입력기}에서 \wi{특수문자}를 입력하는 방법은 `ㄱ', `ㄴ' 등의 키를
+누른 다음 \texttt{[한자]} 키를 눌러서 선택하는 것이다. 이 방법으로 입력되는
+특수문자의 예를 표~\ref{tab:symbols}에서 보였다.\footnote{%
+ \texttt{\textbackslash DeclareUnicodeCharacter} 명령을 이용하여
+ ucs의 문자 설정을 변경하는 방법도 있다.}
+`ㅎ' 행에는 그리스 문자가 할당되어 있다. 텍스트 그리스 문자는
+현재 본문 기본 한자 글꼴에 있는 것으로 식자되는데, 만약 더 나은
+텍스트 그리스 문자가 필요하다면 \pkg{babel}\을 이용하여 입력하도록 한다.
+아무 옵션 없이 해보면 이러하다: Τεχνη.
+%ή.
+
+기호 문자의 직접 입력과 처리가 가능하기는 하지만, 적어도 legacy \TeX 으로 작업한다면
+이 기호 문자를 문서에서 바로 입력하여 사용하는 것을 권장하지 않는다.
+기호 문자를 써야 할 경우에는 알맞은 \LaTeX 의 기호 문자 명령으로
+얻도록 하는 편이 낫다.
+
+\subsection{우리말 이름}
+\label{sec:names}\index{우리말 이름}
+
+한글 문서는 외국어 문서와는 달리 몇 가지 보조적 \wi{서식}을
+가지고 있다. \wi{장절 명령}이 별도로 짜여져야 하고, \wi{행간}이나
+\wi{단어 간격}도 적절하게 배치되어야 한다.
+이를 위하여 이 패키지는 \option{hangul} 패키지 옵션을 제공한다.
+이 옵션이 지시되면 한글 이름, 한글 장절표제 등을 활성화하고
+행간을 한글에 알맞게 설정한다.
+또한, \wi{장절 명령}과 관련해서 %\kotex/euc와 동일한
+\cmd{\kscntformat} 명령이 작동한다.
+\wi{한글 이름}과 관련해서 \cmd{\ksnamedef} 명령도 작동한다.
+%이 명령의 의미와 사용법에 대해서는 \pageref{sec:names} 페이지의
+%\ref{sec:names}절을 보라.
+
+%\pageref{tab:names} 페이지 표 \ref{tab:names}\를 참고하라.
+
+한글 문서에서 사용되는 각종 이름들을 일률적으로
+\cmd{\ksnamedef} 매크로에 의해 변경될 수 있도록
+하였다.
+이러한 ``한글 이름''을 사용하려면 \option{hangul} 옵션을
+지정하여야 한다.
+
+예를 들어, 라텍에서
+사용되는 `\refname{}'의 이름 `Reference'는 \cmd{\refname}에 지정되어
+있다. 이를 우리말화 하는 방법은 다음과 같다.
+\begin{verbatim}
+ \ksnamedef{refname}{참고~문헌}
+\end{verbatim}
+
+%\texttt{[hangul]} 옵션을 준 경우 이 명령을 사용할 수 있다.
+
+표~\ref{tab:names}에는 한글 라텍에서 한글화한 ``라텍 이름의 한글 및
+한자화''가 나열되어 있다. 이 한글화는 \wi{전처리부}(preamble)에서
+위에 예를 든 것처럼
+\cmd{\ksnamedef}로 재정의하면 원하는대로 변경된다.
+
+\begin{table}[htbp]
+ \leavevmode
+ \centering
+ \begin{tabular}{l|l|l}\hline
+ \multicolumn{1}{c|}{라텍명령} & \multicolumn{1}{c|}{한글 라텍(한글)} & \multicolumn{1}{c}{한글 라텍(漢字)} \\\hline\hline
+ \texttt{today} & 1994년 3월 6일 & 1994年 3月 6日 \\\hline
+ \texttt{enclname} & 동봉물 & 同封物 \\\hline
+ \texttt{ccname} & 사본 & 寫本 \\\hline
+ \texttt{headtoname} & 받는이 & 受信人 \\\hline
+ \texttt{seename} & \verb+\+을 참고 & \verb+\+을 參考 \\\hline
+ \texttt{contentsname} & 차\~{}례 & 目\~{}次 \\\hline
+\texttt{listfigurename} & 그림\~{}차례 & 그림\~{}目次 \\\hline
+ \texttt{listtablename} & 표\~{}차례 & 表\~{}目次 \\\hline
+ \texttt{refname} & 참고\~{}문헌 & 參考\~{}文獻 \\\hline
+ \texttt{indexname} & 찾아보기 & 索\~{}引 \\\hline
+ \texttt{tablename} & 표 & 表 \\\hline
+ \texttt{abstractname} & 요\~{}약 & 要\~{}約 \\\hline
+ \texttt{bibname} & 참고\~{}문헌 & 參考\~{}文獻 \\\hline
+ \texttt{appendixname} & 부록 & 附錄 \\\hline
+ \texttt{ksTHE} & 제 & 第 \\\hline
+ \texttt{partname} & 편 & 篇 \\\hline
+ \texttt{chaptername} & 장 & 章 \\\hline
+ \texttt{sectionname} & 절 & 節 \\\hline
+ \texttt{colorlayer} & 환등판\~{}색깔 & 幻燈版\~{}色相 \\\hline
+ \texttt{glossaryname} & 용어집 & 語\~{}彙 \\\hline
+ \texttt{pagename} & 페이지 & 쪽 \\\hline
+ \texttt{figurename} & 그림 & 그림 \\\hline
+ \end{tabular}
+ \caption{라텍 이름의 한글 및 한자화}
+ \label{tab:names}
+\end{table}
+
+
+\subsection{장절명령}
+article 문서에서 한글 서식을 사용하면서 장절 표제의 ``제 1 절''과 같은 양식을
+쓰지 않으려면 다음과 같이 설정하는 것이 일반적이다. 이 매크로는 \thispkg 에
+\texttt{[hangul]} 옵션을 지정한 경우에만 쓸 수 있다.
+\begin{verbatim}
+\kscntformat{section}{}{}
+\end{verbatim}
+
+이 명령의 사용법은 다음과 같다.
+\begin{verbatim}
+ \kscntformat{단원이름}{앞}{뒤}
+\end{verbatim}
+예를 들어 \texttt{\textbackslash chapter}를 ``첫째 마당''과 같은 식으로
+짜기 위해서는 전처리부(preamble)에서 다음과
+같이 지정한다.
+\begin{verbatim}
+ \renewcommand{\thechapter}{\Hnum{chapter}}
+ \ksnamedef{chaptername}{마당}
+ \kscntformat{chapter}{}{~\chaptername}
+\end{verbatim}
+
+
+장절 표제 형식을 설정하기 위해서
+\thispkg\와 함께 제공되는 \pkg{dhucs-sectsty}를 사용하는 방법도 있다.
+이 부가 패키지의 사용법에 대해서는 \pageref{sec:sectsty}페이지의
+\ref{sec:sectsty}절을 보라. 이를 이용하여 다음과 같이 절표제 모양을 바꿀 수 있다.
+\begin{verbatim}
+\usepackage{dhucs-sectsty}
+\sectionfont{\nohang\sffamily\centering}
+\end{verbatim}
+
+%다음 소절을 이런 방식으로 바꾸어보았다.
+
+\subsection{강조}\index{강조}\label{sec:emphasis}
+
+한글 문서에서 \wi{강조}(드러냄)를 처리하는 방법은 몇 가지가 있다.
+
+\ungremph
+\subsubsection{\protect\textit{기울인 글자체} 강조}\index{강조!기울인 글꼴}
+
+\wi{강조}(emph) 선언 \verb|\em|이나 명령 \verb|\emph|는 일반적으로
+\wi{이탤릭 글자}로 식자하는 것이 라틴 문자를 쓰는 문서의 관행이다. 우리 글자에는
+\emph{이탤릭\/}이 없어서, 종래에는 가상 기울임(\wi{fake slanted}) 글꼴을 사용하여 왔다.
+그러나 가상 기울임 글자체는 (트루타입 글꼴을 사용했을 때) pdf\LaTeX 이 지원하지 않을 뿐 아니라,
+설령 구현된다 하더라도 강조의 의미는 별로 드러나지 않는
+장식적인 문자꼴이 되어버리고 만다.
+\kotex-utf는 H\LaTeX\ 이래의 전통을 감안하여 \emph{기울인 글자체} 강조
+방식을 기본값으로 채택하고 있다.
+
+\regremph
+
+\subsubsection{\protect\emph{글꼴 변경} 강조}\index{강조!글꼴 변경}
+
+강조 부분이 두드러지게 하기 위해 \emph{돋움체 글꼴}을 사용하는 것이 하나의 관례가 되어 가고
+있다. h\LaTeX{p}는 여기에 그래픽 글꼴을 사용하였는데, 이것도
+시각적으로 두드러지기만 한다면 나쁘지 않은 선택이라고 생각한다.\footnote{%
+ 그래픽 글꼴은 사용자가 별도로 설치하여야 한다.
+ 은글꼴 type 1에 은그래픽 서체가 포함되어 있으므로 이를
+ 이용하는 방법도 있다. 그러나 이를 위하여 방대한 폰트 집합을
+ 모두 설치하는 것은 낭비일 것이다. 현재 \pkg{dhucs-gremph}의 기본값은
+ 단순히 \cmd{\sffamily}로 식자하는 것이다.}
+
+이 기능을 사용하려면 \pkg{dhucs-gremph}를 로드한다.
+\begin{verbatim}
+\usepackage{dhucs-gremph}
+\end{verbatim}
+
+기울인 글자체 강조 방식과 글꼴 변경 강조 방식에 관한 더 자세한 사항은
+\pkg{dhucs-gremph}에 대해 설명하는 \pageref{sec:gremph}페이지 \ref{sec:gremph}절을
+참조하라.
+
+\subsubsection{\protect\dotemph{드러냄표} 강조}\index{강조!방점}
+
+\bnm{한글맞춤법}의 부록 「문장부호」에 \dotemph{드러냄표}가 규정되어 있다.
+이것은 과거 한글 세로쓰기 서적에서 사용되던 \wi{방점}을 찍는 방법의 연장선상에
+있는 것이다.
+
+드러냄표 강조는 H\LaTeX 에서 시작된 것이다. \verb|\dotemph|가 드러냄표를 식자하는 명령이다. H\LaTeX 에서의 드러냄표 명령과 \kotex 의 것을 다음 표로 비교하여 둔다.
+\begin{center}
+\begin{tabular}{l|ll|l}
+\hline
+ & \kotex & H\LaTeX & 비고 \\
+\hline
+상점 & \verb|\dotemph| & \verb|\dotemph| \verb|\dotem|$^{a}$ & $^{a}$선언형 \\
+고리상점 & \verb|\circemph|$^{*}$ & \verb|\circemph| \verb|\circem|$^{a}$ & $^{*}$\texttt{[hangul]}\\
+임의의 상점 & \verb|\useremph|$^{*}$ & & \\
+\hline
+\end{tabular}
+\end{center}
+
+\texttt{\textbackslash dotemph} 명령으로
+점을 한글 글자 위에 찍을 수 있다. \texttt{[hangul]} 옵션을 지시하면
+\texttt{\textbackslash circemph}와 \texttt{\textbackslash dotemph}
+그리고 \texttt{\textbackslash useremph}, 세 개의 명령을 사용할 수 있고,
+이 가운데 \texttt{\textbackslash useremph}는 사용자가 설정 가능하다.
+선언형은 제공하지 아니한다.
+
+\begin{quote}
+한글의 본 이름은 \dotemph{훈민정음}이다.\\
+중요한 것은 \circemph{왜 사느냐}가 아니라 \circemph{어떻게 사느냐} 하는 문제이다.
+\end{quote}
+
+\ifPDFTeX
+\renewcommand\useremphchar{\tiny★}
+\setlength\useremphraisedim{10pt}
+\useremph{사용자 정의 드러냄표}는 다음과 같은 방식으로 사용할 수 있다.
+
+\begin{verbatim}
+\renewcommand\useremphchar{\tiny★}
+\setlength\useremphraisedim{10pt}
+\useremph{사용자 정의 드러냄표}
+\end{verbatim}
+\fi
+
+\subsubsection{\protect\uline{밑줄} 강조}\index{강조!밑줄}\label{sec:underline}
+
+한글 맞춤법에는 밑줄 강조에 대해서도 언급하고 있다. \verb|\underline|으로
+밑줄을 그을 수 있지만, \pkg{ulem}\를 사용하면 더 나은 결과를 얻을
+수 있다.
+
+\begin{verbatim}
+다음 보기에서 명사가 \uline{아닌} 것은?
+\end{verbatim}
+\begin{quote}
+다음 보기에서 명사가 \uline{아닌} 것은?
+\end{quote}
+
+\pkg{ulem}\은 옵션없이 로드하면 모든 \verb|\emph|를 밑줄 강조로
+바꿔놓는다. 이를 억제하고 \verb|\uline|을 썼을 때만 밑줄을 그으려 한다면
+\begin{verbatim}
+\usepackage[normalem]{ulem}
+\end{verbatim}
+과 같이 하여야 한다.
+
+\subsection{자간, 행간}
+
+\paragraph{자간}
+
+한글 \wi{타이포그래피}의 가장 기본적인 요소인 \wi{자간}은
+%\ref{sec:microtypo}에서 소개한 한글 폰트 스펙의 일부로 포함하여 취급하게 되었다.
+폰트와 밀접한 관계를 갖는다.
+
+여기서는 \pkg{dhucs-interword}로 제어한 결과만을 보이겠다.
+\cmd{\interhchar}이다. 다음 예는 \cmd{\interhchar\{3pt\}}로 한 경우이다.
+
+\begin{quote}
+\ifPDFTeX
+\interhchar{3pt}
+\fi
+아아, 나는 이제야 도(道)를 알았도다. 마음이 어두운 자는 이목이
+누(累)가 되지 않는다. 이목만을 믿는 자는 보고 듣는
+것이 더욱 밝혀져서 병이 되는 것이다. 이제 내 마부가 발을 말굽에 밟혀서
+뒷차에 실리었으므로, 나는 드디어 혼자 고삐를 늦추어 강에 띄우고,
+무릎을 구부려 발을 모으고 안장 위에 앉았다. 한번 떨어지면 강이나
+물로 땅을 삼고, 물로 옷을 삼으며, 물로 몸을 삼고, 물로 성정을
+삼을 것이다. 이제야 내 마음은 한번 떨어질 것을 판단한 터이므로,
+내 귓속에 강물 소리가 없어졌다. 무릇 아홉 번 건너는데도 걱정이 없어 의자
+위에서 좌와(坐臥)하고 기거(起居)하는 것 같았다.
+\end{quote}
+
+\paragraph{어간}
+
+어간(단어간 간격)은 \cmd{\spaceskip}을 이용하여 제어할 수 있다.
+다음 예시 문단은 \cmd{\interhchar\{3pt\}}, \cmd{\spaceskip=2em plus 1em minus 1em}으로 한 경우다. 상식밖의 판면이지만 효과를 시각적으로 드러내기 위해
+과장하였다.
+
+\begin{quote}
+\ifPDFTeX\interhchar{3pt}\fi
+\spaceskip=2em plus 1em minus 1em \frenchspacing
+아아, 나는 이제야 도(道)를 알았도다. 마음이 어두운 자는 이목이
+누(累)가 되지 않는다. 이목만을 믿는 자는 보고 듣는
+것이 더욱 밝혀져서 병이 되는 것이다. 이제 내 마부가 발을 말굽에 밟혀서
+뒷차에 실리었으므로, 나는 드디어 혼자 고삐를 늦추어 강에 띄우고,
+무릎을 구부려 발을 모으고 안장 위에 앉았다. 한번 떨어지면 강이나
+물로 땅을 삼고, 물로 옷을 삼으며, 물로 몸을 삼고, 물로 성정을
+삼을 것이다. 이제야 내 마음은 한번 떨어질 것을 판단한 터이므로,
+내 귓속에 강물 소리가 없어졌다. 무릇 아홉 번 건너는데도 걱정이 없어 의자
+위에서 좌와(坐臥)하고 기거(起居)하는 것 같았다.
+\end{quote}
+
+\paragraph{행간}
+
+문서 전체의 행간격을 조절하기 위해서 \cmd{\baselinestretch} 값을 바꾸거나
+\cmd{\linespread}를 쓸 수 있다.
+\begin{verbatim}
+\renewcommand*{\baselinestretch}{2.0}
+\end{verbatim}
+또는
+\begin{verbatim}
+\linespread{2.0}
+\end{verbatim}
+
+일부 문단의 행간을 바꾸는 보기를 들어두자. 여기서는 \pkg{dhucs-setspace}를
+이용한 경우를 보이겠다.
+다음 문단은 spacing 값을 2.0으로 한 예시이다.
+
+\begin{verbatim}
+\begin{spacing}{2.0}
+....
+\end{spacing}
+\end{verbatim}
+
+\noindent\begin{boxedminipage}{\linewidth}
+\begin{spacing}{2}
+아아, 나는 이제야 도(道)를 알았도다. 마음이 어두운 자는 이목이
+누(累)가 되지 않는다. 이목만을 믿는 자는 보고 듣는
+것이 더욱 밝혀져서 병이 되는 것이다. 이제 내 마부가 발을 말굽에 밟혀서
+뒷차에 실리었으므로, 나는 드디어 혼자 고삐를 늦추어 강에 띄우고,
+무릎을 구부려 발을 모으고 안장 위에 앉았다. 한번 떨어지면 강이나
+물로 땅을 삼고, 물로 옷을 삼으며, 물로 몸을 삼고, 물로 성정을
+삼을 것이다. 이제야 내 마음은 한번 떨어질 것을 판단한 터이므로,
+내 귓속에 강물 소리가 없어졌다. 무릇 아홉 번 건너는데도 걱정이 없어 의자
+위에서 좌와(坐臥)하고 기거(起居)하는 것 같았다.
+\end{spacing}
+\end{boxedminipage}
+
+\bigskip
+
+여기서 보다시피, 2.0은 줄간격이 너무 넓어진다. 일반적으로 말하는
+doublespacing, 즉 2배간을 얻으려 한다면 \cmd{\setstretch} 값을 (한글 문서의 경우에)
+1.7 정도로 하는 것이 적당하다.
+
+\paragraph{부수 패키지 더 알아보기}
+
+\kotex 은 이들을 용이하게 제어할 수 있는 부수 패키지를 제공한다.
+자간과 어간을 제어하기 위하여 제공되는 패키지는 \pkg{dhucs-interword}이다.
+그 사용법은 \pageref{sec:interhchar}페이지
+제\ref{sec:interhchar}절을 보라.
+\pkg{dhucs-interword}로 단어 간격도 제어할 수 있다.
+
+\wi{행간}을 조절하기 위해서는 \pkg{dhucs-setspace}를 사용한다.
+사용법에 대해서는 \pageref{sec:setspace}페이지 \ref{sec:setspace}절을 보라.
+
+이 부수 패키지를 사용할 때는 순서에 주의하여야 하는데,
+\pkg{dhucs-interword}\를 \pkg{dhucs-setspace}보다 \uline{먼저} 올리도록 하는 것이 좋다.
+\begin{Verbatim}[fontsize=\small]
+\usepackage[hangul]{dhucs}
+\usepackage[default]{dhucs-interword}
+\usehangulfontspec{default}
+\usepackage[hangul]{dhucs-setspace}
+\end{Verbatim}
+\pkg{dhucs-interword}\를 로드한 직후에 문서에서 사용되는 한글 폰트의
+폰트 스펙을 활성화해주는 것은 좋은 선택이다(세번째 줄).
+
+\paragraph{기타}
+
+본문 전체에 걸친 행간의 기본값은 \option{hangul}이 주어지거나 \pkg{dhucs-setspace}가
+불렸을 때
+\cmd{\linespread\{1.333\}}으로 한 것과 동일하다.
+
+한글 자간의 설정과 관련하여 반드시 알아두어야 하는 사실은, \texttt{[finemath]}
+옵션이 활성화된 경우에만 자간 설정이 의미를 갖는다는 것이다. 이 옵션을
+주지 않은 경우에는 자간이 \dotemph{언제나} \texttt{0pt}이며 이것을
+바꿀 수 없다. \pkg{dhucs-interword}\를 로드하면 \option{finemath}가
+활성화되어 있지 않을 경우 오직 단어 간격에만 영향을 미친다.
+
+
+%\pkg{dhucs-interword}에 대해서는 \pageref{sec:interword} 페이지
+%\ref{sec:interword}절, \pkg{dhucs-setspace}에 대해서는
+%\pageref{sec:setspace} 페이지 \ref{sec:setspace}절을 보라.
+
+\subsection{장평}\label{sec:cseries}
+
+%특별한 효과를 위해서 ``좁은 장평''을 사용하려 하는 경우가 있을 수 있다.
+%기본 글꼴에 \texttt{c-series}의
+%93\% 장평\footnote{%
+% 표준 NFSS에서 c-series는 보통 75\%의 좁은 폭이다.
+% 그러나 \kotex에서는 92 또는 93\%를 c-series에 할당하였다.
+% 한글의 75\% 장평은 거의 무의미한 변형이라고 생각한다.}%
+%이 정의되어 있으므로 이것을 사용할 수 있다.
+%다음 문단은 좁은 장평으로 텍스트를 식자한 것이다. \verb|\fontseries{c}\selectfont|를 선언하였다.
+%당연한 말이겠지만, 좁은 장평이 준비되어 있지 않은글꼴---자모바탕 등---은
+%이렇게 하더라도 좁은 장평을 얻을 수 없다. 어떤 폰트에 좁은 장평이
+%마련되어 있는지에 대해서는 \pageref{sec:aboutfont} 페이지
+%\ref{sec:aboutfont}절에서 설명하였다.
+%
+%\begin{quote}
+%\fontseries{c}\selectfont
+%아아, 나는 이제야 도(道)를 알았도다. 마음이 어두운 자는 이목이
+%누(累)가 되지 않는다. 이목만을 믿는 자는 보고 듣는
+%것이 더욱 밝혀져서 병이 되는 것이다. 이제 내 마부가 발을 말굽에 밟혀서
+%뒷차에 실리었으므로, 나는 드디어 혼자 고삐를 늦추어 강에 띄우고,
+%무릎을 구부려 발을 모으고 안장 위에 앉았다. 한번 떨어지면 강이나
+%물로 땅을 삼고, 물로 옷을 삼으며, 물로 몸을 삼고, 물로 성정을
+%삼을 것이다. 이제야 내 마음은 한번 떨어질 것을 판단한 터이므로,
+%내 귓속에 강물 소리가 없어졌다. 무릇 아홉 번 건너는데도 걱정이 없어 의자
+%위에서 좌와(坐臥)하고 기거(起居)하는 것 같았다.
+%\end{quote}
+
+장평을 자유로이 바꾸는 것은 허용되지 않는다.\footnote{%
+ 그러나 사용자가 꼭 필요하다면 주어진 폰트로부터 특정 장평의
+ tfm을 얻어내고 이것을 사용하도록 하는 방법은 있다. 다만
+ 그 절차가 좀 복잡할 따름이다. 이 방법을 설명하는 것은
+ 이 문서의 목적과 무관하다.}
+이 역시 폰트 관련 문제에 해당하며, 원한다면 이른바 ``좁은 장평''이나
+``넓은 장평''을 \dotemph{사용자가 만들어내어서} 사용하는 것이
+불가능하지는 않다. 그러나 전통적인 \TeX\ Font 사용법을 그대로
+써야하는 Legacy \TeX 에서는 쉬운 일이 아닐 뿐더러 권장하지도 않는다.
+
+장평과 같은 폰트 속성을 자유롭게 제어하고자 한다면 \XeTeX 과 같은
+엔진을 이용하는 편이 훨씬 빠르고 편리하다.
+%다만 미세 타이포그래피를
+%위하여 아주 미세한 장평의 조절을 \pdfTeX 이 행하는 경우가 있는데
+%이것은 \texttt{c-series}를 선택하는 것과는 다른 문제이다.
+
+\subsection{nonfrench spacing}
+
+\wi{nonfrench spacing}이란, 마침표 뒤에 별도의 공백을 조금 더 주는
+\wi{조판} 양식을 말한다. 문장의 마침을 더 잘 드러나게 할 목적으로
+사용하는 공백이라고 한다. 유럽에서는 이 추가 공백을 허용하지 않는 것이
+일반적인 조판 형식인 듯하다.
+
+이 기능을 활성화하려면 \verb|[nonfrench]| 옵션을 지정한다.
+추가 공백의 기본 크기가 마음에 들지 않으면 \verb|\xspaceskip|으로 변경할 수 있다.
+
+다음 두 단락은 동일한 문장을 각각 french-spacing{}과 nonfrench-spacing{}으로
+식자한 예이다. 이 예시에서는 조금 과장된 \cmd{\xspaceskip}을
+사용하였다. 이 인용문은 연암의 ``하룻밤에 아홉 번 물을 건너다''로부터 왔다.
+
+\begin{quote}
+\frenchspacing
+\textbf{Frenchspacing:}\\
+아아, 나는 이제야 도(道)를 알았도다. 마음이 어두운 자는 이목이
+누(累)가 되지 않는다. 이목만을 믿는 자는 보고 듣는
+것이 더욱 밝혀져서 병이 되는 것이다. 이제 내 마부가 발을 말굽에 밟혀서
+뒷차에 실리었으므로, 나는 드디어 혼자 고삐를 늦추어 강에 띄우고,
+무릎을 구부려 발을 모으고 안장 위에 앉았다. 한번 떨어지면 강이나
+물로 땅을 삼고, 물로 옷을 삼으며, 물로 몸을 삼고, 물로 성정을
+삼을 것이다. 이제야 내 마음은 한번 떨어질 것을 판단한 터이므로,
+내 귓속에 강물 소리가 없어졌다. 무릇 아홉 번 건너는데도 걱정이 없어 의자
+위에서 좌와(坐臥)하고 기거(起居)하는 것 같았다.
+\end{quote}
+
+\begin{quote}
+\nonfrenchspacing
+\xspaceskip=1em
+\textbf{Nonfrenchspacing:}\\
+아아, 나는 이제야 도(道)를 알았도다. 마음이 어두운 자는 이목이
+누(累)가 되지 않는다. 이목만을 믿는 자는 보고 듣는
+것이 더욱 밝혀져서 병이 되는 것이다. 이제 내 마부가 발을 말굽에 밟혀서
+뒷차에 실리었으므로, 나는 드디어 혼자 고삐를 늦추어 강에 띄우고,
+무릎을 구부려 발을 모으고 안장 위에 앉았다. 한번 떨어지면 강이나
+물로 땅을 삼고, 물로 옷을 삼으며, 물로 몸을 삼고, 물로 성정을
+삼을 것이다. 이제야 내 마음은 한번 떨어질 것을 판단한 터이므로,
+내 귓속에 강물 소리가 없어졌다. 무릇 아홉 번 건너는데도 걱정이 없어 의자
+위에서 좌와(坐臥)하고 기거(起居)하는 것 같았다.
+\end{quote}
+
+\frenchspacing
+
+\subsection{각주}
+
+H\LaTeX 과 \kotex-euc에서 한글 문서의 \wi{각주 판짜기}를 위한 \texttt{hangulfn.sty}를
+제공했다. 이 각주 판짜기 스타일의 \kotex-utf 버전이 \pkg{dhucsfn}이다.
+영문자 옵션만을 받아들이며, 기본값은 \texttt{superscript, hang}이\다.
+지정할 수 있는 옵션은 다음과 같다:
+\begin{quote}
+\ttfamily superscript, parenthesis,
+hang, multipara, para, leftflush, indent, leftflushindent,
+hangpar, varhangpar
+\end{quote}
+%\begin{tabbing}
+%1111111111111111\=1111111111111111\kill
+%첨자 \> superscript \\
+%괄호 \> parenthesis \\
+%내어쓰기 \> hang \\
+%다항이어쓰기 \> multipara \\
+%단순이어쓰기 \> para \\
+%왼쪽맞춤 \> leftflush \\
+%들여쓰기 \> indent \\
+%들여왼쪽맞춤 \> leftflushindent \\
+%들여내어쓰기 \> hangpar \\
+%들여괄호맞춤 \> varhangpar \\
+%\end{tabbing}
+이 패키지의 사용법과 각각의 각주 모양 예시는 \pageref{sec:fn}페이지
+\ref{sec:fn}절을 보라.
+
+\subsection{한글식 카운터}
+
+\begin{figure}[h]
+\centering
+\newcounter{test}\setcounter{test}{2}
+\begin{tabular}{p{4cm}p{4cm}}
+\multicolumn{2}{l}{%
+ \texttt{\textbackslash newcounter\{test\}
+ \textbackslash setcounter\{test\}\{2\}}} \\
+\verb|\jaso{test}| & \jaso{test} \\
+\verb|\pjaso{test}| & \pjaso{test} \\
+\verb|\ojaso{test}| & \ojaso{test}\\
+\verb|\gana{test}| & \gana{test}\\
+\verb|\ogana{test}| & \ogana{test} \\
+\verb|\pgana{test}| & \pgana{test} \\
+\verb|\onum{test}| & \onum{test} \\
+\verb|\pnum{test}| & \pnum{test} \\
+\verb|\oeng{test}| & \oeng{test} \\
+\verb|\peng{test}| & \peng{test} \\
+\verb|\hnum{test}| & \hnum{test} \\
+\verb|\Hnum{test}| & \Hnum{test} \\
+\verb|\hroman{test}| & \hroman{test} \\
+\verb|\hRoman{test}| & \hRoman{test} \\
+\end{tabular}
+\caption{한글식 카운터}\label{tab:kocounter}
+\end{figure}
+
+그림~\ref{tab:kocounter}\과 같은 한글 \wi{카운터 형식}을 제공한다.
+\texttt{[hangul]} 옵션을 주면 다음과 같은 카운터 형식을 몇 개 더
+사용할 수 있다.
+\begin{verbatim}
+\hNum{cnt}, \hanjanum{cnt}
+\end{verbatim}
+\verb|cnt| 값이 2일 때, 각각 \hNum{test}, \hanjanum{test}%
+%, \HArabic{test}
+로 표현된다.
+
+\subsection{자동조사 명령}\index{자동조사}
+
+자동조사는 주로 사후적으로 결정되는 숫자 및 문자열(예컨대 \verb|\ref|의
+결과 확정되는 참조번호)에 붙는 조사의 형태교체를 자동화해주는 기능을
+말한다. 참조된 숫자가 1일 경우에 목적격조사는 `을'이 붙어야 하지만
+2일 경우에는 `를'이 붙어야 한다. 이 참조된 숫자들은 사후적으로 확정되므로
+미리 `을' 또는 `를' 가운데 어떤 것을 써야 할지 알 수 없기 때문에,
+우리말 문서의 작성에서는 빼놓을 수 없는 기능이다.
+
+자동조사 명령은 다음 열두 가지가 있다.
+\begin{verbatim}
+\이 \가, \을 \를, \와 \과, \로 \으로, \은 \는, \라 \이라
+\end{verbatim}
+마지막의 \verb|\라, \이라|는 서술격조사 어간 `이'에 어미(의 일부)가 붙은 형태로서
+서술격조사 어간이 생략되는 경우가 이 이외에도 더 있지만, 다른 경우에는
+명백히 생략되지 않아도 문장이 어색하지 않다고 보아 `(이)라'만을 자동조사
+명령으로 채택한 것이다.
+%자동조사의 기능과 그 사용법은 \pageref{sec:autojosa} 페이지 \ref{sec:autojosa} 절을 참조하라.
+
+자동조사 명령은 다음과 같이 쓴다.
+\begin{boxedverbatim}
+\ref{sec:test}\가
+\end{boxedverbatim}
+
+상호참조 명령만이 아니라 일반적인 문자열에도 자동조사를 쓸 수 있다.
+일반 문자열을 특정한 명령으로 묶어두는 경우에 마지막 종성 지시자를
+사용함으로써 자동조사 명령이 더 잘 작동하게 강제할 수 있다. 특히
+문자열이 외국어 단어로 끝나는 경우, \cmd{\jong}, \cmd{\jung}, \cmd{\rieul} 가운데 하나를 미리 끝에 달아두면 자동조사를 이 문자열에 붙일 때 적절한
+조사 이형태를 얻을 수 있다.
+\ifLuaOrXeTeX\ifx\rieul\undefined\def\rieul{}\fi\fi
+\begin{verbatim}
+\newcommand*\teststr{작업실\rieul}
+\teststr\를
+\end{verbatim}
+\begin{boxedminipage}{\textwidth}
+\newcommand*\teststr{작업실\rieul}
+\teststr\를
+\end{boxedminipage}
+
+\bigskip
+
+자동조사 사용에 있어서 알아두어야 할 점이 하나 있다. \verb|\section| 등
+장절명령이나 \verb|\caption|과 같은 명령의 인자로 들어간(소위 ``moving arguments'') 자동조사 명령은
+\verb|\ref| 등이 \verb|\protect|되어 있다면 대체로 잘 작동한다.
+그러나 \verb|\nameref| 되는 문자열 안에 들어 있는 자동조사 명령은
+\pkg{hyperref}의 문제점으로 인하여 오류를 토해내므로 주의를 요한다.
+
+\subsection{enumerate의 항목 머리}
+
+\texttt{enumerate} 환경에서 글머리로 한글식 카운터를 쓰고자 할 때가
+있다. 보통의 방법은 다음과 같이 하는 것이다.
+\begin{Verbatim}[fontsize=\small]
+\renewcommand\theenumi{\pgana{enumi}}
+\renewcommand\labelenumi{\theenumi}
+\begin{enumerate}
+\item 가나다
+\item 라마바
+\item 사자차
+\item 카파하
+\item 카타파
+\end{enumerate}
+\end{Verbatim}
+결과는 다음과 같다.
+\let\ORIGtheenumi\theenumi
+\let\ORIGlabelenumi\labelenumi
+\renewcommand\theenumi{\pgana{enumi}}
+\renewcommand\labelenumi{\theenumi}
+\begin{enumerate}
+\item 가나다
+\item 라마바
+\item 사자차
+\item 카파하
+\item 카타파
+\end{enumerate}
+\let\theenumi\ORIGtheenumi
+\let\labelenumi\ORIGlabelenumi
+
+이 코딩은 상당히 번거롭고, 일단 카운터 형식이 바뀐 후로
+계속 영향을 미친다는 문제가 있다.
+
+한글식 카운터 형식을 글머리에 붙이는 쉬운 방법으로 두 가지가 있다.
+하나는 \pkg{enumerate}의 옵션 정의를 이용하는 방법인데, 원래
+이 패키지가 제공하던 기능을 한글식 글머리로 확장한 것이다.
+\begin{verbatim}
+\usepackage{dhucs-enumerate}
+\end{verbatim}
+이 선언은 \pkg{enumerate}\를 스스로 로드한다. 그리고 본문에서
+\begin{verbatim}
+\begin{enumerate}[항목 ㉮)]
+\item 가나다
+\item 라마바
+\end{enumerate}
+\end{verbatim}
+과 같이 항목 머리의 첫 글자를 옵션으로 지시한다. 위의 결과는
+다음과 같다.
+\begin{enumerate}[항목 ㉮)]
+\item 가나다
+\item 라마바
+\end{enumerate}
+이렇게 항목 머리로 지정할 수 있는 것은 원래의 \pkg{enumerate}\이
+제공하는 \texttt{A, a, i, I, 1} 이외에 추가로 정의된
+\texttt{가, ㄱ, ㉠, ㉮, ㈀, ㈎, ①, ⑴, ⒜, ⓐ, ⅰ, Ⅰ}들이
+있다.
+
+한편, 문단형 리스트를 구현하는 역할을 하는 \pkg{paralist}도
+이와 비슷한 기능을 제공하는데, 이를
+위하여 \pkg{dhucs-paralist}\가 마련되어 있다.
+
+\pkg{enumitem}\을 이용하는 경우에는 먼저 전처리부(preamble)에 다음과 같이 선언한\다.
+\begin{verbatim}
+%\usepackage{enumitem}
+\usepackage{dhucs-enumitem}
+\end{verbatim}
+그리고, 다음과 같이 코딩한다.
+\begin{verbatim}
+\begin{enumerate}[label={\bfseries\pgana*.}]
+\item 가나다
+\item 라마바
+\end{enumerate}
+\end{verbatim}
+%결과는 다음과 같다.
+%\begin{enumerate}[label={\bfseries\pgana*.}]
+%\item 가나다
+%\item 라마바
+%\end{enumerate}
+
+\pkg{enumitem}에는 이외에도 요긴한 기능이 많다. 예컨대
+만약 문서 전체의 enumerate의 항목 머리를 전부 일정한 형식으로
+바꾸고자 한다면 \pkg{enumitem}의 전역 형식 선언을 이용할 수
+있다(ver2.0). 다음 예는 label과 더불어 항목 간 간격도 함께
+없앤 예이다.
+\begin{verbatim}
+\setenumerate[1]{label={\pgana*},noitemsep}
+\setenumerate[2]{label={\ogana*},nolistsep}
+\end{verbatim}
+%\begin{enumerate}[label={\pgana*},noitemsep]
+%\item 가나다
+%\begin{enumerate}[label={\ogana*},nolistsep]
+%\item 라마바
+%\item 사아자
+%\end{enumerate}
+%\item 차카타
+%\end{enumerate}
+%%현재의 \pkg{dhucs-fixenumitem}\은 2007년 3월 이전의
+%%\pkg{enumitem}\과 호환되지 않으므로 enumitem의 버전(2.0)에
+%%주의하여야 한다.
+
+\pkg{enumerate}\와 \pkg{enumitem}\는 서로 동일한 환경을
+다른 방식으로 재정의하기 때문에 함께 쓰기는 어려울 것이다.
+둘 가운데 적당한 것을 골라서 사용하면 되는데, 어느 경우든
+한글식 항목 머리를 정의할 수 있게 되었다.
+
+\section{미세 조정}\index{미세 타이포그래피}
+
+\thispkg의 가장 큰 특징 중 하나는 한글 문서 전반에
+걸쳐 미세 조정을 적용하여, \wi{미세 타이포그래피}를 부분적으로 구현하려
+하였다는 것이다. 이 기능은 \verb|[finemath]| 옵션에 의하여 모두
+활성화된다.
+
+\subsection{수식과의 간격}\index{미세 타이포그래피!수식 간격}\label{sec:finemath}
+
+\TeX 의 탁월한 점 가운데 하나가 수식 조판일 것이다. 특히 \TeX\ 수식은
+미세한 간격을 적절하게 배분함으로써 아름다운 수식을 만들어내는 것으로
+유명하다. 영문의 경우 행중 수식은 항상 앞뒤에 스페이스를 두면서 다음
+단어와 연결되므로 문장 중에 들어가도 어색하지 않은 데 비해, 한글 문서에서는
+조사 등이 수식 뒤에 잇대어 붙기 때문에 이 사이에 간격이 없으면
+수식 폰트와 한글 폰트 사이에 약간 어색한 상충이 생긴다.
+
+이 문제를 해결하기 위한 다양한 연구와 토론이 KTUG에서 이루어졌다.
+그 결과, \texttt{[finemath]}라는 새로운 옵션이 생기게 되었다.
+\texttt{[finemath]} 옵션을 주면
+%대부분의 행중수식과의 간격을 자동으로 설정한다.
+행중수식과 이어지는 한글 문자 사이의 간격을 제어할 수 있다. 알파벳 문자, 괄호 등에
+이어지는 한글 문자와의 간격도 마찬가지 방법으로 제어가능하다.
+\index{미세 타이포그래피!finemath}
+
+%\texttt{[finemath]}는 ver 4.0 이후 본격적으로 도입된
+%시험적인 기능으로서 아직 완벽하다고 말하기
+%어렵다. 많은 연구와 테스트가 축적되어야 한다고 생각한다.
+%%경우에 따라 직접 수작업으로 약간의 미세조정이 불가피한 경우가 없지는 않을 것이다.
+
+아래 예시 문단은 \texttt{[finemath]}로 조판한 결과이다. 이 결과를 얻기 위하여
+다음과 같은 설정을 전처리부(preamble)에 추가하였다. 2pt라는 값은 지나치게 큰 것이 분명한데
+이 예시 문단에서는 시각적으로 구분이 가게 하기 위하여 과장하였다.\footnote{%
+ 폰트 패키지에 따라 이 값이 자동으로 구현되는 경우도 있다. 특히
+ 은글꼴이 그러하다.}
+\begin{verbatim}
+\def\breakafterinlinemath{\hskip2pt}
+\def\nobreakafterinlinemath{\kern2pt}
+\end{verbatim}
+수식과 한글 문자가 이어지는
+위치에 미세한 간격이 추가되고 있음을 확인해보라.
+\begin{quote}
+$x$에 임의의 값이 주어지면 $f(x)$를 통해서 그 $x$에 대응하는 $y$를
+계산할 수 있다. 예를 들어 $x=2$로 $x$값이 주어졌다면 $x+y$는\ldots.
+\end{quote}
+숫자와 알파벳 자모, 괄호에도 영향을 미치게 할 수 있다.\footnote{%
+ 이 문서에서는 숫자와 알파벳 자모에는 영향이 미치지 않게 해두었다.
+ 문장부호와 \option{finemath} 옵션의 관계에 관한 사항은 \pageref{sec:hfontspec}페이지
+ \ref{sec:hfontspec}절을 보라.}
+
+이 문서와 함께 제공되는 소스에 딸린 \file{sample-finemath-setup.tex}이라는
+부수 파일을 열어보면 다른 값을 어떤 식으로 설정하는지에 대한 힌트를 얻을 수 있다.
+
+%\subsection{한글 폰트스펙}\label{sec:microtypo}
+%
+%한글 문서의 조판에서 영문 폰트와의 불일치 또는 부조화가 오래도록
+%문제가 되어 왔다. 이 문제를 근원적으로 해결하려면 한글 폰트의 사용방법과
+%디자인 전반에 걸친 재검토가 요구된다.
+%
+%궁극적으로 만족할 만한 해결책을 얻기까지는 더 많은 연구와 노력,
+%폰트 디자인 등이 필요할 것으로 생각하나, 우선
+%이 문제를 피해가면서 아름다운 한글 문서를 조판하기 위하여
+%\thispkg 는 한글 폰트스펙이라는 개념을 도입하였다.\footnote{%
+% 폰트 스펙은 \texttt{finemath} 옵션을 선언해야 활성화된다.}
+%
+%한글 폰트스펙은 \verb|hfontspec.??|라는 별도의 파일로 지정한다.
+%이 파일에 적어넣을 수 있는 스펙값들은 대략 다음과 같다.
+%\begin{itemize}
+%\item hangul unit 값 (\verb|hu|)
+%\item 한글 기본 자간 (\verb|interhchar|)
+%\item 문장부호 수직위치 조정값
+%\item 한글 및 한자 폰트 패밀리 명칭
+%\end{itemize}
+%예를 들면, \verb|hfontspec.ut|이라는 기본 글꼴 폰트 스펙의 내용은
+%다음과 같이 되어 있다.
+%\begin{Verbatim}[fontsize=\small]
+%hu = .057175em
+%interhchar = -.0852em
+%fullstoplower = .15ex
+%exclamationlower = .2ex
+%questionlower = .2ex
+%serifhangulfont = utbt
+%sanshangulfont = utgt
+%monohangulfont = uttz
+%serifhanjafont = utbt
+%sanshanjafont = utgt
+%monohanjafont = uttz
+%\end{Verbatim}
+%위의 모든 값이 지정되어야 한다.
+%
+%\texttt{hu} (hangul unit)이라는 단위는 \kotex 이 내부적으로 사용하는
+%(논리적인) 길이 단위로서, 한글 1전각 폭의 $1/16$로 정의된다. 여기서 1전각이란
+%1em을 의미하는 것이 아니라 폰트 디자인상 평균적인 가로폭의 길이를
+%의미하는 것인데, 위의 기본 설정에서 이 값을 $.057175em$으로
+%잡은 것은 \kotex의 기본 자간 $-0.0852\text{em}$을 제외한 $0.9148\text{em}$을
+%16등분한 값이다. 즉, $16\times \mbox{hu} + \mbox{interhchar} = 1\mbox{em}$이 되도록 되어 있다.
+%이 길이 단위의 필요성과 사용에 대해서 \cite{karnes2007}에서 논의된 바 있다.
+%\texttt{hu}는 \texttt{[finemath]}의 수평 간격에 영향을 미친다.
+%
+%사용자가 이 폰트 스펙 값을 임의로
+%바꾸는 것은 판면에 심각한 영향을 미칠 수 있으므로, 자신이 무슨 일을
+%하고 있는가 확신이 있을 때만 변경하도록 하라. 폰트 스펙 값들은
+%폰트 패키지를 만드는 사람이 제공하는 것이 옳을 것이다.
+%
+%위에 적은 값을 이용하여 자간을 설정하고 문장부호의
+%수직 위치를 조절하게 하려면, \verb|[finemath]| 옵션을
+%활성화하면 된다. 문서 전체에 대해서 또는 일부에 대해서
+%문장부호 수직 위치조절이 적용되지 않게 하려면
+%\begin{verbatim}
+%\disablehangulfontspec
+%\end{verbatim}
+%이라고 선언한다.
+%
+%특정 폰트 스펙을 적용하도록 하는 매크로는 다음과 같다.
+%예를 들어 \texttt{xx}라는 폰트에
+%대하여 \texttt{hfontspec.xx}가 준비되어 있다면,
+%\begin{verbatim}
+%\usehangulfontspec{xx}
+%\end{verbatim}
+%를 선언하면 된다.
+%기본 글꼴(은글꼴 type 1)에 대한 폰트 스펙(\verb|ut|)은 \texttt{kotex}을
+%\verb|\usepackage|하는 시점에서 자동으로 불러들인다.
+%
+%아래 예문은 각각의 경우 문장부호 및 자간 등이 어떻게 달라지는가를
+%예시한 것이다. \wi{문장 부호의 타이포그래피}에 대해서는 \cite{karnes2007}에서
+%그 간의 토론을 요약하고 의견을 제시하였고 이것을 \kotex 에서
+%구현한 것이다.
+%
+%\medskip
+%
+%\noindent\fbox{\begin{minipage}{.48\textwidth}
+%\disablehangulfontspec
+%한글 문장부호에 영문 폰트의 것을 쓸 때는 베이스라인 불일치
+%등을 교정해주어야 한다. 예를 들어, 온점,
+%느낌표, 물음표 등의 수직위치가 그러하다. 자! 비교해볼까?
+%\end{minipage}\hspace*{.02\textwidth}
+%\begin{minipage}{.48\textwidth}
+%\usehangulfontspec{ut}
+%한글 문장부호에 영문 폰트의 것을 쓸 때는 베이스라인 불일치
+%등을 교정해주어야 한다. 예를 들어, 온점,
+%느낌표, 물음표 등의 수직위치가 그러하다. 자! 비교해볼까?
+%\end{minipage}}
+%
+%\medskip
+
+\subsection{Micro Typography}\label{sec:microtype}
+
+pdf\TeX 의 저자인 H\`an Th\'{\^e} Th\`anh의 박사학위논문
+\textsl{Micro-typographic extensions to the \TeX\ typesetting system\/}은
+pdf\TeX 이라는 엔진으로 margin kerning과 font expansion을
+가능하게 해주는 \wi{마이크로 타이포그래피} 개념을 \TeX{} 세계에
+도입하였다.
+\begin{quotation}
+\wi{마진 커닝}(margin kerning)이란, 여백 공간이 가지런히 보이도록
+하기 위해 글자들을 텍스트 블록의 마진 쪽으로 아주 조금 이동시켜주는
+테크닉이다. 마진 커닝을 적용하지 않으면 일부 문자들이 마진 경계가
+시작하기 전에 끝나기 때문에 오히려 울퉁불퉁하게 보인다. 이것은
+문장부호 끌어내기(hanging punctuation)와 비슷한 것이지만
+문장부호만이 아니라 일반적인 글자에도 적용할 수 있다. 이를 적용함으로써
+텍스트 블록의 모양을 현저히 개선할 수 있다.
+
+\wi{폰트 확장}(font expansion)이란 단어 간격이 좀더 균일하게
+보이도록 하기 위해 폰트의 폭을 약간 좁게 혹은 넓게 만드는 테크닉이다{\ldots}
+폰트를 넓게 혹은 좁게 만듦으로써 개행 엔진이
+더 나은 행나눔을 할 수 있게 된다.
+\end{quotation}
+
+한글 문서에 있어서 행나눔을 결정할 때 부득이하게 `벙벙한' 공백을
+남기고 개행해야 하는 경우가 빈번했다. 또한 문장부호가 행 끝에 걸리는
+경우 여백의 모양이 균일하지 않게 보이는 것을 어찌할 수 없었다.
+마진 커닝과 폰트 확장이 매우 요긴하게 요청되는 바였지만, 이를 쉽게
+구현하기 어려웠으며, 간간이 마진 커닝 정도가 쓰이는 데 그쳤다.
+\thispkg~v2.0은 pdf\TeX 의 폰트 확장을 활용할 수
+있게 한다.
+%\footnote{%
+% \wi{김도현}, ``microtype을 아시나요,'' \url{http://kts.ktug.kr/node/207}.
+%}
+
+폰트 확장을 한글에 적용하기 위해서는 다음 조건이 갖추어져야 한다.
+\begin{enumerate}
+\item pdf\LaTeX 으로 컴파일할 것\footnote{참고로 \LuaTeX 은 \pdfTeX 의 기능을 계승하고 있다.}
+\item type 1 혹은 트루타입\cntrdot 오픈타입 글꼴이 사용될 것
+\item \pkg{microtype}에 의한 설정이 활성화될 것
+\end{enumerate}
+그림~\ref{fig:fontexpansion}\는 폰트 확장을 적용하지 않은 경우와 그것을 적용한 경우의 행나눔과
+스페이스 간격을 비교해본 것이다. 더 균일하고 아름다운 판면이 생성되는
+것을 눈으로 확인할 수 있을 것이다.
+
+\begin{figure}
+\centering
+\includegraphics[width=.48\textwidth]{fig/fntnormal}\hfill
+\includegraphics[width=.48\textwidth]{fig/fntexp}\\
+\parbox{.48\textwidth}{\centerline{\sffamily\small font expansion 적용 안함}}\hfill
+\parbox{.48\textwidth}{\centerline{\sffamily\small font expansion 적용}}
+\caption{Font Expansion}\label{fig:fontexpansion}
+\end{figure}
+
+샘플 문서의 소스 중에서 font expansion과 관련된 부분은 다음과 같다.
+\begin{verbatim}
+\usepackage[verbose=true]{microtype}
+\DeclareMicrotypeSet{dhucsmicro}{encoding=LUC}
+\UseMicrotypeSet[expansion]{dhucsmicro}
+\end{verbatim}
+
+\section{행나눔}\index{행나눔}
+
+한글에는 하이픈이 없고 일부 문장부호의 금칙처리를 제외하고는
+원칙적으로 모든 문자 앞이나 뒤에서 행을 나눌 수 있다.
+
+\subsection{영문자와 숫자 뒤의 한글 개행}
+
+그림~\ref{fig:allowbreakproblem}에서 표시한 곳은 원본에 영문과 조사가 붙어 있는 부분이다.
+빨간색 동그라미 부분에서 영문 단어가 \wi{overfull}이 발생했음에도 불구하고
+뒤에 붙는 한글 조사와 분리되지 않아서 ``\verb|에|''까지 오른쪽으로
+삐져나가 있다. 종래 한글 라텍에서는 이러한 문제가 자주 발생하여
+문서작성자를 괴롭히곤 했다.
+
+\begin{figure}
+\centering
+\includegraphics{fig/linebreaktest}
+\caption{행나눔 문제}\label{fig:allowbreakproblem}
+\end{figure}
+
+\kotex 은 개선된 \wi{행나눔} 기능이 작동한다. 그림~\ref{fig:allowbreakdone}\는
+\kotex 을 사용했을 때 이 부분이 어떻게 처리되는가 보여준다.
+
+\begin{figure}
+\centering
+\includegraphics{fig/allowbreak-dhucs}
+\caption{dhucs의 행자름 처리}\label{fig:allowbreakdone}
+\end{figure}
+
+\subsection{여는 괄호 앞의 행자름}
+
+\wi{여는 괄호}와 관련해서 다음을 지적해둔다. 현재 여는 괄호는 영문자 뒤에 직접
+이어서 나오지 않는 한 새로운 줄을 시작할 수 있다. \wi{신정식} 님께서 알려주신 바에
+의하면\footnote{\url{http://ktug.kldp.net/jsboard/read.php?table=ktugbd&no=4825}}
+모든 종류의 여는 괄호는 새로운 줄을 시작하는 것이 유니코드 표준이라고 한다.
+영문으로 글을 쓸 때는 여는 괄호 앞에 하나의 공백을 두게 되어
+자연히 새로운 줄을 시작할 수 있을 것이므로 영문자 사이의 여는 괄호를
+개행가능하게 하여야 할 필요를 발견하지 못하였다. 그러나 한글과 영문이
+만나는 곳에서는 행나눔이 가능하여야 한다. 그림~\ref{fig:openingparen}\을
+보라.
+
+\begin{figure}
+\centering
+\includegraphics{fig/testdhucsallowbreak}
+\caption{여는 괄호의 행자름}\label{fig:openingparen}
+\end{figure}
+
+만약 이 그림에서 ``FAQ(FancyHdr)''의 괄호 사이에서 행을 잘라야 한다면
+여는 괄호 앞에 공백을 두어
+\verb*|FAQ (FancyHdr)|와 같이 써야 할 것이다.
+
+이밖에, \kotex 은 한글 단어 뒤에 괄호 안에 영문을
+병기하는 경우 이 영문이 행끝에 걸리더라도 영문 하이픈처리가 작동하도록
+하고 있다.
+
+\subsection{이른바 ``고아'' 문제}
+
+``고아''란 한 문단의 마지막 행이 한 글자와 종지부호로만 끝나는 경우를
+일컫는다. 한 행 전체 길이에 비교해보았을 때 한 글자 한 행은 그 비중이
+너무 작아서 때때로 글읽기의 효율을 방해하고 불필요한 공백이 생겨나게 하여
+판면의 색조를 옅게 만드는 것으로 생각되어, 일찍부터 한글 조판의
+금기 사항 중 하나였다.\footnote{%
+ 영어권에서 `고아와 과부'라고 할 때는 이와 조금 다른 의미로 쓰이는
+ 경우도 있다. 예컨대 Peter Wilson의 \textit{Memoir Manual}, p.~29에는
+ ``\emph{고아}란 한 페이지의 마지막에 한 줄 또는 두 줄이 남는 것을 말한다.
+ Bringhurst의 암기를 위한 트릭에 따르면,
+ `고아는 미래만이 있고 과거가 없는 것'이다.''라고 쓰고 있다.
+ 즉, 과부와 고아가 모두 행나눔에 관한 문제가 아니라
+ 페이지 나눔에 관한 문제로 취급되고 있는 것이다. 그러나
+ 이 글에서는 우리나라의 관행적 명칭인 `문단 끝 한 글자 한 행'을 (편의상)
+ 고아라고 부르기로 한다.
+}
+
+\kotex 에서는 고아 회피가 부분적으로 자동화되었다. 원칙적으로
+문단 마지막에 아무런 추가 코드 없이 \verb|\par| 또는 문단 종지 문자가
+있을 때는 고아 앞에서 \verb|\nobreak|가 작동하는 것과 같은 효과를
+가진다. 그러나 문단 끝에 추가적인 코드나 문자가 더 있을 때 때때로
+이 자동 고아 회피가 동작하지 않는 경우도 있으므로, 이럴 때는
+\texttt{\textbackslash nobreak}를
+사용자가 직접 지정하여야 한다. 특히 문단의 마지막 글자가 ``다.''일 경우에
+한하여 사용자가 고아 회피를 강제하도록 ``\verb|\다|'' 매크로가
+새로 도입되었다.
+%\footnote{%
+% \url{http://kts.ktug.kr/node/204}.
+%}
+각주 안과 같이 문단 종지 문자 없이 문단이 종료됨으로써
+자동 \wi{고아 회피}가 동작하지 않는 경우에
+이 매크로를 적절하게 활용할 수 있다.
+
+비록 모든 경우에 완전한 고아 회피가 적용되는 것은 아니지만,
+이만큼이라도 자동화됨으로써 한글 문서 조판의 관행적 규약에 더 가까이
+접근했다 하겠다.
+
+\section{한글 PDF 만들기}\label{sec:pdf}
+
+\pageref{sec:makepdf}페이지 \ref{sec:makepdf}절에서
+pdf 제작에 관한 사항을 개괄하였다. 여기서는 이 문제에 대하여
+조금 더 다루려고 한다.
+
+한글 pdf 문서를 만드는 데 있어서 지금까지 요청되어 왔던 것은 대략
+다음과 같\다.
+\begin{itemize}
+\item 한글 텍스트의 검색과 추출
+\item pdf bookmark에 한글 구현
+\item beamer 등 발표 문서 작성 패키지 지원
+\end{itemize}
+
+\subsection{하이퍼링크}\label{sec:hyperref}
+하이퍼링크를 구현하기 위해서는 \pkg{hyperref}\를 이용한다.
+이 패키지 사용에서 주의할 점은 한글 레이블이나 참조자를
+사용하면 아니된다는 것이다.\footnote{%
+ 이것은 명백히 Legacy \TeX 의 제약이다.
+ \XeTeX 과 같은 유니코드 텍 시스템에서는 한글 레이블 등을 자유롭게 사용할 수 있다.}
+
+hyperref 설정은 다음 세 가지 방법으로 이루어진다.
+\begin{enumerate}
+\item\label{itm:one} \verb|\usepackage[...]{hyperref}|의 옵션
+\item\label{itm:two} \verb|\hypersetup| 문장
+\item\label{itm:three} \file{hyperref.cfg}에 미리 설정된 옵션
+\end{enumerate}
+예컨대 한글 문서를 주로 작성하는 경우 hyperref의 \texttt{[unicode]}
+옵션이 필요하다. 그리고 클래스 자신이 hyperref을 스스로 로드하는
+경우에는 (\ref{itm:one})이나 (\ref{itm:two})\과 같은 방법으로
+이 옵션을 활성화할 수 없게 되어 있는 경우가 있다. 이럴 때는 (\ref{itm:three})
+방법을 사용한다. 즉 \file{hyperref.cfg}에 (\ref{itm:two})의 문장을
+미리 적어넣어두는 것이다.
+
+
+\subsection{한글 책갈피}\index{pdf bookmark}
+pdf 문서 제작에 있어서 한글 책갈피(bookmark)가 필요하면,
+다음과 같이 한다.
+\begin{verbatim}
+\usepackage[unicode,<driver>,...]{hyperref}
+\end{verbatim}
+\pkg{hyperref}의 개선이 이루어짐에 따라, 한글 책갈피를 만들기 위해
+별도의 복잡한 조치를 취할 필요가 없게 되었다. 다만, \verb|<driver>|를
+명시해주어야 한다는 데 주의하면 된다. \verb|pdftex|, \verb|dvipdfm|,
+\verb|dvips| 등을 지정한다.
+
+\section{찾아보기와 참고문헌}
+
+\wi{색인}(찾아보기, index)을 만들기 위해 제공하는 유틸리티
+\util{komkindex}의 사용법에 대해서는 \pageref{sec:komkindex}
+페이지 \ref{sec:komkindex}절을 보라. %이 유틸리티와 더불어
+한글 색인 스타일인 \verb|kotex.ist|를 제공한다.
+
+\wi{문헌목록} 인용은 가능하다. Bib\TeX\ 또는 \util{biber}\을 이용하여
+문헌목록 데이터베이스에서 문헌목록을 추출할 수도 있다.\footnote{%
+ 다만, 한글화된 문헌목록 스타일이 충분하지 않아서,
+ 최종적으로 약간의 수작업이 필요한 경우도 없지는 않다고 생각한다.
+ 특히 저자-연도 방식의 인용에서 그러하다. 이 분야는
+ 더 많은 연구와 개발이 필요한 지점이다.}
+
+%여기서는 plain 형식의 인용을 테스트해보자.
+%즉, \cite{dhhangul} 또는 \cite{yeonam}\과 같은 형식의 문헌 인용이
+%가능한 것을 볼 수 있다.
+
+%\begin{quote}
+%\cite{dhhangul}\을 보라. \cite{karnes}\를 읽어보라.
+%\end{quote}
+
+\wi{참고문헌} 인용은 너무나 많은 유형이 있어서 어떤
+문제가 발생할 수 있는지를 완전히 시험해보지 못하였다.
+그러나 \pkg{natbib}, \pkg{cite}와 \pkg{apacite}를 위한
+코드를 내장하고 있어, 참고문헌 인용에서 발생하는 문제에 대한
+지원을 위해 노력하고 있다.\footnote{%
+ 한 예로, \pkg{apacite} 충돌 문제의 보고와 그 해결에 관한
+ \href{http://ktug.kldp.net/jsboard/read.php?table=operate&no=21183}{KTUG 게시판 4984}
+ 이하의 글타래를 참조하라. 이런 과정을 거쳐서 현재
+ \pkg{apacite} 등의 패키지에 대한 지원이 이루어지게 되었다.}
+
+최근 주목받고 있는 \pkg{biblatex}을 이용하면 한글 문헌목록을
+더 잘 작성할 수 있다는 보고가 있다. 이 분야에 대해서 더 깊은
+연구가 필요하다.
+
+\section{옛한글 구현}\index{옛한글}
+
+옛한글 문서의 조판은 한글 \TeX 의 꿈이었고, KTUG에서 2002년 이후
+\pkg{dhhangul}과 같은 Lambda 패키지를 통하여 성공적인 실험을 행한 바가
+있다.
+
+\pkg{dhucs-midkor}\는 옛한글, 즉 1933년 이전 표기법 문헌을
+식자할 수 있게 한다.\footnote{%
+ 현재 이 패키지를 사용 가능하게 하려면 \cmd{tlmgr install kotex-midkor}
+ 명령을 \kotex\ 저장소를 등록한 후에 내려야 한다.
+ dhucs-midkor는 \kotex-utf의 일부이지만, 몇 가지 이유(주로 글꼴 관련된) 때문에
+ 별도의 패키지로 분리되어 있다.}
+필요한 것은 이 패키지를 설치한 후에 옛한글 텍스트를 이른바 ``첫가끝'' 방식으로
+입력하는 것뿐이다.\footnote{%
+ ``첫가끝(LVT)'' 방식으로 입력한다는 것은 유니코드 자모 조합형으로 한글을
+ 입력한다는 뜻이다. 예컨대 `가'라는 글자는 \textsf{[U+AC00]}에 완성형 문자가
+ 있는데, 이 음절 영역 완성형 코드를 사용하지 않고 자모 영역의 초성 `ㄱ'과 중성 `ㅏ'를 결합하여 \textsf{[U+1100][U+1161]}로 조합하여
+ 표현하는 것을 말한다. 이런 식의 자모 조합으로 한글을 표현하면
+ 그 표현 한계에 제약이 거의 없으며 현대 한글과 옛한글 수백만 자를 모두 표현할 수 있다.
+}
+%그러나 배포판의 매크로만으로 충분하지 않으며,
+%다음과 같은 준비가 더 필요하다.
+%\begin{enumerate}
+%\item 옛한글 폰트(\file{obatang.ttf} 또는 \file{ogulim.ttf})
+%\item 옛한글 코드 변환 유틸리티
+%\item 옛한글 코드를 다룰 수 있는 편집기와 입력기
+%\end{enumerate}
+
+이전에는 옛한글 문헌의 조판이 꽤 까다롭고 복잡한 일이었으며,
+그런 상황에서 \kotex 이 옛한글 조판 능력을 갖추고 있다는 것은 매우
+중요한 일이었다. 현재로서도 그 성취를 가볍게 볼 수는 없으나, 전에 비하여
+옛한글을 포함하는 고문헌 조판이 매우 용이해진 것도 사실이다.
+\begin{enumerate}[(1)]
+\item 옛한글 처리 기능을 갖춘 글꼴이 다양해졌다. 이 분야에서 KTUG의
+은바탕 글꼴은 단연 선구적인 위치를 차지하고 있으며, 실무에 쓸 수 있을 정도의
+품위를 갖춘 ``함초롬 LVT'' 글꼴의 등장이 차지하는 의미는 매우 중요하다.
+그 후, Windows 8에 번들된 ``맑은 고딕''에 같은 기능이 포함됨으로써,
+사실상 옛한글 표현과 관련된 글꼴 문제에 있어서 중요한 진일보를 이룩하게 되었다.\footnote{%
+ 이와 더불어, 예전 쓰이던 이른바 ``한양 PUA'' 방식은 역사의 뒤안길로
+ 사라질 때가 되었다고 본다.}
+\item 플랫폼을 막론하고 ``첫가끝'' 옛한글을 입력할 수 있는 \wi{한글 입력기}들이 등장하였다.
+맥 오에스의 하늘입력기, 구름입력기 등으로 첫가끝 옛한글을 손쉽게 입력할 수 있게 되었으며 윈도우즈에도 새나루 입력기와 같이 이를 가능하게 하는 것들이 있다.
+\item \kotex 의 중요한 기여 중의 하나인 옛한글 관련 코드변환 유틸리티가
+\kotex-utility로 제공된다. \util{jamo-normalize} 스크립트는 특히 유용하다.
+\item \XeTeX-\ko와 \LuaTeX-\ko는 옛한글 처리 기능을 자연스럽게 탑재하고 있다.
+옛한글을 마치 현대한글을 쓰듯이 자연스럽게 처리할 수 있는 것이다.
+\end{enumerate}
+%을 위해서 갖추어야 할
+%조건이 제법 까다롭고
+%\footnote{%
+% 특히 옛한글을 처리할 수 있는 공개 폰트가 전혀 없다는 점은
+% 매우 치명적이다.}
+%이를 처리하는 과정이 편리하다고 할 수 없다%
+%\footnote{%
+% 코드 변환과 같은 약간의 전처리가 필요하다.}%
+%고는 하나,
+%옛한글 문헌의 식자를 구현하고 있다는 자체가 매우 중요한 사실이다.
+%옛한글 조판에 관한 전반적인 사항, 이론적 배경과 구체적인 지침은 \cite{LeeKH}\을
+%참고하라.
+
+다음 송강의 \cnm{사미인곡} 예문은 위키문헌에서\footnote{%
+ \url{http://ko.wikisource.org/wiki/\%EC\%82\%AC\%EB\%AF\%B8\%EC\%9D\%B8\%EA\%B3\%A1}}
+가져온 텍스트를
+다음과 같은 명령을 주어 전부 첫가끝 코드로 바꾸고 \pkg{dhucs-midkor}
+패키지를 얹은 후에 (별다른 조치 없이) 그대로 포함한 것이다. 이 유틸리티의
+사용법은 \pageref{sec:hypuautil}페이지 \Cref{sec:hypuautil}을
+참고하라.
+\begin{verbatim}
+# jamo-normalize -d -o <yettest.txt >yettest.tex
+\end{verbatim}
+만약 현대한글까지 전부 첫가끝으로 바꾸지 않으면 현대한글 음절문자가
+본문의 것과 똑같은 모양으로 찍힌다.
+
+\begin{verse}
+\ifPDFTeX\def\mymidkorfont{ogul} % or {obat}
+\else\ifLuaOrXeTeX \hangulfontspec[Script=Hangul]{HCR Dotum LVT}\fi\fi
+\IfFileExists{yettext.tex}{\input yettext}{}
+\end{verse}
+
+\pkg{dhucs-midkor}로 옛한글을 표현할 때 선택할 수 있는 글꼴은
+바탕체와 굴림체 두 가지이다. 위의 예문은 굴림체로 식자되었고 이것이 디폴트이다.
+만약 바탕체로 식자하려면 \verb|\def\mymidkorfont{obat}|라고
+선언하면 된다. 그런데 obatang이라는 글꼴에서 온 바탕체 옛한글은
+굴림체에 비해 그다지 예쁘지 않다.
+
+일반적인 의미에서 본격적인 옛한글 문서를 작성하려 한다면
+\pdfLaTeX\ 기반의 \kotex-utf보다는 \XeTeX-\ko가 더욱 적절할 것이다.
+
+\section{일본어와 중국어 문단}\index{일본어 문단}
+
+\kotex 에는 \pkg{dhucs-trivcj}가 포함되어 있다.
+이것은 한글 문서에서 약간의 \wi{일본어} 또는 \wi{중국어} 인용문을 처리하게 하려는
+목적으로 제작된 것으로서 본격적인 \wi{다국어 문서}를 처리하는 데는 아직
+미흡하지만 크지 않은 규모의 일본어 중국어 문단은 나쁘지 않은 정도의
+결과를 얻을 수 있을 것으로 생각하고 있다.
+일본어 한자의 독음을 작은 가나 문자로 붙이는 것(루비)은 \pkg{CJK}의
+일부인 \pkg{ruby}\를 불러서 할 수 있다.
+일본어 또는 중국어 문단을 식자하려면 \pkg{dhucs-trivcj}를
+로드하여야 한다.
+
+%\begin{japanesechinese}
+
+\begin{quote}
+\begin{japanese}
+\LaTeX~というのは、市販ソフト顏負けのきれいな文書が
+作れる「文書整形ソフト」で、「ラテック」
+もしくは「ラテフ」など変った読み方をします。
+ちょっとカタい言葉を使うと「組版~(くみはん)~ソフト」とも言います。
+組版とは、活字を組んでページに印刷するための版を作る作業のことで英語で
+タイプセッティング~(type setting)~と言います。
+\end{japanese}
+\end{quote}
+
+일본어와 중국어 글꼴은 \TeX{}Live에 기본으로 포함되어 있는
+wadalab-unicode 글꼴과 arphic 글꼴(type 1)을 이용한다.
+\TeX{}Live를 full로 설치하면 당연히 시스템에 설치되어 있을 것이므로
+별도의 글꼴 설치 절차 없이 바로 이용할 수 있다.
+다만 이 글꼴에는
+굵은글꼴이나 고딕체 글꼴이 별도로 갖추어져 있지 않다.
+일본 문자와 로마자가 이어질 때 필요한 `\wi{짧은 간격}'은 tilde(\verb|~|)로 표시할 수 있다.
+이것은 \pkg{CJK}의 방식과 동일하다.
+
+\pkg{dhucs-trivcj}가 제공하는 환경은 \texttt{japanese}와
+\texttt{chinese}이다. 다만 \texttt{chinese} 환경은 간자체 환경과
+번자체 환경을 각각 \texttt{Schinese}와 \texttt{Tchinese}로
+구분할 수 있다. 기본값은 \texttt{chinese}가 간자체 환경으로
+되어 있지만 만약 번자체 환경을 \texttt{chinese}로 쓰고 싶다면
+\begin{verbatim}
+\let\chinese\Tchinese
+\let\endchinese\endTchinese
+\end{verbatim}
+라고 선언하면 된다. 다른 문서와의 호환을 위해서 번자체 환경을
+그대로 \texttt{Tchinese}라고 쓰는 것도 좋은 방법이다.
+
+다음 표는 \texttt{dhucs-trivcj}에서 사용하는 각 언어별
+폰트의 이름이다.
+\begin{center}
+\begin{tabular}{l|ll|ll}
+\hline
+ & \multicolumn{2}{l|}{trivcj} & \multicolumn{2}{l}{trivcj-adobe} \\
+\cline{2-5}
+ & mj & gt & mj & gt \\
+\hline
+일본어 & min & -- & jpmj & jpgt \\
+중국어간자 & gbsn & -- & cnmj & cngt \\
+중국어번자 & bsmi & -- & ctmt & -- \\
+\hline
+\end{tabular}
+\end{center}
+
+간단한 중국어 문장 하나를 식자해보자.\footnote{\url{http://wikka.ctex.org/TeX} 웹사이트에서
+인용함.}
+
+\begin{chinese}
+\begin{description}
+\item[{[}高质量的输出{]}] TeX~遵循传统的排版规则,以排版的质量为最重要的目标。
+ 如果你把~TeX~的输出结果和用其它的排版软件排版相同的文本所得到的结果加以比较,
+ 你就会发现其中的区别。
+
+\item[{[}超常的稳定性{]}] 自从~TeX~出现以来,只有一些微小的改动。也就是说,
+ 十几年前的~TeX~文件用现在的~TeX~系统排版得到的结果与十几年前得到的结果是一样的。
+ 稳定性还体现在~TeX~系统极少会崩溃,可以处理任意大小的文件,即使你的计算机的内存很少,
+ TeX~也可自如的工作。
+\end{description}
+\end{chinese}
+
+%\end{japanesechinese}
+
+\section{세로쓰기}
+
+\kotex-utf는 한글 \wi{세로쓰기}를 직접 지원하지 않는다.
+몇 가지 편법을 써서 세로쓰기 문단이나 문서를 만드는 실험이 행해진 적이 있지만
+이러한 결과를 얻기 위해서는 폰트를 직접 조작하는 \XeTeX-\ko를 살펴볼 것을 권장한다.
+참고로 \pkg{xetexko-vertical} 패키지는 한글 세로쓰기를 가능하게 한다. 그러나
+\kotex-utf에서 실행되는 것은 아니다.
+
+\chapter{글꼴 문제}\index{글꼴 문제}
+
+\section{개관}
+
+현재 버전의 \kotex 은 디자인상 `\wi{기본 글꼴}'이 없다. 이전 버전까지 은글꼴 type 1 (\pkg{untype1})\index{은글꼴 type 1}을 기본 글꼴로 삼고 있었으므로 크게 달라진 점이다.
+그런데, 기본 글꼴이 없다는 것은 \cmd{\usepackage\{kotex\}}만으로는
+한글 글자가 찍히지 않는다는 것을 의미한다. 실제로 \XeTeX-\ko와 \LuaTeX-\ko는 이런 식으로 동작하고 있으며, 반드시 한글 글꼴을 명시적으로 지정해주어야 하게 되어 있다.
+
+하위 호환성도 염두에 두고 있는 \kotex-utf에서 만약 이렇게 되면 사용자의 혼선을
+불러올 것이 자명하므로, 우선 아무런 글꼴도 지정하지 않으면 \pkg{nanumtype1} 글꼴을 불러 글자를 보여주게 되어 있다.\footnote{단, 한자 영역은 \pkg{uhc}.} nanum type 1이 선택된 이유는 이 글꼴 패키지가 CTAN에 등록되어 있고 \TeX\,Live에서 제공하는 것이기 때문이다.\footnote{%
+ 원래 \pkg{cjk-ko}에서 사용하기 위해 제작된 글꼴이다.}
+\index{나눔 type 1}
+
+그러나 이것은 `기본 글꼴'과는 성질이 다른데, 그 이유는 \kotex 이 제공하는
+글꼴 처리 능력에 비추어 많은 부분이 생략되어 있기 때문이다. 예를 들면 \texttt{ttfamily}에 해당하는 타자체가 별도로 없다는 점, 한자는 한 가지 글꼴밖에 사용하지 않고 굵은 한자가 찍히지 않는다는 점 등에서 그러하다.
+
+글꼴의 선택과 사용이 전적으로 사용자에게 맡겨져 있으나, ``편의를 위하여'' 상세한 글꼴 설정이 없을 때
+나눔 type 1이 한글 영역을 식자하기 위하여 사용된다고 기억해두자.
+
+\section{영역, 가족, \cntrdots}
+
+\subsection{입력 문자의 영역}
+
+텍스트의 문자를 식자할 때, \kotex 은 입력 문자를 세 영역으로 나누고 각각에
+대하여 다른 글꼴을 적용한다.\index{입력문자의 영역}
+\begin{enumerate}
+\item \textbf{라틴 문자 영역}. ASCII 문자들은 모두 여기에 들어간다. 즉
+로마자 알파벳과 숫자, 일부 문장부호들이다.
+이 영역의 문자를 식자하는 것은 일반적인 라틴 문자 문서와 완전히 동일하다.
+그러므로 \pkg{fontenc}로 OT1, T1 등의 폰트 인코딩을 지정하거나
+\pkg{lmodern}, \pkg{txfonts}와 같은글꼴 패키지를 사용하는 것도
+이 영역에 영향을 미친다.\index{라틴문자 영역}
+
+\item \textbf{한글 영역}. [U+AC00]에서 [U+D7FF]까지 한글 음절문자 영역의
+글자와 한글 자모 및 한글 호환자모 글자들에 해당한다. 이 영역을 식자하는 글꼴을
+`한글 글꼴'이라 한다.\index{한글 영역}
+
+\item \textbf{한자 영역}. 위의 라틴 문자 영역과 한글 영역을 제외한 모든
+문자가 포함된다. 한중일 호환 문장부호, 한자는 물론이고 일부 폰트에서
+발견할 수 있는 PUA(사용자 영역) 옛한글 문자도 여기에 속한다. 이 영역은 `한자 글꼴'로 식자한다.\index{한자 영역}
+\end{enumerate}
+이 세 영역은 완전히 분리되어 있고 서로 영향을 미치지 않는다. 즉
+한글 영역의 글꼴을 바꾸더라도 라틴문자나 한자 영역의 글꼴의 선택이
+(원칙적으로) 바뀌지 않는다.
+
+\subsection{라틴 문자 영역 글꼴}
+
+\thispkg의 라틴 문자 글꼴 기본값은 OT1 인코딩의 \wi{CM}이다.
+\wi{T1 인코딩}으로 \wi{EC 글꼴}을 사용하려면 다음을
+전처리부(preamble)에 적어준다.
+\begin{verbatim}
+\usepackage[T1]{fontenc}
+\end{verbatim}
+글꼴 설정 패키지를 사용하면 이 영역 문자에 영향을 미친다.
+예를 들어 \wi{pxfonts}를 본문에서 쓰려면,
+\begin{verbatim}
+\usepackage{pxfonts}
+\end{verbatim}
+와 같이 한다.
+
+NFSS\footnote{\LaTeX 의 폰트 선택 스킴을 가리킨다.}를 따르며, rm, sf, tt
+패밀리와 md, bf 시리즈, up, it, sl 셰이프들을 선택하는 폰트 선택 명령 역시
+그대로 적용된다.
+
+\pkg{kotex} 자체가 font encoding을 정의하고 있기 때문에, font encoding을 바꾸는
+명령, 예를 들면 \verb|\usepackage[T1]{fontenc}|과 같은 행은 \pkg{kotex}이
+로드되기 전에 부르는 것이 좋다.
+
+이후의 논의는 한글 및 한자 영역 글꼴에 관한 사항이다.
+
+\subsection{글꼴 가족과 인코딩}
+
+\kotex 은 한글과 한자 영역 글꼴에 대해서도 \wi{NFSS} 방식의
+글꼴 선택이 동작하도록 설계되어 있다.\index{글꼴 가족}
+
+이 영역 글꼴을 rm, sf, tt 세 글꼴 가족(family)으로 구분한다.
+각각을 편의상의 명칭인 ``바탕(또는 명조), 돋움(또는 고딕), 타자''에
+대응시킨다. 이들은 라틴 문자의 ``serif, sans serif, typewriter''에
+해당하는 것으로 본다.
+
+\begin{center}
+\begin{tabular}{c|c|c|c}
+\hline
+ & rm & sf & tt \\ \hline
+한글 & 한글바탕글꼴 & 한글돋움글꼴 & 한글타자글꼴 \\ \hline
+한자 & 한자바탕글꼴 & 한자돋움글꼴 & 한자타자글꼴 \\ \hline
+\end{tabular}
+\end{center}
+
+\kotex 이 한글과 한자 영역 식자에 사용하는 폰트는 LUC 인코딩
+폰트이다. 이 인코딩은 유니코드 문자군을 수백 개의 subfont로 분할하여
+처리하도록 되어 있어 실제 글꼴 파일 자체의 구성은 매우 복잡하지만 \TeX 의
+폰트 정의 (font definition) 방식에 의하여 대표 이름으로 호출할 수 있다.
+
+다른 글꼴 선택 없이 나눔 type 1으로 식자하는 경우, 이 글꼴가족들은 다음과 같이 대응되어 있다.
+타자체 글꼴을 별도로 할당하지 못한 것은 해당하는 글꼴이 없기 때문이다. 참고로
+은글꼴 type 1을 쓴다면 uttz라는 은타자 글꼴을 이 영역에 할당할 수 있었다.\footnote{%
+ 은타자 서체를 타자체 패밀리로 지정하는 방법은 \pageref{sec:oldmethod}페이지를
+ 보라.}
+
+\begin{center}
+\begin{tabular}{c|c|c|c}
+\hline
+ & rm & sf & tt \\ \hline
+한글 & nanummj & nanumgt & nanumgt \\ \hline
+한자 & uhcmj & nanumgt & nanumgt \\ \hline
+\end{tabular}
+\end{center}
+
+글꼴 가족을 지정하는 것은 다음 NFSS 명령을 쓴다.
+윗줄의 세 개는 인자를 갖는 `명령형'이고 아랫줄의 세 개는
+`선언형'이다.
+\begin{boxedverbatim}
+\textrm, \textsf, \texttt
+\rmfamily, \sffamly, \ttfamily
+\end{boxedverbatim}
+이 명령이 주어지면 라틴문자 영역뿐 아니라 한글과 한자 영역에 대해서도
+위의 표에 주어진 대응에 따라 한글과 한자를 식자한다.
+
+이밖에 series, shape, size 등에 해당하는 NFSS 명령이
+한글과 한자에 다 적용된다.
+
+\kotex-utf에서는 (\XeTeX-\ko와 달리) 수학 문자에
+한글 글꼴을 쓸 수 없다. 수학 글꼴들은 라틴 문자와 같이 취급되며
+NFSS의 수학 글꼴 명령을 그대로 따른다.
+수식 안에 한글 텍스트를 넣어야 한다면 \pkg{amsmath}의
+\cmd{\text} 명령을 쓴다.
+
+\section{글꼴의 제한과 더 많은 글꼴 사용에 대한 문제}
+
+Legacy \TeX 과 \XeTeX, \LuaTeX 의 가장 큰 차이 중의 하나가
+폰트 문제에 관련된 것이다. 즉 새로운 텍 엔진들은 트루타입, 오픈타입과
+같은 글꼴을 자유롭게 다룰 수 있게 됨으로써, 종래 \TeX 의
+폰트 사용 방식에 더이상 구애되지 않아도 되게 되었다.
+
+\begin{table}[b]
+\centering
+\caption{한글 글꼴 사용 범위}
+\begin{tabular}{c|c|c|c|c}
+\hline
+ & mf & type 1 & truetype & opentype \\ \hline \hline
+tex + dvips & 가능 & 가능 & & \\ \hline
+tex + dvipdfmx & 가능 & 가능 & (변환필요) & (변환필요) \\ \hline
+pdftex & 가능 & 가능 & (변환필요) & (변환필요) \\ \hline \hline
+xetex & 가능 & 가능 & 직접 사용 & 직접 사용 \\ \hline
+luatex & 가능 & 가능 & 직접 사용 & 직접 사용 \\
+\hline
+\end{tabular}
+\end{table}
+
+만약 더 많은 글꼴의 사용을 원한다면 이 텍 엔진으로 갈아타는 것이 좋다.
+\circemph{폰트가 문제라면 \XeTeX 을 쓰시라.}
+
+애초부터 \kotex 은 폰트 사용에 관하여 많은
+고민이 있었고 몇 가지 방법을 제시한 바 있으며 그 명령들은 여전히
+유효하지만, 굳이 그렇게까지 하면서 Legacy \TeX 에서 ``많은 폰트''를
+사용할 필요가 없어졌다.
+
+\subsection{\kotex 의 글꼴 관련 명령}\label{sec:oldmethod}
+
+아래 \kotex 이 마련해 둔 폰트 관련 명령 몇 개를 정리하여 둔다.
+
+\begin{boxedverbatim}
+\SetHangulFonts{mj}{gt}{tz}
+\SetHanjaFonts{mj}{gt}{tz}
+\end{boxedverbatim}
+기본 글꼴을 설정한다. 세 개의 인자는 각각 명조/고딕/타자에 해당한다.
+
+\begin{boxedverbatim}
+\SetSerifFonts{hangul}{hanja}
+\SetSansFonts{hangul}{hanja}
+\SetMonoFonts{hangul}{hanja}
+\end{boxedverbatim}
+두 개의 인자는 각각 한글 영역과 한자 영역을 식자할 글꼴 이름이 온다.
+
+\begin{boxedverbatim}
+\SetAdhocFonts{hangul}{hanja}
+\end{boxedverbatim}
+본문에서 일시적으로 글꼴을 바꾸고자 할 때 쓰기 위해 마련된 명령이다.
+특히 이 명령은 한글과 한자 영역에만 영향을 끼치므로 라틴 문자 영역은 별도로
+지정해주어야 한다.
+
+\subsection{Legacy \TeX 을 위한 한글 글꼴 패키지들}
+
+새로운 텍 엔진의 등장으로 이제 사실상 필요가 사라졌지만
+한때 다양한 글꼴 패키지가 만들어져서 유통된 사례들이 많다.
+
+그 가운데는 백묵 글꼴, 문화부 글꼴, 윈도우즈 기본 글꼴, 한겨레결체 등을
+텍이 사용할 수 있도록 조성하여 제공한 경우도 있었으나, 현재 이 패키지들을
+찾아보기는 어렵다.
+
+\paragraph{은글꼴 type 1}
+현재 \kotex\ 저장소에서 \pkg{kotex-base}라는 이름으로 제공되는
+untype1\index{은글꼴 type 1}은 종래 기본 글꼴로 사용되던 것이므로 이 글꼴 패키지를
+다시 사용하기를 원하는 경우가 있을 수 있다.
+이 때는 먼저 이 패키지를
+\begin{verbatim}
+tlmgr install kotex-base
+\end{verbatim}
+설치한 후에, 본문에서 다음 한 줄을 추가해준다.
+\begin{boxedverbatim}
+\usepackage{dhucs-untype1}
+\end{boxedverbatim}
+
+\paragraph{트루타입 글꼴}
+이제 필요가 줄었지만, 그래도 트루타입 폰트를 \kotex-utf에서
+사용하려 하며, 폰트 라이선스 등에 대하여
+자신이 책임질 수 있고, 약간의 복잡한 설정 작업을
+기꺼이 해내려 한다면, \textsf{ttf2kotexfont} 유틸리티를 사용하면
+된다. 이 유틸리티의 사용법은 이 문서 말미에 별도의 장으로 마련되어 있다(\pageref{cha:truetype}페이지, \ref{cha:truetype}장).
+
+\subsection{엄격한 문자 체크}
+
+한글 문서 작성 상황은 매우 복잡해서, 현재 사용중인 폰트에 사용자가
+표현하고자 하는 모든 문자가 구비되어 있지 않은 경우가 많다.
+은글꼴의 은바탕체만 하더라도 예컨대 한자는 KS X 1001에 해당하는 4888자밖에는
+들어 있지 않다.
+
+그런데 \TeX 은 \file{.tfm}이 아예 없다면 에러를 내지만 \file{.tfm}은
+있으나 그 \file{.tfm}의 문자 정의에 해당 글자가 없는 경우에는
+다만 글자를 식자하지 않고 경고만을 보이고 지나가면서 \file{.log}에 기록하는 것에
+그친다. 그 결과 \file{.log}를 세심하게 살피지 않으면 혹 부지불식간에
+특정 문자를 식자하지 못하는 결과를 초래하게 된다.
+
+이 때문에 도입된 옵션이 \texttt{[strictcharcheck]}이다.
+이 옵션을 활성화하면 \eTeX 의 원시명령을 이용하여 만약 \file{.tfm}은
+있는데 특정 문자가 없다면 에러를 발생시키면서 컴파일을 멈추게 한다.
+문서 작성자는 이를 통해 현재의 상황을 보다 잘 인식하고 폰트를 교체하거나
+임시 폰트를 지정하는 등의 조치를 취할 수 있을 것이\다. \index{strictcharcheck}\index{엄격한 문자 체크}
+
+이 옵션을 지정하지 않으면 에러를 보여주지 않고 다만 \file{.log}에만
+기록한다.
+
+\chapter{한글 문서 서식을 위한 부가 패키지들}
+
+\section{강조 방식}\label{sec:gremph}
+
+\ref{sec:emphasis} 소절에서 논의한 바와 같이 강조 명령(\cmd{\emph})이
+주어졌을 때 기울인 글자체를 쓸 것인지 글꼴 대체 방식을 쓸 것인지를 정할 수 있게
+하는 부가 패키지가 \pkg{dhucs-gremph}이다.
+
+이 패키지를 로드하면 \cmd{\emph} 명령의 강조 부분이 \emph{나눔고딕}으로 식자된다.
+은글꼴 type 1 패키지를 사용할 경우, 은그래픽 서체가 기본이었던 것을 상기하라.
+
+패키지가 제공하는 명령이 몇 가지 있다.
+
+\begin{boxedverbatim}
+\SetGremphFonts{hangul}{hanja}
+\end{boxedverbatim}
+강조 부분에 식자할 글꼴을 지정한다.\footnote{%
+ 현실적으로 생각해보면 현재의 \kotex\ 이용 상황에서
+ \pdfLaTeX 으로 사용자가 추가적인 type 1 글꼴이나 트루타입 \TeX\ 글꼴을 사용하게 될 가능성은
+ 거의 없다고 보는 것이 좋을 것이다. gremph 기능도 결국 글꼴의 문제이므로 이 문제를 더
+ 섬세하게 제어하려면 \XeTeX\ 엔진을 사용할 것을 권한다.}
+주의할 점은 은글꼴이나 \util{ttf2kotexfont}로
+설치한 트루타입 글꼴 사용시에는 폰트 이름 앞에 `o'를 하나 붙여주어야 한다는 점이다.
+즉
+\begin{verbatim}
+\SetGremphFonts{nanummj}{nanumgt}
+\end{verbatim}
+으로 좋지만, 은글꼴일 경우
+\begin{verbatim}
+\SetGremphFonts{outgr}{outgt}
+\end{verbatim}
+와 같이 지정해야 정상적으로 동작한다.
+
+\begin{boxedverbatim}
+\ungremph, \regremph
+\end{boxedverbatim}
+강조 방식을 기울인 글꼴로 되돌리거나 이를 다시 글꼴 대체 방식으로 하라는 명령이다.
+
+%만약 emph에 해당하는
+%글꼴을 그래픽이 아닌 다른 글꼴로 바꾸고 싶다면 다음과 같이 한다.
+%\begin{verbatim}
+%\usepackage[gremphhangul=unbm,gremphhanja=unyt]{dhucs-gremph}
+%\end{verbatim}
+%첫번째 인자는 한글, 두번째 인자는 한자 글꼴을 지정하는 것이다.
+%또, emph에 해당하는 문자를 굵은글꼴로 하고 싶으면,
+%\begin{verbatim}
+%\usepackage[bfemph]{dhucs-gremph}
+%\end{verbatim}
+%와 같이 \verb|[bfemph]| 옵션을 지정한다.\footnote{%
+% 은글꼴 중에는 boldface 글꼴이 따로 마련되어 있지 않은 것이 많다는
+% 점에 주의하라. 이 경우에는 약간의 Warning을 내면서 그냥 보통 글꼴로
+% 식자된다.}
+%문서의 중간에서 기울임 방식과 글꼴 변경 \verb|\emph| 방식을 바꿀 수도 있다.
+%각각 \verb|\regremph| 명령과 \verb|\ungremph|를 사용한다.
+%\regremph\verb|\regremph|를 지정한 경우에는,
+%\begin{quote}
+%\emph{테스트. test.}
+%\end{quote}
+%와 같이 식자되고, \ungremph\verb|\ungremph|를
+%설정한 경우에는,
+%\begin{quote}
+%\emph{테스트. test.}
+%\end{quote}
+%와 같이 식자된다.
+%\regremph
+
+\section{각주 형식}\label{sec:fn}
+
+\subsection{dhucsfn의 각주 판짜기}
+
+\pkg{dhucsfn} 패키지는 \wi{은광희}의 H\LaTeX\ 1.0.1과
+\kotex-euc에 있는 \pkg{hangulfn} 패키지를 \kotex 으로
+포팅한 것이다. 아래 사용법 설명과 용어는 원본 패키지에 대한
+설명을 담고 있는 hlatexguide 문서에서 그대로 가져왔다.
+
+\bigskip
+
+패키지의 사용법은 다음과 같다.
+\begin{verbatim}
+ \usepackage[선택사항]{dhucsfn}
+\end{verbatim}
+
+\texttt{선택사항}(옵션)으로는 각주 번호의 판짜기 방식을 지정하는
+\texttt{첨자}와 \texttt{괄호}가 있는데 각각 다음과 같이 짜여진다.
+\begin{itemize}
+\item \texttt{첨자(superscript)}: \xample{$^1$각주문}
+\item \texttt{괄호(parenthesis)}: \xample{1) 각주문}
+\end{itemize}
+\texttt{첨자}의 경우에는 각주 번호와 각주문 사이가 붙고
+\texttt{괄호}의 경우에는 소괄호와 각주문 사이에 구분 공간이 있다.
+애초값은 \texttt{첨자}이다.
+
+각주 판면의 판짜기를 지정하는 \texttt{선택사항}의 종류는 다음과
+같다.
+\begin{itemize}
+
+\item \texttt{다항이어쓰기(multipara)}: 연이은 각주가 새 행에서 시작하지 않고 이전
+ 행의 오른쪽에 나열되며, 새 각주의 넓이가 행의 오른쪽 경계를 넘어 설
+ 때에 그 각주는 새 행에서 시작한다. 문서 전체가 길이가 짧은 각주로만
+ 구성될 때에 사용할 수 있는 판짜기 방식이다.
+
+ \xample{\rule{2in}{.4pt}\\
+ \footnotesize 12)~첫번째 각주\qquad 13)~두번째 각주\qquad
+ 14)~세번째 각주\qquad 15)~네번째 각주\linebreak 16)~다섯번째
+ 각주\qquad 17)~여섯번째 각주\qquad 18)~일곱번째 각주\qquad
+ 19) 여덟번째 각주 }
+
+\item \texttt{단순이어쓰기(para)}: ``\texttt{다항이어쓰기}''와 같은 방식이나
+ 한 각주의 넓이가 행의 오른쪽 경계를 넘어 설 때에 경계를 넘어서는
+ 부분이 줄바꿈에 의해 다음 행으로 넘겨진다는 점이 다르다.
+
+ \xample{\rule{2in}{.4pt}\\
+ \footnotesize 12)~첫번째 각주\quad 13)~두번째 각주\quad 14)~세번째
+ 각주\quad 15)~네번째 각주\quad 16)~다섯번째 각주\quad 17)~여섯번째
+ 각주\quad 18)~일곱번째 각주\quad 19)~여덟번째 각주}
+
+\item \texttt{내어쓰기(hang)}: 각각의 각주는 새 행에서 시작한다. 각주 번호가
+ 각주문의 왼쪽으로 내어 써 지고, 각주문의 왼쪽맞춤 위치가 각주문의 첫
+ 글자의 위치이다. 이 방식이 애초값이다.
+
+ \xample{\rule{2in}{.4pt}\\
+ \footnotesize\tabcolsep0pt
+ \begin{tabular}[t]{lp{.9\columnwidth}}
+ 12)~ & 각주면의 각주 번호와 구분 공간을 각주문으로부터 왼쪽으로 내어
+ 쓰는 방식이다. 각주문의 가로 넓이는 본문의 가로 넓이에서 각주
+ 번호와 구분 공간의 넓이만큼 뺀 길이이다.
+ \end{tabular}
+ }
+
+\item \texttt{왼쪽맞춤(leftflush)}: 각각의 각주는 새 행에서 시작한다. 각주의 첫
+ 줄이 왼쪽맞춤으로 짜진다.
+
+ \xample{\rule{2in}{.4pt}\\
+ \footnotesize
+ 12)~각주 번호와 각주문이 들여쓰기나 내어쓰기에 의해 구분되지 않고
+ 전체가 하나로 왼쪽맞춤 되는 판짜기 방식이다. 각주 번호와 각주문의
+ 사이에는 구분 공간이 삽입된다. 구분 공간은 \texttt{첨자}의 경우
+ 0pt이고 \texttt{괄호}의 경우 공간 문자이다.
+ }
+
+\item \texttt{들여쓰기(indent)}: 라텍이 제공하는 기본 각주 판짜기와 유사한
+ 방식이다. 각주 번호는 3배각의 위치에서 오른쪽으로 정렬되며 각주문이
+ 구분 공간을 사이에 두고 이어진다. 각주문 사이에 줄바꿈이 일어나면
+ 새 행이 본문의 왼쪽 맞춤 위치에서 시작한다.
+
+ \xample{\rule{2in}{.4pt}\\
+ \footnotesize\settowidth{\dimen0}{각주}
+ \hbox to1.5\dimen0{\hss 12)}~첫줄 들여쓰기 방식이다. 각주 번호의
+ 끝이 왼쪽 가장 자리에서부터 3배각의 위치이다. 연이은 각주의 각주
+ 번호도 같은 위치에 정렬된다.\\
+ \hbox to1.5\dimen0{\hss 13)}~이어지는 각주이다. 각주 번호가 위쪽의
+ 각주 번호와 함께 오른쪽으로 정렬되었다.
+ }
+
+\item \texttt{들여왼쪽맞춤(leftflushindent)}: ``\texttt{왼쪽맞춤}''과 같은 방식이다.
+ 전체 각주면이 본문으로부터 오른쪽으로 2배각 들여 써진다.
+
+ \xample{\rule{2in}{.4pt}\\
+ \footnotesize\settowidth{\dimen0}{각주}\tabcolsep0pt
+ \begin{tabular}[t]{lp{.9\columnwidth}}
+ \rule{\dimen0}{0pt} &
+ 12)~각주 번호와 각주문이 들여쓰기나 내어쓰기에 의해 구분되지 않고
+ 전체가 하나로 왼쪽맞춤 되는 판짜기 방식이다. 전체 각주면이
+ 본문의 왼쪽맞춤 위치에서 2배각 들여진다.
+ \end{tabular}
+ }
+
+\item \texttt{들여내어쓰기(hangpar)}: ``\texttt{들여쓰기}''와 같은 방식이다. 전체
+ 각주면이 본문으로부터 오른쪽으로 2배각 들여 써진다.
+
+ \xample{\rule{2in}{.4pt}\\
+ \footnotesize\tabcolsep0pt
+ \settowidth{\dimen0}{각주}
+ \hspace*{\dimen0}
+ \multiply\dimen0 by-1 \advance\dimen0 .89\columnwidth
+ \begin{tabular}[t]{lp{\dimen0}}
+ 12)~ & 각주면의 각주 번호와 구분 공간을 각주문으로부터 왼쪽으로
+ 내어 쓰는 방식이다. 전체 각주면은 본문의 왼쪽에서 2배각 들여
+ 짜진다. 각주문의 가로 넓이는 본문의 가로 넓이에서 각주 번호와
+ 구분 공간의 넓이 그리고 2배각의 넓이를 뺀 길이이다.
+ \end{tabular}
+ }
+
+\item \texttt{들여괄호맞춤(varhangpar)}: ``\texttt{들여내어쓰기}'' 방식과 같으나
+ 각주문에서 줄바꿈에 의해 새로 시작하는 행의 왼쪽이 각주 번호에
+ 사용되는 괄호의 끝에 정렬되는 점이 다르다. 각주 번호 양식이
+ ``\texttt{괄호}''로 바뀐다. 각주 번호와 각주문의 간격은 1배각이다.
+
+ \xample{\rule{2in}{.4pt}\\
+ \footnotesize\tabcolsep0pt
+ \settowidth{\dimen0}{각주}
+ \hspace*{\dimen0}
+ \multiply\dimen0 by-1 \advance\dimen0 .89\columnwidth
+ \begin{tabular}[t]{lp{\dimen0}}
+ 12) & ~~각주면의 각주 번호를 각주문으로부터 왼쪽으로 내어 쓰는
+ 방식이다. 각주 번호와 각주문 사이에는 1배각의 간격이 삽입된다.
+ 전체 각주면은 본문의 왼쪽에서 2배각 들여 짜진다. 줄바꿈 후에 새
+ 행이 각주 번호의 괄호 다음에서 시작했다.
+ \end{tabular}
+ }
+\end{itemize}
+
+\subsection{각주 문단 모양 관련}
+
+한글 문서는 기본 행간을 영문 문서에 비하여 넓혀 잡기 때문에 각주 사이의
+간격이 흐트러져서 모양이 일그러지는 경우가 생긴다. 즉, 한글 문서에서는
+각주 사이의 간격을 적당하게 재조절해주어야 한다. 이에 대해서 \pkg{dhucs-setspace}가 약간의 해결책을
+제시해주시만, 각주 내의 행간을 재조절하는 특징이 있다.
+일반적인 문서에서 각주 행간을 본문 행간과 동일하게 할 것인가 아니면
+좁은 행간을 쓸 것인가는 전적으로 선택의 문제이지만, \verb|\footnotesep|
+길이값을 저자가 직접 설정해줄 필요가 있다는 점을 기억해두자.
+
+\wi{각주 문단}이 다음 페이지로 넘어가는 문제와 관련하여, \LaTeX 에서는
+각주 번호가 찍힌 페이지보다 앞에 각주가 먼저 나오는 경우가 없다는
+것을 알아두어야 한다. 이 때문에 각주 위치잡기를 위해서 페이지의
+하단이 비는 경우도 생기는데, 이를 해결하는 여러 가지 방법이 \LaTeX{}
+관련 팁으로 제시되고 있다. 그 가운데 하나는 \pkg{bigfoot}\를
+사용하는 것이다.
+\pkg{bigfoot}나 \pkg{footmisc} 등의 사용법을 익혀두면 문서 작성에서
+도움을 얻는 경우가 많다.
+
+\section{자간, 행간, 단어간격}\label{sec:interhchar}
+
+\subsection{자간과 어간: dhucs-interword}\label{sec:interskip}
+
+\paragraph{자간}
+\wi{자간}을 처리하는 데는 있어서 알아두어야 할 것은 다음과 같다.
+
+문서 전체에 해당하는 기본 자간은 \verb|\setInterHangulSkip|이라는
+명령을 통하여 지정할 수 있다.
+\begin{verbatim}
+\setInterHangulSkip{0pt}
+\end{verbatim}
+또한 폰트마다 각각 다른 자간값을 폰트 속성으로 부여해두었으므로,
+위의 명령을 지정했다 하더라도 \verb|hfontspec|을 불러들이면
+모두 폰트 속성값으로 대체된다. 따라서 위의 명령은 그다지 유용하지
+못하고 사용자가 문서에서 활용할 만한 것이 아니다. 실제 자간은
+판면의 모양을 심하게 일그러뜨리므로 되도록 사용자 수준에서 그 조절은
+삼가야 할 것이다.
+
+그럼에도 불구하고, 자간을 조절할 수 있는 유틸리티 패키지가 제공된다.
+이것은 \pkg{dhucs-interword}
+패키지의 기능 중의 하나이다. \verb|\interhchar| 명령을 이용한다.
+\begin{verbatim}
+\usepackage{dhucs-interword}
+\interhchar{0pt}
+\end{verbatim}
+
+\kotex-utf에서 \verb|\setInterHangulSkip|과 \verb|\interhchar|는
+사실상 동일한 명령이다.
+
+\pkg{dhucs-interword} 등을 씀에 있어 주의할 점은,
+\texttt{[default]} 옵션으로
+로드하면 기본 자간이 $0$pt로 리셋된다는 점이다. 그러므로 폰트 속성
+자간값을 적용하려면 패키지 로드를 선언한 이후에
+\verb|\usehangulfontspec| 명령을 호출하는 것이 좋다.
+\begin{verbatim}
+\usepackage[default]{dhucs-interword}
+\usehangulfontspec{ut}
+\end{verbatim}
+
+\pkg{dhucs-interword}\가 의도대로 동작하려면 \kotex-utf에서
+\texttt{finemath}가 활성화되어 있어야 한다.
+
+\paragraph{단어간격}\label{sec:interword}\index{단어 간격}
+
+단어 간격과 관련된 \LaTeX{} 명령은 \verb|\spaceskip|이다. 그리고
+nonfrench spacing에서 \verb|\xspaceskip|은 마침표 뒤의 여분 공백의
+크기를 지정한다.
+
+\pkg{dhucs-interword} 패키지는
+단어 간격의 기본값을 설정하거나 바꿀 수 있는 명령 \cmd{\interhword}를 제공한다.
+\begin{verbatim}
+\usepackage{dhucs-interword}
+\interhword[.6]{.475}{.1}{.1}
+\end{verbatim}
+여기에서 \verb|[.6]|으로 주어진 옵션 인자는 \verb|\xspaceskip| 값을 의미하며, french
+spacing에서는 무의미하다. 이 값들은 문서 기본 폰트 사이즈의
+승수값을 의미한다. 즉, $.475$라는 것은 $0.475\times 10\mbox{pt} = 4.75\mbox{pt}$가
+되는 것이다. \texttt{[12pt]} 옵션의 문서라면 이 값이 달라진다.
+
+첫번째 인자와 두번째, 세번째 인자 사이는 다음과 같은
+규칙으로 적용된다.
+\begin{verbatim}
+ <first> plus <second> minus <third>
+\end{verbatim}
+
+\paragraph{dhucs-interword의 옵션과 명령}
+자간과 단어 간격을 설정하는
+\pkg{dhucs-interword}에서 사용할 수 있는 옵션과 매크로는 다음과 같다.
+\begin{description}
+\item[\texttt{[default] 옵션}] 한글 문서에 적당한 자간과 어간을
+설정한다. 영문자의 자간 및 어간보다 조금 넉넉한 정도이다.
+\item[\texttt{[HWP] 옵션}] 아래아한글 97의 기본 자간 및 어간 설정을
+흉내낸 것이다. \texttt{[default]}보다 어간이 더 넓다.
+\item[\texttt{\textbackslash interhword 매크로}]
+ 어간을 임의로 설정하게 한다.
+\item[\texttt{\textbackslash interhchar 매크로}]
+ 자간을 임의로 설정하게 한다. 한 개의 인자를 취하는데 반드시 길이단위를
+ 붙여주어야 한다. \verb|\interhchar{0pt}|는 자간을 0 point로
+ 만드는 것이다. 다만, 이 방식에 의한 자간의 변경은 그다지 권장하지 않는다.
+ 왜냐하면 자간은 폰트 자체의 속성으로 간주하여 hfontspec에 의해 제어되는
+ 것이 바람직하다고 보기 때문이다. \pkg{dhucs-interword}\는 단어 간격의
+ 제어에만 활용되는 것이 좋으리라고 생각한다.
+\end{description}
+
+\subsection{행간: dhucs-setspace}\label{sec:setspace}
+
+행간은 \verb|\baselinestretch|나 \verb|\linespread|를 이용하여
+간단하게 제어할 수 있지만 좀더 복잡한 경우도 없지는 않다. 예를 들면
+문서 일부에 별도의 행간을 적용한다든가\cntrdotss.
+
+행간을 제어하기 위하여 제공되는 패키지는
+\pkg{dhucs-setspace}이다. \pkg{setspace} 패키지를
+한글화한 것이다.
+
+\begin{verbatim}
+\usepackage[hangul]{dhucs-setspace}
+\end{verbatim}
+
+\pkg{dhucs-setspace}는 \pkg{setspace}를 불러온다.
+그리고 \pkg{setspace}의 모든 기능을 다 쓸 수 있다.
+즉, \texttt{singlespace}, \texttt{doublespace}, \texttt{onehalfspace} 등
+환경과 \texttt{\textbackslash singlespacing} 같은 선언,
+일시적으로 행간격을 바꾸는 \texttt{spacing}
+환경을 쓸 수 있다.
+\pkg{secspace} 자체의 사용법은 해당 패키지 문서를 참고하라.
+
+\paragraph{본문 기본 행간격}
+\texttt{[hangul]} 옵션을 활성화하거나 이 패키지를 로드하면
+기본 행간이 \texttt{1.333}으로 변경된다. \pkg{setspace}가
+제공하는 \cmd{\setstretch\{1.333\}}도 같은 의미가 된다.
+
+\pkg{setspace}의 독특한 특징 중 하나가, 행간을 늘리더라도
+floats(그림과 표), footnote 안의 행간은 여전히 1.0으로 고정된다는
+것이다. 한글화 과정에서 이 개념을 확대하여, 본문 행간의 종류를 넓은 행간과 좁은 행간
+두 종류로 나누고 좁은 행간을 footnote, floats, quote, verbatim
+등에 적용한다. 다음 명령은 ``넓은 행간''과 ``좁은 행간''의 \verb|stretch| 값을 미리 설정하는
+것이다.
+\begin{boxedverbatim}
+\SetHangulspace{1.333}{1.2}
+\end{boxedverbatim}
+\pkg{dhucs-setspace}를 쓰는 경우라면 본문 전체의 행간을 \cmd{\linespread}나
+\cmd{\setstretch}를 쓰지 않고 이 명령을 이용하여 설정하는 방법도 있다.
+
+\medskip
+
+\paragraph{추가된 옵션과 매크로}
+한글화를 통하여 추가된 옵션과 매크로만을 소개하면
+다음과 같다.
+\begin{description}
+\item[\texttt{[nofloatspacing] 옵션}]
+ figure, table 등의 float 내에서 간격을 줄이는 기능을 끈다.
+\item[\texttt{[noquotespacing] 옵션}]
+ quote 환경 안에서 간격을 줄이는 기능을 끈다.
+\item[\texttt{[hangul] 옵션}]
+ 한글화 매크로인 \verb|\SetHangulspace| 명령을 쓸 수 있게 하고
+ 행간을 한글 문서 기본값으로 설정한다.
+\item[\texttt{[adjustverbatim] 옵션}]
+ verbatim 환경 안에서 좁은 간격을 적용한다.
+\item[\texttt{[adjustfootnotesep] 옵션}]
+ 각주는 기본적으로 좁은 간격으로 된다. 그러나 각주 간 간격은 자동으로
+ 맞추어지지 않는데 이것을 조금 보정하도록 한 것이다. 행간을 임의로
+ 설정하려 할 때는 무의미하고 기본값에 대응시킨 것이다.
+\item[\texttt{\textbackslash SetHangulspace 매크로}]
+ 두 개의 인자를 취하여 첫번째 것을 기본 행간, 두번째 것을
+ 좁은 행간 간격으로 한다. 인자는 모두 stretch 값이어야 한다.
+ 예를 들면 \verb|\SetHangulspace{1.3}{1.1}|과 같은
+ 방법으로 사용하며, 전처리부(preamble)에서만 사용한다. `좁은 행간'은 float,
+ 각주 등에 사용되는 행간을 말한다.
+\end{description}
+
+\section{장절표제}\label{sec:sectsty}
+
+\kotex 은 \texttt{[hangul]} 옵션을 두고 있다. 이 옵션을 활성화하면
+두 가지 중요한 변화가 일어난다.
+\begin{enumerate}
+\item 한글식 이름(names)을 사용한다. 그래서 Figure와 같은 표제 이름이
+`그림'으로 바뀐다.
+\item 한글식 장절표제 모양이 활성화된다. 예를 들면 ``Chapter 1''이 아니라
+``제 1 장'' 형식으로 식자한다.
+\end{enumerate}
+
+그러나 이것만으로는 충분하지 못하다.
+\wi{장절표제의 형식}을 바꾸는 많은
+패키지들이 있지만
+한글 장절표제 형식과 일치하지 않아서 그대로 쓸 수 없는 경우가 많다.
+
+장절 관련 모든 패키지를 다 한글화할 수는 없으나
+%\pkg{sectsty} 이를 한글화해 두었다.
+%이것은
+Rowland MacDonnell 씨의
+\pkg{sectsty} 패키지는 한글화해 두었다.
+%\pkg{sectsty}에 없고 새로 추가된
+%옵션은 \texttt{[ensec]}인데, 이 옵션을 주면 \thispkg 에 \texttt{[hangul]}
+%옵션을 주었더라도 \texttt{제 1 절}과 같은 형식이 아니라 영문 문서에서와
+%같이 \texttt{제}와 \texttt{절}이 붙지 않는 형식으로 식자된다.
+%그밖의 사용법은 \pkg{sectsty}에서와 같다. 다음은 절 모양을 바꾸는 한 가지
+%보기이다.
+\pkg{dhucs-sectsty}이 그것이다.
+
+이 패키지의
+장절표제 설정 명령과 함께 한글식 장절표제 형식을 유지하도록 해준다.
+\pkg{sectsty} 자체의 사용법은 해당 패키지 문서를 참고하라.
+
+\pkg{sectsty}에는 없고 \pkg{dhucs-sectsty}에 추가된 옵션
+\option{ensec}은 한글 서식을 적용(\pkg{kotex}에 \option{hangul}을 지정)한 경우에도
+절 제목에 한해서 ``제''와 ``절'' 없이 숫자만 찍힌다.
+
+\section{우리글 문장부호}\label{sec:hfontspec}
+
+\kotex 에는 \texttt{[finemath]} 옵션으로
+물음표와 느낌표, 그리고 온점 마침표의 수직 위치를 조절하는
+기능이 있다. 이것은 영문 폰트의 아스키 문장부호를 가져다 쓰기 때문에
+불가피한 것이었다. 또한 수평 간격도 일부 조절해준다.
+
+수직 이동값은 글꼴 속성으로 간주하여 \cmd{\usehangulfontspec}에 의해
+호출되는 설정 파일 \texttt{hfontspec.<name>}에 미리
+기록해두는 방식이다.
+
+사용자가 이 문장부호의 이동값을 직접 제어하려면
+자신의 설정값을 지정하고 이를 예를 들어 \file{hfontspec.my}라고
+저장한 다음 \cmd{\usehangulfontspec}\texttt{\{my\}} 명령을
+전처리부에 적어서
+불러들이면 된다.
+
+다음 예는 은글꼴 type 1의 지정값 예제이다.
+\begin{verbatim}
+hu = .059375em
+interhchar = -.03266em
+fullstoplower = .15ex
+exclamationlower = .15ex
+questionlower = .15ex
+\end{verbatim}
+여기서 \texttt{hu}는 \kotex 의 미세 조정을 위한 기본 길이 단위이다.
+예를 들어보면
+\pageref{sec:finemath}페이지에서 설명한 바 \option{finemath}에서 행중수식과 한글 문자 사이의
+간격으로 $3\times\text{\texttt{hu}}$가 디폴트로 설정되어 있다.\footnote{%
+ \pageref{sec:finemath}페이지에 이 값을 변경하는 방법이 설명되어 있다.}
+따라서 이 값을 $0$pt로 하면
+\option{finemath}가 동작하지 않게 된다.
+다른 단위에 대해서는 이름 그 자체로 알 수 있으므로 설명을 생략한다.
+
+그러나, 이 작업은 폰트와 판면에 대한 전문적인 이해가
+필요한 분야이므로 일반 사용자에게 권할 수는 없으며,
+은글꼴과 같은 특별한 글꼴이 아니라면 대부분의 경우 문장부호를 강제로 이동시킬 필요가 크지 않다.
+
+
+\chapter{색인(찾아보기) 만들기}\label{sec:komkindex}
+
+\section{색인 작성 유틸리티 \util{komkindex}}
+
+\kotex-utf는 \file{kotex.ist}라는 색인 스타일 파일과
+\util{komkindex}라는 makeindex wrapper 유틸리티를 제공한다.
+\pkg{makeidx}에 의해 만들어지는 \file{foo.idx} 파일을
+색인 환경으로 변환해주는 역할을 한다.
+
+다음과 같은 형식으로 쓸 수 있다.
+\begin{verbatim}
+$ komkindex(.pl) -s kotex foo
+\end{verbatim}
+이 명령은 \texttt{foo.idx}에서 \file{foo.ind} 파일을
+만들어내며, 한글 자모를 기준으로 정렬하여 준다.
+\util{makeindex} 옵션을 그대로 쓸 수 있다.
+
+\bigskip
+
+\util{makeindex}에 바탕을 둔 \util{komkindex} 외에도
+\util{xindy}라는 강력한 유니코드 색인 생성 유틸리티를 한국어화한
+\util{xindy modules}이 함께 제공되는데, \XeTeX 이나 \LuaTeX 과
+함께 쓸 때 좋은 결과를 얻을 수 있다.
+
+그러나 \kotex-utf에서는 \util{komkindex}를 사용하는 것이 좋고
+잘 동작한다.
+
+\section{간단한 색인 작성의 보기}
+
+색인을 만들려면 먼저 \pkg{makeidx} 패키지를 불러야 한다.
+그런 다음 \cmd{\makeindex} 명령을 선언한다.
+\begin{verbatim}
+\usepackage{makeidx}
+\makeindex
+\end{verbatim}
+
+본문에서 색인에 들어갈 단어에 \cmd{\index}를 붙인다.
+\begin{verbatim}
+색인\index{색인}
+\end{verbatim}
+
+\cmd{\index}\texttt{\{색인!인덱스\}}라고 마크하면
+이것은 ``색인''이라는 항목의 하위 항목으로 ``인덱스''라는
+항목이 취급되도록 하라는 의미이다. 한편, \cmd{\index}\texttt{\{금서목록@인덱스\}}라고 마크하면, 항목의 엔트리는 ``금서목록''으로 하되, 정렬 기준을 ``인덱스''에
+맞추라는 의미이다.
+이밖에도 색인을 세밀하게 조절하기 위한 많은 방법이 있다.
+
+문서에서 색인이 들어갈 위치에 다음 명령을 기록한다.
+\begin{verbatim}
+\printindex
+\end{verbatim}
+
+
+이런 식으로 문서를 작성하여 \LaTeX 을 실행하면, \texttt{.idx}라는
+확장자를 가진 파일이 생긴다. 이 파일에 대하여 \util{makeindex}를 실행한다.
+\begin{verbatim}
+# latex foo
+# komkindex -s kotex foo
+# latex foo
+\end{verbatim}
+
+이제 찾아보기가 나타난다.
+
+\bigskip
+
+``찾아보기''라는 이름을 ``색인''으로 바꾸는 것은 \pageref{sec:names}페이지 \ref{sec:names}절에서 설명한 대로 \cmd{\ksnamedef}\texttt{\{indexname\}\{색인\}} 형식을 이용하면 된다.
+
+\bigskip
+
+참고로, \XeTeX 이나 \LuaTeX 에서 한글 색인을 작성하려면 다음 순서로 한다.
+\begin{verbatim}
+# xelatex foo
+# texindy -L korean -I omega foo.idx
+# xelatex foo
+\end{verbatim}
+\index{kotexindy}\index{Utilities!kotexindy}
+
+\part{그밖의 것들}
+
+%%% plainTeX
+\chapter{plain\protect\TeX 과 \kotex}\index{plain\TeX}
+
+\hfill\begin{minipage}{.5\linewidth}
+\footnotesize\sffamily
+\wi{남수진}(\texttt{sjnam at ktug kr})
+\end{minipage}
+
+\bigskip
+
+\def\kotexplain{{\tt kotexplain.tex}}
+\def\hangulcweb{{\tt hangulcweb.tex}}
+
+\noindent 플레인텍과 관련된 \kotex\ 한글 매크로에는 \kotexplain과 \hangulcweb\ 두 개의
+파일이 있다. \kotex 의 plain\TeX\ 지원은 오직 유니코드/UTF-8 인코딩으로만
+가능하며, \eTeX 을 요구한다.
+
+\section{kotexplain.tex}
+
+\kotexplain 은 플레인텍에서 한글을 사용하기
+위한 매크로이다. 플레인텍은 라텍에 비하여 매우 가볍고 단순한
+매크로이지만, 문서나 책을 만드는 데 쓰이기도 한다.
+그 대표적인 예가 바로 \wi{Knuth} 교수의 대표적인 시리즈 저서 {\sl The
+Art of Computer Programming\/}과 {\sl The \TeX book\/}%
+%\cite{Knuth:1984:TB}
+이다.
+
+플레인텍으로 작성된 텍 파일은 단순히 `{\tt tex foo.tex}'과 같이
+컴파일한다. 하지만 한글 사용을 위한 매크로 \kotexplain 은
+\eTeX\ 엔진의 원시명령어(primitives)들을 이용해서 작성되었기 때문에
+한글 플레인텍에 한해서는 {\tt tex} 명령어가 아닌 {\tt etex} 또는 {\tt
+pdftex} 명령을 이용하여야 한다.
+한글 플레인텍 문서를 작성하기 위해서는 작성하고자 하는 문서의 첫부분을
+\begin{verbatim}
+\input kotexplain
+\end{verbatim}
+으로 시작하는 것만 빼면 보통의
+플레인텍 문서를 만드는 것과 완전히 동일하다. 플레인텍의 사용법은 그
+유명한 {\sl The \TeX book\/}을 참고한다.
+
+한글 매크로 \kotexplain 을 이용하여 한글 글꼴을 설정하는 방법은 원래의
+플레인텍에서 {\tt \string\font} 명령을 이용하는 그것과는 좀
+다르다. 예를 들어 알아보자. 한글 글꼴은 다음의 세 가지 방법 중 하나로
+정할 수 있다.
+\begin{itemize}
+\item \verb|\hfont{outbtb}{at 12pt}| 이 명령어는 현재의 한글 글꼴을 굵은(bold) 글꼴로 하고, 그 크기는
+12포인트로 변경하라는 명령이며, 세 가지 방법 중 가장 일반적인 방법이다.
+\item \verb|\hfontname{outbtb}| 이
+명령어는 현재 글꼴의 크기를 그대로 유지한 체로 글꼴 모양만 굵을 글꼴로
+변경하라는 의미이며, 이는 \verb|\hfont{outbtb}{}|와 동일하다.
+\item \verb|\hfontsize{at 12pt}| 이 명령은
+현재 글꼴의 모양을 그대로 유지하면서, 크기만 현재의 크기에서 12포인트로
+변경하라는 뜻이다. \verb|\hfont{}{at 12pt}|와 동일하다.
+\end{itemize}
+
+\section{hangulcweb.tex}
+
+플레인텍으로도 멋진 문서를 만들 수 있으나,
+플레인텍으로 문서나 책을 만드는 일은 매우 수고로운 작업이
+될 수 있기 때문에
+대부분의 경우는 쉽게 사용할 수 있는 라텍을 이용한다. 하지만
+반드시 플레인텍을 사용하여야 하는 경우가 있다. 예를 들어, 문학적
+프로그래밍의 대표적인 시스템 {\tt CWEB}은
+플레인텍 매크로들로 이루어져 있기 때문에 {\tt CWEB} 프로그래밍을
+하려면, 플레인텍을 사용하여야 한다. 또 GNU의 여러 프로그램들의 사용
+설명서를 만드는 표준인 {\sl texinfo\/} 또한 플레인텍을 이용하여야 한다.
+
+여기서는 한글 {\tt CWEB} 프로그래밍을 하는 방법을 간단히
+알아보자. 한글 플레인텍에서와 마찬가지로 작성하고자 하는 웹파일의 처음을
+\begin{verbatim}
+\input hangulcweb
+\end{verbatim}
+으로 시작하면 된다. 사실은
+\hangulcweb 이 \kotexplain 을 포함하고 있기 때문에 한글 {\tt CWEB}
+프로그래밍이 가능한 것이다. 한글 {\tt CWEB}
+프로그램의 매크로 파일 \hangulcweb 은 {\tt CWEB} 프로그램의 여러 영문
+메시지를 한글화하였고, 가장 큰 특징은 {\tt CWEB} 프로그램이 갖는
+특징 중 하나인 PDF 기능을 한글도 자유롭게 이용 할 수 있도록 구현해
+놓았다는 점이다.
+
+
+\chapter{HTML 제작}\index{HTML 제작}
+
+\texttt{tex} 원본 문서로부터 XML 또는 HTML을 제작하는 방법은 몇 가지가
+알려져 있다. 그 가운데, Eitan Gurari 씨가 만든 \texttt{TeX4ht}\footnote{%
+ \url{http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html}}%
+는 \TeX{}Live에 포함되어 있는 사실상 표준 도구이다.
+
+현재 버전의 \kotex-utf는 \texttt{TeX4ht}를 부분적으로 지원한다.\footnote{%
+ \url{http://ktug.kldp.net/jsboard/read.php?table=contrib&no=4313}}
+즉, \kotex 의 한글 폰트들을 \texttt{TeX4ht}에서 처리할 수 있도록 하는
+부수 파일을 제공하고 있다. \kotex 을 사용하여 작성한 문서를 HTML로 변환하려면
+다음과 같은 명령을 사용하면 된다.
+\begin{verbatim}
+$ htlatex foo.tex "dhucs,html4" " -cunihtf"
+\end{verbatim}
+이 명령을 이용하면 수백 개의 \texttt{.htf} 폰트 없이도 한글 HTML을
+만들어낼 수 있다.\footnote{%
+ 이전에는 한글을 위한 \texttt{TeX4ht}용 글꼴을 만들어서 제공하는
+ 방식을 썼던 적도 있다.}
+
+\texttt{TeX4ht}에서 의도대로 원하는 HTML을 얻으려면 상당한 설정을
+추가적으로 행해야 한다. 즉, 위의 해결책은 HTML/XML로 변환하는
+모든 문제에 대한 해결책을 제공하는 것이 아니다. 그런 문제들은 \kotex
+자체와 관련된 것이 아니라 \texttt{TeX4ht} 설정과 더 깊이 관련되어
+있을 것이기 때문이다.
+표준 라텍 클래스의 문서라면 위에 제시한 정도로 큰 문제없이 HTML을
+얻을 수 있겠지만 복잡한 문서의 경우 의도대로 출력을 얻기 위해 추가적인
+설정을 해야 할 때가 있을 것이다. 자신의 경험을 다른 사람과 공유한다면
+해결책을 더 빨리 찾아나갈 수 있을 것으로 생각한다.
+
+
+\chapter{한글 트루타입 폰트의 사용}\label{cha:truetype}
+
+이미 언급한 대로 트루타입을 \kotex-utf에서 사용할 일은 거의 없을 것이나,
+여기 예전에 제시한 방법의 메모를 남겨두기로 한다.
+
+\bigskip
+
+\kotex{} 유틸리티 \texttt{ttf2kotexfont}가 있다.
+이 유틸리티가 하는 일은 한글 트루타입 폰트를 Legacy \TeX 에서
+사용가능하도록 tfm을 추출하고 설정을 행해주는 것이다.
+
+%트루타입 폰트 이용법 전반에 관한 사항은 ``한글 라텍에서 트루타입
+%폰트 사용하기''(\cite{karnes2007b})라는 글을 참고하라. 여기서는 간단한 예를 통하여
+%트루타입 폰트를 문서에서 사용하는 과정을 설명하고자 한다.
+
+\section{\texttt{ttf2kotexfont} 사용법}
+
+적당한 폰트 두 개를 선정하자.
+공평하게 하기 위해 유니코드 인코딩 폰트인 ``휴먼편지체''와 완성형 인코딩 폰트인 ``양재난초'' 두 개를 선택. 파일 이름은 \texttt{hmfmpyun.ttf}와 \texttt{YNCH05.TTF}이다.\footnote{이 스크립트는 파일이름의 대소문자에 민감하다.}
+
+이 글꼴이 시스템에 설치되어 있다면, 별다른 조치 없이 바로 테스트 가능. 만약 없다면 어디선가 구해서 테스트를 위한 폴더에 넣어준다.
+
+\texttt{test.conf} 파일을 다음과 같이 작성한다.
+\begin{verbatim}
+FOUNDRY:my
+FONTmj: f=pj m=hmfmpyun.ttf
+FONTnc: m=YNCH05.TTF
+\end{verbatim}
+\texttt{config} 파일의 쓰는 규칙은 위와 같다. 맨 처음에 \texttt{FOUNDRY}를
+지정해주어야 하는데 이것이 글꼴 가족 이름의 첫 두 글자를 이룬다.
+\texttt{FONTmj} 행은 \dotemph{반드시} 있어야 하며, 이 이외의 폰트
+명칭은 두 글자로 지은 다음 그 앞에 \texttt{FONT}를 써서 적어주면 된다.
+\texttt{f} 지시자는 \texttt{FONTmj}로 만들되 이름을 \texttt{mypj}로
+지으라는 의미이며, 이 값이 없으면 \texttt{FONTxx}의 두 글자 \texttt{xx}를
+따서 짓게 된다. 폰트 두께 옵션은 \texttt{m, b, l} 셋이 있으며 각각
+medium, bold, light에 해당하는데, \texttt{b}는 \texttt{b-series} 및
+\texttt{bx-series}에 할당된다. 그러나 일반적으로 이 시리즈들을 모두
+충족하는 글꼴군을 찾기란 쉬운 일이 아니다. 위의 예에서는 \texttt{m} 하나만
+지정하였으므로 본문 서체인 보통 굵기 폰트만이 만들어질 것이다. 이러한
+설정의 결과 \texttt{mypj}와 \texttt{mync}라는 새로운 글꼴이
+만들어진다.
+
+이제 다음 명령을 실행한다.
+\begin{verbatim}
+# ttf2kotexfont -c test.conf
+\end{verbatim}
+
+한참 tfm 등을 만드는 과정을 거치고 나서 종료되면 테스트해볼 수 있다.
+\begin{verbatim}
+# latex testutf
+# dvipdfmx testutf
+\end{verbatim}
+또는
+\begin{verbatim}
+# pdflatex testutf
+\end{verbatim}
+
+이 폰트 세트를 반복해서 다른 문서에서도 사용할 생각이면 사용자의 \texttt{texmf} 트리 아래 설치해서 쓰면 된다.
+언인스톨 방법이 별도로 제공되지 않으므로, 자신이 생각하기에 잘 설계하여 반복사용하겠다는 결심이 섰을 때, 다음 명령을 실행하자.\footnote{%
+ Windows의 경우, 아래 명령 예시에서 \texttt{\$HOME}이라고
+ 한 것을 \texttt{\%HOME\%}으로 해야 한다.}
+\begin{verbatim}
+# ttf2kotexfont -c test.conf -i $HOME/texmf
+\end{verbatim}
+
+만약 이 과정에서 \verb|$HOME/texmf|가 ``가장 먼저 읽는 texmf tree''가 아니라면
+생성된 \texttt{dvipdfmx.cfg}와 \texttt{ttf2pk.cfg}를 가장 먼저 읽는
+texmf tree 아래 TDS에 맞는 위치로 옮겨놓는 것을 잊어버려서는 안된다.
+\begin{verbatim}
+# mktexlsr
+\end{verbatim}
+
+일부 완성형 트루타입 중에 이상한 것이 없지는 않다(예를 들면 ``양재보람체''가 이상했음). 그것은 폰트 자체의 문제라고 생각되며, 정상적인 대부분의 트루타입은 \kotex 에서 모두 사용 가능하다.
+
+\section{문서에서 폰트 설정하기}
+
+\texttt{ttf2kotexfont} 스크립트를 실행한 결과를 반영하려면 다음과 같이
+한다. 사용자가 만든 임의의 폰트가 \texttt{mypj}와 \texttt{mync}라고 할 때,
+
+\begin{verbatim}
+\SetHangulFonts{mypj}{mync}{uttz}
+\SetHanjaFonts{utbt}{utgt}{uttz}
+\end{verbatim}
+%또는
+%\begin{verbatim}
+%\usepackage{hfontsel}
+%\SelectHfonts{mypj,mync,*}{utbt,utgt,*}
+%\end{verbatim}
+주의할 것은 \texttt{ttf2kotexfont}가 \texttt{hfontspec}을
+만들어주지는 않는다는 점이다.
+기본 폰트 스펙을 적용({\small 이 때
+사용자가 취할 조치는 아무것도 없다})해도 나쁘지 않다.
+만약 직접 폰트 스펙을 변경하려 한다면 반드시 수작업으로 작성해야 한다.
+
+
+\section{pdf 문서 제작을 위한 pdf\LaTeX{} 사용}
+
+트루타입 폰트를 pdf\LaTeX 에서 사용하려 할 때는 약간의 주의사항이
+필요하다. 먼저, 기울인 글꼴, 가상 두꺼운(\wi{fake bold}) 글꼴, c-series 장평 적용 글꼴 등은
+pdf\LaTeX 에서 직접 처리되지 않는다.
+
+또한 전처리부(preamble)에 다음과 같은 코드를 넣어주어야 한다.
+\begin{verbatim}
+\usepackage{ifpdf}
+\ifpdf
+ \usepackage{dhucs-cmap}
+ \pdfmapfile{=myttf-pdftex.map}
+\fi
+\end{verbatim}
+
+대체로 말해서, 트루타입 글꼴은 DVIPDFM$x$가 매우 잘 처리한다.
+
+\chapter{옛한글 관련 코드변환 유틸리티}\label{sec:hypuautil}
+
+\section{옛한글 처리 방식의 변화}
+
+\wi{한양 사용자 정의 영역 코드}(Hanyang PUA)란 유니코드 사용자 정의 영역에 옛한글
+완성형 문자를 넣어두고 옛문헌을 표현하는 데 사용하는 방식을 말한다.
+약 5천여자의 옛한글 완성형 글자로 사용할 수 있으며, 이를 지원하는 글꼴로 새바탕, 새굴림이 있었다.\footnote{%
+ MS Word는 이 방식의 옛한글 지원을 포기하였으나
+ 아래아한글 워드 프로세서는
+ (최근 버전에서 도입된) 유니코드 표준에 맞는 자모 조합 방식과 함께
+ 이전에 작성된 자료의 하위 호환성 때문에 여전히 이 방식을 지원하고 있으며
+ 함초롬체 폰트의 PUA 영역에 옛한글 음절 문자들이 들어 있다.}
+
+\wi{옛한글} 처리 방식으로서 이것은 표준을 벗어나는 데다가 사용할 수 있는 글자 수가
+적어서 바람직한 방법이 되지 못한다. 실제로 고문헌의 전자화 사업 과정에서 이 5천여자로는
+글자가 부족하여 별도의 추가 폰트를 만들어야 하는 어려움을 겪은 사례가 있다.
+
+그러나 이미 국가적 사업으로 진행된 고문헌의 전자화 과정에서 한양 PUA를 이용하였는 데다가
+방대한 옛한글 관련 문서가 아래아한글 워드 프로세서의 강력한 영향 아래 이 방식으로
+작성된 전례가 있다.
+
+\wi{KTUG}에서 여러 기여자가 참여하여, 상당수 이런 방식으로 제작된 문헌을 표준에 맞는 유니코드 자모 조합 방식으로 (또는 그 역으로)
+변환하기 위한 대응 테이블을 작성하였다.\footnote{%
+ \url{http://faq.ktug.org/faq/HanyangPuaTableProject},
+ \url{http://ko.wikipedia.org/wiki/\%EC\%98\%9B\%ED\%95\%9C\%EA\%B8\%80}.
+ 위키백과 한국어판에 KTUG의 기여에 대한 언급이 있다.}
+그 성과물로 \kotex 에 포함된 것이 \util{hypua2jamo}, \util{jamo2hypua}, \util{insertjamofiller}, \util{jamo-normalize}라는
+유틸리티들이다. 이 유틸리티들은 \wi{김도현}이 제작하였다.
+
+\section{jamo-normalize}
+
+이전의 \util{hypua2jamo}와 \util{jamo2hypua} 유틸리티를 대체하는 것으로
+다음과 같이 쓴다.
+\begin{boxedverbatim}
+$ jamo-normalize [option] <infile >outfile
+\end{boxedverbatim}
+
+주요 옵션은 다음과 같다.
+\begin{description}
+\item [-d] 유니코드 한글 음절 문자 코드를 자모 코드로 변환한다.
+\item [-h] 도움말 화면을 보여준다.
+\item [-i] 한중일 호환 한자를 한중일 통합 한자 코드로 변환한다.
+\item [-o] 한양 PUA 완성형 코드를 자모 코드로 변환한다.
+\item [-p] 자모 코드열을 한양 PUA 완성형 코드로 변환한다.
+%\item [-r] 한글 성조표지(\wi{방점}, \wi{사성점})를 음절블럭의 앞자리에 오도록 재배열한다.
+\item [-t] 기존 자료의 방점 대용으로 쓰이던 [U+00B7]과 [U+003A]를 성조표지(\wi{방점}, \wi{사성점})로 바꾼다.
+\end{description}
+
+%%%%% index
+
+\printindex
+
+\clearpage
+\section*{이 문서에 대하여}
+\addcontentsline{toc}{chapter}{이 문서에 대하여}
+
+이 문서는 현재 김강수가 관리하고 있다.
+
+이 문서는 oblivoir 클래스로 작성되었으며 \pdfLaTeX 으로
+컴파일하는 경우를 상정하고 만들어졌다.
+
+이 문서를 완전하게
+컴파일하기 위해서, \texttt{collection-kotex}의 기본 설정에
+더하여 \kotex\ 저장소\footnote{\url{http://ftp.ktug.org/KTUG/texlive/}}로부터
+\texttt{kotex-midkor} 패키지를 하나 추가로 설치해야 한다.
+이 이외에 다른 패키지를 더 설치할 것은 없다.
+
+\XeLaTeX, \LuaLaTeX 으로 컴파일할 때, 오류를 만나지는 않으나
+\kotex 의 기능과 맞지 않는 부분에서 의도한 대로 결과가 나오지 않는 데가
+두어 곳 있다. 예를 들면 임의의 자간 설정이나 옛한글 같은 것이 그러하다.
+
+이 문서는 \kotex~프로젝트의 일부로서,
+LPPL version 3 또는 그 이후 버전의 라이선스로 배포된다.
+
+이 문서의 내용에 대한 코멘트는 KTUG\footnote{\url{http://www.ktug.org}}
+게시판에 글을 올려주시기 바란다.
+
+\bigskip
+
+이 문서의 작성에 많은 도움을 주신 KTS 관계자, \kotex\ 사용자 분들께
+감사한다. 특히 문서의 감수를 맡아주신 이기황, 이주호 님께 특별히 감사의 말씀을 남겨놓는다.
+
+%\printbibliography
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/sample-finemath-setup.tex b/Master/texmf-dist/doc/latex/kotex-utf/sample-finemath-setup.tex
new file mode 100644
index 00000000000..dd904f8de98
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/sample-finemath-setup.tex
@@ -0,0 +1,7 @@
+\def\breakafterinlinemath{\hskip2pt}
+\def\nobreakafterinlinemath{\kern2pt}
+%\def\breakafterasciichar{\hskip2pt}
+%\def\nobreakafterasciichar{\kern2pt}
+%\def\breakbeforeasciichar{\hskip2pt}
+%\def\kernbeforeasciichar{\kern2pt}
+\endinput
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/yettext.tex b/Master/texmf-dist/doc/latex/kotex-utf/yettext.tex
new file mode 100644
index 00000000000..a1cb17e0d54
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/yettext.tex
@@ -0,0 +1,13 @@
+이 몸 삼기실 제 님을 조차 삼기시니\\
+ᄒᆞᆫᄉᆡᆼ 緣연分분이며 하ᄂᆞᆯ 모ᄅᆞᆯ 일이런가\\
+나 ᄒᆞ나 졈어 닛고 님 ᄒᆞ나 날 괴시니\\
+이 ᄆᆞ음 이 ᄉᆞ랑 견졸 ᄃᆡ 노여 업다\\
+平평生ᄉᆡᆼ애 願원ᄒᆞ요ᄃᆡ ᄒᆞᆫᄃᆡ 녜자 ᄒᆞ얏더니\\
+늙거야 무ᄉᆞ 일로 외오 두고 글이ᄂᆞᆫ고\\
+엇그제 님을 뫼셔 廣광寒한殿뎐에 올낫더니\\
+그 더ᄃᆡ 엇디ᄒᆞ야 下하界계예 ᄂᆞ려오니\\
+올 적의 비슨 머리 얼킈연 디 三삼年년이라\\
+臙연脂지粉분 잇ᄂᆡᆷᄂᆞᆫ 눌 위ᄒᆞ야 고이 ᄒᆞᆯ고\\
+ᄆᆞ음의 ᄆᆡ친 설음 疊텹疊텹이 ᄡᅡ여 이셔\\
+짓ᄂᆞ니 한숨이오 디ᄂᆞ니 눈믈이라\\
+人인心심은 有유限ᄒᆞᆫᄒᆞᆫᄃᆡ 시ᄅᆞᆷ도 그지업다 \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/yettext.txt b/Master/texmf-dist/doc/latex/kotex-utf/yettext.txt
new file mode 100644
index 00000000000..a927224cb93
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/kotex-utf/yettext.txt
@@ -0,0 +1,13 @@
+이 몸 삼기실 제 님을 조차 삼기시니\\
+ᄒᆞᆫᄉᆡᆼ 緣연分분이며 하ᄂᆞᆯ 모ᄅᆞᆯ 일이런가\\
+나 ᄒᆞ나 졈어 닛고 님 ᄒᆞ나 날 괴시니\\
+이 ᄆᆞ음 이 ᄉᆞ랑 견졸 ᄃᆡ 노여 업다\\
+平평生ᄉᆡᆼ애 願원ᄒᆞ요ᄃᆡ ᄒᆞᆫᄃᆡ 녜자 ᄒᆞ얏더니\\
+늙거야 무ᄉᆞ 일로 외오 두고 글이ᄂᆞᆫ고\\
+엇그제 님을 뫼셔 廣광寒한殿뎐에 올낫더니\\
+그 더ᄃᆡ 엇디ᄒᆞ야 下하界계예 ᄂᆞ려오니\\
+올 적의 비슨 머리 얼킈연 디 三삼年년이라\\
+臙연脂지粉분 잇ᄂᆡᆷᄂᆞᆫ 눌 위ᄒᆞ야 고이 ᄒᆞᆯ고\\
+ᄆᆞ음의 ᄆᆡ친 설음 疊텹疊텹이 ᄡᅡ여 이셔\\
+짓ᄂᆞ니 한숨이오 디ᄂᆞ니 눈믈이라\\
+人인心심은 有유限ᄒᆞᆫᄒᆞᆫᄃᆡ 시ᄅᆞᆷ도 그지업다 \ No newline at end of file
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
+
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/dhucs-nanumfont.sty b/Master/texmf-dist/tex/latex/kotex-utf/dhucs-nanumfont.sty
new file mode 100644
index 00000000000..c13f2b345e9
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/dhucs-nanumfont.sty
@@ -0,0 +1,39 @@
+%% File `dhucs-nanumfont.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.
+%%
+\ProvidesPackage{dhucs-nanumfont}
+
+\newif\ifUSETONE\USETONEfalse
+\DeclareOption{USETONEt1font}{\USETONEtrue}
+\DeclareOption{uset1font}{\USETONEtrue}
+
+\DeclareOption*{%
+ \PassOptionsToPackage{\CurrentOption}{dhucs}
+}
+
+\ProcessOptions
+
+\@ifpackageloaded{dhucs}{}{\RequirePackage{dhucs}}
+
+\usehangulfontspec{nanum}
+\DeclareFontSubstitution{LUC}{nanummj}{m}{n}
+
+\ifUSETONE
+\RequirePackage[T1]{fontenc}
+\renewcommand{\rmdefault}{nanummj}
+\renewcommand{\sfdefault}{nanumgt}
+\fi
+\SetHangulFonts{nanummj}{nanumgt}{nanumgt}
+\SetHanjaFonts{uhcmj}{nanumgt}{nanumgt}
+
+\endinput
+
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/dhucs.sty b/Master/texmf-dist/tex/latex/kotex-utf/dhucs.sty
new file mode 100644
index 00000000000..dc247f7c249
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/dhucs.sty
@@ -0,0 +1,127 @@
+%% File `dhucs.sty`
+%%
+%% (C) Copyright 2007-2013 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.
+%%
+%% --------------------------------------------------------
+%%
+%% changelog:
+%% 2009/03/05 5.0.0 wrapper for various engines
+%% 2008/08/28 4.1.4 work around error under using babel package
+%% 2008/05/26 4.1.3 fallback of hangul font family is now serif font
+%% 2008/03/15 4.1.2 redefine hyphendemerits only under finemath
+%% 2008/01/30 4.1.1 fix a bug of heading mark
+%% 2008/01/29 4.1.0 write raw chars in aux, toc, idx ...
+%% 2007/12/28 4.0.14 compatible with footmisc.sty (reported by 서상현)
+%% 2007/12/01 4.0.13 spacefactor=1000 between hangul and `)'
+%% 2007/10/30 4.0.12 fix on \dhucs@next == \ifx
+%% 2007/10/29 4.0.11 nobreak after \nobreak in \cjksymbolskip
+%% 2007/10/25 4.0.10 simplify code related to \dhucs@next
+%% 2007/10/07 4.0.9 bug fix related to \dhucs@next == \fi
+%% 2007/07/18 4.0.8 part of ko.TeX
+%% PUA is now hangul class 2 (= hanja)
+%% 2007/06/30 4.0.7 skip instead of kern after cjksymbol
+%% 2007/06/26 4.0.6 option strictcharcheck introduced
+%% 2007/06/26 4.0.5 redefine U+2018, U+2019, U+201C, U+201D
+%% 2007/06/25 4.0.4 fix bugs introduced by previous minor upgrade
+%% 2007/06/22 4.0.3 lowering multiple punctuations
+%% 2007/06/16 4.0.2 support ulem.sty
+%% 2007/06/14 4.0.1 \hu was too normal a CS. use \dhucs@hu intead.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{dhucs}
+ [2012/11/08 v5.3.2 typesetting UTF-8 Korean documents]
+
+\ifx가가\else
+ \DeclareOption*{\PassOptionsToPackage\CurrentOption{kotexutf}}
+ \ProcessOptions\relax
+ \RequirePackage{kotexutf}
+ \expandafter\endinput
+\fi
+
+\newif\if@nonfrench
+\newif\if@hangul
+\newif\if@nojosa
+\newif\if@hanja
+\newif\if@dhucsfinemath
+
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname directlua\endcsname\relax\else
+ \DeclareOption{hangul}{\@hangultrue
+ \PassOptionsToPackage\CurrentOption{luatexko}}
+ \DeclareOption{hanja}{\@hangultrue\@hanjatrue
+ \PassOptionsToPackage\CurrentOption{luatexko}}
+ \DeclareOption{nounfonts}{\PassOptionsToPackage\CurrentOption{luatexko}}
+ \DeclareOption{nonfrench}{\@nonfrenchtrue}
+ \DeclareOption{finemath}{\@dhucsfinemathtrue}
+ \DeclareOption*{\OptionNotUsed}
+ \ProcessOptions\relax
+ \RequirePackage{luatexko}
+ \let\jong\relax
+ \let\jung\relax
+ \let\rieul\relax
+ \let\setInterHangulSkip\@gobble
+ \def\disablehangulfontspec{\finemathattr\z@}
+ \def\disablehangullinebreak{\finemathattr-"7FFFFFFF\relax}
+ \let\dhucs@hu\z@
+\fi
+
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname XeTeXrevision\endcsname\relax\else
+ \DeclareOption{hangul}{\@hangultrue
+ \PassOptionsToPackage\CurrentOption{xetexko}}
+ \DeclareOption{hanja}{\@hangultrue\@hanjatrue
+ \PassOptionsToPackage\CurrentOption{xetexko}}
+ \DeclareOption{nounfonts}{\PassOptionsToPackage\CurrentOption{xetexko}}
+ \DeclareOption{nonfrench}{\@nonfrenchtrue}
+ \DeclareOption{finemath}{\@dhucsfinemathtrue}
+ \DeclareOption*{\OptionNotUsed}
+ \ProcessOptions\relax
+ \RequirePackage{xetexko}
+ \def\setInterHangulSkip#1{\def\xetexkointerhchar{#1}}
+ \let\disablehangulfontspec\disablehangulspacing
+ \let\disablehangullinebreak\disablehangulspacingandlinebreak
+ \let\dhucs@hu\xetexkohu
+\fi
+
+\def\다{\nobreak 다}
+\def\unihangulchar#1{\char#1 }
+\let\DeclareUnicodeCharacter\@gobbletwo
+%\DeclareFontEncoding{LUC}{}{}
+%\DeclareFontSubstitution{LUC}{utbt}{m}{n}
+\def\SetHangulFonts#1#2#3{}
+\def\SetHanjaFonts#1#2#3{}
+\def\SetSerifFonts#1#2{}
+\def\SetSansFonts#1#2{}
+\def\SetAdhocFonts#1#2{}
+\let\usehangulfontspec\@gobble
+\let\declarenobreakspacefactor\nobreak
+\let\declarehanjaspacefactor\empty
+\let\cjksymbolunskip\empty
+\let\postcjksymskip\empty
+\let\postcjksymbol\empty
+\let\postcjksymnobreak\nobreak
+\let\cjksymbolskip\empty
+\if@hangul
+ \let\olddotemph\dotemph % save ...
+ \newdimen\dhucs@emph@raise
+ \unless\ifdefined\pdfstringdefPreHook\let\pdfstringdefPreHook\empty\fi
+ \let\dotemph\olddotemph % restore ...
+ \def\circemph#1{\begingroup\def\dotemphchar{^^^^02da}\dotemph{#1}\endgroup}
+ \def\useremph#1{\begingroup
+ \let\dotemphchar\useremphchar
+ \let\dotemphraise\useremphraisedim
+ \dotemph{#1}\endgroup}
+\fi
+\let\ungremph\empty
+\let\regremph\empty
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/hfontspec.default b/Master/texmf-dist/tex/latex/kotex-utf/hfontspec.default
new file mode 100644
index 00000000000..662b6b9a6f0
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/hfontspec.default
@@ -0,0 +1,11 @@
+hu = \z@
+interhchar = \z@
+fullstoplower = \z@
+exclamationlower = \z@
+questionlower = \z@
+serifhangulfont = nanummj
+sanshangulfont = nanumgt
+monohangulfont = nanumgt
+serifhanjafont = uhcmj
+sanshanjafont = nanumgt
+monohanjafont = nanumgt
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/kosections-utf.sty b/Master/texmf-dist/tex/latex/kotex-utf/kosections-utf.sty
new file mode 100644
index 00000000000..8a41519040c
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/kosections-utf.sty
@@ -0,0 +1,548 @@
+%% File `kosections-utf.tex`
+%%
+%% (C) Copyright 2007-2013 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.
+%%
+\ProvidesFile{kosections-utf}
+ [2013/10/20 hangul option to kotex/utf]
+
+%\def\hNum#1{\@hNum{\@nameuse{c@#1}}}
+%\def\@hNum#1{\ifcase#1\or 일\or 이\or 삼\or 사\or 오\or 육\or 칠\or
+% 팔\or 구\or 십\or 십일\or 십이\or 십삼\or 십사\or 십오\or 십육\or
+% 십칠\or 십팔\or 십구\or 이십\or 이십일\or 이십이\or 이십삼\or
+% 이십사\else\@ctrerr\fi}
+%\def\hanjanum#1{\@hanjanum{\@nameuse{c@#1}}}
+%\def\@hanjanum#1{\ifcase#1\or 一\or 二\or 三\or
+% 四\or 五\or 六\or 七\or 八\or 九\or 十\or
+% 十一\or 十二\or 十三\or 十四\or 十五\or
+% 十六\or 十七\or 十八\or 十九\or 二十\or
+% 二十一\or 二十二\or 二十三\or 二十四\else\@ctrerr\fi}
+%\def\HArabic#1{\@HArabic{\@nameuse{c@#1}}}
+%\def\@HArabic#1{\ifcase#1\or 1\rieul\or 2\jung\or 3\jong\or 4\jung\or 5\jung\or
+% 6\jong\or 7\rieul\or 8\rieul\or 9\jung\or 10\jong\or 11\rieul\or 12\jung\or
+% 13\jong\or 14\jung\or 15\jung\or 16\jong\or 17\rieul\or 18\rieul\or 19\jung\or
+% 20\jong\or 21\rieul\or 22\jung\or 23\jong\or 24\jung\else\@ctrerr\fi}
+
+%% 한글 기호문자 처리를 위한 정의들.
+%% 일부 클래스(예: memoir)에서 \textsubscript를 정의하고 있으므로,
+%% 여기서는 \TEXTsubscript로 정의한다. 만약 이 정의를 문서에서
+%% 사용하고 싶으면 \let\textsubscript\TEXTsubscript로 할 것.
+\protected\def\TEXTsubscript#1{%
+ \@TEXTsubscript{\selectfont#1}}
+\newcommand{\@TEXTsubscript}[1]{%
+ {\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}}%
+\DeclareUnicodeCharacter{00BC}% 1/4
+ {\textsuperscript1\kern-.45em\unihangulchar{65295}\kern-.45em\TEXTsubscript4}
+\DeclareUnicodeCharacter{00BD}% 1/2
+ {\textsuperscript1\kern-.45em\unihangulchar{65295}\kern-.45em\TEXTsubscript2}
+\DeclareUnicodeCharacter{00BE}% 3/4
+ {\textsuperscript3\kern-.45em\unihangulchar{65295}\kern-.45em\TEXTsubscript4}
+\DeclareUnicodeCharacter{02D0}% ː
+ {\unihangulchar{"02D0}}% 8251=0x203B
+\DeclareUnicodeCharacter{2025}% ‥
+ {\unihangulchar{"2025}}% 8251=0x203B
+\DeclareUnicodeCharacter{2015}% ―
+ {\nobreak\hskip\dhucs@hu\unihangulchar{"2015}\hskip\dhucs@hu\relax}% 8251=0x203B
+\DeclareUnicodeCharacter{2312}% ⌒
+ {\unihangulchar{"2312}}% 8251=0x203B
+\DeclareUnicodeCharacter{203B}% ※
+ {\unihangulchar{8251}}% 8251=0x203B
+
+%% konames-utf
+\RequirePackage{konames-utf}
+
+%% 단원의 한글화
+%% =============
+%%
+%% Part I --> 제 I 편, 第 I 篇
+%% Chapter 1 --> 제 1 장, 第 1 章 <book,report>
+%% Section 1 --> 제 1 절, 第 1 節
+%% Appendix A --> 부록 A, 附綠 A
+%%
+%% 위와 같은 단원의 한글화는 절(節)까지 영향을 미친다. 그러므로 우리는
+%% 목차에 \subsubsection까지 단원이 번호와 함께 나오도록 한다.
+%% article에서는 이미 3으로 지정되었으나, 그외에서는 2로 지정되어
+%% \subsection까지만 번호가 목차에 나오도록 되어 있다.
+\setcounter{secnumdepth}{\thr@@}
+
+\@ifclassloaded{article}{% <article>
+ \renewcommand{\appendix}{\par
+ \setcounter{section}{0}%
+ \setcounter{subsection}{0}%
+ \def\@chapapp{\appendixname}% 부록의 한글화에 의해 필요.
+ \kscntformat{section}{\appendixname~}{}
+ \def\thesection{\@Alph\c@section}}%
+}{\@ifundefined{@chapapp}{}{% <report|book>
+ \renewcommand\thesection{\@arabic\c@section}
+ \renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \renewcommand\@chapapp{\appendixname}%
+ \kscntformat{chapter}{\appendixname~}{}
+ \renewcommand\thechapter{\@Alph\c@chapter}}%
+}}
+
+%% 위와같은 재정의로 다음과 같은 문제가 발생한다.
+%% 1. \part는 \partname~\thepart로 나오게 된다. 편~I
+%% 2. \chapter는 \@chapapp{} \thechapter로. 장~1
+%% 3. \section은 \sectionname~\thesection으로. 절~1
+%% 4. 목차작성의 들여쓰기가 우리말 환경에 적당하지 않다.
+%% 5. 페이지 heading의 글자체가 \slshape으로 바뀜으로서 우리말이
+%% 불안정해진다.
+%%
+%% 이런 약점을 보완하기 위해 단원의 일련번호의 앞과 뒤에 끼워넣을
+%% 모듬을 다음과 같이 설정한다.
+\def\kscntformat#1#2#3{\@namedef{pre@#1cnt}{#2}
+ \@namedef{post@#1cnt}{#3}}
+\kscntformat{part}{\KSTHE~}{~\partname}
+\kscntformat{chapter}{\KSTHE~}{~\chaptername}
+\kscntformat{section}{\KSTHE~}{~\sectionname}
+
+\@ifclassloaded{article}{% <article>
+ \def\@part[#1]#2{%
+ \ifnum \c@secnumdepth >\m@ne
+ \refstepcounter{part}%
+ \addcontentsline{toc}{part}%
+ {\pre@partcnt\thepart\post@partcnt\hspace{1em}#1}%
+ \else
+ \addcontentsline{toc}{part}{#1}%
+ \fi
+ {\parindent \z@ \raggedright
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \Large\bfseries \pre@partcnt\thepart\post@partcnt
+ \par\nobreak
+ \fi
+ \huge \bfseries #2%
+ \markboth{}{}\par}%
+ \nobreak
+ \vskip 3ex
+ \@afterheading}
+}{}
+\@ifclassloaded{report}{%
+ \def\@part[#1]#2{%
+ \ifnum \c@secnumdepth >-2\relax
+ \refstepcounter{part}%
+ \addcontentsline{toc}{part}%
+ {\pre@partcnt\thepart\post@partcnt\hspace{1em}#1}%
+ \else
+ \addcontentsline{toc}{part}{#1}%
+ \fi
+ \markboth{}{}%
+ {\centering
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >-2\relax
+ \huge\bfseries \pre@partcnt\thepart\post@partcnt
+ \par
+ \vskip 20\p@
+ \fi
+ \Huge \bfseries #2\par}%
+ \@endpart}
+}{}
+\@ifclassloaded{book}{%
+ \def\@part[#1]#2{%
+ \ifnum \c@secnumdepth >-2\relax
+ \refstepcounter{part}%
+ \addcontentsline{toc}{part}%
+ {\pre@partcnt\thepart\post@partcnt\hspace{1em}#1}%
+ \else
+ \addcontentsline{toc}{part}{#1}%
+ \fi
+ \markboth{}{}%
+ {\centering
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >-2\relax
+ \huge\bfseries \pre@partcnt\thepart\post@partcnt
+ \par
+ \vskip 20\p@
+ \fi
+ \Huge \bfseries #2\par}%
+ \@endpart}
+}{}
+
+\@ifclassloaded{book}{%
+ \def\@chapter[#1]#2{%
+ \ifnum \c@secnumdepth >\m@ne
+ \if@mainmatter
+ \refstepcounter{chapter}%
+ \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
+ \pre@chaptercnt\thechapter\post@chaptercnt
+ \par\nobreak
+ \vskip 20\p@
+ \fi
+ \fi
+ \interlinepenalty\@M
+ \Huge \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+ \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}
+}{}%
+\@ifclassloaded{report}{%
+ \def\@chapter[#1]#2{%
+ \ifnum \c@secnumdepth >\m@ne
+ \refstepcounter{chapter}%
+ \typeout{\pre@chaptercnt\thechapter\post@chaptercnt}
+ \addcontentsline{toc}{chapter}%
+ {\protect\numberline{%
+ \pre@chaptercnt\thechapter\post@chaptercnt}#1}%
+ \else
+ \addcontentsline{toc}{chapter}{#1}%
+ \fi
+ \chaptermark{#1}%
+ \addtocontents{lof}{\protect\addvspace{10\p@}}%
+ \addtocontents{lot}{\protect\addvspace{10\p@}}%
+ \if@twocolumn
+ \@topnewpage[\@makechapterhead{#2}]%
+ \else
+ \@makechapterhead{#2}%
+ \@afterheading
+ \fi}
+ \def\@makechapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \raggedright \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \huge\bfseries
+ \pre@chaptercnt\thechapter\post@chaptercnt
+ \par\nobreak
+ \vskip 20\p@
+ \fi
+ \interlinepenalty\@M
+ \Huge \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+ \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}
+}{}
+
+%%%%% make compatible with tex4ht ?
+\def\dhucs@seccntformat#1#2{%
+ \ifnum#2=\@ne\pre@sectioncnt\fi
+ \csname the#1\endcsname
+ \ifnum#2=\@ne\post@sectioncnt\fi
+ \quad}
+\def\@sect#1#2#3#4#5#6[#7]#8{%
+ \ifnum #2>\c@secnumdepth
+ \let\@svsec\@empty
+ \else
+ \refstepcounter{#1}%
+ \protected@edef\@svsec{\dhucs@seccntformat{#1}{#2}\relax}%
+ \fi
+ \@tempskipa #5\relax
+ \ifdim \@tempskipa>\z@
+ \begingroup
+ #6{%
+ \@hangfrom{\hskip #3\relax\@svsec}%
+ \interlinepenalty \@M #8\@@par}%
+ \endgroup
+ \csname #1mark\endcsname{#7}%
+ \addcontentsline{toc}{#1}{%
+ \ifnum #2>\c@secnumdepth \else
+ \ifnum #2=1 % in case of section
+ \protect\numberline{\pre@sectioncnt
+ \csname the#1\endcsname\post@sectioncnt}%
+ \else \protect\numberline{\csname the#1\endcsname}%
+ \fi
+ \fi
+ #7}%
+ \else
+ \def\@svsechd{%
+ #6{\hskip #3\relax
+ \@svsec #8}%
+ \csname #1mark\endcsname{#7}%
+ \addcontentsline{toc}{#1}{%
+ \ifnum #2>\c@secnumdepth \else
+ \protect\numberline{\csname the#1\endcsname}%
+ \fi
+ #7}}%
+ \fi
+ \@xsect{#5}}
+%%%%%
+
+\@ifclassloaded{article}{%
+ \renewcommand*\l@section[2]{%
+ \ifnum \c@tocdepth >\z@
+ \addpenalty\@secpenalty%
+ \addvspace{1.0em \@plus\p@}%
+ \begingroup
+ \parindent \z@ \rightskip \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \settowidth{\@tempdima}{\pre@sectioncnt\post@sectioncnt}%
+ \addtolength{\@tempdima}{1.5em}%
+ \advance\leftskip\@tempdima
+ \hskip -\leftskip
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \endgroup
+ \fi}
+}{}
+\@ifclassloaded{book}{
+ \renewcommand*\l@section{%
+ \settowidth{\@tempdima}{\pre@sectioncnt\post@sectioncnt}%
+ \addtolength{\@tempdima}{2.3em}%
+ \@dottedtocline{1}{1em}{\@tempdima}}%1.5em 2.3em
+}{}
+\@ifclassloaded{report}{
+ \renewcommand*\l@section{%
+ \settowidth{\@tempdima}{\pre@sectioncnt\post@sectioncnt}%
+ \addtolength{\@tempdima}{2.3em}%
+ \@dottedtocline{1}{1em}{\@tempdima}}%1.5em 2.3em
+}{}
+
+
+%% 다음은 \ps@headings과 \ps@myheadings를 한글에 맞게 수정한 것이다.
+%% 각각의 class들이 서로 다른 방식으로 페이지 머리를 짜므로 우리는
+%% 여기서 각각을 따로따로 정의해 주어야 한다.
+
+\@ifclassloaded{article}{%
+ \if@twoside
+ \renewcommand\ps@headings{%
+ \let\@oddfoot\@empty\let\@evenfoot\@empty
+ \def\@evenhead{\thepage\hfil\normalfont\slshape\leftmark}%
+ \def\@oddhead{{\normalfont\slshape\rightmark}\hfil\thepage}%
+ \let\@mkboth\markboth
+ \def\sectionmark##1{%
+ \markboth {\MakeUppercase{%
+ \ifnum \c@secnumdepth >\z@
+ \pre@sectioncnt\thesection\post@sectioncnt\quad
+ \fi
+ ##1}}{}}%
+ \def\subsectionmark##1{%
+ \markright {%
+ \ifnum \c@secnumdepth >\@ne
+ \thesubsection\quad
+ \fi
+ ##1}}}
+ \else
+ \def\ps@headings{%
+ \let\@oddfoot\@empty
+ \def\@oddhead{{\normalfont\slshape\rightmark}\hfil\thepage}%
+ \let\@mkboth\markboth
+ \def\sectionmark##1{%
+ \markright {\MakeUppercase{%
+ \ifnum \c@secnumdepth >\m@ne
+ \pre@sectioncnt\thesection\post@sectioncnt\quad
+ \fi
+ ##1}}}}
+ \fi
+}{}
+
+\@ifclassloaded{book}{%
+ \if@twoside
+ \def\ps@headings{%
+ \let\@oddfoot\@empty\let\@evenfoot\@empty
+ \def\@evenhead{\thepage\hfil\normalfont\slshape\leftmark}%
+ \def\@oddhead{{\normalfont\slshape\rightmark}\hfil\thepage}%
+ \let\@mkboth\markboth
+ \def\chaptermark##1{%
+ \markboth {\MakeUppercase{%
+ \ifnum \c@secnumdepth >\m@ne
+ \if@mainmatter
+ \pre@chaptercnt\thechapter\post@chaptercnt\quad%
+ \fi
+ \fi
+ ##1}}{}}%
+ \def\sectionmark##1{%
+ \markright {\MakeUppercase{%
+ \ifnum \c@secnumdepth >\z@
+ \pre@sectioncnt\thesection\post@sectioncnt\quad%
+ \fi
+ ##1}}}}
+ \else
+ \def\ps@headings{%
+ \let\@oddfoot\@empty
+ \def\@oddhead{{\normalfont\slshape\rightmark}\hfil\thepage}%
+ \let\@mkboth\markboth
+ \def\chaptermark##1{%
+ \markright {\MakeUppercase{%
+ \ifnum \c@secnumdepth >\m@ne
+ \if@mainmatter
+ \pre@chaptercnt\thechapter\post@chaptercnt\quad%
+ \fi
+ \fi
+ ##1}}}}
+ \fi
+ \pagestyle{headings}
+ }{}
+
+\@ifclassloaded{report}{%
+ \if@twoside
+ \def\ps@headings{%
+ \let\@oddfoot\@empty\let\@evenfoot\@empty
+ \def\@evenhead{\thepage\hfil\normalfont\slshape\leftmark}%
+ \def\@oddhead{{\normalfont\slshape\rightmark}\hfil\thepage}%
+ \let\@mkboth\markboth
+ \def\chaptermark##1{%
+ \markboth {\MakeUppercase{%
+ \ifnum \c@secnumdepth >\m@ne
+ \pre@chaptercnt\thechapter\post@chaptercnt\quad%
+ \fi
+ ##1}}{}}%
+ \def\sectionmark##1{%
+ \markright {\MakeUppercase{%
+ \ifnum \c@secnumdepth >\z@
+ \pre@sectioncnt\thesection\post@sectioncnt\quad%
+ \fi
+ ##1}}}}
+ \else
+ \def\ps@headings{%
+ \let\@oddfoot\@empty
+ \def\@oddhead{{\normalfont\slshape\rightmark}\hfil\thepage}%
+ \let\@mkboth\markboth
+ \def\chaptermark##1{%
+ \markright {\MakeUppercase{%
+ \ifnum \c@secnumdepth >\m@ne
+ \pre@chaptercnt\thechapter\post@chaptercnt\quad%
+ \fi
+ ##1}}}}
+ \fi
+}{}
+
+%% bangjom emphasis : extension. (inspired by hangul.sty)
+
+\def\circemphchar{˚}
+\def\dotemphchar{˙}
+\let\useremphchar\circemphchar
+\newdimen\raisedotdim\raisedotdim\z@
+\newdimen\dhucs@emph@width
+
+\def\put@dhucs@mphch@r#1{%
+ \ifnum\thish@ngul>\z@ %\ifnum\thish@ngul<\thr@@ % hangul or hanja
+ \rlap{\raise\dhucs@emph@raise
+ \hb@xt@\dhucs@emph@width{\normalfont\hss#1\hss}}%
+ \fi %\fi
+}
+\def\get@dhucs@mphheight#1{%
+ \ifdim\raisedotdim=\z@\relax
+ \settoheight{\dhucs@emph@raise}{#1}%
+ \addtolength{\dhucs@emph@raise}{-.4em}%
+ \else\let\dhucs@emph@raise\raisedotdim\fi
+}
+
+\protected\def\dotemph#1{\begingroup
+ \get@dhucs@mphheight{#1}%
+ \let\dhucs@emph\dhucs@dot@emph
+ #1\endgroup}
+
+\def\dhucs@dot@emph#1{%
+ \settowidth{\dhucs@emph@width}{#1}%
+ \put@dhucs@mphch@r{\dotemphchar}%
+}
+
+\protected\def\circemph#1{\begingroup
+ \get@dhucs@mphheight{#1}%
+ \let\dhucs@emph\dhucs@circ@emph
+ #1\endgroup}
+
+\def\dhucs@circ@emph#1{\leavevmode
+ \settowidth{\dhucs@emph@width}{#1}%
+ \put@dhucs@mphch@r{\circemphchar}%
+}
+
+\newdimen\useremphraisedim\useremphraisedim\z@
+
+\protected\def\useremph#1{\begingroup
+ \ifdim\useremphraisedim=\z@\relax
+ \settoheight{\dhucs@emph@raise}{#1}%
+ \addtolength{\dhucs@emph@raise}{-.4em}%
+ \else\let\dhucs@emph@raise\useremphraisedim\fi
+ \let\dhucs@emph\dhucs@user@emph
+ #1\endgroup}
+
+\def\dhucs@user@emph#1{\leavevmode
+ \settowidth{\dhucs@emph@width}{#1}%
+ \put@dhucs@mphch@r{\useremphchar}%
+}
+
+\g@addto@macro\pdfstringdefPreHook{%
+ \let\circemph\@firstofone
+ \let\useremph\@firstofone
+}
+
+%%% xspaceskip
+\@ifpackageloaded{dhucs-setspace}{}{\linespread{1.333}}
+\if@nonfrench
+ \xspaceskip=.5em plus .111em minus .1em
+\fi
+
+%%% interhchar
+\setInterHangulSkip{-0.55pt}
+
+%%% makeidx를 쓰면 \see와 \seealso가 정의된다.
+%%% modified from kosections-euc.tex
+%%% See http://www.ktug.or.kr/jsboard/read.php?table=operate&no=22789
+\AtBeginDocument{%
+ \@ifundefined{see}{}{%
+ \renewcommand*\see[2]{#1\emph{\seename}}%
+ }
+ \@ifundefined{seealso}{}{%
+ \renewcommand*\seealso[2]{#1\emph{\alsoname}}%
+ }
+}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/kotex.cfg b/Master/texmf-dist/tex/latex/kotex-utf/kotex.cfg
new file mode 100644
index 00000000000..a6389e4e5e4
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/kotex.cfg
@@ -0,0 +1,8 @@
+%%% kotex.sty configuration example
+%\ExecuteOptions{%
+% utf,%
+% finemath,%
+% strictcharcheck,%
+%}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty b/Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty
new file mode 100644
index 00000000000..4b2f9a8a53a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty
@@ -0,0 +1,548 @@
+%% File `kotexutf.sty`
+%%
+%% Copyright (C) 2012-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.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{kotexutf}
+ [2013/10/20 v1.5 typesetting UTF-8 Korean documents]
+
+\newif\if@nonfrench
+\newif\if@hangul
+\newif\if@nojosa
+\newif\if@hanja
+\newif\if@dhucsfinemath
+
+%% Options. hangul, nonfrench, nojosa, hanja, finemath.
+\DeclareOption{nonfrench}{\@nonfrenchtrue\AtEndOfPackage{\nonfrenchspacing}}
+\DeclareOption{hangul}{\@hangultrue}
+\DeclareOption{hanja}{\@hanjatrue\@hangultrue}
+\DeclareOption{nojosa}{\@nojosatrue}
+\DeclareOption{finemath}{\def\finemath{}\@dhucsfinemathtrue}
+\DeclareOption{strictcharcheck}{\def\strictcharcheck{}}
+\ProcessOptions\relax
+
+%% we use latex's standard utf8.def
+\RequirePackage[utf8]{inputenc}
+
+\input kotexutf-core
+
+\long\def\protected@write#1#2#3{%
+ \begingroup
+ \def\UTFviii@two@octets##1##2{%
+ \string##1\string##2}%
+ \def\UTFviii@three@octets##1##2##3{%
+ \string##1\string##2\string##3}%
+ \def\UTFviii@four@octets##1##2##3##4{%
+ \string##1\string##2\string##3\string##4}%
+ \let\thepage\relax
+ #2%
+ \let\protect\@unexpandable@protect
+ \edef\reserved@a{\write#1{#3}}%
+ \reserved@a
+ \endgroup
+ \if@nobreak\ifvmode\nobreak\fi\fi
+}
+
+% modified from lucenc.def
+\DeclareFontEncoding{LUC}{}{}
+%\DeclareFontSubstitution{LUC}{utbt}{m}{n}
+\DeclareFontSubstitution{LUC}{nanummj}{m}{n}
+\providecommand*\LUC@@empty[1]{%
+ \edef\mandatory@arg{\mandatory@arg\h@ngulpl@ne}%
+ \ifx\optional@arg\@empty
+ \empty@sfcnt#1%
+ \else % suppress redundant warning
+ \ifcsname dhucsluc@\curr@fontshape/\optional@arg\endcsname
+ \empty@sfcnt\@gobble
+ \else
+ \empty@sfcnt#1\expandafter
+ \gdef\csname dhucsluc@\curr@fontshape/\optional@arg\endcsname{}%
+ \fi
+ \fi
+ \xdef\font@name{\csname \curr@fontshape/\f@size/\h@ngulpl@ne\endcsname}}
+\providecommand*\LUC@@sub[1]{% suppress redundant warning
+ \ifcsname dhucsluc@\mandatory@arg/\f@size\endcsname
+ \sub@sfcnt\@gobble
+ \else
+ \expandafter\gdef\csname dhucsluc@\mandatory@arg/\f@size\endcsname{}%
+ \sub@sfcnt#1%
+ \fi}
+\DeclareSizeFunction{LUC}{\LUC@@empty\@font@warning}
+\DeclareSizeFunction{LUCb}{\LUC@@empty\@font@warning}
+\DeclareSizeFunction{sLUC}{\LUC@@empty\@font@info}
+\DeclareSizeFunction{sLUCb}{\LUC@@empty\@font@info}
+\DeclareSizeFunction{LUCsub}{\LUC@@sub\@font@warning}
+\DeclareSizeFunction{LUCssub}{\LUC@@sub\@font@info}
+
+%% redefinition of \pickup@font (seems to be needed for microtype.sty)
+\edef\pickup@font{%
+ \unexpanded{%
+ \ifcsname h@ngulpl@ne\endcsname
+ \ifcsname \curr@fontshape/\f@size/\h@ngulpl@ne\endcsname
+ \xdef\font@name{\csname \curr@fontshape/\f@size/\h@ngulpl@ne\endcsname}%
+ \else
+ \dhucs@define@newfont
+ \fi
+ \else}%
+ \unexpanded\expandafter{\pickup@font
+ \fi}}
+\let\dhucs@define@newfont\define@newfont
+
+%% hangul font selection interface
+\protected\def\SetHangulFonts#1#2#3{%
+ \def\dhucs@serifhangulfont{#1}%
+ \def\dhucs@sanshangulfont{#2}%
+ \def\dhucs@monohangulfont{#3}%
+}
+\protected\def\SetHanjaFonts#1#2#3{%
+ \def\dhucs@serifhanjafont{#1}%
+ \def\dhucs@sanshanjafont{#2}%
+ \def\dhucs@monohanjafont{#3}%
+}
+\protected\def\SetSerifFonts#1#2{%
+ \def\dhucs@serifhangulfont{#1}%
+ \def\dhucs@serifhanjafont{#2}%
+}
+\protected\def\SetSansFonts#1#2{%
+ \def\dhucs@sanshangulfont{#1}%
+ \def\dhucs@sanshanjafont{#2}%
+}
+\protected\def\SetAdhocFonts#1#2{%
+ \def\dhucs@temp@hangulfont{#1}%
+ \def\dhucs@temp@hanjafont {#2}%
+}
+
+\protected\edef\normalfont{%
+ \unexpanded{%
+ \let\dhucs@temp@hangulfont\dhucs@undefined
+ \let\dhucs@temp@hanjafont \dhucs@undefined
+ }%
+ \unexpanded\expandafter{\normalfont}%
+}
+\let\reset@font\normalfont
+
+%% now print out \unihangulchar
+\newcommand*\unihangulchar@@@{%
+ \getthish@ngulcl@ss
+ \geth@ngulfontn@me
+ \dobeforeh@ngulch@r
+ \leavevmode %%% 2010.01.04 moved from inside group
+ \begingroup
+ \geth@ngulpl@ne@ndch@r
+ \fontencoding{LUC}\fontfamily\h@ngulfontn@me\selectfont
+ \dhucs@check@if@char@exists
+ \dhucs@emph\h@ngulch@r % bangjom emphasis
+ \h@ngulch@r
+ \endgroup
+ % see http://www.ktug.or.kr/jsboard/read.php?table=operate&no=27177
+ \ifnum\unih@ngulpoint="3009\else % 〉
+ \josa@buf@del\global\@josa\unih@ngulpoint
+ \fi
+ \do@fterh@ngulch@r
+}
+
+\newcommand*\geth@ngulfontn@me{%
+ \ifnum\thish@ngul=\@ne
+ \def\hangul@hanja{hangul}%
+ \else
+ \def\hangul@hanja{hanja}%
+ \fi
+ \edef\@tempa{\f@family}\edef\@tempb{\ttdefault}\edef\@tempc{\sfdefault}%
+ \ifx\@tempa\@tempb
+ \edef\h@ngulfontn@me{\csname dhucs@mono\hangul@hanja font\endcsname}%
+ \def\dhucs@hu{\z@}% do not insert micro-space when ttfamily,
+ % under which it should be fixed-width.
+ \else\ifx\@tempa\@tempc
+ \edef\h@ngulfontn@me{\csname dhucs@sans\hangul@hanja font\endcsname}%
+ \else
+ \edef\h@ngulfontn@me{\csname dhucs@serif\hangul@hanja font\endcsname}%
+ \fi\fi
+ \ifdefined\dhucs@temp@hangulfont
+ \edef\h@ngulfontn@me{\csname dhucs@temp@\hangul@hanja font\endcsname}%
+ \fi
+}
+
+%% dhucs-interword.sty will use this command.
+\newcommand*\setInterHangulSkip[1]{\def\dhucs@interhchar{#1}}
+
+%% ... why is this needed?
+%\newcommand*\hfontfamilynameprefix{ut}
+
+%%%%%%%%%%%%%%%%%%%%%%
+%% Autojosa and hangul.
+\newcount\@josa
+\newtoks\josatoks
+\def\josa@buf@del{\global\josatoks{^^J}}\josa@buf@del
+\protected\def\jong{\josa@buf@del\global\@josa\z@}
+\protected\def\rieul{\josa@buf@del\global\@josa\@ne}
+\protected\def\jung{\josa@buf@del\global\@josa\tw@}
+
+\AtBeginDocument{%
+ \if@dhucsfinemath
+ % redefine ref/pageref for finemath
+ \let\@setref@dhucs@orig@\@setref
+ \def\@setref#1#2#3{\@setref@dhucs@orig@{#1}{#2}{#3}%
+ \ifx#1\relax\else
+ \bgroup\setbox\z@\lastbox\egroup
+ \fi}%
+ \fi
+ \if@nojosa\else
+ % redefine ref/pageref for autojosa
+ \let\@setref@dhucs@orig\@setref
+ \def\@setref#1#2#3{\@setref@dhucs@orig{#1}{#2}{#3}%
+ \ifx#1\relax\else
+ \bgroup
+ \dhucs@make@cjkchar@null
+ \edef\@temp{\expandafter#2#1}\global\josatoks\expandafter{\@temp}%
+ \egroup
+ \fi}%
+ % redefine cite for autojosa: base only or with hyperref.sty
+ \let\@cite@ofmt@dhucs@orig\@cite@ofmt
+ \def\@cite@ofmt#1{\@cite@ofmt@dhucs@orig{#1}%
+ \bgroup
+ \let\@safe@activesfalse\@empty %%% workaround babel %%%
+ \dhucs@make@cjkchar@null
+ \def\hyper@@link[##1]##2##3##4{##4}%
+ \def\beamer@sort##1##2{}%
+ \edef\@temp{#1}\global\josatoks\expandafter{\@temp}%
+ \egroup}%
+ \fi
+ % version 4.0.14 :
+ % redefine footref for autojosa (footmisc v5.3d)
+ \@ifpackageloaded{footmisc}{%
+ \if@nojosa\else
+ \renewcommand\footref[1]{%
+ \begingroup
+ \let\@setref\@setref@dhucs@orig@
+ \unrestored@protected@xdef\@thefnmark{\ref{#1}}%
+ \endgroup
+ \@footnotemark
+ \global\josatoks\expandafter{\@thefnmark}}%
+ \fi
+ }{}
+ % redefine cite for autojosa: with cite.sty
+ \@ifpackageloaded{cite}{%
+ \if@nojosa\else
+ \let\citeform@dhucs@orig\citeform
+ \def\citeform#1{\citeform@dhucs@orig{#1}%
+ \bgroup
+ \dhucs@make@cjkchar@null
+ \def\hyper@@link[##1]##2##3##4{##4}%
+ \edef\@temp{#1}\global\josatoks\expandafter{\@temp}%
+ \egroup}%
+ \fi
+ }{}%
+ % redefine cite for autojosa: with natbib.sty (NOT a full support yet)
+ \@ifpackageloaded{natbib}{%
+ \if@nojosa\else
+ \expandafter\def\expandafter\hyper@natlinkend\expandafter{%
+ \hyper@natlinkend
+ \bgroup%\def\protect##1##2{^^J}% how to do about \protect
+ \ifnum\NAT@ctype=1
+ \edef\@temp{\NAT@nm}%
+ \else
+ \ifNAT@numbers
+ \edef\@temp{\NAT@num}\else
+ \edef\@temp{\NAT@date}\fi
+ \fi
+ \global\josatoks\expandafter{\@temp}%
+ \egroup}%
+ \fi
+ }{}%
+ % support of autojosa for apacite.sty
+ \@ifpackageloaded{apacite}{%
+ \if@nojosa\else
+ \let\dhucs@@cite@orig\@@cite
+ \def\@@cite<#1>[#2]#3{%
+ \dhucs@@cite@orig<#1>[#2]{#3}%
+ \begingroup
+ \dhucs@make@cjkchar@null
+ \def\hyper@@link[##1]##2##3##4{##4}%
+ \if@Y@cite
+ \@for\@citeb:=#3\do{%
+ \@ifundefined{b@\@citeb\@extra@b@citeb}{}{%
+ \edef\@temp{\csname Y@\@citeb\@extra@b@citeb\endcsname}}}%
+ \else
+ \let\BCA\@firstoftwo
+ \@for\@citeb:=#3\do{%
+ \@ifundefined{b@\@citeb\@extra@b@citeb}{}{%
+ \edef\@temp{\csname b@\@citeb\@extra@b@citeb\endcsname}}}%
+ \fi
+ \global\josatoks\expandafter{\@temp}%
+ \endgroup}%
+ \fi
+ }{}%
+}
+\newcommand*\dh@unichar@null@[1]{^^J}
+\newcommand*\dhucs@make@cjkchar@null{\let\unihangulchar\dh@unichar@null@}
+\newcommand*\josa@hyper@link{%
+ \begingroup
+ \toks@{}\expandafter\josa@hyper@link@\the\josatoks\@nil
+ \endgroup
+}
+\newcommand*\josa@hyper@link@{%
+ \afterassignment\josa@link@reversetoks\let\dhucs@tmp@next= }
+\newcommand*\josa@link@reversetoks{%
+ \ifx\dhucs@tmp@next\@nil
+ \expandafter\josa@hyper@link@@
+ \else
+ \if\noexpand\dhucs@tmp@next\relax
+ \else\ifx)\dhucs@tmp@next
+ \else\ifx]\dhucs@tmp@next
+ \else\ifcat\dhucs@cat@eleven\dhucs@tmp@next
+ \edef\act{\noexpand\toks@{\expandafter\strip@letter@meaning@prefix
+ \meaning\dhucs@tmp@next\the\toks@}}\act % by little tree
+ \else\ifcat\dhucs@cat@twelve\dhucs@tmp@next
+ \edef\act{\noexpand\toks@{\expandafter\strip@character@meaning@prefix
+ \meaning\dhucs@tmp@next\the\toks@}}\act % by little tree
+ \fi\fi\fi\fi\fi
+ \expandafter\josa@hyper@link@
+ \fi}
+
+\begingroup
+\catcode`\A=11
+\catcode`\0=12
+\global\let\dhucs@cat@eleven=A
+\global\let\dhucs@cat@twelve=0
+\endgroup
+
+\expandafter\def\expandafter\strip@character@meaning@prefix
+ \detokenize{the character} #1{#1}
+\expandafter\def\expandafter\strip@letter@meaning@prefix
+ \detokenize{the letter} #1{#1}
+
+\newcommand*\josa@hyper@link@@{%
+ \expandafter\josa@hyper@link@@@\the\toks@\@empty\@empty\@empty\@empty\@nil}
+\def\josa@hyper@link@@@#1#2#3#4\@nil{%
+ \if#1^^J\else
+ \if 1#1\rieul\else
+ \if 3#1\jong\else
+ \if 6#1\jong\else
+ \if 7#1\rieul\else
+ \if 8#1\rieul\else
+ \if 0#1\jong\else
+ \if l#1\rieul\else
+ \if m#1\jong\else
+ \if n#1\jong\else
+ \if L#1\rieul\else
+ \if M#1\jong\else
+ \if N#1\jong\else
+ \jung
+ \fi\fi\fi\fi\fi \fi\fi\fi\fi\fi \fi\fi
+ \if n#2\if g#1\jong\fi\fi%skating
+ \if a#2\if p#1\jong\fi\fi%cap
+ \if u#2\if p#1\jong\fi\fi%cup
+ \if a#2\if t#1\jong\fi\fi%cat
+ \if e#2\if t#1\jong\fi\fi%Hamlet
+ \if i#2\if t#1\jong\fi\fi%summit
+ \if o#2\if t#1\jong\fi\fi%not
+ \if u#2\if t#1\jong\fi\fi%nut
+ \if o#2\if k#1\jong\fi\fi%book
+ \if i#2\if c#1\jong\fi\fi%picnic
+ \if l#2\if e#1\rieul\fi\fi%apple
+ \if i#3\if m#2\if e#1\jong\fi\fi\fi%time
+ \if i#3\if n#2\if e#1\jong\fi\fi\fi%mine
+ \if a#3\if c#2\if k#1\jong\fi\fi\fi%back
+ \if i#3\if c#2\if k#1\jong\fi\fi\fi%pick
+ \if o#3\if a#2\if t#1\jung\fi\fi\fi%boat
+ \if T#3\if e#2\if X#1\jong\fi\fi\fi%TeX
+ \fi}
+\if@nojosa
+ \let\josa@hyper@link\relax
+\fi
+\newcommand*\josa@hanja@hangul[1]{\begingroup
+ \count@=\z@
+ \openin1=#1\relax \josa@hanja \closein1
+ \endgroup}
+\newcommand*\josa@hanja{\read1 to \@tempa
+ \ifnum\count@=\@josa
+ \global\@josa\@tempa \let\next\relax
+ \else
+ \advance\count@\@ne \let\next\josa@hanja
+ \fi \next}
+\protected\def\makejosa#1#2{%
+ \josa@hyper@link
+ \ifnum\@josa>19967 \ifnum\@josa<40870 %%% CJK UNIFIED IDEOGRAPHS
+ \advance\@josa-19968 % "4E00
+ \josa@hanja@hangul{hanja_hangul.tab}\fi\fi
+ \ifnum\@josa>13311 \ifnum\@josa<19894 %%% CJK UNIFIED IDEOGRAPHS EXT. A
+ \advance\@josa-13312 % "3400
+ \josa@hanja@hangul{hanjaexa_hangul.tab}\fi\fi
+ \ifnum\@josa>63743 \ifnum\@josa<64046 %%% CJK COMPATIBILITY IDEOGRAPHS
+ \advance\@josa-63744 % "F900
+ \josa@hanja@hangul{hanjacom_hangul.tab}\fi\fi
+ \ifnum\@josa>44031 \ifnum\@josa<55204 %%% hangul syllables
+ \advance\@josa-44032 % "AC00
+ \count@=\@josa \divide\count@28 \multiply\count@28
+ \advance\@josa-\count@ \advance\@josa4519 % "11A7
+ \ifnum\@josa=4519 \jung
+ \else\ifnum\@josa=4527 \rieul % "11AF
+ \else \jong \fi\fi \fi\fi
+ \ifnum\@josa>12592 \ifnum\@josa<12623 %%% ㄱㄴㄷㄹ
+ \ifnum\@josa=12601 \rieul
+ \else\jong\fi \fi\fi
+ \ifnum\@josa>12895 \ifnum\@josa<12924 \advance\@josa-96 \fi\fi
+ \ifnum\@josa>12799 \ifnum\@josa<12814 %%% ㉠ or ㈀
+ \ifnum\@josa=12803 \rieul
+ \else\jong\fi \fi\fi
+ \ifnum\@josa>12813 \ifnum\@josa<12829 %%% ㉮ or ㈎
+ \jung \fi\fi
+ \ifnum\@josa>9311 \ifnum\@josa<9372 %%% ① or ⑴
+ \advance\@josa\m@ne \num@josa{\@josa}\fi\fi
+ \ifnum\@josa>9423 \ifnum\@josa<9450 \advance\@josa-26 \fi\fi
+ \ifnum\@josa>9397 \ifnum\@josa<9424 \advance\@josa-26 \fi\fi
+ \ifnum\@josa>9371 \ifnum\@josa<9398 %%% ⓐ or ⒜
+ \ifnum\@josa=9383 \rieul\else % l
+ \ifnum\@josa=9384 \jong\else % m
+ \ifnum\@josa=9385 \jong\else % n
+ \jung\fi\fi\fi \fi\fi
+ \ifnum\@josa>8543 \ifnum\@josa<8556 % ⅰⅱⅲ
+ \advance\@josa-3 \num@josa{\@josa}\fi\fi
+ \ifnum\@josa>8559 \ifnum\@josa<8572 % ⅠⅡⅢ
+ \advance\@josa\@ne \num@josa{\@josa}\fi\fi
+ \ifnum\@josa=\@ne
+ \ifx\@empty#1\@empty \else#2\relax\fi% rieul
+ \else
+ \ifnum\@josa=\tw@ #1\relax% jung
+ \else #2\relax% jong
+ \fi
+ \fi}
+\newcommand*\num@josa[1]{\bgroup\count@#1%
+ \ifnum\count@<\z@ \count@-\count@ \fi\count2\count@
+ \divide\count2 10 \multiply\count2 10 \advance\count@-\count2
+ \ifcase\count@\jong\or\rieul\or\jung\or\jong\or\jung\or
+ \jung\or\jong\or\rieul\or\rieul\or\jung\fi\egroup}
+\newcommand*\error@josa{\PackageError{kotex}{Undefined Control Sequence}{}}
+
+%% \nobreak다: see http://kts.ktug.kr/node/204
+\newcommand*\nobreak@hangul@da{\nobreak다}
+
+\newcommand*\^^ea[2]{%
+ \if\string#1\string^^b0%
+ \if\string#2\string^^80\makejosa{가}{이}\else\error@josa\fi% 가
+ \else\if\string#1\string^^b3%
+ \if\string#2\string^^bc\makejosa{와}{과}\else\error@josa\fi% 과
+ \else\error@josa \fi\fi}
+\newcommand*\^^eb[2]{%
+ \if\string#1\string^^8b\if\string#2\string^^a4% avoid orphan "다"
+ \expandafter\expandafter\expandafter\nobreak@hangul@da\else\error@josa\fi
+ \else\if\string#1\string^^8a%
+ \if\string#2\string^^94\makejosa{는}{은}\else\error@josa\fi% 는
+ \else\if\string#1\string^^9d%
+ \if\string#2\string^^bc\makejosa{라}{이라}\else\error@josa\fi% 라
+ \else\if\string#1\string^^a1%
+ \if\string#2\string^^9c\makejosa{}{으}로\else\error@josa\fi% 로
+ \else\if\string#1\string^^a5%
+ \if\string#2\string^^bc\makejosa{를}{을}\else\error@josa\fi% 를
+ \else\error@josa \fi\fi\fi\fi\fi}
+\newcommand*\^^ec[2]{%
+ \edef\@tempa{\string#1}\edef\@tempb{\string#2}%
+ \futurelet\next\@josa@begin@ec}
+\def\@josa@begin@ec{%
+ \if\@tempa\string^^99%
+ \if\@tempb\string^^80\makejosa{와}{과}\else\error@josa\fi% 와
+ \else\if\@tempa\string^^9c%
+ \if\@tempb\string^^bc\makejosa{}{으}\else\error@josa\fi% 으
+ \else\if\@tempa\string^^9d%
+ \if\@tempb\string^^80\makejosa{는}{은}% 은
+ \else\if\@tempb\string^^84\makejosa{를}{을}% 을
+ \else\if\@tempb\string^^b4%
+ \ifx\next^^eb\makejosa\relax{이}% 이라
+ \else\makejosa{가}{이}% 이
+ \fi
+ \else\error@josa \fi\fi\fi
+ \else\error@josa \fi\fi\fi}
+
+%% hangul item titles
+\RequirePackage{kolabels-utf}
+
+\AtBeginDocument{
+%% compatibility with apacite.sty (reported by slomo)
+%% see http://www.ktug.or.kr/jsboard/read.php?table=operate&no=21183
+% \@ifpackageloaded{apacite}{%
+% \@ifpackagewith{apacite}{noaccentfix}{}{%
+% \def\unihangulchar@APAC#1{uni#1}%
+% \g@addto@macro\@pre@accentfix{%
+% \let\old@unihangulchar@APAC\unihangulchar
+% \let\unihangulchar\unihangulchar@APAC}%
+% \g@addto@macro\@post@accentfix{%
+% \let\unihangulchar\old@unihangulchar@APAC}%
+% }%
+% }{}%
+%% compatibility with ulem.sty
+%% allowing linebreaking inside ulem'ed text.
+ \@ifpackageloaded{ulem}{%
+ \let\orig@lastnodetype\lastnodetype
+ \edef\UL@stop{\unexpanded{%
+ \ifnum\lastkern=\thr@@ % empty hbox
+ \else
+ \global\chardef\dhucs@ul@lastnodetype\orig@lastnodetype
+ \global\mathchardef\dhucs@ul@spacefactor\spacefactor
+ \fi}\unexpanded\expandafter{\UL@stop}}
+ \def\dhucs@ul@stop{\ifx\UL@start\@empty
+ \ifx\ \LA@space\else\UL@stop\fi\fi}
+ \def\dhucs@ul@start{\ifx\UL@start\@empty\else
+ \ifx\ \LA@space\else\UL@start\fi\fi}
+ \addto@hook\UL@hook{%
+ \def\discretionary#1#2#3{%
+ \ifx\\#3\\\hskip\z@skip\else\hskip\dhucs@interhchar\fi}%
+ \def\unihangulchar#1{\dhucs@ul@stop
+ \unih@ngulpoint#1\relax \futurelet\dhucs@next\unihangulchar@@}%
+ \edef\dobeforeh@ngulch@r{%
+ \unexpanded{\ifdefined\dhucs@ul@lastnodetype
+ \let\lastnodetype\dhucs@ul@lastnodetype
+ \spacefactor\dhucs@ul@spacefactor
+ \fi}\unexpanded\expandafter{\dobeforeh@ngulch@r\dhucs@ul@start}}%
+ \edef\breakbeforeasciichar{\unexpanded{\dhucs@ul@stop}%
+ \unexpanded\expandafter{\breakbeforeasciichar\dhucs@ul@start}}%
+ \edef\cjksymbolextraspace{\unexpanded{\dhucs@ul@stop}%
+ \unexpanded\expandafter{\cjksymbolextraspace\dhucs@ul@start}}%
+ \let\hskip\LA@hskip
+ \let\asciiexclamationafterhangul\relax
+ \let\asciiquestionafterhangul\relax
+ \let\asciifullstopafterhangul\relax
+ }%
+ }{}%
+}
+
+%% use hyperref's unichar support
+\unless\ifdefined\pdfstringdefPreHook
+ \let\pdfstringdefPreHook\@empty\fi
+\g@addto@macro\pdfstringdefPreHook{%
+ \let\unihangulchar\HyPsd@unichar
+ \let\makejosa\@secondoftwo
+ \let\dotemph\@firstofone
+ \let\jong\@empty
+ \let\jung\@empty
+ \let\rieul\@empty
+ \def\SetHangulFonts#1#2#3{}%
+ \def\SetHanjaFonts#1#2#3{}%
+ \def\SetSerifFonts#1#2{}%
+ \def\SetSansFonts#1#2{}%
+ \def\SetAdhocFonts#1#2{}%
+}
+
+
+%% for downward compatibility
+\let\PrerenderUnicode\@gobble
+\let\dhucsPrerenderUnicode\@gobble
+\let\BreakBeforeAsciiOParen\@gobble
+\let\unichar\unihangulchar
+
+%% load ucs-hangul upon [hangul] option
+\if@hangul
+ \RequirePackage{kosections-utf}
+\fi
+
+\endinput
+
+%%% karnes: 2013/10/21, .tab files --- xetexko’s
+%%% karnes: 2013/10/20, konames, kosections, kolabes --- cjk-ko’s.
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/lucenc.dfu b/Master/texmf-dist/tex/latex/kotex-utf/lucenc.dfu
new file mode 100644
index 00000000000..172cc95e93e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/lucenc.dfu
@@ -0,0 +1,155 @@
+%% File `lucenc.dfu`
+%%
+%% 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.
+%%
+\ifdefined\ProvidesFile
+ \ProvidesFile{lucenc.dfu}[2007/09/05 UTF-8 support for dhucs]
+\fi
+
+%%%%%%%%%%%%%%%%%%%%%
+%%% CJK 기호문자 설정
+%%%%%%%%%%%%%%%%%%%%%
+
+\DeclareUnicodeCharacter{00B7}% ·
+ {\leavevmode\hbox to.7em{\hss\textperiodcentered\hss}\postcjksymbol}
+\DeclareUnicodeCharacter{2018}% ‘
+ {\cjksymbolskip\textquoteleft\postcjksymnobreak}
+\DeclareUnicodeCharacter{2019}% ’
+ {\cjksymbolunskip\kernbeforelatinquoteclose\textquoteright\postcjksymskip}
+\DeclareUnicodeCharacter{201C}% “
+ {\cjksymbolskip\textquotedblleft\postcjksymnobreak}
+\DeclareUnicodeCharacter{201D}% ”
+ {\cjksymbolunskip\kernbeforelatinquoteclose\textquotedblright\postcjksymskip}
+\DeclareUnicodeCharacter{3001}% 、
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"3001}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{3002}% 。
+ {\cjksymbolunskip\hbox to.6em{\unihangulchar{"3002}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{3008}% 〈
+ {\cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3008}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{3009}% 〉
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"3009}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{300A}% 《
+ {\cjksymbolskip\hbox to.7em{\hss\unihangulchar{"300A}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{300B}% 》
+ {\cjksymbolunskip\hbox to.7em{\unihangulchar{"300B}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{300C}% 「
+ {\cjksymbolskip\hbox to.6em{\hss\unihangulchar{"300C}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{300D}% 」
+ {\cjksymbolunskip\hbox to.6em{\unihangulchar{"300D}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{300E}% 『
+ {\cjksymbolskip\hbox to.6em{\hss\unihangulchar{"300E}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{300F}% 』
+ {\cjksymbolunskip\hbox to.6em{\unihangulchar{"300F}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{3010}% 【
+ {\cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3010}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{3011}% 】
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"3011}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{3014}% 〔
+ {\cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3014}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{3015}% 〕
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"3015}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{3016}% 〖
+ {\cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3016}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{3017}% 〗
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"3017}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{3018}% 〘
+ {\cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3018}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{3019}% 〙
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"3019}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{301A}% 〚
+ {\cjksymbolskip\hbox to.5em{\hss\unihangulchar{"301A}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{301B}% 〛
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"301B}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF01}% !
+ {\cjksymbolunskip\hbox to.5em{\hss\unihangulchar{"FF01}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF08}% (
+ {\cjksymbolskip\hbox to.5em{\hss\unihangulchar{"FF08}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{FF09}% )
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"FF09}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF0C}% ,
+ {\cjksymbolunskip\hbox to.5em{\hss\unihangulchar{"FF0C}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF0E}% .
+ {\cjksymbolunskip\hbox to.5em{\hss\unihangulchar{"FF0E}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF1A}% :
+ {\cjksymbolunskip\hbox to.5em{\hss\unihangulchar{"FF1A}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF1B}% ;
+ {\cjksymbolunskip\hbox to.5em{\hss\unihangulchar{"FF1B}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF1C}% <
+ {\cjksymbolskip\hbox to 1em{\hss\unihangulchar{"FF1C}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{FF1D}% =
+ {\leavevmode\hbox to.9em{\hss\unihangulchar{"FF1D}\hss}\postcjksymbol}
+\DeclareUnicodeCharacter{FF1E}% >
+ {\cjksymbolunskip\hbox to 1em{\unihangulchar{"FF1E}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF1F}% ?
+ {\cjksymbolunskip\hbox to.667em{\hss\unihangulchar{"FF1F}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF3B}% [
+ {\cjksymbolskip\hbox to.5em{\hss\unihangulchar{"FF3B}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{FF3D}% ]
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"FF3D}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF5B}% {
+ {\cjksymbolskip\hbox to.5em{\hss\unihangulchar{"FF5B}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{FF5D}% }
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"FF5D}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF61}% 。 HALFWIDTH IDEOGRAPHIC FULL STOP
+ {\cjksymbolunskip\hbox to.5em{\hss\unihangulchar{"FF61}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF62}% 「 HALFWIDTH LEFT CORNER BRACKET
+ {\cjksymbolskip\hbox to.5em{\hss\unihangulchar{"FF62}}\postcjksymnobreak}
+\DeclareUnicodeCharacter{FF63}% 」 HALFWIDTH RIGHT CORNER BRACKET
+ {\cjksymbolunskip\hbox to.5em{\unihangulchar{"FF63}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF64}% 、 HALFWIDTH IDEOGRAPHIC COMMA
+ {\leavevmode\hbox to.5em{\hss\unihangulchar{"FF64}\hss}\postcjksymskip}
+\DeclareUnicodeCharacter{FF65}% ・ HALFWIDTH KATAKANA MIDDLE DOT
+ {\leavevmode\hbox to.9em{\hss\unihangulchar{"FF65}\hss}\postcjksymbol}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%% CJK 문자 다음에 오는 ASCII 문자의 카테고리 설정
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\expandafter\gdef\csname nexttohangul-1\endcsname{%
+ % ascii opening parentheses.
+ % 직전에 \breakbeforeasciichar (줄바꿈 허용하는 공백) 삽입.
+ ([`%
+}
+
+\expandafter\gdef\csname nexttotrivcj-1\endcsname{%
+ % trivcj 환경에서의 ascii opening parentheses
+ ([`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz%
+}
+
+\expandafter\gdef\csname nexttohangul-2\endcsname{%
+ % ascii closing parentheses.
+ % 직전에 아무 것도 삽입하지 않음. spacefactor조차도!
+ )]'%
+}
+
+\expandafter\gdef\csname nexttohangul-3\endcsname{%
+ % ascii numbers.
+ % 직전에 \kernbeforeasciichars (줄바꿈 없는 공백) 삽입.
+ 1234567890:;/%
+}
+
+\expandafter\gdef\csname nexttohangul-4\endcsname{%
+ % ascii fullstop.
+ .%
+}
+
+\expandafter\gdef\csname nexttohangul-5\endcsname{%
+ % ascii question mark.
+ ?%
+}
+
+\expandafter\gdef\csname nexttohangul-6\endcsname{%
+ % ascii exclamation mark.
+ !%
+}
+
+\endinput
+
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/lucuhcmj.fd b/Master/texmf-dist/tex/latex/kotex-utf/lucuhcmj.fd
new file mode 100644
index 00000000000..091d8c9ce1b
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/lucuhcmj.fd
@@ -0,0 +1,18 @@
+%% File `lucuhcmj.fd`
+%%
+%% 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.
+%%
+\ProvidesFile{lucuhcmj.fd}[2013/09/26 UHC Myeongjo font definitions]
+\DeclareFontFamily{LUC}{uhcmj}{\hyphenchar\font\m@ne}
+\DeclareFontShape {LUC}{uhcmj}{m}{n}{<-> LUC * uwmj}{}
+\DeclareFontShape {LUC}{uhcmj}{m}{sl}{<-> LUC * uwmjo}{}
+\DeclareFontShape {LUC}{uhcmj}{m}{it}{<-> LUCssub * uhcmj/m/sl}{}
+\endinput
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/tex4ht/dhucs.4ht b/Master/texmf-dist/tex/latex/kotex-utf/tex4ht/dhucs.4ht
new file mode 100644
index 00000000000..650184fa844
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/tex4ht/dhucs.4ht
@@ -0,0 +1,22 @@
+%% File `dhucs.4ht`
+%%
+%% 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.
+%%
+\protected\def\unihangulchar#1{\futurelet\dhucs@next\unihangulchar@#1\@nil}
+\def\unihangulchar@{%
+ \ifx\dhucs@next"\expandafter\hex@unihangulchar
+ \else\expandafter\digit@unihangulchar
+ \fi}
+\def\digit@unihangulchar#1\@nil{\HCode{&\##1;}}
+\def\hex@unihangulchar"#1\@nil{\HCode{&\#x#1;}}
+
+\DeclareUnicodeCharacter{00B7}{~\unihangulchar{"00B7}~}
+
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/tex4ht/dhucs.cfg b/Master/texmf-dist/tex/latex/kotex-utf/tex4ht/dhucs.cfg
new file mode 100644
index 00000000000..8c8f57f282a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/tex4ht/dhucs.cfg
@@ -0,0 +1,40 @@
+%% File `dhucs.cfg`
+%%
+%% 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.
+%%
+\Preamble{xhtml}
+\Configure{charset}{charset=utf-8}
+\Configure{@TITLE}{\protected\def\unihangulchar##1{\special{t4ht=&\###1;}}}
+\Configure{@BODY}{\NoFonts}
+\Configure{@/BODY}{\EndNoFonts}
+
+\begin{document}
+\CssFile
+ /* css.sty */
+body {
+ line-height: 150%;
+}
+.verbatim {
+ font-family: monospace;
+ white-space: nowrap;
+ text-align: left;
+ line-height: 100%;
+}
+.quote {
+ margin-bottom: 0.25em;
+ margin-top: 0.25em;
+ margin-left: 3em;
+ margin-right:3em;
+ text-align:justify;
+}
+\EndCssFile
+\EndPreamble
+
diff --git a/Master/texmf-dist/tex/latex/kotex-utf/tex4ht/kosections-utf.4ht b/Master/texmf-dist/tex/latex/kotex-utf/tex4ht/kosections-utf.4ht
new file mode 100644
index 00000000000..c26be1caf93
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kotex-utf/tex4ht/kosections-utf.4ht
@@ -0,0 +1,131 @@
+%% File `kosections-utf.4ht`
+%%
+%% 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.
+%%
+\def\dhucs@seccntformat#1#2{}
+
+\@ifclassloaded{book}{
+\Configure{part}
+ {\HCode{<div class="part">}}
+ {\HCode{</div>}}
+ {\HCode{<h1 class="partHead">}%
+ \pre@partcnt\thepart\post@partcnt\HCode{<br />}%
+ \HCode{<span class="part_font">}}
+ {\HCode{</span>}\HCode{</h1>}}
+\Configure{chapter}
+ {\HCode{<div class="chapter">}}
+ {\HCode{</div>}}
+ {\HCode{<h2 class="chapterHead">}%
+ \pre@chaptercnt\thechapter\post@chaptercnt\HCode{<br />}%
+ \HCode{<span class="chapter_font">}}
+ {\HCode{</span>}\HCode{</h2>}}
+\Configure{section}
+ {}
+ {}
+ {\HCode{<h3 class="sectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \pre@sectioncnt\thesection\post@sectioncnt~~%
+ \HCode{</span>}\HCode{<span class="section_font">}}
+ {\HCode{</span>}\HCode{</h3>}}
+\Configure{subsection}
+ {}
+ {}
+ {\HCode{<h4 class="subsectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \thesubsection~~\HCode{</span>}%
+ \HCode{<span class="subsection_font">}}
+ {\HCode{</span>}\HCode{</h4>}}
+\Configure{subsubsection}
+ {}
+ {}
+ {\HCode{<h5 class="subsubsectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \thesubsubsection~~\HCode{</span>}%
+ \HCode{<span class="subsubsection_font">}}
+ {\HCode{</span>}\HCode{</h5>}}
+}
+
+\@ifclassloaded{report}{
+\Configure{part}
+ {\HCode{<div class="part">}}
+ {\HCode{</div>}}
+ {\HCode{<h1 class="partHead">}%
+ \pre@partcnt\thepart\post@partcnt\HCode{<br />}%
+ \HCode{<span class="part_font">}}
+ {\HCode{</span>}\HCode{</h1>}}
+\Configure{chapter}
+ {\HCode{<div class="chapter">}}
+ {\HCode{</div>}}
+ {\HCode{<h2 class="chapterHead">}%
+ \pre@chaptercnt\thechapter\post@chaptercnt\HCode{<br />}%
+ \HCode{<span class="chapter_font">}}
+ {\HCode{</span>}\HCode{</h2>}}
+\Configure{section}
+ {}
+ {}
+ {\HCode{<h3 class="sectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \pre@sectioncnt\thesection\post@sectioncnt~~%
+ \HCode{</span>}\HCode{<span class="section_font">}}
+ {\HCode{</span>}\HCode{</h3>}}
+\Configure{subsection}
+ {}
+ {}
+ {\HCode{<h4 class="subsectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \thesubsection~~\HCode{</span>}%
+ \HCode{<span class="subsection_font">}}
+ {\HCode{</span>}\HCode{</h4>}}
+\Configure{subsubsection}
+ {}
+ {}
+ {\HCode{<h5 class="subsubsectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \thesubsubsection~~\HCode{</span>}%
+ \HCode{<span class="subsubsection_font">}}
+ {\HCode{</span>}\HCode{</h5>}}
+}
+
+\@ifclassloaded{article}{
+\Configure{part}
+ {\HCode{<div class="part">}}
+ {\HCode{</div>}}
+ {\HCode{<h1 class="partHead">}%
+ \pre@partcnt\thepart\post@partcnt\HCode{<br />}%
+ \HCode{<span class="part_font">}}
+ {\HCode{</span>}\HCode{</h1>}}
+\Configure{section}
+ {}
+ {}
+ {\HCode{<h3 class="sectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \pre@sectioncnt\thesection\post@sectioncnt~~%
+ \HCode{</span>}\HCode{<span class="section_font">}}
+ {\HCode{</span>}\HCode{</h3>}}
+\Configure{subsection}
+ {}
+ {}
+ {\HCode{<h4 class="subsectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \thesubsection~~\HCode{</span>}%
+ \HCode{<span class="subsection_font">}}
+ {\HCode{</span>}\HCode{</h4>}}
+\Configure{subsubsection}
+ {}
+ {}
+ {\HCode{<h5 class="subsubsectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \thesubsubsection~~\HCode{</span>}%
+ \HCode{<span class="subsubsection_font">}}
+ {\HCode{</span>}\HCode{</h5>}}
+}
+
+\endinput
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 42d7ababb08..aca1c68ac99 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -251,7 +251,7 @@ my @TLP_working = qw(
keycommand keyreader keystroke keyval2e kix kixfont
knitting knittingpattern knuth
koma-moderncvclassic koma-script koma-script-examples koma-script-sfs
- kotex-utils
+ kotex-utf kotex-utils
kpfonts ksfh_nat
ktv-texdata kurier
l2picfaq l2tabu l2tabu-english l2tabu-french l2tabu-italian l2tabu-spanish
diff --git a/Master/tlpkg/tlpsrc/collection-langcjk.tlpsrc b/Master/tlpkg/tlpsrc/collection-langcjk.tlpsrc
index dabcc425a58..0c1eafcbb2f 100644
--- a/Master/tlpkg/tlpsrc/collection-langcjk.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-langcjk.tlpsrc
@@ -33,6 +33,7 @@ depend japanese-otf
depend japanese-otf-uptex
depend jfontmaps
depend jsclasses
+depend kotex-utf
depend kotex-utils
depend latex-notes-zh-cn
depend lshort-chinese
diff --git a/Master/tlpkg/tlpsrc/kotex-utf.tlpsrc b/Master/tlpkg/tlpsrc/kotex-utf.tlpsrc
new file mode 100644
index 00000000000..e2d9aa978ad
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/kotex-utf.tlpsrc
@@ -0,0 +1 @@
+depend cjk-ko