From 87cddce361c3b477029d13b27bdaa57190b2d74b Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 15 Mar 2020 03:01:24 +0000 Subject: CTAN sync 202003150301 --- language/korean/kotex-oblivoir/ChangeLog | 14 + language/korean/kotex-oblivoir/README | 91 +- .../kotex-oblivoir/doc/oblivoir-simpledoc.pdf | Bin 223149 -> 230610 bytes .../kotex-oblivoir/doc/oblivoir-simpledoc.tex | 314 ++++-- .../korean/kotex-oblivoir/doc/oblivoir-test.tex | 61 +- .../korean/kotex-oblivoir/memhangul-ucs/10_5.sty | 82 -- .../kotex-oblivoir/memhangul-ucs/fapapersize.sty | 141 --- .../kotex-oblivoir/memhangul-ucs/hfontsel.sty | 88 -- .../kotex-oblivoir/memhangul-ucs/hfontspec.nanum | 11 - .../memhangul-ucs/memhangul-common.sty | 1154 ------------------- .../memhangul-ucs/memhangul-patch.sty | 20 - .../kotex-oblivoir/memhangul-ucs/memhangul-ucs.sty | 716 ------------ .../memhangul-ucs/memucs-enumerate.sty | 49 - .../kotex-oblivoir/memhangul-ucs/memucs-gremph.sty | 115 -- .../memhangul-ucs/memucs-interword.sty | 160 --- .../memhangul-ucs/memucs-setspace.sty | 587 ---------- .../kotex-oblivoir/memhangul-ucs/nanumfontsel.sty | 29 - .../memhangul-ucs/ob-koreanappendix.sty | 98 -- .../memhangul-ucs/ob-nokoreanappendix.sty | 96 -- .../kotex-oblivoir/memhangul-ucs/ob-toclof.sty | 144 --- .../kotex-oblivoir/memhangul-x/memhangul-x.sty | 401 ------- .../memhangul-x/memucs-interword-x.sty | 188 ---- .../kotex-oblivoir/memhangul-x/xetexko-var.sty | 71 -- .../kotex-oblivoir/memhangul-x/xob-amssymb.sty | 27 - .../kotex-oblivoir/memhangul-x/xob-dotemph.sty | 75 -- .../korean/kotex-oblivoir/memhangul-x/xob-font.sty | 680 ----------- .../kotex-oblivoir/memhangul-x/xob-hyper.sty | 74 -- .../kotex-oblivoir/memhangul-x/xob-paralist.sty | 48 - language/korean/kotex-oblivoir/oblivoir-base.cls | 603 ---------- language/korean/kotex-oblivoir/oblivoir-xlua.cls | 497 -------- language/korean/kotex-oblivoir/oblivoir.cls | 23 - .../kotex-oblivoir/tex/memhangul-common/10_5.sty | 82 ++ .../tex/memhangul-common/fapapersize.sty | 147 +++ .../tex/memhangul-common/memhangul-common.sty | 1184 ++++++++++++++++++++ .../tex/memhangul-common/memhangul-patch.sty | 20 + .../tex/memhangul-common/memucs-enumerate.sty | 49 + .../tex/memhangul-common/memucs-setspace.sty | 587 ++++++++++ .../tex/memhangul-common/ob-koreanappendix.sty | 98 ++ .../tex/memhangul-common/ob-nokoreanappendix.sty | 96 ++ .../tex/memhangul-common/ob-toclof.sty | 144 +++ .../kotex-oblivoir/tex/memhangul-ucs/hfontsel.sty | 88 ++ .../tex/memhangul-ucs/hfontspec.nanum | 11 + .../tex/memhangul-ucs/memhangul-ucs.sty | 716 ++++++++++++ .../tex/memhangul-ucs/memucs-gremph.sty | 115 ++ .../tex/memhangul-ucs/memucs-interword.sty | 160 +++ .../tex/memhangul-ucs/nanumfontsel.sty | 29 + .../kotex-oblivoir/tex/memhangul-x/memhangul-x.sty | 405 +++++++ .../tex/memhangul-x/memucs-interword-x.sty | 188 ++++ .../kotex-oblivoir/tex/memhangul-x/xetexko-var.sty | 73 ++ .../kotex-oblivoir/tex/memhangul-x/xob-amssymb.sty | 27 + .../kotex-oblivoir/tex/memhangul-x/xob-dotemph.sty | 75 ++ .../kotex-oblivoir/tex/memhangul-x/xob-font.sty | 694 ++++++++++++ .../kotex-oblivoir/tex/memhangul-x/xob-hyper.sty | 74 ++ .../kotex-oblivoir/tex/memhangul-x/xob-lwarp.sty | 177 +++ .../tex/memhangul-x/xob-paralist.sty | 48 + .../korean/kotex-oblivoir/tex/oblivoir-utf.cls | 613 ++++++++++ language/korean/kotex-oblivoir/tex/oblivoir-xl.cls | 531 +++++++++ language/korean/kotex-oblivoir/tex/oblivoir.cls | 66 ++ language/korean/kotex-oblivoir/tex/xoblivoir.cls | 23 + language/korean/kotex-oblivoir/xoblivoir.cls | 54 - 60 files changed, 6782 insertions(+), 6449 deletions(-) delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/10_5.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/fapapersize.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/hfontsel.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/hfontspec.nanum delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/memhangul-common.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/memhangul-patch.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/memhangul-ucs.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/memucs-enumerate.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/memucs-gremph.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/memucs-interword.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/memucs-setspace.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/nanumfontsel.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/ob-koreanappendix.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/ob-nokoreanappendix.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-ucs/ob-toclof.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-x/memhangul-x.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-x/memucs-interword-x.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-x/xetexko-var.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-x/xob-amssymb.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-x/xob-dotemph.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-x/xob-font.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-x/xob-hyper.sty delete mode 100644 language/korean/kotex-oblivoir/memhangul-x/xob-paralist.sty delete mode 100644 language/korean/kotex-oblivoir/oblivoir-base.cls delete mode 100644 language/korean/kotex-oblivoir/oblivoir-xlua.cls delete mode 100644 language/korean/kotex-oblivoir/oblivoir.cls create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-common/10_5.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-common/fapapersize.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-common/memhangul-common.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-common/memhangul-patch.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-common/memucs-enumerate.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-common/memucs-setspace.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-common/ob-koreanappendix.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-common/ob-nokoreanappendix.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-common/ob-toclof.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-ucs/hfontsel.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-ucs/hfontspec.nanum create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-ucs/memhangul-ucs.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-ucs/memucs-gremph.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-ucs/memucs-interword.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-ucs/nanumfontsel.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-x/memhangul-x.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-x/memucs-interword-x.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-x/xetexko-var.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-x/xob-amssymb.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-x/xob-dotemph.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-x/xob-font.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-x/xob-hyper.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-x/xob-lwarp.sty create mode 100644 language/korean/kotex-oblivoir/tex/memhangul-x/xob-paralist.sty create mode 100644 language/korean/kotex-oblivoir/tex/oblivoir-utf.cls create mode 100644 language/korean/kotex-oblivoir/tex/oblivoir-xl.cls create mode 100644 language/korean/kotex-oblivoir/tex/oblivoir.cls create mode 100644 language/korean/kotex-oblivoir/tex/xoblivoir.cls delete mode 100644 language/korean/kotex-oblivoir/xoblivoir.cls (limited to 'language') diff --git a/language/korean/kotex-oblivoir/ChangeLog b/language/korean/kotex-oblivoir/ChangeLog index ab21d7db9d..c969d9c9d6 100644 --- a/language/korean/kotex-oblivoir/ChangeLog +++ b/language/korean/kotex-oblivoir/ChangeLog @@ -1,3 +1,17 @@ +2020-02-09 Kangsoo Kim + + Version 2.2 + + * Full integration of oblivoir.cls and xoblivoir.cls. + * Bug fixes. + * oblivoir.cls: version 2.2 + * oblivoir-utf.cls: version 0.8.2 + * oblivoir-xl.cls: version 0.8.4 + * memhangul-x.sty: version 11.11 + * xetex-var.sty: version 0.14 + * xob-font.sty: version 0.8 + * xob-lwarp.sty: new file + 2017-02-03 Kihwang Lee Version 2.1.8 diff --git a/language/korean/kotex-oblivoir/README b/language/korean/kotex-oblivoir/README index 0193ea7739..a91b290d9e 100644 --- a/language/korean/kotex-oblivoir/README +++ b/language/korean/kotex-oblivoir/README @@ -1,16 +1,15 @@ -kotex-oblivoir -============== +kotex-oblivoir, v2.2 +==================== Introduction ------------ -This package contains the oblivoir class, a document class based on -the memoir class for typesetting Korean documents. kotex-oblivoir +This package contains the oblivoir class, a document class based on +the memoir class for typesetting Korean documents. kotex-oblivoir comes with two sub-packages memhangul-ucs and memhangul-x -that provide interfaces between the memoir class and the Korean typesetting -packages. +that provide interfaces between the memoir class and the Korean typesetting packages. -kotex-oblivoir belongs to the ko.TeX, a comprehensive Korean typesetting +kotex-oblivoir belongs to the ko.TeX, a comprehensive Korean typesetting system together with packages kotex-utf, kotex-plain, kotex-utils, cjk-ko, xetexko, and luatexko. @@ -20,47 +19,7 @@ Dependencies kotex-oblivoir depends on the following packages to function: * memoir: base class -* kotex-utf: Korean typesetting - -Files ------ - -### TeXinputs - - oblivoir-base.cls -> tex/latex/kotex-oblivoir/ - oblivoir-xlua.cls -> tex/latex/kotex-oblivoir/ - oblivoir.cls -> tex/latex/kotex-oblivoir/ - xoblivoir.cls -> tex/latex/kotex-oblivoir/ - memhangul-ucs/10_5.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/fapapersize.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/hfontsel.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/hfontspec.nanum -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/memhangul-common.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/memhangul-patch.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/memhangul-ucs.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/memucs-enumerate.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/memucs-gremph.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/memucs-interword.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/memucs-setspace.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/nanumfontsel.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/ob-koreanappendix.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/ob-nokoreanappendix.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-ucs/ob-toclof.sty -> tex/latex/kotex-oblvoir/memhangul-ucs/ - memhangul-x/memhangul-x.sty -> tex/latex/kotex-oblivoir/memhangul-x/ - memhangul-x/memucs-interword-x.sty -> tex/latex/kotex-oblivoir/memhangul-x/ - memhangul-x/xetexko-var.sty -> tex/latex/kotex-oblivoir/memhangul-x/ - memhangul-x/xob-amssymb.sty -> tex/latex/kotex-oblivoir/memhangul-x/ - memhangul-x/xob-font.sty -> tex/latex/kotex-oblivoir/memhangul-x/ - memhangul-x/xob-dotemph.sty -> tex/latex/kotex-oblivoir/memhangul-x/ - memhangul-x/xob-hyper.sty -> tex/latex/kotex-oblivoir/memhangul-x/ - memhangul-x/xob-paralist.sty -> tex/latex/kotex-oblivoir/memhangul-x/ - -### Documents - - README (this file) -> doc/latex/kotex-oblivoir/ - doc/oblivoir-simpledoc.pdf -> doc/latex/kotex-oblivoir/ - doc/oblivoir-simpledoc.tex -> doc/latex/kotex-oblivoir/ - doc/oblivoir-text.tex -> doc/latex/kotex-oblivoir/ +* ko.TeX: Korean typesetting Usage ----- @@ -71,38 +30,11 @@ Call `oblivoir.cls` with class options as follows: ### Class options -Oblivoir inherits many options from the memoir and underlying -Korean typesetting packages in addition to its own class options. -For a detailed description of the class options, please refer +Oblivoir inherits many options from the memoir and underlying +Korean typesetting packages in addition to its own class options. +For a detailed description of the class options, please refer to the included documentation (written in Korean). -### Specifying Korean fonts - -Specifying Korean fonts in oblivoir class depends on the Korean -typesetting packages being used when compiling a document. - -With kotex-utf package, you can use `\SetHangulFonts`, `\SetHanjaFonts`, -`\SetAdhocFonts`. - -You can use fontspec package style commands when typesetting Korean -using XeTeX-ko or LuaTeX-ko as follows: - - \setmainfont[]{} - \setsansfont[]{} - \setmonofont[]{} - \setmainhangulfont[]{FontName} - \setsanshangulfont[]{FontName} - \setmonohangulfont[]{FontName} - \setmainhanjafont[]{FontName} - \setsanshanjafont[]{FontName} - \setmonohanjafont[]{FontName} - -Oblivoir class also has its own commands for specifying Korean fonts. - - \setkormainfont[]()()() - \setkorsansfont[]()()() - \setkormonofont[]()()() - ### Sample document Please refer to the `oblivoir-test.tex` file provided by this package. @@ -110,7 +42,7 @@ Please refer to the `oblivoir-test.tex` file provided by this package. License ------- -kotex-oblivoir is licensed under the LaTeX Project Public +kotex-oblivoir is licensed under the LaTeX Project Public License (LPPL) version 1.3c or later. Contacts @@ -118,4 +50,3 @@ Contacts Please report any errors or suggestions to the package maintainer, Kihwang Lee . - diff --git a/language/korean/kotex-oblivoir/doc/oblivoir-simpledoc.pdf b/language/korean/kotex-oblivoir/doc/oblivoir-simpledoc.pdf index 8863e70e99..7b1184120f 100644 Binary files a/language/korean/kotex-oblivoir/doc/oblivoir-simpledoc.pdf and b/language/korean/kotex-oblivoir/doc/oblivoir-simpledoc.pdf differ diff --git a/language/korean/kotex-oblivoir/doc/oblivoir-simpledoc.tex b/language/korean/kotex-oblivoir/doc/oblivoir-simpledoc.tex index 562a9f0190..adcec4cc16 100644 --- a/language/korean/kotex-oblivoir/doc/oblivoir-simpledoc.tex +++ b/language/korean/kotex-oblivoir/doc/oblivoir-simpledoc.tex @@ -15,6 +15,7 @@ footnote, nobookmarks, microtype, +% lwarp ]{oblivoir} \usepackage{fapapersize} @@ -54,7 +55,7 @@ \setobmonofont(Menlo)[Scale=.9] \setobmainfont(Minion Pro) \setobsansfont(Myriad Pro) - \setkomainfont[KoPubBatang ](Light)(Bold) + \setkomainfont[KoPubWorldBatang ](Light)(Bold) } \newcommand\xobclass{x\-ob\-liv\-oir\oblivoirallowbreak} @@ -64,7 +65,28 @@ \pagestyle{ruled} -\usepackage{tabu} +%%%\usepackage{tabu} +%%%%%%% tabu-fix 2020/02 +%%%\RequirePackage{etoolbox} +%%%\makeatletter +%%%\patchcmd +%%% \tabu@startpboxmeasure +%%% {\bgroup\begin{varwidth}}% +%%% {\bgroup +%%% \iftabu@spread\color@begingroup\fi\begin{varwidth}}% +%%% {}{} +%%%\def\@tabarray{\m@th\def\tabu@currentgrouptype{\currentgrouptype}\@ifnextchar[\@array{\@array[c]}} +\usepackage{tabularx} +% +%%%% \pdfelapsedtime bug 2019-12-15 +%\patchcmd +% \tabu@message@etime +% {\the\pdfelapsedtime}% +% {\pdfelapsedtime}% +% {}{} +%% +%% +%\makeatother \IfpxlTeX*{p,x} { @@ -73,9 +95,9 @@ \begin{document} -\title{초간단 \obclass{} v2.1 사용법} +\title{초간단 \obclass{} v2.2 사용법} -\date{2015년 4월} +\date{2020년 2월} \author{x-ob-liv-oir } @@ -179,15 +201,20 @@ oblivoir의 핵심 기능을 정의한 서브스타일로서만 유지된다. 부른다. 이 한글 패키지들을 (편의상) \obclass의 한글 드라이버라고 한다. \begin{center} -\begin{tabu}to.75\columnwidth{X|X|X} +%\begin{tabu}to.75\columnwidth{X|X|X} +\begin{tabularx}{.75\columnwidth}{X|X|X} \hline oblivoir 옵션 & 텍 엔진 & 한글 식자 패키지 \\ \hline no option & \hologo{pdfLaTeX} & \koTeX-utf \\ no option & \hologo{XeLaTeX} & \XeTeX-\ko \\ no option & \hologo{LuaLaTeX} & \LuaTeX-\ko \\ \hline -\end{tabu} +%\end{tabu} +\end{tabularx} \end{center} +2020년 이후, 이 가운데 \hologo{pdfLaTeX} 지원 브랜치는 더이상 개발을 진행하지 않고 +이전 버전과의 호환성만을 유지한다. + \section{옵션들} \subsection{memoir 옵션} @@ -210,7 +237,7 @@ ms, showtrims \begin{description} \item [\koTeX-utf] hangul, \uline{hanja}, nojosa, \uline{nonfrench}, \uline{finemath}, \uline{strictcharcheck} -\item [\XeTeX-\ko] hangul, hanja, unfonts.\footnote{unfonts 옵션은 \obclass에서 조금 다르게 동작하므로 아래 해당 부분을 참고할 것.} +\item [\XeTeX-\ko] hangul, hanja, %unfonts.\footnote{unfonts 옵션은 \obclass에서 조금 다르게 동작하므로 아래 해당 부분을 참고할 것.} \item [\LuaTeX-\ko] hangul, hanja, unfonts \item [cjk-\ko] hangul, hanja, nojosa, \uline{usedotemph}, \uline{usecjkt1font}. usecjkt1font 옵션은 uset1font로 입력해도 받아들인다. \end{description} @@ -229,9 +256,10 @@ ms, showtrims 문서를 작성할 수 있다. \item [dhucs] \koTeX-utf로 한글을 표현한다. \hologo{pdfLaTeX}에서 디폴트이며 memhangul-ucs는 이 패키지를 의도하고 작성된 것이다. +\item [polyglossia] 이 옵션이 주어지면 \koTeX 을 로드하지 않는다. 그 대신 \textsf{polyglossia}를 로드하고 이에 의존한 한글 식자를 준비한다. \end{description} -따라서, 다음 옵션들은 해당하는 드라이버에서만 의미를 갖는다. +다음 옵션들은 해당하는 드라이버에서만 의미를 갖는다. \begin{description} \item [strictcharcheck] \koTeX-utf. 엄격한 문자 검사. \item [finemath] \koTeX-utf. 한글 간격 미세 조정. @@ -260,7 +288,8 @@ ms, showtrims \item [chapter] \verb|\chapter| 명령을 제대로 쓸 수 있게 해준다. 이 옵션이 없으면 \obclass는 \verb|\section|부터 시작하는 문서라고 간주하고 식자하지만 \verb|\chapter|에서 에러를 내지는 않는다. \item [kosection] \verb|\section|에 대하여 ``제''와 ``절''을 찍어주도록 하는 옵션이다. \item [amsmath] amsmath.sty와 amssymb.sty를 미리 로드해주는 옵션이다. -\item [adjustmath] 한글 문서의 행간격이 벌어짐으로 인해서 display 수식의 전후에 너무 많은 공백이 생기는 것을 막아준다. +%\item [adjustmath] 한글 문서의 행간격이 벌어짐으로 인해서 display 수식의 전후에 너무 많은 공백이 생기는 것을 막아준다. +\item [mathdisp] v2.2 버전에서 디스플레이 수식과 본문의 간격을 oblivoir 식으로 재설정하는 것이 디폴트가 되었다. 이전에는 \verb|adjustmath| 옵션을 부여해야 동작하던 기능이 디폴트가 된 것이다. 이 기능을 배제하고 수식과 본문의 간격을 memoir와 amsmath가 설정하는 그대로 두려면 이 옵션을 부여한다. \item [arabicfront] \verb|\frontmatter| 부분의 페이지 숫자를 아라비아 숫자로 찍는다. 기본값은 로만 숫자. \item [footnote] 각주 번호와 숫자를 한국식으로 식자한다. \item [figtabcapt] 그림과 표에 \cnm{그림 1}과 같은 방식으로 캡션을 단다. @@ -274,6 +303,7 @@ ms, showtrims \item [quotespacing] quote, quotation 환경의 줄간격을 `좁은 줄간격'으로 줄인다. \item [nanum] 나눔명조/나눔고딕 트루타입 글꼴을 기본 글꼴로 사용하도록 설정한다. \item [hcr] 함초롬 LVT 글꼴을 기본 글꼴로 사용하도록 설정한다. +\item [lwarp] \textsf{lwarp}를 이용하여 HTML을 제작하는 데 필요한 설정을 활성화하는 옵션이다. \end{description} \bigskip @@ -300,8 +330,8 @@ ms, showtrims 다음 옵션들은 현재 큰 의미를 지니지 않는 것들이다. 대부분 \koTeX 의 발전과 더불어 \obclass에서 특별히 지정할 필요가 없어졌다. \begin{description} -\item [unfonts] 은 글꼴을 사용하게 한다. 레거시 텍에서는 untype1이고 새로운 텍 엔진에서는 은글꼴 트루타입이 기본 글꼴이 된다. -\item [nounfonts] 은 글꼴을 사용하지 않게 한다. 이것이 디폴트이다. +%\item [unfonts] 은 글꼴을 사용하게 한다. 레거시 텍에서는 untype1이고 새로운 텍 엔진에서는 은글꼴 트루타입이 기본 글꼴이 된다. +%\item [nounfonts] 은 글꼴을 사용하지 않게 한다. 이것이 디폴트이다. \item [latinquote] 따옴표를 라틴 글꼴에서 찍도록 강제하는 옵션이었다. 현재는 아무런 작용도 하지 않는다. \item [oldhangul] 옛한글 식자를 위한 옵션이었다. 현재는 이 옵션이 없어도 옛한글을 잘 처리한다. \item [nowinname] 은글꼴을 위해서 마련된 옵션이었으나 현재는 무의미하다. @@ -379,7 +409,8 @@ gremph는 \koTeX-utf에서 \verb|\usepackage{dhucs-gremph}|를 선언한 경우 \subsection{\XeTeX-\ko, \LuaTeX-\ko} -한글 드라이버들은 라틴 문자 폰트와 한글/한자 폰트를 분리하는 것을 기본으로 하고 있다. +한글 드라이버들은 라틴 문자 폰트와 별도로 한글/한자 폰트를 지정할 수 있게 하고 있다. +%분리하는 것을 기본으로 하고 있다. % \footnote{% % 한글과 라틴 문자을 분리하지 않으려 할 경우, fontspec 패키지의 % \texttt{\textbackslash{}fontspec} 명령 등을 사용할 수 @@ -419,16 +450,16 @@ gremph는 \koTeX-utf에서 \verb|\usepackage{dhucs-gremph}|를 선언한 경우 이 명령의 옵션으로 \verb|[Ligatures=TeX]|을 주면 \verb|``|, \verb|---|와 같은 입력이 ``, ---와 같이 나타난다. 대부분의 텍 소스에는 이런 이른바 텍 리거쳐를 사용하는 것이 -일반적이므로 이 옵션을 지정하는 것이 좋다. 최신 버전의 fontspec은 이 옵션을 자동으로 붙여주며, -아래 설명할 \cs{setkomainfont} 등의 명령을 써도 역시 이 옵션은 자동으로 붙는다. +일반적이므로 이 옵션을 지정하는 것이 좋은데, 최신 버전의 fontspec은 이 옵션을 자동으로 붙여주며, +아래 설명할 \cs{setkomainfont} 등의 명령을 써도 역시 이 옵션은 자동으로 붙기 때문에 별다른 고려를 하지 않아도 좋다. %\XeTeX 에서 \verb|[Mapping=tex-text]| 옵션을 %써도 좋은데 이 옵션은 \LuaTeX 에서는 무의미하므로 양쪽에 통용되는 \verb|[Ligatures=TeX]|을 %쓰도록 하자. 따라서 만약 \ct{TeX Gyre Termes}를 라틴 문자 세리프 글꼴로 쓰려 한다면, \begin{verbatim} -\setmainfont[Ligatures=TeX]{TeX Gyre Termes} +\setmainfont{TeX Gyre Termes} \end{verbatim} -와 같이 지정하면 된다. +으로 충분하다. \paragraph{한글과 한자} 한글 폰트는 다음 명령을 사용하여 설정한다. 자세한 사항은 \xetexko, \luatexko\ 매뉴얼을 참고하라. @@ -674,25 +705,25 @@ bolditalic 폰트를 별도로 지정하려 한다면 아래에서 설명할 fea \end{verbatim} \paragraph{base name을 사용하여 공통 부분 줄여쓰기} -KoPubBatang체 같은 경우, 글꼴 가족이 서로 다른 다음 세 폰트가 있다. +KoPubWorldBatang체 같은 경우, 글꼴 가족이 서로 다른 다음 세 폰트가 있다. \begin{verbatim} -KoPubBatangLight.ttf KoPubBatangLight KoPubBatang Light -KoPubBatangMedium.ttf KoPubBatangMedium KoPubBatang Medium -KoPubBatangBold.ttf KoPubBatangBold KoPubBatang Bold +KoPubWorldBatangLight.ttf KoPubWorldBatangLight KoPubWorldBatang Light +KoPubWorldBatangMedium.ttf KoPubWorldBatangMedium KoPubWorldBatang Medium +KoPubWorldBatangBold.ttf KoPubWorldBatangBold KoPubWorldBatang Bold \end{verbatim} 이 글꼴은 앞부분 이름은 같지만 Regular/Bold에 대응하는 글꼴로 설정되어 있지 않다. 이러한 상황에서 앞의 같은 부분을 base name으로 지정하고 나머지 부분을 각각 써넣는 방식으로 글꼴을 지정할 수 있다. \begin{verbatim} -\setkomainfont[KoPubBatang](Light)(Bold) +\setkomainfont[KoPubWorldBatang](Light)(Bold) \end{verbatim} 이것은 \begin{verbatim} -\setkomainfont(KoPubBatangLight)(KoPubBatangBold) +\setkomainfont(KoPubWorldBatangLight)(KoPubWorldBatangBold) \end{verbatim} 를 줄여쓴 것으로 이해하면 된다. 이탤릭 폰트는 지정하지 않은 보기인데, 원한다면 세번째 괄호 옵션에 써넣을 수 있다. 단, 이 방법을 쓸 때는 별표(*)를 사용할 수 없다. 왜냐하면 별표를 사용하였을 때 -KoPubBatang*이라는 이름의 폰트를 찾으려 할 것이기 때문이다. +KoPubWorldBatang*이라는 이름의 폰트를 찾으려 할 것이기 때문이다. 예를 들어, 서울시체를 본문 글꼴로 하고 바탕 글꼴용 한자는 한양해서를 쓰고 싶다면(실제 해보면 그다지 어울리지 않지만) 어떻게 할 수 있을까? \begin{verbatim} @@ -711,6 +742,11 @@ KoPubBatang*이라는 이름의 폰트를 찾으려 할 것이기 때문이다. 이것은 장평을 95\%로 하고 자간을 5\% 줄이는 예이다. 여기에 쓸 수 있는 feature에 관해서는 fontspec 설명서와 \xetexko, \luatexko\ 설명서를 참고하라. +옛한글을 식자하려면 (지원되는 폰트에 대하여) 다음과 같이 feature 옵션을 추가하여야 할 수 있다. +\begin{verbatim} +\setkomainfont(Noto Serif CJK KR)[Script=Hangul,Renderer=OpenType] +\end{verbatim} + 다섯번째 옵션 인자는 한자의 base name이다. 네번째 없이 다섯번째만 올 수 없으므로 이것을 설정하려면 \begin{verbatim} @@ -718,14 +754,15 @@ fontspec 설명서와 \xetexko, \luatexko\ 설명서를 참고하라. \end{verbatim} 와 같이 적어도 네번째 옵션 인자를 (비우더라도) 지정해야 할 것이다. -\paragraph{ExternalLocation} +\paragraph{파일 이름으로 찾기} 폰트를 그 이름(full name 또는 Postscript name)으로 지정하지 않고 파일 이름으로 찾으려 할 때, 다음과 같은 방법이 있다. -먼저 옵션 인자로 \texttt{ExternalLocation}을 선언하는 방법이다. 이 때는 확장자를 지정하지 않아도 된다. + +먼저 옵션 인자로 \texttt{ExternalLocation}을 선언하는 방법이다. 이 때는 확장자를 지정하지 않아도 된다. 현재 \textsf{fontspec}은 이 방법을 지원하기는 하지만 권장하지는 않는다. \begin{verbatim} \setkomainfont(HANBatang-LVT)[ExternalLocation] \end{verbatim} -파일 이름을 그대로 적어주는 방법이 있다. 이렇게 하면 \texttt{ExternalLocation}과 똑같이 동작한다. +파일 이름을 그대로 적어주는 방법이 있다. 즉 확장자를 붙여서 파일 이름 자체를 지정하는 방법이다. 이것이 권장하는 방법이 되었다. \begin{verbatim} \setkomainfont(HANBatang-LVT.ttf) \end{verbatim} @@ -760,9 +797,12 @@ fontspec 설명서와 \xetexko, \luatexko\ 설명서를 참고하라. \subsection{기정의 폰트 세트} 클래스 옵션으로 \texttt{[nanum]}을 지정하면 본문이 나눔명조와 나눔고딕으로 식자된다.\footnote{% - \LuaTeX-\ko는 아무 옵션이 없어도 nanumtype1으로 본문을 표시하지만 \XeTeX-\ko에서는 - 한글 부분이 비어 나온다. 이 옵션을 주면 \LuaTeX-\ko 에서도 nanumtype1이 아니라 트루타입을 쓰게 된다.} -나눔명조에 없는 한자는 나눔고딕에서 가져다가 찍는다. +\XeTeX 이나 \LuaTeX 에서는 은 바탕을 기본 글꼴로 하고 있다. \hologo{pdfTeX}을 위한 +kotex-utf의 경우는 여전히 nanumtype1이다.} +%\footnote{% +% \LuaTeX-\ko는 아무 옵션이 없어도 nanumtype1으로 본문을 표시하지만 \XeTeX-\ko에서는 +% 한글 부분이 비어 나온다. 이 옵션을 주면 \LuaTeX-\ko 에서도 nanumtype1이 아니라 트루타입을 쓰게 된다.} +%나눔명조에 없는 한자는 나눔고딕에서 가져다가 찍는다. 클래스 옵션 \texttt{[hcr]}은 함초롬 LVT 바탕, 함초롬 LVT 돋움 글꼴을 본문 글꼴로 사용하게 한다. \texttt{[Script=Hangul]}을 지정하여 옛한글도 잘 처리하게 한다.\footnote{% @@ -770,91 +810,93 @@ fontspec 설명서와 \xetexko, \luatexko\ 설명서를 참고하라. 그밖의 폰트에서 옛한글을 처리하게 하려면(예를 들어 Malgun Gothic, UnBatang 등) feature 추가 옵션으로 \texttt{[Script=Hangul]}을 지정할 수 있다.} -클래스 옵션 \texttt{[unfonts]}는 은 바탕, 은 돋움, 은 타자, 은 그래픽을 이용하여 본문 글꼴을 식자하게 한다. -\texttt{[gremph]}일 때 바탕글꼴의 이탤릭이 은 그래픽으로 찍힌다. 또한 이 옵션은 \texttt{[Script=Hangul]}을 -자동으로 추가하여 옛한글을 은 바탕으로 잘 처리할 수 있게 하였다. 은 글꼴을 옵션으로 주지 않고 \cs{setkomainfont} 명령으로 주려면 다음과 같이 하는 것이 좋다. HCR 글꼴과 달리 자동으로 폰트 이름을 보고 \texttt{[Script=Hangul]}을 삽입하지 않으므로 feature 옵션에 지정한다. base name을 ``UnBatang''으로 하고 확장자를 잇대어 쓰도록 -다음처럼 정의할 수 있다. -\begin{verbatim} -\setkomainfont[UnBatang](.ttf)(Bold.ttf)[Script=Hangul] -\end{verbatim} -은 그래픽을 이탤릭 대용으로 쓰려 한다면, -\begin{verbatim} -\setkomainfont[Un](Batang.ttf)(BatangBold.ttf)% - (Graphic.ttf)[Script=Hangul] -\end{verbatim} -이름의 공통부분(base name)이 ``Un''밖에 없으니까 이렇게 할 수밖에 없다. 은 그래픽은 한자가 나오지 않는데 -필요하다면 한자 글꼴 지정을 잇대어 하면 된다. 실제로 해보자면, -\begin{verbatim} -\setkomainfont[Un](Batang.ttf)(BatangBold.ttf)(Graphic.ttf)% - [Script=Hangul][UnBatang](.ttf)(Bold.ttf)(.ttf) -\end{verbatim} -한자는 은 그래픽이 아니라 은 바탕에서 찾아서 찍게 한 것이다. +%클래스 옵션 \texttt{[unfonts]}는 은 바탕, 은 돋움, 은 타자, 은 그래픽을 이용하여 본문 글꼴을 식자하게 한다. +%\texttt{[gremph]}일 때 바탕글꼴의 이탤릭이 은 그래픽으로 찍힌다. 또한 이 옵션은 \texttt{[Script=Hangul]}을 +%자동으로 추가하여 옛한글을 은 바탕으로 잘 처리할 수 있게 하였다. 은 글꼴을 옵션으로 주지 않고 \cs{setkomainfont} 명령으로 주려면 다음과 같이 하는 것이 좋다. HCR 글꼴과 달리 자동으로 폰트 이름을 보고 \texttt{[Script=Hangul]}을 삽입하지 않으므로 feature 옵션에 지정한다. base name을 ``UnBatang''으로 하고 확장자를 잇대어 쓰도록 +%다음처럼 정의할 수 있다. +%\begin{verbatim} +%\setkomainfont[UnBatang](.ttf)(Bold.ttf)[Script=Hangul] +%\end{verbatim} +%은 그래픽을 이탤릭 대용으로 쓰려 한다면, +%\begin{verbatim} +%\setkomainfont[Un](Batang.ttf)(BatangBold.ttf)% +% (Graphic.ttf)[Script=Hangul] +%\end{verbatim} +%이름의 공통부분(base name)이 ``Un''밖에 없으니까 이렇게 할 수밖에 없다. 은 그래픽은 한자가 나오지 않는데 +%필요하다면 한자 글꼴 지정을 잇대어 하면 된다. 실제로 해보자면, +%\begin{verbatim} +%\setkomainfont[Un](Batang.ttf)(BatangBold.ttf)(Graphic.ttf)% +% [Script=Hangul][UnBatang](.ttf)(Bold.ttf)(.ttf) +%\end{verbatim} +%한자는 은 그래픽이 아니라 은 바탕에서 찾아서 찍게 한 것이다. \subsection{폰트 설정 명령 (\protect\cs{setkor...} 명령군)} 이전 버전의 oblivoir에서는 다음 세 명령을 제공하였다. 이 명령군도 여전히 유지되고 있는데 그것은 이전에 작성된 문서와의 호환성을 위해서이다. +이 명령군에 대해서는 더 설명하지 않는다. + \begin{boxedverbatim} \setkormainfont()(){} \setkorsansfont()(){} \setkormonofont()(){} \end{boxedverbatim} -이 명령들도 한자 지정을 위하여 확장가능하다. -\begin{boxedverbatim} -\setkormainfont()(){}% - ()(){} -\end{boxedverbatim} - -괄호 옵션 인자와 중괄호 인자가 있다는 점과 bold, italic, regular의 순서가 -\cs{setkomainfont}와 다르다는 데 주의하라. -이전 버전에 비하여 확장된 기능은 feature를 줄 수 있다는 것이다. -\begin{boxedverbatim} -\setkormainfont(Bold)(Italic){Regular}[Feature] -\end{boxedverbatim} -이런 식으로 마지막 옵션 인자로 feature를 지정하면 유효하다. - -한글과 한자 사이에는 적어도 괄호 인자가 하나는 와야 구별된다. -\begin{verbatim} -\setkormainfont{HCR Batang LVT}(){HYhaeseo} -\end{verbatim} - -이 때문에, 예를 들어 다음과 같이 하는 것은 오류이다. -\begin{verbatim} -\setkormainfont{HCR Batang LVT}[]{HYhaeseo} -\end{verbatim} -한글 feature를 지정하고 한자도 지정하려면 다음과 같이 해야 한다. -\begin{verbatim} -\setkormainfont{HCR Batang LVT}[...](){HYhaeseo} -\end{verbatim} - -한편, \cs{setkormainfont} 다음 문자가 \texttt{[}이면 -\begin{boxedverbatim} -\setkormainfont[ ... ]{한글 폰트이름}[ ... ]{한자 폰트이름} -\end{boxedverbatim} -이것은 앞의 두 인자에 대하여 \cs{setmainhangulfont}를 실행하고 -뒤의 두 인자에 대하여 \cs{setmainhanjafont}를 실행하게 하는 것으로 -이전 버전과 같다. 이 명령은 반드시 \texttt{[}로 시작해야 하며 -한글과 한자의 경계는 [ ]로 이루어지므로 예컨대 -다음과 같은 코딩은 오류를 일으키지 않는다. -\begin{verbatim} -\setkormainfont[]{Hangul}[]{Hanja} -\end{verbatim} - -그리고 \cs{setkormainfont} 다음 문자가 \texttt{*}이면 -\texttt{ExternalLocation}으로 실행되는 것도 이전과 같다. -파일 이름을 직접 써넣는 것이 좋으므로 거의 필요없는 명령이 되었지만 -이전 버전과의 호환성을 위하여 이 기능을 유지시켜 두었다. -단, \cs{setkormainfont*()} 형식과는 쓸 수 없고 \cs{setkormainfont*[]} 형식으로만 -가능하게 기능이 제한되었다. 이 명령은 앞으로 사용하지 않기를 바란다. -\begin{boxedverbatim} -\setkormainfont*{한글 폰트 이름} -\end{boxedverbatim} - -이상에서 설명한 \cs{setkor...} 명령군 대신 새로 도입한 \cs{setko...} 명령군을 -사용하는 것을 권장한다. 사용법이 훨씬 간단해졌기 때문이다.\footnote{% - 내부적으로 \cs{setkormainfont} 명령들은 \cs{setmainhangulfont}와 \cs{setmainhanjafont}를 - 부르고, \cs{setkomainfont} 명령들은 \cs{setkormainfont}를 부른다.} - +%이 명령들도 한자 지정을 위하여 확장가능하다. +%\begin{boxedverbatim} +%\setkormainfont()(){}% +% ()(){} +%\end{boxedverbatim} +% +%괄호 옵션 인자와 중괄호 인자가 있다는 점과 bold, italic, regular의 순서가 +%\cs{setkomainfont}와 다르다는 데 주의하라. +%이전 버전에 비하여 확장된 기능은 feature를 줄 수 있다는 것이다. +%\begin{boxedverbatim} +%\setkormainfont(Bold)(Italic){Regular}[Feature] +%\end{boxedverbatim} +%이런 식으로 마지막 옵션 인자로 feature를 지정하면 유효하다. +% +%한글과 한자 사이에는 적어도 괄호 인자가 하나는 와야 구별된다. +%\begin{verbatim} +%\setkormainfont{HCR Batang LVT}(){HYhaeseo} +%\end{verbatim} +% +%이 때문에, 예를 들어 다음과 같이 하는 것은 오류이다. +%\begin{verbatim} +%\setkormainfont{HCR Batang LVT}[]{HYhaeseo} +%\end{verbatim} +%한글 feature를 지정하고 한자도 지정하려면 다음과 같이 해야 한다. +%\begin{verbatim} +%\setkormainfont{HCR Batang LVT}[...](){HYhaeseo} +%\end{verbatim} +% +%한편, \cs{setkormainfont} 다음 문자가 \texttt{[}이면 +%\begin{boxedverbatim} +%\setkormainfont[ ... ]{한글 폰트이름}[ ... ]{한자 폰트이름} +%\end{boxedverbatim} +%이것은 앞의 두 인자에 대하여 \cs{setmainhangulfont}를 실행하고 +%뒤의 두 인자에 대하여 \cs{setmainhanjafont}를 실행하게 하는 것으로 +%이전 버전과 같다. 이 명령은 반드시 \texttt{[}로 시작해야 하며 +%한글과 한자의 경계는 [ ]로 이루어지므로 예컨대 +%다음과 같은 코딩은 오류를 일으키지 않는다. +%\begin{verbatim} +%\setkormainfont[]{Hangul}[]{Hanja} +%\end{verbatim} +% +%그리고 \cs{setkormainfont} 다음 문자가 \texttt{*}이면 +%\texttt{ExternalLocation}으로 실행되는 것도 이전과 같다. +%파일 이름을 직접 써넣는 것이 좋으므로 거의 필요없는 명령이 되었지만 +%이전 버전과의 호환성을 위하여 이 기능을 유지시켜 두었다. +%단, \cs{setkormainfont*()} 형식과는 쓸 수 없고 \cs{setkormainfont*[]} 형식으로만 +%가능하게 기능이 제한되었다. 이 명령은 앞으로 사용하지 않기를 바란다. +%\begin{boxedverbatim} +%\setkormainfont*{한글 폰트 이름} +%\end{boxedverbatim} +% +%이상에서 설명한 \cs{setkor...} 명령군 대신 새로 도입한 \cs{setko...} 명령군을 +%사용하는 것을 권장한다. 사용법이 훨씬 간단해졌기 때문이다.\footnote{% +% 내부적으로 \cs{setkormainfont} 명령들은 \cs{setmainhangulfont}와 \cs{setmainhanjafont}를 +% 부르고, \cs{setkomainfont} 명령들은 \cs{setkormainfont}를 부른다.} +% %이후의 설명은 \verb|\setkormainfont|에 대해서만 한다. 다른 두 %명령의 사용법은 동일하다. % @@ -1003,7 +1045,7 @@ fontspec 설명서와 \xetexko, \luatexko\ 설명서를 참고하라. %문장 중간에서 한글 및 한자 폰트를 일부 바꾸어 써야 할 때가 있다. 이 경우에는 \xetexko 의 %\verb|\hangulfontspec| 명령을 이용하면 매우 간편하게 이를 실현할 수 있다. -\subsection{ExternalLocation에 관한 첨언} +\subsection{파일 이름으로 찾기에 관한 첨언} 폰트를 호출하는 이름은 앞서 설명한 \util{otfinfo -i}를 사용하여 확인할 수 있는 full name이나 Postscript name을 사용하는 것이 가장 좋다. 그러나 부득이한 경우 @@ -1048,15 +1090,16 @@ ExternalLocation으로 호출할 수 있을 것이다. 리눅스에서는 모르 \item texmf.cnf의 OSFONTDIR 변수를 수작업으로 수정해야 하는 경우가 있다. 이것은 폰트를 ``파일 이름으로'' 찾게 하기 위해 필요하다. -Windows의 \TeX\,Live라면 이것을 잘 설정하여 주므로 사용자가 신경쓸 것이 없으나 -경우에 따라 이 변수를 설정해야 할 필요가 있을 수 있다. 맥의 경우, -/usr/local/texlive/2015/texmf.cnf 파일을 열어서\footnote{/usr/local/texlive/2015/texmf/web2c/texmf.cnf를 -수정해서는 안된다.} 다음 내용을 자신의 환경에 맞게 써넣으면 될 것이다. -\begin{verbatim} -OSFONTDIR = {/Library/Fonts;~/Library/Fonts;/System/Library/Fonts;} -\end{verbatim} +%Windows의 \TeX\,Live라면 이것을 잘 설정하여 주므로 사용자가 신경쓸 것이 없으나 +%경우에 따라 이 변수를 설정해야 할 필요가 있을 수 있다. 맥의 경우, +%/usr/local/texlive/2015/texmf.cnf 파일을 열어서\footnote{/usr/local/texlive/2015/texmf/web2c/texmf.cnf를 +%수정해서는 안된다.} +%다음 내용을 자신의 환경에 맞게 써넣으면 될 것이다. +%\begin{verbatim} +%OSFONTDIR = {/Library/Fonts;~/Library/Fonts;/System/Library/Fonts;} +%\end{verbatim} -\item ExternalLocation으로 폰트를 호출한다는 것은 kpathsearch를 이용한다는 +\item 파일 이름으로 폰트를 호출한다는 것은 kpathsearch를 이용한다는 것이다. 그러므로 texmf 트리 아래에 해당 폰트를 가져다두고 mktexlsr해도 그 폰트에 접근할 수 있다. @@ -1191,6 +1234,14 @@ oblivoir에서 제공된다. \end{boxedverbatim} \texttt{[showtrims]} 옵션이 주어져 있다면 crop 선이 함께 나타날 것이다. +\textsf{fapapersize}에 기정의 용지 설정이 몇 가지 있다. +\begin{description} \tightlist +\item [mum] 국판. (148mm$\times$210mm). 여백 25mm. +\item [newmum] 신국판. (154mm$\times$225mm). 여백 25mm. +\item [1in] \hologo{plainTeX}에서처럼 1in 오프셋을 설정한 판면. 여백 1in. +\item [dbl4x6] 4$\times$6 배판. (190mm$\times$260mm). 여백 30mm. +\end{description} + \subsection{enumerate} enumerate 패키지의 enumerate 아이템 항목 머리 설정은 @@ -1224,7 +1275,7 @@ xob-paralist를 로드한다.\footnote{% \marginpar{\fbox{xe(lua)tex}} \XeTeX과 \LuaTeX 의 경우는 graphicx 패키지에 대한 명시적인 호출이 없어도 -png, jpg, pdf 그림을 잘 불러온다. 즉 \obclass가 알맞게 이 패키지를 호출하여준다. +png, jpg, pdf 그림을 잘 불러온다. %즉 \obclass가 알맞게 이 패키지를 호출하여준다. % 이 패키지들을 명시적으로 % 호출하고자 한다면 옵션 없이 로드하든가 \texttt{[xetex]} 옵션을 준다. % default가 \texttt{[xetex]}이 되도록 설정되어 있어야 하는데, @@ -1264,6 +1315,18 @@ png, jpg, pdf 그림을 잘 불러온다. 즉 \obclass가 알맞게 이 패키 \hfill “소절 \myREF{sec:font}{sec:폰트}\를 보라.” \end{minipage} +\subsection{문장부호} + +이 패키지가 제공하는 문장부호는 다음과 같은 것이 있다. + +\begin{itemize} +\item \verb|\bnm|, \verb|\snm|, \verb|\cnm|, \verb|\ccnm|. 각각 \bnm{제목}, \snm{제목}, \cnm{제목}, \ccnm{제목}과 같이 식자된다. +\item \verb|\obldots|. \verb|\obellipsis|. 각각 \obldots, \obellipsis와 같이 식자된다. 한글 패키지 \koTeX 이 로드되면 \verb|\ldots|의 모양이 \ldots와 같이 바뀌기 때문에 영문서의 \verb|\ldots|는 \verb|\obldots|로 식자할 \obldots 수 있다. \verb|\obellipsis|는 행이 나뉘어지지 않는 여섯 개의 점으로 이루어진 말출임표이다. +\item \verb|\cntrdot|, \verb|\cntrdots|. 각각 \cntrdot, \cntrdots로 식자한다. +\item \verb|\expldash|, \verb|\explpunc|. 이것은 설명을 위하여 삽입하는 괘선\expldash 을 표현하기 위한 매크로이다. \verb|\explpunc|의 사용법이 조금 특별하므로 주의하라. \verb*|\explpunc.some text.\ | \explpunc.some text.\ 와 같이 입력한다. 이 사용법이 복잡하다면 \verb|\expldash|를 두 번 쓰는 방법이 있다. +\end{itemize} + + \subsection{방점} \koTeX 에서는 \texttt{\textbackslash dotemph} 명령의 방점\footnote{% @@ -1371,6 +1434,24 @@ oblivoir가 추가적으로 제공하는 페이지 스타일로 \texttt{hangul} \pagestyle{hangul} \end{boxedverbatim} +\section{HTML 제작} + +\textsf{lwarp}를 이용하여 HTML을 제작하려면 문서에 \textsf{lwarp} +옵션을 주고 작성한다. 그 후, +\begin{verbatim} +lwarpmk html .tex +\end{verbatim} +명령을 실행한다. MathJax 수식을 위해서는 +\begin{verbatim} +\documentclass[lwarp,lwarpoption={mathjax}]{oblivoir} +\end{verbatim} +와 같이 옵션을 줄 수 있다. + +모든 문서가 원하는 모양대로 HTML로 만들어지지 않을 것이다. 특히 +사용자화하여 복잡한 환경이나 명령을 만들어 쓴 경우에는 의도하지 않은 +결과가 나올 수도 있음에 주의하라. 이 클래스의 \verb|lwarp| 옵션은 +단지 \verb|lwarpmk| 명령을 부르기 위한 준비를 도와주는 것뿐이다. + \section{샘플 문서} 이 작은 안내서에 더하여 간단한 \obclass\ 샘플 문서를 하나 제공한다. @@ -1537,6 +1618,11 @@ Lua\TeX 과 \XeTeX 이라는 유니코드 텍 엔진의 등장은, 이러한 모 더 잘 구현할 수 있는 바탕이 갖추어진 것일 뿐이라고 생각한다. +\section{변경 이력} + +2020년의 2.2 버전은 그 동안 알려진 몇 가지 버그를 수정하고 약간의 기능을 +추가하는 데 그쳤다. + % \section{알려진 문제점} % 아래 문제점과 버그들은 다음 버전에서 해결하도록 노력할 것이다. diff --git a/language/korean/kotex-oblivoir/doc/oblivoir-test.tex b/language/korean/kotex-oblivoir/doc/oblivoir-test.tex index cdefcb06bb..58952054f1 100644 --- a/language/korean/kotex-oblivoir/doc/oblivoir-test.tex +++ b/language/korean/kotex-oblivoir/doc/oblivoir-test.tex @@ -1,6 +1,6 @@ %!TEX encoding = UTF-8 Unicode % arara: xelatex -% arara: komkindex +% arara: texindy: { language: Korean, codepage: utf8 } % arara: xelatex %% %% 이 파일은 oblivoir 패키지 문서의 일부로서, oblivoir 클래스의 여러 기능을 @@ -8,6 +8,7 @@ %% pdflatex, xelatex, lualatex으로 컴파일할 수 있습니다. (결과의 완전한 동일성은 %% 보장하지 못합니다.) %% +%% 2020/02/05. %% 2015/04/22. memoir url 수정 %% 2014/06/15. 부분 수정. %% 2013/09/28. xoblivoir ver2 버전으로 포팅. @@ -18,7 +19,7 @@ %% public domain. %% -\documentclass[demo,chapter,openany,amsmath,gremph,adjustmath]{oblivoir} +\documentclass[demo,chapter,openany,amsmath,gremph,lwarp]{oblivoir} %%% amsmath 옵션은 amsmath, amssymb 패키지를 로드해준다.. %% display overfullrule @@ -35,7 +36,7 @@ \setmainfont{TeX Gyre Pagella} \setsansfont[Scale=.95]{TeX Gyre Heros} %% \setkomain/sansfont : see oblivoir-simpledoc. - \setkomainfont[HCRBatangLVT]()(-Bold)() + \setkomainfont(HCRBatangLVT)(*-Bold)(UnGraphic) \setkosansfont[NanumGothic]()[](HCRDotumLVT) %% 수학 폰트 % \usepackage{unicode-math} @@ -63,11 +64,16 @@ \usepackage{cite} -\ifPDFTeX +%\ifPDFTeX \usepackage{graphicx} -\fi -\usepackage[dvipsnames]{xcolor} +%\fi %% pdf 정보 +\makeatletter +\if@lwarp +\usepackage{xcolor} +\def\epigraph#1#2{#1\quad #2} +\else +\usepackage[dvipsnames]{xcolor} \hypersetup{% bookmarks=true,% plainpages=false,% @@ -75,6 +81,8 @@ pdfauthor={Karnes Kim},% pdfcreator={Karnes Kim} } +\fi +\makeatother \nonfrenchspacing %% nonfrench를 설정하는 경우에는 \xspaceskip도 정해주자. @@ -331,6 +339,9 @@ 작성되었다. 이 문서의 원본은 memhangul을 개발하던 당시 테스트용으로 사용된 바, 가장 먼저 만들어진 oblivoir 문서이다. +현재는 |oblivoir|와 |xoblivoir|가 사실상 동일하다. 그러므로 이 글에서 +|xoblivoir|라 한 것은 모두 |oblivoir|로 바꾸어도 된다. + 해당 문단의 여백에 사용되고 있는 명령이 나와 있으므로 참고할 수 있을 것이다. 실제로 xoblivoir 사용설명서를 작성하기 어려운 것이 기본적인 것은 모두 memoir에 바탕을 두고 있는 데다가 @@ -343,7 +354,7 @@ 이 문서는 다음 순서로 컴파일할 수 있다. |$ENGINE|은 \util{pdflatex}, \util{xelatex}, \util{lualatex} 가운데 하나이고 |$JOBNAME|은 파일 이름(\texttt{xobtesttest})이다. 한편, 색인을 만드는 유틸리티 |$MAKEINDEXENGINE|은 \util{pdflatex} 상황에서는 -\util{komkindex}이고 그밖의 경우에는 \util{kotexindy}이다. +\util{komkindex}이고 그밖의 경우에는 \util{texindy}이다. \begin{verbatim} # $ENGINE $JOBNAME @@ -612,7 +623,7 @@ memoir 패키지의 인덱스 만들기의 특징 때문이다. 처음 한 번 기능이 있다.} verse, quote와 같은 환경을 조금 바꾸어서 행간을 약간 줄여주는 기능이 있다. 이 부분에서 \dispcmd{adjustfloatfnspacing}을 불러보겠다. -\showcommand{adjustfloatfnspacing} +\showcommand{adjustfloatfnspacing}% 다음번 각주는 행간이 조금 달라져야 한다. \adjustfloatfnspacing float 안에 놓인 것과 같아지도록.\footnote{% @@ -933,16 +944,18 @@ y=e^x \text{라면}, \qquad y'=e^x 이다. 또, $y=\log x$의 도함수를 구해본다. -\begin{displaymath} -\begin{split} +%\begin{displaymath} +%\[ +\begin{align*} y' &= \lim_{h\to0}\frac{\log(x+h)-\log x}{h} \\ &= \lim_{h\to0}\frac{1}{h}\log\left(1+ \frac{h}{x}\right) \\ &= \frac{1}{x}\lim_{h\to0}\frac{x}{h}\log\left(1+\frac{h}{x}\right) \\ &= \frac{1}{x}\lim_{\frac{h}{x}\to0}\log\left(1+\frac{h}{x}\right)^{\frac{x}{h}} \\ &= \frac{1}{x}\log e \\ &= \frac{1}{x}. -\end{split} -\end{displaymath} +\end{align*} +%\] +%\end{displaymath} 따라서, \[ @@ -1081,15 +1094,15 @@ $G'(x) \ge 0$. 따라서 $G(x) \ge 0$임을 말할 수 있다. 그러므로 \begin{figure} \centering \begin{minipage}{.75\textwidth} -\begin{tabbing} -1111\=11111111111111111111\= \kill -(1) \> 대상기호(상수) \> $ c_{1}, c_{2}, c_{3}, c_{4}, \ldots $ \\ -(2) \> 함수기호 \> $ f_{1}, f_{2}, f_{3}, f_{4}, \ldots $ \\ -(3) \> 술어기호 \> $ P_{1}, P_{2}, P_{3}, P_{4}, \ldots $ \\ -(4) \> 자유변수 \> $ a_{1}, a_{2}, a_{3}, a_{4}, \ldots $ \\ -(5) \> 속박변수 \> $ x_{1}, x_{2}, x_{3}, x_{4}, \ldots $ \\ -(6) \> 논리기호 \> $ \land, \lor, \rightarrow, \lnot, \forall, \exists $ -\end{tabbing} +%\begin{tabbing} +%1111\=11111111111111111111\= \kill \\ +%(1) \> 대상기호(상수) \> $ c_{1}, c_{2}, c_{3}, c_{4}, \ldots $ \\ +%(2) \> 함수기호 \> $ f_{1}, f_{2}, f_{3}, f_{4}, \ldots $ \\ +%(3) \> 술어기호 \> $ P_{1}, P_{2}, P_{3}, P_{4}, \ldots $ \\ +%(4) \> 자유변수 \> $ a_{1}, a_{2}, a_{3}, a_{4}, \ldots $ \\ +%(5) \> 속박변수 \> $ x_{1}, x_{2}, x_{3}, x_{4}, \ldots $ \\ +%(6) \> 논리기호 \> $ \land, \lor, \rightarrow, \lnot, \forall, \exists $ +%\end{tabbing} \end{minipage} \caption{기본 기호}\label{fig:syms} \end{figure} @@ -1271,10 +1284,10 @@ $0$이라는 최소수가 존재하기 때문에 진실이 되나 실수의 모 거의 같은 결과를 얻게끔 되어 있다. 따라서, 이 문서는 \hologo{pdfLaTeX}, \hologo{XeLaTeX}, \hologo{LuaLaTeX} 어느 것으로도 컴파일된다. \showcommand{hologo} -\section{kotexindy에 관하여} -찾아보기를 만들려면 |kotexindy|를 사용하라. 예를 들면 다음과 같다. +\section{texindy에 관하여} +찾아보기를 만들려면 |texindy|를 사용하라. 예를 들면 다음과 같다. \begin{verbatim} -$ kotexindy memucstest.idx +$ texindy -L korean -C utf8 oblivor-test.idx \end{verbatim} 찾아보기를 찍는 명령은 |\printindex|이다. \showcommand{printindex} diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/10_5.sty b/language/korean/kotex-oblivoir/memhangul-ucs/10_5.sty deleted file mode 100644 index 401c569ff9..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/10_5.sty +++ /dev/null @@ -1,82 +0,0 @@ -%% File `10_5.sty` -%% -%% Copyright (c) 2006-2013 Kangsoo Kim -%% -%% 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. -%% -%% default font sizes 10.5 -%% 폰트 사이즈 설정. -%% -\def\@xvarpt{10.5} -\def\@ixvarpt{9.5} -\def\@vvarpt{5.5} -\def\@vivarpt{6.5} -\def\@viivarpt{7.5} -\def\@viiivarpt{8.6} -\def\@xivarpt{11.65} -\def\@xiivarpt{12.5} -\def\@xiiipt{13} -\renewcommand{\normalsize}{% - \@setfontsize\normalsize\@xvarpt\@xiipt - \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ - \abovedisplayshortskip \z@ \@plus3\p@ - \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ - \belowdisplayskip \abovedisplayskip - \let\@listi\@listI} -\normalsize -\renewcommand{\small}{% - \@setfontsize\small\@ixvarpt{11}% - \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ - \abovedisplayshortskip \z@ \@plus2\p@ - \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@ - \def\@listi{\leftmargin\leftmargini - \topsep 4\p@ \@plus2\p@ \@minus2\p@ - \parsep 2\p@ \@plus\p@ \@minus\p@ - \itemsep \parsep -%% \itemindent\z@ - }% - \belowdisplayskip \abovedisplayskip -} -\renewcommand{\footnotesize}{% - \@setfontsize\footnotesize\@viiivarpt{9.5}% - \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@ - \abovedisplayshortskip \z@ \@plus\p@ - \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@ - \def\@listi{\leftmargin\leftmargini - \topsep 3\p@ \@plus\p@ \@minus\p@ - \parsep 2\p@ \@plus\p@ \@minus\p@ - \itemsep \parsep -%% \itemindent\z@ - }% - \belowdisplayskip \abovedisplayskip -} -\renewcommand{\miniscule}{\@setfontsize\miniscule\@vipt{6}} -\renewcommand{\tiny}{\@setfontsize\tiny\@viipt{7.5}} -\renewcommand{\scriptsize}{\@setfontsize\scriptsize\@viivarpt{8}} -\renewcommand{\large}{\@setfontsize\large\@xivarpt{13.6}} -\renewcommand{\Large}{\@setfontsize\Large\@xiiipt{14.5}} -\renewcommand{\LARGE}{\@setfontsize\LARGE\@xivpt{18}} -\renewcommand{\huge}{\@setfontsize\huge\@xviipt{22}} -\renewcommand{\Huge}{\@setfontsize\Huge\@xxpt{25}} -\renewcommand{\HUGE}{\@setfontsize\HUGE\@xxvpt{30}} -\setlength{\onelineskip}{\@xiipt\p@} -\if@twocolumn - \setlength\parindent{1em} -\else - \setlength\parindent{15\p@} -\fi - -\if@twocolumn - \setlength\marginparsep{11\p@} -\else - \setlength\marginparsep{6\p@} -\fi -\setlength{\marginparpush}{7\p@} - -\endinput diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/fapapersize.sty b/language/korean/kotex-oblivoir/memhangul-ucs/fapapersize.sty deleted file mode 100644 index 4cb7d1ffd6..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/fapapersize.sty +++ /dev/null @@ -1,141 +0,0 @@ -%% File `fapapersize.sty` -%% -%% Copyright (c) 2006-2013 Kangsoo Kim -%% -%% 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. -%% -%% ver 0.031 (2006/12/04) -%% trivial bug fix. -%% ver 0.03 (2006/11/24) -%% stocksize를 별도 지정할 수 있게 함 -%% option [stock], command \usefastocksize{}{} -%% ver 0.02 -%% 사륙배판, 국판, 신국판 정의. -%% marginnote 영역 설정은 제외되어 있음. -\ProvidesPackage{fapapersize} -%%% -%%% 옵션 -%%% dbl4x6 : 사륙배판 -%%% mum : 국판 -%%% newmum : 신국판 -\DeclareOption{dbl4x6}{% - \AtEndOfPackage{\usefapapersize{190mm,260mm,30mm,*,30mm,*}}% -} -\DeclareOption{mum}{% - \AtEndOfPackage{\usefapapersize{148mm,210mm,25mm,*,25mm,*}}% -} -\DeclareOption{newmum}{% - \AtEndOfPackage{\usefapapersize{154mm,225mm,25mm,*,25mm,*}}% -} -\newif\ifStockSize@\StockSize@false -\DeclareOption{stock}{% - \StockSize@true -} -\newif\if@showtrim\@showtrimfalse -%\DeclareOption{trimmark}{\@showtrimtrue} -\DeclareOption{showtrims}{\@showtrimtrue} -\ProcessOptions - -\newlength\fa@stockheight\newlength\fa@stockwidth -\newlength\fa@paperheight\newlength\fa@paperwidth -\newlength\fa@leftmargin\newlength\fa@rightmargin -\newlength\fa@uppermargin\newlength\fa@lowermargin -\newlength\fa@tmplenwd\newlength\fa@tmplenht - -\newdimen\tmp@dim - -\def\set@paper@size{% - \ifnum\fa@paperwidth>\fa@tmplenwd - \if@showtrim - \typeout{the page size is too small. Trim mark will not be shown.} - \@showtrimfalse\trimNone - \fi - \fi - \if@showtrim - \setstocksize{\fa@tmplenht}{\fa@tmplenwd} - \settrimmedsize{\fa@paperheight}{\fa@paperwidth}{*} - \setlrmarginsandblock{\fa@leftmargin}{\fa@rightmargin}{*} - \setulmarginsandblock{\fa@uppermargin}{\fa@lowermargin}{*} - \setlength{\trimtop}{\stockheight} - \addtolength{\trimtop}{-\paperheight} - \setlength{\trimedge}{\stockwidth} - \addtolength{\trimedge}{-\paperwidth} - \settrims{.5\trimtop}{.5\trimedge} - \trimLmarks - \else - \setstocksize{\fa@paperheight}{\fa@paperwidth} - \settrimmedsize{\stockheight}{\stockwidth}{*} - \setlrmarginsandblock{\fa@leftmargin}{\fa@rightmargin}{*} - \setulmarginsandblock{\fa@uppermargin}{\fa@lowermargin}{*} - \trimNone - \fi - \tmp@dim=\headheight\advance\tmp@dim by\headsep\advance\tmp@dim by1mm - \ifdim\fa@uppermargin<\tmp@dim - \setheaderspaces{*}{10pt}{*} - \tmp@dim=\fa@uppermargin\advance\tmp@dim by-\headsep\advance\tmp@dim by-1mm - \setheadfoot{\tmp@dim}{\tmp@dim} - \fi - \checkandfixthelayout -} - -\def\@usefastocksize#1#2{% - \setlength\fa@stockheight{#2}% - \setlength\fa@stockwidth{#1}% -} - -\newcommand*{\usefastocksize}[1]{% - \set@fa@stocksizeparameters#1\@nil -} - -\def\set@fa@stocksizeparameters#1,#2\@nil{% - \setlength{\fa@stockwidth}{#1}% - \setlength{\fa@stockheight}{#2}% -} - -\def\@usefapapersize#1#2#3[#4]#5[#6]{% - \setlength\fa@paperwidth{#1} - \setlength\fa@paperheight{#2} - \setlength\fa@leftmargin{#3} - \setlength\fa@rightmargin{#4} - \setlength\fa@uppermargin{#5} - \setlength\fa@lowermargin{#6} -} - -\newcommand*\usefapapersize[1]{% - \get@stocksize - \set@fa@papersizeparameters#1\@nil - \set@paper@size -} - -\def\get@stocksize{% - \ifStockSize@ - \def\fa@tmplenwd{\fa@stockwidth}\def\fa@tmplenht{\fa@stockheight} - \else - \def\fa@tmplenwd{\stockwidth}\def\fa@tmplenht{\stockheight} - \fi -} - -\def\set@fa@papersizeparameters#1,#2,#3,#4,#5,#6\@nil{% - \ifx*#1\def\@tmp@pgwidth{\fa@tmplenwd}\else\def\@tmp@pgwidth{#1}\fi - \ifx*#2\def\@tmp@pgheight{\fa@tmplenht}\else\def\@tmp@pgheight{#2}\fi - \ifx*#4 - \ifx*#6 - \@usefapapersize{\@tmp@pgwidth}{\@tmp@pgheight}{#3}[{#3}]{#5}[{#5}] - \else - \@usefapapersize{\@tmp@pgwidth}{\@tmp@pgheight}{#3}[{#3}]{#5}[{#6}] - \fi\else - \ifx*#6 - \@usefapapersize{\@tmp@pgwidth}{\@tmp@pgheight}{#3}[{#4}]{#5}[{#5}] - \else - \@usefapapersize{\@tmp@pgwidth}{\@tmp@pgheight}{#3}[{#4}]{#5}[{#6}] - \fi - \fi -} - -\endinput diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/hfontsel.sty b/language/korean/kotex-oblivoir/memhangul-ucs/hfontsel.sty deleted file mode 100644 index 93ecf2ca97..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/hfontsel.sty +++ /dev/null @@ -1,88 +0,0 @@ -%% File `hfontsel.sty` -%% -%% Copyright (c) 2006-2013 Kangsoo Kim -%% -%% 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. -%% -%% 사용법은 다음과 같음 -%% * 전체 정의 -%% \SelectHfonts{utbt,utgt,uttz}{utbt,utgt,utgt} -%% * 한자 부분을 한글 부분과 같게. 주의. -%% 은타자는 한자가 없으므로 타자체로 은타자를 설정한 경우 -%% 이 방식을 쓰면 ttfamily에서 오류. -%% \SelectHfonts{utbt,utgt,utgt}{*} -%% * 몇 개만 바꿀 때. 별표 부분은 모두 기본폰트(은글꼴)로 설정됨. -%% \SelectHfonts{utbt,*,*}{*,*,utgt} -%% -%% 2007/06/03 -%% \SelectHfonts 명령에 의해 생성되는 \hfontfamilynameprefix (2letters)를 -%% [hfontspec] 옵션에 의하여 \usehangulfontspec의 인자로 사용한다. oblivoir -%% 에서는 이 방법을 쓰지 않음. -%% 2007/05/25 -%% dhucs 4.0 compatible -%% \hfontfamilynameprefix는 사용되지 않을 것이나, 하위호환성을 위해 유지함. -%% 2006/12/15 -%% bug fix. thanks to Dohyun Kim. -%% 2006/09/06 -%% unfonts-type1을 쓸 때 \hfontfamilynameprefix가 {ut}로 되돌려지던 문제점 수정. -%% non-default 상태에서는 hanja/roman의 설정에 영향을 받는다. -%% -\ProvidesPackage{hfontsel}[2013/09/27] - -\newif\if@pshfont\@pshfonttrue -\DeclareOption{ps}{\@pshfonttrue} -\DeclareOption{unttf}{\@pshfontfalse} -\newif\if@hfontspec\@hfontspecfalse -\DeclareOption{hfontspec}{\@hfontspectrue} -\ProcessOptions - -\newif\if@defaulthfnt\@defaulthfnttrue -\if@pshfont -\def\defaulthfntprefix{ut} -\else -\def\defaulthfntprefix{un} -\fi - -\def\FirstTwoOfFour#1#2#3#4{#1#2} -\newcommand*\SelectHfonts[2]{% - \def\reserved@a{#2}\def\reserved@b{*}% - \ifx\reserved@a\reserved@b - \hangul@fontmap#1\@nil\hanja@fontmap#1\@nil - \else - \hangul@fontmap#1\@nil\hanja@fontmap#2\@nil - \fi - \if@hfontspec - \expandafter\usehangulfontspec\expandafter{\hfontfamilynameprefix} - \fi -} -\def\hangul@fontmap#1,#2,#3\@nil{% - \ifx*#1\def\h@ng@ls@rif{\defaulthfntprefix bt}\else\def\h@ng@ls@rif{#1}\fi - \ifx*#2\def\h@ng@ls@ns{\defaulthfntprefix gt}\else\def\h@ng@ls@ns{#2}\fi - \ifx*#3\def\h@ng@lt@z@{\defaulthfntprefix tz}\else\def\h@ng@lt@z@{#3}\fi - \SetHangulFonts{\h@ng@ls@rif}{\h@ng@ls@ns}{\h@ng@lt@z@}% -} -\def\hanja@fontmap#1,#2,#3\@nil{% - \ifx*#1\def\h@nj@s@rif{\defaulthfntprefix bt}\else\def\h@nj@s@rif{#1}\@defaulthfntfalse\fi - \ifx*#2\def\h@nj@s@ns{\defaulthfntprefix gt}\else\def\h@nj@s@ns{#2}\fi - \ifx*#3\def\h@nj@t@z@{\defaulthfntprefix gt}\else\def\h@nj@t@z@{#3}\fi - \SetHanjaFonts{\h@nj@s@rif}{\h@nj@s@ns}{\h@nj@t@z@}% -%%%% 2006/09/06, 2007/05/25 downward compatibility - \if@defaulthfnt\def\hfontfamilynameprefix{ut}\else - \def\hfontfamilynameprefix{\expandafter\FirstTwoOfFour\h@nj@s@rif}\fi -} - -%%% hangul font spec -\if@hfontspec -\usehangulfontspec{\defaulthfntprefix} -\fi - -%%% default setting -%\SelectHfonts{\defaulthfntprefix bt,\defaulthfntprefix gt,\defaulthfntprefix tz}{*} - -\endinput diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/hfontspec.nanum b/language/korean/kotex-oblivoir/memhangul-ucs/hfontspec.nanum deleted file mode 100644 index 0e6179f292..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/hfontspec.nanum +++ /dev/null @@ -1,11 +0,0 @@ -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/language/korean/kotex-oblivoir/memhangul-ucs/memhangul-common.sty b/language/korean/kotex-oblivoir/memhangul-ucs/memhangul-common.sty deleted file mode 100644 index 2b0ae2ef71..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/memhangul-common.sty +++ /dev/null @@ -1,1154 +0,0 @@ -%% File `memhangul-common.sty` -%% -%% (C) Copyright 2013-2015 Kangsoo Kim -%% -%% 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. -%% -%%% -%%% part of kotex-oblivoir -%%% -%%% ===================== -%%% 편, 장 섹션 타이틀 재설정 -%%% 절의 섹션 타이틀은 수정하지 않음. -%% -\ProvidesPackage{memhangul-common}[2015/10/15] - -\let\@CHAPAPP\@chapapp -\def\refreshprepostchapters{% - \if@hanja - \def\pre@chapter{第}% - \else - \def\pre@chapter{제}% - \fi - \let\@chapapp\@CHAPAPP - \def\post@chapter{\@chapapp}% -} -\refreshprepostchapters -%\renewcommand\@chapapp{장} -\def\prechapternum{\pre@chapter} -\def\postchapternum{\post@chapter} -\newcommand\hchaptertitlehead{\pre@chapter\,\thechapter\,\post@chapter} -\providecommand\partmark[1]{} - -\let\pre@part\pre@chapter -\let\post@part\partname -%\renewcommand{\printpartname}{\partnamefont \pre@part} -\renewcommand{\printpartname}{} % disabled. -\renewcommand{\partnamenum}{\space} -\def\prepartnum{\partnamefont \pre@part} -\def\postpartnum{\partnamefont \post@part} -\newcommand\hparttitlehead{\pre@part\partnamenum\thepart\partnamenum\post@part} - -%% PART -%\long\def\@part[#1]#2{% -% \M@gettitle{#1}% -% \ifnum \c@secnumdepth >-2\relax -% \refstepcounter{part}% -% \addcontentsline{toc}{part}% -% {\protect\partnumberline{\hparttitlehead}#1}% -% \else -% \addcontentsline{toc}{part}{#1}% -% \fi -%% \markboth{}{}% -% \ifx#1\@empty\partmark{#2}\else\partmark{#1}\fi -% {\centering -% \interlinepenalty \@M -% \normalfont -% \ifnum \c@secnumdepth >-2\relax -% \prepartnum \partnamenum \printpartnum \partnamenum \postpartnum -% \midpartskip -% \fi -% \printparttitle{#2}\par}% -% \@endpart} -\long\def\@part[#1]#2{% -% \ifx#1\@empty\PrerenderUnicode{#2}\else\PrerenderUnicode{#1}\fi - \M@gettitle{#1}% - \def\f@rtoc{#1}% - \@nameuse{part@f@rtoc@before@write@hook}% - \phantomsection - \mempreaddparttotochook - \ifnum \c@secnumdepth >-2\relax - \refstepcounter{part}% - \addcontentsline{toc}{part}% -% {\protect\partnumberline{\thepart}#1}% - {\protect\partnumberline{\hparttitlehead}#1}% - \mempartinfo{\thepart}{#1}{#2}% - \else - \addcontentsline{toc}{part}{#1}% - \mempartinfo{}{#1}{#2}% - \fi - \mempostaddparttotochook - \partmark{#1}% - {\centering - \interlinepenalty \@M - \normalfont - \ifnum \c@secnumdepth >-2\relax -% \printpartname \partnamenum \printpartnum -% \midpartskip - \prepartnum \partnamenum \printpartnum \partnamenum \postpartnum - \midpartskip - \fi - \printparttitle{#2}\par}% - \@endpart} - -\def\@spart#1{% - \M@gettitle{#1}% - \phantomsection - {\centering - \interlinepenalty \@M - \normalfont - \printparttitle{#1}\par}% - \@endpart} - -%\def\@endpart{\afterpartskip -% \if@twoside -% \if@openright -% \null -% \thispagestyle{empty}% -% \newpage -% \fi -% \fi -% \if@tempswa -% \twocolumn -% \fi} - -%% CHAPTER -%%%%%%%%%%% -\renewcommand{\@m@mchapter}[1][\@empty]{% - \def\ch@pt@c{#1}% capture first optional arg - \@dblarg{\@chapter}} -%%\def\m@m@empty{\@empty} - -%%%%\def\@chapter[#1]#2{% -%%%% \ifx\ch@pt@c\m@m@empty % no optional args -%%%% \def\f@rtoc{#1}% -%%%% \def\f@rhdr{#1}% -%%%% \else % at least one opt arg -%%%% \def\f@rtoc{\ch@pt@c}% -%%%% \nametest{#1}{#2}% -%%%% \ifsamename % one opt arg -%%%% \def\f@rhdr{\ch@pt@c}% -%%%% \else % two opt args -%%%% \def\f@rhdr{#1}% -%%%% \fi -%%%% \fi -%%%% \ifnum \c@secnumdepth >\m@ne -%%%% \if@mainmatter -%%%% \refstepcounter{chapter}% -%%%% \fi -%%%% \fi -%%%% \chaptermark{\f@rhdr}% -%%%% \ifartopt -%%%% \@makechapterhead{#2}% -%%%% \@afterheading -%%%% \else -%%%% \insertchapterspace -%%%% \if@twocolumn -%%%% \@topnewpage[\@makechapterhead{#2}]% -%%%% \else -%%%% \@makechapterhead{#2}% -%%%% \fi -%%%% \@afterheading -%%%% \fi -%%%% \ifnum \c@secnumdepth >\m@ne -%%%% \if@mainmatter -%%%% \addcontentsline{toc}{chapter}{% -%%%%% \protect\chapternumberline{\thechapter}\f@rtoc}% -%%%% \protect\chapternumberline{\hchaptertitlehead}\f@rtoc}% -%%%% \else -%%%% \addcontentsline{toc}{chapter}{\f@rtoc}% -%%%% \fi -%%%% \else -%%%% \addcontentsline{toc}{chapter}{\f@rtoc}% -%%%% \fi -%%%% \ifheadnameref\M@gettitle{\f@rhdr}\else\M@gettitle{\f@rtoc}\fi -%%%%} -%%%% -%%%%\def\@makechapterhead#1{% -%%%% \chapterheadstart% \vspace*{50\p@}% -%%%% {\parindent \z@ \raggedright \normalfont -%%%% \ifnum \c@secnumdepth >\m@ne -%%%% \if@mainmatter -%%%% \memucsinterwordchapterskiphook -%%%%% \printchaptername \chapternamenum \printchapternum \chapternamenum \postchapternum -%%%% \prechapternum \chapternamenum \printchapternum \chapternamenum \postchapternum -%%%% \afterchapternum % \par\nobreak \vskip 20\p@ -%%%% \else -%%%% \printchapternonum -%%%% \fi -%%%% \else -%%%% \printchapternonum -%%%% \fi -%%%% \interlinepenalty\@M -%%%% \printchaptertitle{#1} % \Huge \bfseries #1 -%%%% \afterchaptertitle % \par\nobreak \vskip 40\p@ -%%%% }} -%%%% -%%%%\def\@makeschapterhead#1{% -%%%% \chapterheadstart -%%%% {\parindent \z@ \raggedright \normalfont \memucsinterwordchapterskiphook -%%%% \printchapternonum -%%%% \interlinepenalty\@M -%%%% \printchaptertitle{#1} -%%%% \afterchaptertitle -%%%% } -%%%%} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% CHAPTER -%% memhangul : opt args : different from memoir 1.618 -%% \chapter[toc][hdr]{title} -%% \chapter[toc]{hdr/title} -%% \chapter{toc/hdr/title} -\def\@chapter[#1]#2{% - \m@mpn@new@chaptrue% - \m@mpn@new@schapfalse% - \def\f@rbdy{#2}% -% \ifx\ch@pt@c\@empty % no optional args -% \def\f@rtoc{#2}% -% \def\f@rhdr{#2}% -% \PrerenderUnicode{#2}% -% \else % at least one opt arg -% \let\f@rtoc\ch@pt@c -% \ifx\@empty#1\@empty -% \let\f@rhdr\ch@pt@c -% \PrerenderUnicode{#1#2}% -% \else -% \def\f@rhdr{#1}% -% \PrerenderUnicode{#1}% -% \fi -% \fi - \ifx\ch@pt@c\m@m@empty % no optional args - \def\f@rtoc{#1}% - \def\f@rhdr{#1}% -% \PrerenderUnicode{#1}% - \else % at least one opt arg - \def\f@rtoc{\ch@pt@c}% - \nametest{#1}{#2}% - \ifsamename % one opt arg - \def\f@rhdr{\ch@pt@c}% -% \PrerenderUnicode{#1#2}% - \else % two opt args - \def\f@rhdr{#1}% -% \PrerenderUnicode{#1}% - \fi - \fi - \m@m@Andfalse - \ifnum \c@secnumdepth >\m@ne - \if@mainmatter - \m@m@Andtrue - \fi - \fi - \ifm@m@And - \ifanappendix - \refstepcounter{APPchapter}% - \else - \refstepcounter{chapter}% - \fi - \fi - \chaptermark{\f@rhdr} - \ifartopt - \@makechapterhead{#2}% - \@afterheading - \else - \insertchapterspace - \if@twocolumn - \@topnewpage[\@makechapterhead{#2}]% - \else - \@makechapterhead{#2}% - \fi - \@afterheading - \fi - \ifm@m@And - \ifanappendix - \addcontentsline{toc}{appendix}{% -% \protect\chapternumberline{\thechapter}\f@rtoc}% - \protect\chapternumberline{\hchaptertitlehead}\f@rtoc}% -% \memappchapinfo{\thechapter}{\f@rtoc}{\f@rhdr}{#2}% - \memappchapinfo{\thechapter}{\f@rtoc}{\f@rhdr}{#2}% - \else - \addcontentsline{toc}{chapter}{% -% \protect\chapternumberline{\thechapter}\f@rtoc}% - \protect\chapternumberline{\hchaptertitlehead}\f@rtoc}% -% \memchapinfo{\thechapter}{\f@rtoc}{\f@rhdr}{#2}% - \memchapinfo{\hchaptertitlehead}{\f@rtoc}{\f@rhdr}{#2}% - \fi - \else - \addcontentsline{toc}{chapter}{\f@rtoc}% - \ifanappendix - \memappchapinfo{}{\f@rtoc}{\f@rhdr}{#2}% - \else - \memchapinfo{\hchaptertitlehead}{\f@rtoc}{\f@rhdr}{#2}% - \fi - \fi - \mempostaddchaptertotochook% - \ifheadnameref\M@gettitle{\f@rhdr}\else\M@gettitle{\f@rtoc}\fi -%%% for chapter - \ifanappendix - \protected@edef\@currentlabel{\thechapter}% - \fi - \memendofchapterhook% -} - -\def\@makechapterhead#1{% - \chapterheadstart% \vspace*{50\p@}% - {\parindent \z@ \raggedright \normalfont - \ifm@m@And - \memucsinterwordchapterskiphook -% \printchaptername \chapternamenum \printchapternum -% \afterchapternum % \par\nobreak \vskip 20\p@ - \prechapternum \chapternamenum \printchapternum \chapternamenum \postchapternum - \afterchapternum % \par\nobreak \vskip 20\p@ - \else - \printchapternonum - \fi - \interlinepenalty\@M - \printchaptertitle{#1} % \Huge \bfseries #1 - \afterchaptertitle % \par\nobreak \vskip 40\p@ - }} - -\renewcommand{\@m@mschapter}[2][\@empty]{% - \@schapter{#2}% - \ifx \@empty#1 - \def\f@rhdr{#2}% -% \PrerenderUnicode{#2}% - \else % opt arg - \def\f@rhdr{#1}% -% \PrerenderUnicode{#1}% - \setcounter{secnumdepth}{-10}% - \chaptermark{#1}% - \setcounter{secnumdepth}{\value{maxsecnumdepth}}% - \fi - \ifanappendix - \memappchapstarinfo{\f@rhdr}{#2}% - \else - \memchapstarinfo{\f@rhdr}{#2}% - \fi} - -\def\@makeschapterhead#1{% - \chapterheadstart -% {\parindent \z@ \raggedright \normalfont - {\parindent \z@ \raggedright \normalfont \memucsinterwordchapterskiphook - \printchapternonum - \interlinepenalty\@M - \printchaptertitle{#1} - \afterchaptertitle - } -} - -%%%%%%%%%%%%% - -\renewcommand{\@chs@def@ult}{% - \def\chapterheadstart{\vspace*{\beforechapskip}} -% \def\printchaptername{\chapnamefont \@chapapp} -% \def\printchaptername{\chapnamefont \pre@chapter} - \def\printchaptername{} % disabled. -% \def\chapternamenum{\space} - \def\chapternamenum{\,} - \def\printchapternum{\chapnumfont \thechapter} - \def\prechapternum{\chapnamefont \pre@chapter} - \def\postchapternum{\chapnamefont \post@chapter} - \def\afterchapternum{\par\nobreak\vskip \midchapskip} - \def\printchapternonum{} - \def\printchaptertitle##1{\chaptitlefont ##1} - \def\postchaptertitle{\post@chapter} - \def\afterchaptertitle{\par\nobreak\vskip \afterchapskip} -} - -%% l@chapter, l@part - -\setlength{\cftpartnumwidth}{4.5em} -\setlength{\cftchapternumwidth}{4.0em} -%% for compatibility with mempatch 3.12 -\def\@chapapp@head{}% - -%% SECTION - -\renewcommand{\section}{% - \sechook\memucsinterwordhook% - \@startsection{section}{1}% level 1 - {\secindent}% heading indent - {\beforesecskip}% skip before the heading - {\aftersecskip}% skip after the heading - {\normalfont\secheadstyle}} % font - -%% PAGESTYLES -%% headings, ruled, Ruled, companioin을 수정함 - -%% pagestyle headings -\if@twoside - \makepagestyle{headings} - \makepsmarks{headings}{% - \let\@mkboth\markboth - \def\chaptermark##1{% - \markboth{\MakeUppercase{% - \ifnum \c@secnumdepth >\m@ne - \if@mainmatter - \hchaptertitlehead \enskip\ % - \fi - \fi - ##1}}{}}% - \def\tocmark{\markboth{\MakeUppercase{\contentsname}}{}}% - \def\lofmark{\markboth{\MakeUppercase{\listfigurename}}{}}% - \def\lotmark{\markboth{\MakeUppercase{\listtablename}}{}}% - \def\bibmark{\markboth{\MakeUppercase{\bibname}}{}}% - \def\indexmark{\markboth{\MakeUppercase{\indexname}}{}}% - \def\sectionmark##1{% - \markright{\MakeUppercase{% - \ifnum \c@secnumdepth > \z@ - \thesection \enskip\ % - \fi - ##1}}}% - } - \makeevenhead{headings}{\thepage}{}{\normalfont\slshape\leftmark} - \makeoddhead{headings}{\normalfont\slshape\rightmark}{}{\thepage} -\else - \makepagestyle{headings} - \makepsmarks{headings}{% - \let\@mkboth\markboth - \def\chaptermark##1{% - \markright{\MakeUppercase{% - \ifnum \c@secnumdepth >\m@ne - \if@mainmatter - \hchaptertitlehead \enskip\ % - \fi - \fi - ##1}}}% - \def\tocmark{\markright{\MakeUppercase{\contentsname}}}% - \def\lofmark{\markright{\MakeUppercase{\listfigurename}}}% - \def\lotmark{\markright{\MakeUppercase{\listtablename}}}% - \def\bibmark{\markright{\MakeUppercase{\bibname}}}% - \def\indexmark{\markright{\MakeUppercase{\indexname}}}% - } - \makeoddhead{headings}{\normalfont\slshape\rightmark}{}{\thepage} -\fi - -%% Pagestyle ruled - -\makepagestyle{ruled} -\makeevenfoot{ruled}{\thepage}{}{} -\makeoddfoot{ruled}{}{}{\thepage} -\makeheadrule{ruled}{\textwidth}{\normalrulethickness} -\renewcommand{\@ruledmarks}{% - \let\@mkboth\markboth - \def\chaptermark##1{% - \markboth{% - \ifnum \c@secnumdepth >\m@ne - \if@mainmatter - \hchaptertitlehead \enskip\ % - \fi - \fi - ##1}{}} - \def\sectionmark##1{\markright{##1}} - \def\tocmark{\markboth{\contentsname}{}} - \def\lofmark{\markboth{\listfigurename}{}} - \def\lotmark{\markboth{\listtablename}{}} - \def\bibmark{\markboth{\bibname}{}} - \def\indexmark{\markboth{\indexname}{}} -} -\makepsmarks{ruled}{\@ruledmarks} -\makeevenhead{ruled}{\normalfont\scshape\leftmark}{}{} -\makeoddhead{ruled}{}{}{\normalfont\rightmark} - -%% Pagestyle Ruled - -\makepagestyle{Ruled} -\makerunningwidth{Ruled}{1.1\textwidth} -\makeheadposition{Ruled}{flushright}{flushleft}{flushright}{flushleft} -\makeevenfoot{Ruled}{\thepage}{}{} -\makeoddfoot{Ruled}{}{}{\thepage} -\makeheadrule{Ruled}{1.1\textwidth}{\normalrulethickness} -\makepsmarks{Ruled}{\@ruledmarks} -\makeevenhead{Ruled}{\normalfont\scshape\leftmark}{}{} -\makeoddhead{Ruled}{}{}{\normalfont\rightmark} - -%% Pagestyle companion - -%\makepagestyle{companion} -%\setlength{\headwidth}{\textwidth} -% \addtolength{\headwidth}{\marginparsep} -% \addtolength{\headwidth}{\marginparwidth} -%\makerunningwidth{companion}{\headwidth} -%\makeheadrule{companion}{\headwidth}{\normalrulethickness} -%\makeheadposition{companion}{flushright}{flushleft}{}{} -%\makepsmarks{companion}{% -% \let\@mkboth\markboth -% \def\chaptermark##1{\markboth{##1}{##1}} % left mark & right marks -% \def\sectionmark##1{\markright{% -% \ifnum \c@secnumdepth>\z@ -% \thesection. \ % -% \fi -% ##1}} -% \def\tocmark{\markboth{\contentsname}{\contentsname}} -% \def\lofmark{\markboth{\listfigurename}{\listfigurename}} -% \def\lotmark{\markboth{\listtablename}{\listtablename}} -% \def\bibmark{\markboth{\bibname}{\bibname}} -% \def\indexmark{\markboth{\indexname}{\indexname}} -%} -%\makeevenhead{companion}{\normalfont\bfseries\thepage}{}% -% {\normalfont\bfseries\leftmark} -%\makeoddhead{companion}{\normalfont\bfseries\rightmark}{}% -% {\normalfont\bfseries\thepage} - -%% 한글 pagestyle hangul -\makepagestyle{hangul} -\newdimen\pghgheadwidth\let\pghgheadwidth=\textwidth -\makerunningwidth{hangul}{\pghgheadwidth} -%\makeheadrule{hangul}{\pghgheadwidth}{0pt} -\makeheadposition{hangul}{flushleft}{flushright}{flushleft}{flushright} -\def\@hgpsmarks{% - \let\@mkboth\markboth - \def\chaptermark##1{% - \markboth{\scshape - \ifnum \c@secnumdepth >\m@ne - \if@mainmatter - \hchaptertitlehead \enskip\ % - \fi - \fi - ##1}{}}% - \def\tocmark{\markboth{\scshape\contentsname}{}}% - \def\lofmark{\markboth{\scshape\listfigurename}{}}% - \def\lotmark{\markboth{\scshape\listtablename}{}}% - \def\bibmark{\markboth{\scshape\bibname}{}}% - \def\indexmark{\markboth{\scshape\indexname}{}}% - \def\sectionmark##1{% - \markright{\scshape -%% disabled printing \thesection. -% \ifnum \c@secnumdepth >\z@ -% \thesection \enskip\ % -% \fi - ##1}}% - } -\makepsmarks{hangul}{\@hgpsmarks} -\makeoddhead{hangul}{}{}{\normalfont\small\rightmark~\makebox[2em][r]{\normalfont\normalsize\sffamily\thepage}} -\makeevenhead{hangul}{\makebox[2em][l]{\normalfont\normalsize\sffamily\thepage}~\normalfont\small\leftmark}{}{} - -%%% CHAPTERSTYLE - -\makechapterstyle{default}{% - \renewcommand{\post@chapter}{\chaptername}% - \renewcommand{\chapnamefont}{\normalfont\huge\bfseries} - \renewcommand{\chapnumfont}{\normalfont\huge\bfseries} - \renewcommand{\chaptitlefont}{\normalfont\Huge\bfseries} - \setlength{\beforechapskip}{50pt} - \setlength{\midchapskip}{20pt} - \setlength{\afterchapskip}{40pt} -} -\chapterstyle{default} - -%% for Appendix -\makechapterstyle{appendixdefault}{% - \renewcommand{\chapnamefont}{\normalfont\huge\bfseries} - \renewcommand{\chapnumfont}{\normalfont\huge\bfseries} - \renewcommand{\chaptitlefont}{\normalfont\Huge\bfseries} -% \renewcommand{\printchaptername}{\chapnumfont\@chapapp} - \renewcommand{\prechapternum}{\chapnumfont\@chapapp} - \renewcommand{\postchapternum}{} - \renewcommand{\chapternamenum}{\enskip} - \setlength{\beforechapskip}{50pt} - \setlength{\midchapskip}{20pt} - \setlength{\afterchapskip}{40pt} -} - -\makechapterstyle{section}{% -% \renewcommand{\printchaptername}{} - \renewcommand{\chapternamenum}{\enskip} - \renewcommand{\prechapternum}{} - \renewcommand{\postchapternum}{} - \renewcommand{\chapnumfont}{\normalfont\Huge\bfseries} - \renewcommand{\printchapternum}{\chapnumfont \thechapter\space} - \renewcommand{\afterchapternum}{} -} - -%% for appendix -\makechapterstyle{appendixsection}{% -% \renewcommand{\printchaptername}{\chapnumfont\@chapapp} - \renewcommand{\chapternamenum}{\enskip} - \renewcommand{\prechapternum}{\chapnumfont\@chapapp} - \renewcommand{\postchapternum}{} - \renewcommand{\chapnumfont}{\normalfont\Huge\bfseries} - \renewcommand{\printchapternum}{\chapnumfont \thechapter\space} - \renewcommand{\afterchapternum}{} -} - -\makechapterstyle{article}{% - \renewcommand{\chapterheadstart}{\vspace{\beforechapskip}} - \setlength{\beforechapskip}{3.5ex \@plus 1ex \@minus .2ex} - \setlength{\afterchapskip}{2.3ex \@plus .2ex} -% \renewcommand{\printchaptername}{} - \renewcommand{\prechapternum}{} - \renewcommand{\chapternamenum}{} - \renewcommand{\postchapternum}{} - \renewcommand{\chaptitlefont}{\normalfont\Large\bfseries} - \renewcommand{\chapnumfont}{\normalfont\Large\bfseries} - \renewcommand{\printchapternum}{\chapnumfont \thechapter\quad} - \renewcommand{\afterchapternum}{} -} - -\makechapterstyle{hangnum}{% - \renewcommand{\chapnumfont}{\chaptitlefont} - \settowidth{\chapindent}{\chapnumfont 999} -% \renewcommand{\printchaptername}{} - \renewcommand{\chapternamenum}{} - \renewcommand{\prechapternum}{} - \renewcommand{\postchapternum}{} - \renewcommand{\printchapternum}{% - \noindent\llap{\makebox[\chapindent][l]{\chapnumfont \thechapter}}} - \renewcommand{\afterchapternum}{} -} - -%\newlength{\chapindent} - -\makechapterstyle{companion}{% - \chapterstyle{default} - \renewcommand*{\chapnamefont}{\normalfont\LARGE\scshape} - \renewcommand*{\printchaptername}{\raggedleft\chapnamefont \@chapapp} - \renewcommand*{\prechapternum}{\raggedleft\chapnamefont \pre@chapter} - \renewcommand*{\chapnumfont}{\normalfont\Huge} - \setlength{\chapindent}{\marginparsep} - \addtolength{\chapindent}{\marginparwidth} - \renewcommand*{\printchaptertitle}[1]{% - \begin{adjustwidth}{}{-\chapindent} - \raggedleft \chaptitlefont ##1\par\nobreak - \end{adjustwidth}}} - -%% for appendix. -\makechapterstyle{appendixcompanion}{% - \renewcommand{\chapnamefont}{\normalfont\LARGE\scshape} - \renewcommand{\prechapternum}{\raggedleft\chapnamefont \@chapapp} -% \renewcommand{\printchaptername}{\raggedleft\chapnamefont \pre@chapter} - \renewcommand{\chapnumfont}{\normalfont\Huge} - \renewcommand{\postchapternum}{} - \setlength{\chapindent}{\marginparsep} - \addtolength{\chapindent}{\marginparwidth} - \renewcommand{\printchaptertitle}[1]{% - \begin{adjustwidth}{}{-\chapindent} - \raggedleft \chaptitlefont ##1\par\nobreak - \end{adjustwidth}} -} - -\makechapterstyle{demo}{ -% \renewcommand{\printchaptername}{\centering} - \renewcommand{\prechapternum}{\centering} - \renewcommand{\printchapternum}{\chapnumfont \numtoName{\c@chapter}} - \renewcommand{\postchapternum}{} - \renewcommand{\chaptitlefont}{\normalfont\Huge\sffamily} - \renewcommand{\printchaptertitle}[1]{% - \hrule\vskip\onelineskip \raggedleft \chaptitlefont ##1} - \renewcommand{\afterchaptertitle}{\vskip\onelineskip \hrule\vskip \afterchapskip} -} - -\makechapterstyle{demovar}{ -% \renewcommand{\printchaptername}{\centering} - \renewcommand{\prechapternum}{\centering} - \renewcommand{\printchapternum}{\chapnumfont \hNum{chapter}} - \renewcommand{\postchapternum}{\post@chapter} - \renewcommand{\chaptitlefont}{\normalfont\Huge\sffamily} - \renewcommand{\printchaptertitle}[1]{% - \hrule\vskip\onelineskip \raggedleft \chaptitlefont ##1} - \renewcommand{\afterchaptertitle}{\vskip\onelineskip \hrule\vskip \afterchapskip} -} - -%% for appendix -\makechapterstyle{appendixdemo}{ -% \renewcommand{\printchaptername}{\centering\chapnumfont\@chapapp} - \renewcommand{\prechapternum}{\centering\chapnumfont\@chapapp} - \renewcommand{\printchapternum}{\chapnumfont \@Alph\c@chapter} - \renewcommand{\postchapternum}{\ } - \renewcommand{\chaptitlefont}{\normalfont\Huge\sffamily} - \renewcommand{\printchaptertitle}[1]{% - \hrule\vskip\onelineskip \raggedleft \chaptitlefont ##1} - \renewcommand{\afterchaptertitle}{\vskip\onelineskip \hrule\vskip \afterchapskip} -} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%% appendix %%%%%%%%%%%%%%%%%%%%%%%%% - -\def\set@appendix@chapsec{% - %%% SECTION in APPENDIX - \renewcommand{\section}{% - \sechook\memucsinterwordhook% - \@startsection{section}{1}% level 1 - {\secindent}% heading indent - {\beforesecskip}% skip before the heading - {\aftersecskip}% skip after the heading - {\normalfont\secheadstyle}} % font - \def\M@sect##1##2##3##4##5##6[##7][##8]##9{% - \ifheadnameref\M@gettitle{##8}\else\M@gettitle{##7}\fi - \ifnum ##2>\c@secnumdepth - \let\@svsec\@empty - \else - \refstepcounter{APP##1}% - \protected@edef\@svsec{\@seccntformat{##1}\relax}% - \fi - \@tempskipa ##5\relax - \ifdim \@tempskipa>\z@ - \begingroup - ##6{% - \@hangfrom{\hskip ##3\relax\@svsec}% - \interlinepenalty \@M ##9\@@par}% - \endgroup - \csname ##1mark\endcsname{##8}% - \addcontentsline{toc}{##1}{% - \ifnum ##2>\c@secnumdepth \else - \protect\numberline{\noexpand\protect\csname the##1\endcsname}% - \fi - ##7}% - \else - \def\@svsechd{% - ##6{\hskip ##3\relax - \@svsec ##9}% - \csname ##1mark\endcsname{##8}% - \addcontentsline{toc}{##1}{% - \ifnum ##2>\c@secnumdepth \else - \protect\numberline{\csname the##1\endcsname}% - \fi - ##7}}% - \fi - \@xsect{##5}}% -} - -\def\restorechapsec{% - %%% SECTION in APPENDIX - \renewcommand{\section}{% - \sechook\memucsinterwordhook% - \@startsection{section}{1}% level 1 - {\secindent}% heading indent - {\beforesecskip}% skip before the heading - {\aftersecskip}% skip after the heading - {\normalfont\secheadstyle}} % font - \def\M@sect##1##2##3##4##5##6[##7][##8]##9{% - \ifheadnameref\M@gettitle{##8}\else\M@gettitle{##7}\fi - \ifnum ##2>\c@secnumdepth - \let\@svsec\@empty - \else - \refstepcounter{##1}% - \protected@edef\@svsec{\@seccntformat{##1}\relax}% - \fi - \@tempskipa ##5\relax - \ifdim \@tempskipa>\z@ - \begingroup - ##6{% - \@hangfrom{\hskip ##3\relax\@svsec}% - \interlinepenalty \@M ##9\@@par}% - \endgroup - \csname ##1mark\endcsname{##8}% - \addcontentsline{toc}{##1}{% - \ifnum ##2>\c@secnumdepth \else - \protect\numberline{\noexpand\protect\csname the##1\endcsname}% - \fi - ##7}% - \else - \def\@svsechd{% - ##6{\hskip ##3\relax - \@svsec ##9}% - \csname ##1mark\endcsname{##8}% - \addcontentsline{toc}{##1}{% - \ifnum ##2>\c@secnumdepth \else - \protect\numberline{\csname the##1\endcsname}% - \fi - ##7}}% - \fi - \@xsect{##5}} -} - -\renewcommand{\appendix}{\par -% \setcounter{chapter}{0}% -% \setcounter{section}{0}% -% \gdef\@chapapp{\appendixname}% -% \gdef\thechapter{\@Alph\c@chapter}% - \set@appendix@chapter - \anappendixtrue - \chapterstyle{appendixdefault}% -} - -\newcounter{APPchapter}\setcounter{APPchapter}{0}% -\newcounter{APPsection}[APPchapter]\setcounter{APPsection}{0}% -\newcounter{APPsubsection}[APPsection]\setcounter{APPsubsection}{0}% - -\def\set@appendix@chapter{% - \gdef\@chapapp{\appendixname}% - \gdef\thechapter{\Alph{APPchapter}}% - \gdef\thesection{\thechapter.\arabic{APPsection}}% -% \counterwithout{figure}{chapter}\counterwithout{table}{chapter}% - \counterwithin{figure}{APPchapter}\counterwithin{table}{APPchapter}% - \counterwithin{equation}{APPchapter}% - \renewcommand\thefigure{\thechapter.\arabic{figure}}% - \renewcommand\thetable{\thechapter.\arabic{table}}% - \renewcommand\theequation{\thechapter.\arabic{equation}}% - \set@appendix@chapsec - \renewcommand\hchaptertitlehead{\appendixname\:\thechapter}% -} - -%%% here, I will renewcommand chapterstyle, -%%% to recover chapterstyle after appendices. -\renewcommand{\chapterstyle}[1]{% - \@nameuse{chs@#1}% - \ifanappendix\else\gdef\CURR@chpstyle{#1}\fi -} - -\def\restore@appendices@chapter{% - \refreshprepostchapters - \gdef\thechapter{\arabic{chapter}}% - \gdef\thesection{\thechapter.\arabic{section}}% - \def\hchaptertitlehead{\pre@chapter\:\thechapter}% - \counterwithin{figure}{chapter}\counterwithin{table}{chapter}% - \restorechapsec - \@ifundefined{CURR@chapstyle}{\chapterstyle{default}}% - {\expandafter\expandafter\chapterstyle{\CURR@chapstyle}}% -} - -\renewcommand{\@resets@pp}{% - \par - \@ppsavesec -% \setcounter{section}{0}% -% \setcounter{chapter}{0}% -% \renewcommand\@chapapp{\appendixname}% -% \renewcommand\thechapter{\@Alph\c@chapter}% - \set@appendix@chapter - \chapterstyle{appendixdefault} - \restoreapp -} - -\renewenvironment{appendices}% - {\@resets@pp\anappendixtrue}% - {\@ppsaveapp\@pprestoresec\restore@appendices@chapter\anappendixfalse} - -\renewenvironment{subappendices}{% - \@resets@ppsub - \def\addappheadtotoc{\phantomsection\addcontentsline{toc}{section}{\appendixtocname}} % <- mempatch 2.3 - \ifnamesubappendix - \def\sectionname{\protect\subappendixname}% - \def\@seccntformat##1{\@ifundefined{##1name}{}{\csname ##1name\endcsname\ }% - \csname the##1\endcsname\quad} - \fi - }{} - -%%% References -\renewcommand\Cref[1]{% - \pre@chapter\,\ref{#1}\,\chapterrefname% -} -\renewcommand\Pref[1]{% - \pre@part\,\ref{#1}\,\partrefname% -} -\renewcommand\pref[1]{% - \pageref{#1}~\pagerefname -} -\renewcommand\tref[1]{% - \tablerefname~\ref{#1}% -} -\renewcommand\fref[1]{% - \figurerefname~\ref{#1}% -} - -%% arabic, roman... etc. -%%\def\HArabic#1{\arabic{#1}} -\def\HAlph#1{\Alph{#1}} -\def\Halph#1{\alph{#1}} -\def\HROMAN#1{\hRoman{#1}} -\def\Hroman#1{\hroman{#1}} -%% - -%% phantomchapter = phantomsection -\def\phantomchapter{% - \Hy@GlobalStepCount\Hy@linkcounter - \xdef\@currentHref{chapter*.\the\Hy@linkcounter}% - \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% -} - -%%% index -\renewcommand{\@wrindexm@m}[1]{\@@wrindexhyp#1||\\} - - -%%% 한글 문장부호 관련 명령 -%%% \hfontfamilynameprefix is deprecated. (ver1.5.0) -\def\hfontfamilynameprefix{ut} % for compatibility only - -\def\cnm@char@open{〈} -\def\cnm@char@close{〉} -\def\ccnm@char@open{《} -\def\ccnm@char@close{》} -\def\snm@char@open{「} -\def\snm@char@close{」} -\def\bnm@char@open{『} -\def\bnm@char@close{』} - -\def\memx@make@bnmcmd#1#2{% - \leavevmode - \unhbox0\memx@bnmcmd@prekern\csname #1@char@open\endcsname - #2\csname #1@char@close\endcsname\memx@bnmcmd@postkern -} - -\protected\def\cnm{% - \@ifnextchar*\cnm@star\cnm@nostar -} - -\def\cnm@star*#1{% - \def\memx@bnmcmd@prekern{\kern-.35em}% - \def\memx@bnmcmd@postkern{\kern-.4em}% - \memx@make@bnmcmd{cnm}{#1}% -} - -\def\cnm@nostar#1{% - \let\memx@bnmcmd@prekern\relax - \let\memx@bnmcmd@postkern\relax - \memx@make@bnmcmd{cnm}{#1}% -} - -\protected\def\ccnm{% - \@ifnextchar*\ccnm@star\ccnm@nostar -} - -\def\ccnm@star*#1{% - \def\memx@bnmcmd@prekern{\kern-.35em}% - \def\memx@bnmcmd@postkern{\kern-.4em}% - \memx@make@bnmcmd{ccnm}{#1}% -} - -\def\ccnm@nostar#1{% - \let\memx@bnmcmd@prekern\relax - \let\memx@bnmcmd@postkern\relax - \memx@make@bnmcmd{ccnm}{#1}% -} - - -\protected\def\snm{% - \@ifnextchar*\snm@star\snm@nostar -} - -\def\snm@star*#1{% - \def\memx@bnmcmd@prekern{\kern-.35em}% - \def\memx@bnmcmd@postkern{\kern-.4em}% - \memx@make@bnmcmd{snm}{#1}% -} - -\def\snm@nostar#1{% - \let\memx@bnmcmd@prekern\relax - \let\memx@bnmcmd@postkern\relax - \memx@make@bnmcmd{snm}{#1}% -} - - -\protected\def\bnm{% - \@ifnextchar*\bnm@star\bnm@nostar -} - -\def\bnm@star*#1{% - \def\memx@bnmcmd@prekern{\kern-.35em}% - \def\memx@bnmcmd@postkern{\kern-.4em}% - \memx@make@bnmcmd{bnm}{#1}% -} - -\def\bnm@nostar#1{% - \let\memx@bnmcmd@prekern\relax - \let\memx@bnmcmd@postkern\relax - \memx@make@bnmcmd{bnm}{#1}% -} - -\AtBeginDocument{ - \@ifpackageloaded{hyperref}{% - \pdfstringdefDisableCommands{% - \def\cnm#1{\ifx#1*\expandafter\@@cnm\else <#1>\fi} - \def\@@cnm#1{<#1>} - \def\snm#1{\ifx#1*\expandafter\@@cnm\else <#1>\fi} - \def\ccnm#1{\ifx#1*\expandafter\@@cnm\else <#1>\fi} - \def\bnm#1{\ifx#1*\expandafter\@@cnm\else <#1>\fi} - \def\oblivoirdblquote#1{\ifx#1*\expandafter\@@obquote\else "#1"\fi} - \def\@@obquote#1{"#1"} - \def\oblivoirquote#1{\ifx#1*\expandafter\@@obsquote\else '#1'\fi} - \def\@@obsquote#1{'#1'} - \def\cntrdots{…} - }% - }{} -} - -%%%% 따옴표 -\def\oblivoirdblquote@char@open{“} -\def\oblivoirdblquote@char@close{”} -\def\oblivoirquote@char@open{‘} -\def\oblivoirquote@char@close{’} - -\protected\def\oblivoirdblquote{% - \@ifnextchar*\oblivoirdblquote@star\oblivoirdblquote@nostar -} - -\def\oblivoirdblquote@star*#1{% - \def\memx@bnmcmd@prekern{\kern-.35em}% - \def\memx@bnmcmd@postkern{\kern-.4em}% - \memx@make@bnmcmd{oblivoirdblquote}{#1}% -} - -\def\oblivoirdblquote@nostar#1{% - \let\memx@bnmcmd@prekern\relax - \let\memx@bnmcmd@postkern\relax - \memx@make@bnmcmd{oblivoirdblquote}{#1}% -} - -\protected\def\oblivoirquote{% - \@ifnextchar*\oblivoirquote@star\oblivoirquote@nostar -} - -\def\oblivoirquote@star*#1{% - \def\memx@bnmcmd@prekern{\kern-.35em}% - \def\memx@bnmcmd@postkern{\kern-.4em}% - \memx@make@bnmcmd{oblivoirquote}{#1}% -} - -\def\oblivoirquote@nostar#1{% - \let\memx@bnmcmd@prekern\relax - \let\memx@bnmcmd@postkern\relax - \memx@make@bnmcmd{oblivoirquote}{#1}% -} - -%%%% cntrdots - -\ifx\cntrdot\undefined -\DeclareRobustCommand{\cntrdot}{% - \@ifnextchar*\@cntrd@t\@@cntrd@t -} -\else -\renewcommand{\cntrdot}{% - \@ifnextchar*\@cntrd@t\@@cntrd@t -} -\fi - -\ifx\oblivoirallowbreak\undefined -\let\oblivoirallowbreak\allowbreak -\fi - -\def\@cntrd@t*{% - \leavevmode\kern.2em\@@cntrd@t\hskip.2em\oblivoirallowbreak -} -\def\@@cntrd@t{% - \leavevmode\nobreak\raise.02ex\hbox{·}\oblivoirallowbreak -} - -\DeclareRobustCommand{\cntrdots}{% - \leavevmode…%\oblivoirallowbreak -} - -\DeclareRobustCommand{\cntrdotss}{% - \leavevmode ……% -} - -%% Punctuation Explanation Rule. -%% usage: \explpunc.Some_running_texts.\ % last space must not be succeeded by ^M. -\protected\def\explpunc.#1.\ {\leavevmode\,\XBrule#1\XErule\,} -\protected\def\expldash{\leavevmode\,\XBrule\,} -% -\newsavebox\togetheightoffont\sbox\togetheightoffont{!} -\newlength\htoffnt\setlength\htoffnt{\ht\togetheightoffont} -\addtolength\htoffnt{\dp\togetheightoffont} -\def\XBrule{\raise.45\htoffnt\hbox{\rule{1.25em}{.25pt}}} -\def\XErule{\raise.45\htoffnt\hbox{\hskip1pt\rule{1.25em}{.25pt}}} - -%% Misc def. -%\def\PageName{페이지} -%\def\AltPageName{쪽} - -%% \titleref -%% -- 2009/02/11. revert to original definition. -\let\M@TitleReference\@firstoftwo -\let\M@M@TitleReference\@firstoftwo -\def\@mem@theTR{\let\M@M@TitleReference\@firstoftwo\theTitleReference} - -%% vertical distance of math display -\if@mathdisp -\addtodef{\normalsize}{}{\abovedisplayskip 6\p@ \@plus2\p@ \@minus5\p@ - \abovedisplayshortskip \z@ \@plus3\p@ - \belowdisplayshortskip 3\p@ \@plus3\p@ \@minus3\p@ - \belowdisplayskip \abovedisplayskip} -\fi - -%% arabic frontmatter numbering -\if@arabicfrontmatter -\renewcommand{\@memfront}{% - \@smemfront\pagenumbering{arabic}} -\fi - -%% default pagestyle -\if@defaulthangulpagestyle - \pagestyle{hangul} -\fi - -%% 할주. -%% still experimental -%% \hbox로 처리하기 때문에 행끝에서 할주 행나눔은 이루어지지 않는다. -%% 글꼴이 \tiny로 고정. \footnotesize를 쓰면 행간이 흐트러짐. -%% TODO: 현재 설정은 10pt 문서에서 1pt정도가 행간에 추가됨. -%% \lineskiplimit를 이용해서 행간을 고정시켜둘 것인지는 아직 -%% 결정하지 못하였음. -\newskip\divnoteskip -\def\divnotedelimopen{\hskip.1em$\big($} -\def\divnotedelimclose{$\big)$\hskip.1em} -\divnoteskip = .18em plus .02em minus .02em -\def\divnotestyle{% - \spaceskip\divnoteskip\normalfont\tiny} -\protected\def\divnote#1{% - \settowidth{\@tempdima}{\divnotestyle #1}% - \ifvmode\leavevmode\fi\divnotedelimopen - \raise.2em\hbox{\parbox{.525\@tempdima}{\divnotestyle\singlespace #1}}\divnotedelimclose -} - -%% 각주 설정을 위한 추가 매크로 -\def\SetFnmark#1#2{% - \expandafter\def\csname @makefnmark\endcsname{\bgroup #1\@thefnmark#2\egroup}% -} - -%% chapter의 첫 단락 들여쓰기. -\newcommand*\chapterindentfirst{% - \addtodef{\@afterheading}{\@afterindenttrue}{} -} - -%% memhangul-patch -\InputIfFileExists{memhangul-patch.sty}{}{} - -%%% fig, tab caption -\def\obCaptionFont#1{\def\@figtabcaptfont@{#1}} -\providecommand\@figtabcaptfont@{\normalfont} -\if@figtabcapt@ -\AtBeginDocument{ -\@ifpackageloaded{caption}{% requested by Progress - \DeclareCaptionLabelFormat{xob-cnm-parens}{\cnm{#1~#2}} - \captionsetup{labelformat=xob-cnm-parens,labelsep=space} -}% -{% - \precaption{{\@figtabcaptfont@\cnm@char@open}} - \captiondelim{{\@figtabcaptfont@\cnm@char@close}\quad} - \renewcommand\cfttablepresnum{\cnm@char@open\tablename\space} - \renewcommand\cfttableaftersnum{\cnm@char@close} - \setlength\cfttablenumwidth{3.8em} - \renewcommand\cftfigurepresnum{\cnm@char@open\figurename\space} - \renewcommand\cftfigureaftersnum{\cnm@char@close} - \setlength\cftfigurenumwidth{4.5em} -} -} -\fi - -%%% LuaTeX, XeTeX logos -\RequirePackage{xparse} -\ExplSyntaxOn -\tl_if_exist:NF \XeTeX -{ - \RequirePackage{hologo} - \ProvideDocumentCommand \XeTeX { } { \hologo{XeTeX} } - \ProvideDocumentCommand \XeLaTeX { } { \hologo{XeLaTeX} } -} -\tl_if_exist:NF \LuaTeX -{ - \RequirePackage{hologo} - \ProvideDocumentCommand \LuaTeX { } { \hologo{LuaTeX} } - \ProvideDocumentCommand \LuaLaTeX { } { \hologo{LuaLaTeX} } -} -\ExplSyntaxOff - -\endinput - -%%% 2015/10/15: \@part, \@chapter renewal. -%%% 2015/08/07: default chapter style, postchapternum (hoze & gromov) diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/memhangul-patch.sty b/language/korean/kotex-oblivoir/memhangul-ucs/memhangul-patch.sty deleted file mode 100644 index b3cf729958..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/memhangul-patch.sty +++ /dev/null @@ -1,20 +0,0 @@ -%% File `memhangul-patch.sty` -%% -%% Copyright (c) 2005-2013 Kangsoo Kim -%% -%% 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. -%% -%% 2005/10/15 -%% some day, this patch has to be weaved into memhangul-use, 1.4, I hope. -%% 2005/12/28 -%% appendix-related minor fix -%% 2006/04/27 -%% remove redundant prerenderunicodes according to dhucs 3.0.0 -%% -\endinput \ No newline at end of file diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/memhangul-ucs.sty b/language/korean/kotex-oblivoir/memhangul-ucs/memhangul-ucs.sty deleted file mode 100644 index cb62187ed8..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/memhangul-ucs.sty +++ /dev/null @@ -1,716 +0,0 @@ -%%% file `memhangul-ucs.sty` -%% -%% (C) Copyright 2006-2013 Kangsoo Kim -%% -%% 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} -\def\filedate{2014/06/12} -\def\fileversion{1.7.7} -\ProvidesPackage{memhangul-ucs}[\filedate UCS Hangul Package for memoir class] -\typeout{memhangul-ucs\space v\fileversion\space \filedate} - -%% Options : -%% interwordHWP, interworddefault -%% nosetspace, quotespacing, -%% gremph -%% nonfrench -%% arabicfront, hangulpagestyle -%% adjustmath -%% finemath -\newif\if@interwordHWP\@interwordHWPfalse -\DeclareOption{interwordHWP}{\@interwordHWPtrue} - -\newif\if@interworddefault\@interworddefaultfalse -\DeclareOption{interworddefault}{\@interworddefaulttrue} - -\newif\if@hsspace\@hsspacetrue -\DeclareOption{nosetspace}{\@hsspacefalse} - -\newcommand\nosetspace{% - \@hsspacefalse -} - -\newif\if@hsspacenoquote\@hsspacenoquotetrue -\DeclareOption{quotespacing}{\@hsspacenoquotefalse} - -\newif\if@nonfrench\@nonfrenchfalse -\DeclareOption{nonfrench}{\PassOptionsToPackage{\CurrentOption}{dhucs}\@nonfrenchtrue} - -\newif\if@nojosa\@nojosafalse -\DeclareOption{nojosa}{\PassOptionsToPackage{\CurrentOption}{dhucs}\@nojosatrue} - -\newif\if@hanja\@hanjafalse -\DeclareOption{hanja}{\PassOptionsToPackage{\CurrentOption}{dhucs}\@hanjatrue} - -\newif\if@finemath\@finemathfalse -\DeclareOption{finemath}{\PassOptionsToPackage{\CurrentOption}{dhucs}\@finemathtrue} - -\newif\if@gremph\@gremphfalse -\DeclareOption{gremph}{\@gremphtrue} - -\newif\if@mathdisp\@mathdispfalse -\DeclareOption{adjustmath}{\@mathdisptrue} - -\newif\if@arabicfrontmatter{\@arabicfrontmatterfalse} -\DeclareOption{arabicfront}{\@arabicfrontmattertrue} - -\newif\if@defaulthangulpagestyle{\@defaulthangulpagestylefalse} -\DeclareOption{hangulpagestyle}{\@defaulthangulpagestyletrue} - -\newif\if@pdfbookmark{\@pdfbookmarkfalse} -\DeclareOption{pdfbookmark}{\@pdfbookmarktrue} - -\newif\if@dvips{\@dvipsfalse} -\DeclareOption{dvips}{\@dvipstrue} - -\DeclareOption{strictcharcheck}{\PassOptionsToPackage{\CurrentOption}{dhucs}} - -%%% figtabcapt -\newif\if@figtabcapt@\@figtabcapt@false -\DeclareOption{figtabcapt}{\@figtabcapt@true} - -%%% dhucs, cjk -\DeclareOption{dhucs}{} -\DeclareOption{cjk}{} - -\ProcessOptions - -\RequirePackage{dhucs}[2007/06/26] - -%% define memh@hu -%hu=0.059375em % 1jw=.95em, 1hu=1/16jw -\newdimen\memh@hu\memh@hu=\dhucs@hu - -\newif\if@inthekoreancontext\@inthekoreancontexttrue - -\AtBeginDocument{% - \@ifpackageloaded{dhucs-trivcj}{% - \newdimen\japparindent\japparindent=1em% -% \def\cjksymbolextraspace{\hskip4em\relax}% - \renewenvironment{japanese}{% - \@inthekoreancontextfalse - \let\ORIGparindent=\parindent - \parindent=\japparindent - \if@afterindent\let\ORIG@afterindent\@afterindenttrue\else - \let\ORIG@afterindent\@afterindentfalse\fi % advised by SUGAI Y. - \let\@afterindentfalse\@afterindenttrue\@afterindenttrue - \SetHanjaFonts{min}{min}{min}\trivcjtypesetting}% - {\@inthekoreancontexttrue - \parindent=\ORIGparindent - \ORIG@afterindent} - \renewenvironment{chinese}{% - \@inthekoreancontextfalse - \let\ORIGparindent=\parindent - \parindent=\japparindent - \SetHanjaFonts{gbsn}{gbsn}{gbsn}\trivcjtypesetting}% - {\@inthekoreancontexttrue - \parindent=\ORIGparindent} - }{}% -} - -%%%% from lucenc.dfu of dhucs -\AtBeginDocument{% not to be affected by textcomp -\DeclareUnicodeCharacter{00B7}% · - {\leavevmode\hbox to.7em{\hss\textperiodcentered\hss}\postcjksymbol}% -} -%\DeclareUnicodeCharacter{3001}% 、 -% {\unkern\hbox to.5em{\unihangulchar{"3001}\hss}\memh@postcjksymkern} -%\DeclareUnicodeCharacter{3002}% 。 -% {\unkern\hbox to.6em{\unihangulchar{"3002}\hss}\memh@postcjksymkern} -%\DeclareUnicodeCharacter{3008}% 〈 -% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3008}}\postcjksymnobreak} -%\DeclareUnicodeCharacter{3009}% 〉 -% {\unkern\hbox to.5em{\unihangulchar{"3009}\hss}\memh@postcjksymkern} -%\DeclareUnicodeCharacter{300A}% 《 -% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"300A}}\postcjksymnobreak} -%\DeclareUnicodeCharacter{300B}% 》 -% {\unkern\hbox to.5em{\unihangulchar{"300B}\hss}\memh@postcjksymkern} -%\DeclareUnicodeCharacter{300C}% 「 -% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"300C}}\postcjksymnobreak} -%\DeclareUnicodeCharacter{300D}% 」 -% {\unkern\hbox to.5em{\unihangulchar{"300D}\hss}\memh@postcjksymkern} -%\DeclareUnicodeCharacter{300E}% 『 -% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"300E}}\postcjksymnobreak} -%\DeclareUnicodeCharacter{300F}% 』 -% {\unkern\hbox to.5em{\unihangulchar{"300F}\hss}\memh@postcjksymkern} -%\DeclareUnicodeCharacter{3010}% 【 -% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3010}}\postcjksymnobreak} -%\DeclareUnicodeCharacter{3011}% 】 -% {\unkern\hbox to.5em{\unihangulchar{"3011}\hss}\memh@postcjksymkern} -%\DeclareUnicodeCharacter{3014}% 〔 -% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3014}}\postcjksymnobreak} -%\DeclareUnicodeCharacter{3015}% 〕 -% {\unkern\hbox to.5em{\unihangulchar{"3015}\hss}\memh@postcjksymkern} -%\DeclareUnicodeCharacter{3016}% 〖 -% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3016}}\postcjksymnobreak} -%\DeclareUnicodeCharacter{3017}% 〗 -% {\unkern\hbox to.5em{\unihangulchar{"3017}\hss}\memh@postcjksymkern} -%\DeclareUnicodeCharacter{3018}% 〘 -% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3018}}\postcjksymnobreak} -%\DeclareUnicodeCharacter{3019}% 〙 -% {\unkern\hbox to.5em{\unihangulchar{"3019}\hss}\memh@postcjksymkern} -%\DeclareUnicodeCharacter{301A}% 〚 -% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"301A}}\postcjksymnobreak} -%\DeclareUnicodeCharacter{301B}% 〛 -% {\unkern\hbox to.5em{\unihangulchar{"301B}\hss}\memh@postcjksymkern} -%\DeclareUnicodeCharacter{FF08}% ( -% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"FF08}}\postcjksymnobreak} -%\DeclareUnicodeCharacter{FF09}% ) -% {\unkern\hbox to.5em{\unihangulchar{"FF09}\hss}\memh@postcjksymkern} - -%% We will use E-TEX -%\RequirePackage{etex} - -%% memoir [ms] option -\ifmsdoc -\newcommand*\MSNormalSize{ - \let\large\normalsize - \let\Large\normalsize - \let\LARGE\normalsize - \let\huge\normalsize - \let\Huge\normalsize - \let\HUGE\normalsize - \let\small\normalsize - \let\scriptsize\normalsize - \let\footnotesize\normalsize - \let\tiny\normalsize - } -\AtBeginDocument{ - \let\dhucs@serifhangulfont\dhucs@monohangulfont - \let\dhucs@sanshangulfont\dhucs@monohangulfont - \let\dhucs@serifhanjafont\dhucs@monohanjafont - \let\dhucs@sanshanjafont\dhucs@monohanjafont - \setInterHangulSkip{\z@} - \renewcommand{\msdoublespacing}{% - \renewcommand{\baselinestretch}{1.75}\large\normalsize} - \renewcommand{\mssinglespacing}{% - \renewcommand{\baselinestretch}{1.1}\large\normalsize} - \renewcommand{\familydefault}{cmtt} - \renewcommand{\rmdefault}{cmtt} - \renewcommand{\sfdefault}{cmtt} - \renewcommand{\bfdefault}{m} - \renewcommand{\itdefault}{n} - \renewcommand{\sldefault}{n} - \renewcommand{\scdefault}{n} - \renewcommand{\baselinestretch}{1.75} - \@twocolumnfalse - \onecolumn - \sloppy - \@twosidefalse - \raggedbottom - \pagestyle{plain} -} -\fi - -%% load hyperref for pdf bookmarks. -%% to configure hyperref, you can use \hypersetup command. -%%%%% 1.4.4b -> disable CJKbookmarks, just use dhucs-ucshyper -%% 2007/06/03. drop dhucs-ucshyper -\if@pdfbookmark - \@ifpackageloaded{hyperref}{% hyperref is already loaded - \typeout{hyperref is already loaded!}% - \RequirePackage{memhfixc}}% - {% - \if@dvips - \RequirePackage[dvips,unicode]{hyperref}% - \else - \ifpdf - \RequirePackage[pdftex,unicode]{hyperref}% - \else - \RequirePackage[dvipdfm,unicode]{hyperref}% - \fi - \fi - \RequirePackage{memhfixc}} -\fi - -%% from ucs-hangul.tex -% \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} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% 한글 관련 이름 설정 (not from hangul.sty) - -\if@hanja -\def\today{\number\year 年~\number\month 月~\number\day 日} -\def\enclname{同封物} -\def\ccname{寫本} -\def\headtoname{受信人} -\def\seename{\을~參照} -\def\alsoname{\을~參照} -\def\contentsname{目~次} -\def\listfigurename{圖~目次} -\def\listtablename{表~目次} -\def\refname{參考~文獻} -\def\indexname{索~引} -\def\tablename{表} -\def\figurename{圖} -\def\abstractname{要~約} -\def\bibname{參考~圖書} -\def\appendixname{附錄} -\def\subappendixname{附錄} -\def\appendixtocname{附~錄} -\def\appendixpagename{附~錄} -\def\partname{篇} -\def\chaptername{章} -\def\sectionname{節} -\def\colorlayer{色相레이어} -\def\glossaryname{語彙} -\def\figurerefname{圖} -\def\tablerefname{表} -\def\pagename{面} -\def\pagerefname{面} -\def\partrefname{篇} -\def\chapterrefname{章} -\def\sectionrefname{\S} -\else -\def\today{\number\year 년~\number\month 월~\number\day 일} -\def\enclname{동봉물} -\def\ccname{사본} -\def\headtoname{받는이} -\def\seename{\을~참조} -\def\alsoname{\을~함께~참조} -\def\contentsname{차~례} -\def\listfigurename{그림~차례} -\def\listtablename{표~차례} -\def\refname{참고~문헌} -\def\indexname{찾아보기} -\def\tablename{표} -\def\figurename{그림} -\def\abstractname{요~약} -\def\bibname{참고~문헌} -\def\appendixname{부록} -\def\subappendixname{부록} -\def\appendixtocname{부~록} -\def\appendixpagename{부~록} -\def\partname{편} -\def\chaptername{장} -\def\sectionname{절} -\def\colorlayer{환등판~색상} -\def\glossaryname{용어집} -\def\figurerefname{그림} -\def\tablerefname{표} -\def\pagename{페이지} -\def\pagerefname{페이지} -\def\partrefname{편} -\def\chapterrefname{장} -\def\sectionrefname{\S} -\fi - -%% \marginparswitchtrue/false -\providecommand{\marginparswitchtrue}{\@mparswitchtrue} -\providecommand{\marginparswitchfalse}{\@mparswitchfalse} -\providecommand{\reversemargintrue}{\@reversemargintrue} -\providecommand{\reversemarginfalse}{\@reversemarginfalse} - -%% select textwidth with chars -\def\testh@ng@lch@r@cters{가갸거겨고교구규그기} -\newlength\t@nch@ars -\newcommand*\setxxxlength[2]{% - \setbox0\hbox{\testh@ng@lch@r@cters}\setlength\t@nch@ars{\wd0}% - \@ifundefined{#1length}{\expandafter\newlength\csname #1length\endcsname}{}% - \expandafter\setlength\csname #1length\endcsname{#2\t@nch@ars}% - \expandafter\divide\csname #1length\endcsname by 10% -} - -%%% kscntformat -%%% HLaTeX의 \kscntformat 명령을 흉내냄 -%%% \kscntformat{section}{제}{절} 형식으로 쓴다. -\newsavebox{\tmp@XXbox} -\newdimen\tmp@XXdim -\def\kscntformat#1#2#3{% - \sbox{\tmp@XXbox}{#2\expandafter\number\csname c@#1\endcsname#3}% - \setlength\tmp@XXdim{\wd\tmp@XXbox}\advance\tmp@XXdim by1em% - \expandafter\def\csname the#1\endcsname{#2\expandafter\number\csname c@#1\endcsname#3}% - \expandafter\renewcommand\csname cft#1numwidth\endcsname{\tmp@XXdim}% - \expandafter\renewcommand\csname cft#1presnum\endcsname{}% - \expandafter\renewcommand\csname cft#1aftersnum\endcsname{}% -} - -\AtBeginDocument{% -\ifnokorean\else -\ifkosection -\kscntformat{section}{제\,}{\,절} -\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}} -\fi\fi -} - -\RequirePackage{memhangul-common} - -%%% default linespacing for Hangul Documents -%%% interword -\if@interwordHWP - \RequirePackage[HWP]{memucs-interword} -\else -\if@interworddefault - \RequirePackage[default]{memucs-interword} -\else -\if@nonfrench - \RequirePackage[nonfrench]{memucs-interword} -\else - \RequirePackage{memucs-interword} -\fi\fi\fi -\AtBeginDocument{\memucsinterwordhook} - -%%% hsetspace for memucs -\if@hsspace - \RequirePackage[hangul,adjustverbatim,adjustfootnotesep]{memucs-setspace} - \if@hsspacenoquote\else\adjustquotespacing\fi -\else - \RequirePackage{memucs-setspace} - \linespread{1.333} -\fi -%\SetHangulspace{1.333}{1.1} - -%% GrEmph -\newif\if@bfem\@bfemfalse -\def\bfemtrue{\@bfemtrue} -\def\bfemfalse{\@bfemfalse} - -\if@unfont -\if@bfem - \def\GrEmphFont{outbt} - \def\GrEmphHanjaFont{outbt} -\else - \def\GrEmphFont{outgr} - \def\GrEmphHanjaFont{outgt} -\fi -\else -\if@bfem - \def\GrEmphFont{nanummj} - \def\GrEmphHanjaFont{uhcmj} -\else - \def\GrEmphFont{nanumgt} - \def\GrEmphHanjaFont{nanumgt} -\fi -\fi -\def\SetGremphFonts#1#2{% - \def\GrEmphFont{#1}% - \def\GrEmphHanjaFont{#2}% -} -\@onlypreamble\SetGremphFonts - -\AtBeginDocument{% -\if@gremph\if@bfem - \RequirePackage[gremphhangul=\GrEmphFont,gremphhanja=\GrEmphHanjaFont,bfemph]{memucs-gremph} -\else - \RequirePackage[gremphhangul=\GrEmphFont,gremphhanja=\GrEmphHanjaFont]{memucs-gremph} -\fi\fi -} - -%% 한글 기호문자 -\DeclareUnicodeCharacter{00BC}% 1/4 - {\textsuperscript1\kern-.45em\unichar{65295}\kern-.45em\textsubscript4}% uni-0.def -\DeclareUnicodeCharacter{00BD}% 1/2 - {\textsuperscript1\kern-.45em\unichar{65295}\kern-.45em\textsubscript2}% uni-0.def -\DeclareUnicodeCharacter{00BE}% 3/4 - {\textsuperscript3\kern-.45em\unichar{65295}\kern-.45em\textsubscript4}% uni-0.def -\DeclareUnicodeCharacter{02D0}% ː - {\unihangulchar{"02D0}} -\DeclareUnicodeCharacter{2025}% ‥ - {\unihangulchar{"2025}} -\DeclareUnicodeCharacter{2026}% … - {\unihangulchar{"2026}} -\DeclareUnicodeCharacter{2015}% ― - {\nobreak\hskip\memh@hu\unihangulchar{"2015}\hskip\memh@hu\relax} -\DeclareUnicodeCharacter{2312}% ⌒ - {\unihangulchar{"2312}} - -%% BANGJEOM emphasis : extension. (inspired from hangul.sty) - -\def\circemphchar{˚} -\def\dotemphchar{˙} -\def\bfdotemphchar{\textbf{˙}} -\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\bfdotemph#1{\begingroup - \get@dhucs@mphheight{#1}% - \let\dhucs@emph\dhucs@bfdot@emph - #1\endgroup} - -\def\dhucs@bfdot@emph#1{% - \settowidth{\dhucs@emph@width}{#1}% - \put@dhucs@mphch@r{\bfdotemphchar}% -} - -%\ifx\hfontfamilynameprefix\UnPrefix\let\dotemph\bfdotemph\fi - -\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@ - -\def\@@user@emph#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{% - \settowidth{\dhucs@emph@width}{#1}% - \put@dhucs@mphch@r{\useremphchar}% -} - -\g@addto@macro\pdfstringdefPreHook{% - \let\circemph\@firstofone - \let\useremph\@firstofone -} - -\RequirePackage{xparse} -\ExplSyntaxOn - -\dim_new:N \tmp_user_emph_dim -\dim_set:Nn \tmp_user_emph_dim { 1ex } -\tl_set:Nn \tmp_user_emph_char { ˚ } -\DeclareDocumentCommand \useremph { o o m } -{ - \IfValueT { #1 } - { - \tl_if_empty:nF { #1 } - { - \settoheight \tmp_user_emph_dim { #3 } - \dim_add:Nn \tmp_user_emph_dim { #1 } - } - } - \IfValueT { #2 } - { - \tl_if_empty:nF { #2 } - { - \tl_set:Nn \tmp_user_emph_char { #2 } - } - } - - \dim_set_eq:NN \useremphraisedim \tmp_user_emph_dim - \tl_set_eq:NN \useremphchar \tmp_user_emph_char - \@@user@emph{#3} -} - -\ExplSyntaxOff - -\def\useremphstarblack{\tiny★} -\def\useremphstarwhite{\tiny☆} - -\endinput - -% CHANGE LOG -% -% 2014/06/15: \useremph[raise][char]{text} compatible to xoblivoir -% 2014/06/12: \if@unfonts => \if@unfont -% 2013/10/22: introduce memhangul-common.sty -% 2013/10/16: [kosection] bug fix -% 2013/09/27: xoblivoir-related fixes. -% 2012/12/02: drop shipout hacking codes. (problem solved) -% 2012/11/22. [figtabcapt] -% 2009/04/02. redefine mem@shipii. -% 2009/02/11. memoir v1.6180339e compatibility mend 1. -% titleref, hangul page style. -% 2007/11/18. add \alsoname definition -% 2007/09/09. remove test code -% 2007/08/06. add \expldash command -% 2007/07/15. no changes. part of ko.TeX -% 2007/06/26. introduce [strictcharcheck], acc. dhucs 4.0.6 -% 2007/06/14. follow up dhucs 4.0.1, rename a few cs. -% 2007/06/07. indent first in japanese env. -% 2007/06/03. dhucs hfontspec etc. -% 2007/05/20. memh@cjksymbolskip & memh@postcjksymkern, cntrdot etc. -% 2007/05/16. ver 1.5.0 (dhucs 4.0) -% ================================== -% -% 2004/12/30. dhhangul-ucs-test 2004/12/30 버전을 반영함. -% 폰트 설정 명령을 \DeclareRobustCommand로 함. -% 한글 section 카운터 관련 수정. -% -% 2004/12/31. dhhangul-ucs-test 2004/12/31 버전을 반영함. -% -% 2005/01/02. -% * heading, ruled, Ruled의 헤딩 폰트가 달라지는 것을 수정. -% * slshape, itshape의 폰트 교란을 수정. -% * \hanjanum, \hNum 카운터 포맷, demovar chapter style 추가. -% -% 2005/01/04 -% * dhucs 2005/01/04 반영. -% * nonfrench 괄호 문제 개선. -% * 확장한자 개선. -% -% 2005/01/05 -% * \unichar 재정의(dhucs 20050105) -% * .aux에 \PrerenderUnicode를 씀. -% * \GrEmph 옵션 도입. -% -% 2005/01/07 -% * \GrEmph 수정. \bfemtrue, \bfemfalse -% * \josa@hyper@link 수정(dhucs 1.1) -% * \utf@viii@undeferr의 경우 \jobname.pru에 \PrerenderUnicode를 씀(after dhucs) -% * renew \makeindex because of conflicts between \utf@viii@undeferr and \@index -% * \HArabic counter added. -% -% 2005/01/15 -% * require dhucs. -% * drop including kshangul.prerenders -% * release. -% -% 2005/01/20 -% * \index를 memoir의 3-pass 방식으로 되돌림 -% -% 2005/01/29 -% * memucs-setspace 변경 -% * companion pagestyle 변경 -% -% 2005/01/31 -% * 한글 특수문자 정의 -% -% 2005/02/08 -% * mempatch 3.5 적용. -% * revive interwordchapterskiphook -% * minor fixes. -% -% 2005/02/11 -% * marginparswitch added. -% -% 2005/02/14 -% * disable \MakeUppercase redefinition after dhucs 2.0 -% * release 1.0 -% -% 2005/02/22 -% * \chapter definition retrieved to original memoir manner. -% * \titleref bug(memoir) fixed. -% * \appendix chapter PDF bookmarks hyperlink problem improved. -% -% 2005/02/23 -% * revised 1.1v -% * PROBLEM unsolved : -% -% 2005/02/23 -% * revised. 1.1x -% * dhucs (plain)1.6과 함께 사용함. -% -% 2005/04/22 -% * gremph 관련 수정. 1.1x1 -% * memucs-gremph.sty 추가 -% -% 2005/04/24 -% * 드러냄표 구현. -% * dhucs-plain 1.7. -% * \normalfont로 고침. -% -% 2005/04/26 -% * 드러냄표. dhucs 2.2를 따름. -% -% 2005/06/06 -% * pdf bookmark hyperlink to APPENDIX sections problem fixed. -% -% 2005/06/28 -% * drop dhucs-plain, dhucs 2.4 -% -% 2005/07/08 -% * improve \titleref -% -% 2005/07/17 -% * reintroduce chapter \PrerenderUnicode's -% -% 2005/07/30 -% * fix the bug that [noquotespacing] option has no effects. -% -% 2005/08/05 -% * change after dhucs 2.6 -% * adjustmath option added. -% -% 2005/08/09 -% * pagestyle hangul added. -% * [hangulpagestyle], [arabicfront] options. -% * \explpunc defined. -% * \partmark added. -% * \bfdotemph added. -% -% 2005/08/12. ver 1.3 -% * \divnote test version. -% * \chapterindentfirst added. -% * \cntrdots added. -% -% 2005/09/09. ver 1.31 -% * memucs-setspace default changed. quote/quotation normal interline. -% -% 2005/09/21. ver 1.32 -% * [ms] option. -% -% 2005/10/15. ver 1.4.1 -% * introduce memhangul-patch.sty to make compatible with memoir 1.618 -% -% 2005/10/19 ver 1.4.2 -% * appendix-related bug fix -% -% 2005/10/29 ver 1.4.3 -% * mended appendix-related problems -% * introduced [pdfbookmark] option. -% * TODO. figs & tables in appendix hyperlinks have problems. -% -% 2005/10/30 ver 1.4.4 -% * CJKbookmark option added to hyperref -% -% 2006/04/19 ver 1.4.4b -% * drop CJKbookmarks hyperref option, just use dhucs-ucshyper -% * [dvips] option added. -% * reject dhucs 2.7.2 autojosa routine, adopt previous version -% -% 2006/04/27 ver 1.4.4f -% * adopt dhucs 3.0.0 -% -% 2006/06/25 ver 1.4.4g -% * suppress auto loading etex.sty -% -%% end of file `memhangul-ucs.sty` diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/memucs-enumerate.sty b/language/korean/kotex-oblivoir/memhangul-ucs/memucs-enumerate.sty deleted file mode 100644 index c3fd53f85e..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/memucs-enumerate.sty +++ /dev/null @@ -1,49 +0,0 @@ -%% File `memucs-enumerate.sty` -%% -%% (C) Copyright 2006-2013 Dohyun Kim -%% Kangsoo Kim -%% -%% 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{memucs-enumerate} - [2006/07/01 partially support enumrate in memoir under memhangul] - -%\@ifpackageloaded{enumerate}{}{\RequirePackage{enumerate}} - -\g@addto@macro\@enhook{% - \ifx^^ea\@entemp % 가, - \let\@memtempa\@dhucs@enumerate\else %%%%% - \ifx^^e2\@entemp % ①, ⑴, ⒜, ⓐ, ⅰ, Ⅰ - \let\@memtempa\@dhucs@enumerate\else %%%%% - \ifx^^e3\@entemp % ㄱ, ㉠, ㉮, ㈀, ㈎ - \let\@memtempa\@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/language/korean/kotex-oblivoir/memhangul-ucs/memucs-gremph.sty b/language/korean/kotex-oblivoir/memhangul-ucs/memucs-gremph.sty deleted file mode 100644 index 475fa8238c..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/memucs-gremph.sty +++ /dev/null @@ -1,115 +0,0 @@ -%% File `memucs-gremph.sty` -%% -%% Copyright (c) 2006-2014 Kangsoo Kim -%% -%% 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{memucs-gremph} - -\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@unfont - \if@vargremphhangulfont\else - \def\GrEmphFont{outgr}\fi - \if@vargremphhanjafont\else - \def\GrEmphHanjaFont{outgt}\fi -\else - \if@vargremphhangulfont\else - \def\GrEmphFont{nanumgt}\fi - \if@vargremphhanjafont\else - \def\GrEmphHanjaFont{nanumgt}\fi -\fi -%\fi -%\def\SetGremphFonts#1#2{% -% \def\GrEmphFont{#1}% -% \def\GrEmphHanjaFont{#2}% -%} - -\if@bfem -\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 - -\if@gremph -\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}} -\else\fi -\def\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}}% -} -\def\ungremph{% - \@gremphfalse - \DeclareRobustCommand*{\itshape}% - {\not@math@alphabet\itshape\mathit - \fontshape\itdefault\selectfont}% - \DeclareRobustCommand\slshape - {\not@math@alphabet\slshape\relax - \fontshape\sldefault\selectfont}% -} -% \slhangul -\def\slhangul#1{% - \bgroup - \fontshape{sl}\selectfont #1\egroup -} - -\endinput - -% end of style. -% -% CHANGE LOG. -% * 2014/06/12. \if@unfonts => \if@unfont -% * 2007/08/02. redundant space bug fix -% * 2007/06/08. \slshape independent from \itshape -% * 2005/08/17. \slhangul added. diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/memucs-interword.sty b/language/korean/kotex-oblivoir/memhangul-ucs/memucs-interword.sty deleted file mode 100644 index e4e3f2f3ea..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/memucs-interword.sty +++ /dev/null @@ -1,160 +0,0 @@ -%% File `memucs-interword.sty` -%% -%% Copyright (c) 2007-2013 Kangsoo Kim -%% -%% 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{memucs-interword}[2007/09/22] - -\def\memucsinterwordskip{} -\def\memucsinterwordchapterskip{} -\def\memucshangulskips{} - -\newif\if@nonfrench\@nonfrenchfalse -\DeclareOption{nonfrench}{% - \@nonfrenchtrue} -\DeclareOption{HWP}{% - \def\memucsinterwordskip{\HWPinterwordskip}} -\DeclareOption{default}{% - \@nonfrenchtrue\def\memucsinterwordskip{\DEFAULTskips}\interHchar{0pt}} -\DeclareOption{wider}{% - \def\memucshangulskips{\widerhangul}} -\DeclareOption{narrower}{% - \def\memucshangulskips{\narrowerhangul}} -%\DeclareOption*{% -% \def\memucsinterwordskip{\DEFAULTskips}% -%} - -%\newlength\dimen@skip -%\setlength\dimen@skip{.1pt} - -%% finemath active. -\if@dhucsfinemath\else\@dhucsfinemathtrue\fi - -%\let\interhchar\setInterHangulSkip -\newcommand*\interHchar[1]{\setInterHangulSkip{#1}} -\let\interhchar\interHchar - -\newcommand*\interhword[4][\@empty]{% - \ifx#1\@empty\setinterwordskip{#2}{#3}{#4}\else - \setinterwordskip[#1]{#2}{#3}{#4}\fi -} - -\def\narrowerhangul{% - \def\memucshangulskips{% - \interHchar{-.5pt}% - }% -} -\def\widerhangul{% - \def\memucshangulskips{% - \interHchar{1pt}% - }% -} - -\newdimen\BASE@FONTsize -\BASE@FONTsize=\f@size\p@ - -\def\HWPinterwordskip{% - \def\memucshangulskips{% - \interHchar{0pt}% - }% - \def\memucsinterwordskip{% - \spaceskip = .475\BASE@FONTsize plus .25\BASE@FONTsize minus .1331\BASE@FONTsize - \if@nonfrench - \xspaceskip = .6\BASE@FONTsize plus .2\BASE@FONTsize minus .1\BASE@FONTsize - \fi - }% - \def\memucsinterwordchapterskip{% - \spaceskip = .5\BASE@FONTsize plus .1\BASE@FONTsize minus .05\BASE@FONTsize - \if@nonfrench - \xspaceskip = .65\BASE@FONTsize plus .2\BASE@FONTsize minus .1\BASE@FONTsize - \fi - }% -} - -\def\setinterwordskip{\@ifnextchar[\setinterwordskip@\setinterwordskip@@} -\def\setinterwordskip@[#1]#2#3#4{% - \def\memucsinterwordskip{% - \spaceskip = #2\BASE@FONTsize plus #3\BASE@FONTsize minus #4\BASE@FONTsize - \if@nonfrench - \xspaceskip = #1\BASE@FONTsize plus #3\BASE@FONTsize minus #4\BASE@FONTsize - \fi - }% -} - -\def\setinterwordskip@@#1#2#3{% - \def\memucsinterwordskip{% - \spaceskip = #1\BASE@FONTsize plus #2\BASE@FONTsize minus #3\BASE@FONTsize - \if@nonfrench - \xspaceskip = .6\BASE@FONTsize plus #2\BASE@FONTsize minus #3\BASE@FONTsize - \fi - }% -} - -\def\DEFAULTskips{% - \def\memucshangulskips{% -% \interHchar{0pt}% - }% - \def\memucsinterwordskip{% - \spaceskip = .413\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize - \if@nonfrench - \xspaceskip = .55\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize - \fi - }% - \def\memucsinterwordchapterskip{% - \spaceskip = .46\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize - \if@nonfrench - \xspaceskip = .575\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize - \fi - }% -} - -\ProcessOptions\relax - -\def\verbatim@font{\m@mverbfont\spaceskip\z@ - \hyphenchar\font\m@ne - \let\do\do@noligs - \verbatim@nolig@list} - -\def\narrowerinterhword{% - \spaceskip=.331\BASE@FONTsize plus .111\BASE@FONTsize minus .1\BASE@FONTsize - \if@nonfrench - \xspaceskip=.466\BASE@FONTsize plus .05\BASE@FONTsize minus .05\BASE@FONTsize - \fi -} - -\def\memucsinterwordhook{\memucsinterwordskip\memucshangulskips}% -\def\memucsinterwordchapterskiphook{\memucsinterwordchapterskip\memucshangulskips}% -\def\memucsfninterwordhook{\narrowerinterhword}% - -% 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 - -%% CHANGE LOG -% 2005/01/07. code clearance -% 2005/02/08. reset interwordchapterskip values -% 2005/05/17. engtext env. added. -% 2005/07/30. replace em by \BASE@FONTsize -% 2005/08/05. nonfrench option introduced. -% 2005/11/17. \interhword bug fixed. -% 2007/06/03. dhucs 4.0 hfontspec applied diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/memucs-setspace.sty b/language/korean/kotex-oblivoir/memhangul-ucs/memucs-setspace.sty deleted file mode 100644 index 8db9d17acf..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/memucs-setspace.sty +++ /dev/null @@ -1,587 +0,0 @@ -%% File `memucs-setspace.sty` -%% -%% Copyright (c) 2007-2013 Kangsoo Kim -%% -%% 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. -%% -%% ======================= -%% -%% 이 스타일은 setspace 6.7을 바탕으로, memoir의 -%% 출력루틴을 hooking하여 거의 동일하게 동작하도록 -%% 수정한 스타일이다. -%% memoir 클래스에서 memhangul 스타일을 사용했을 때 -%% 불린다. 다른 용도로는 사용할 수 없음. -%% -%% This style is a modified version of SETSTYLE ver 6.7 by Erica M. S. Harris -%% modified by Karnes Kim -%% -%% FEATURES: -%% all the features of setstyle package -%% -%% NEW FEATURES: -%% -%% 1. [nofloatspacing] option -%% disables the feature of SETSTYLE, turning off all the line spacing -%% in the floats(figures, tables) and footnotes. -%% \noadjustfloatfnspacing, \adjustfloatfnspacing -%% 2. [hangul] option -%% When [hangul] option is on, the basic line spreading is set to -%% a proper line spacing in Korean(Hangul) documents, which has -%% a wider gap between the lines. -%% \SetHangulspace -%% 3. quote and quotation environment -%% quote and quotation environment have the same line spacing -%% with the floats and footnotes, verse. -%% \noadjustquotespacing, \adjustquotespacing -%% 4. [adjustfootnotesep] option -%% this option is meaningful only when [hangul] is on and -%% [nofloatspacing] off. -%% 5. [adjustverbatim] option. -%% verbatim environment. -%% \SetHangulVerbatimSpace. -%% 6. \ResetHangulspace, \RestoreHangulspace -%% - -\NeedsTeXFormat {LaTeX2e}[1994/12/09] -\def \filename {memucs-setspace.sty} -\def \filedate {2007/09/21} -\def \fileversion {6.7-memucs8} -\ProvidesPackage {memucs-setspace}[\filedate\space\fileversion\space - Contributed and Supported LaTeX2e package] -\typeout {Package: `memucs-setspace', a modified version of `setspace', \fileversion\space <\filedate>} - -% BP: add nodisplayskipstretch option and \setdisplayskipstretch command. - -\newcommand{\displayskipstretch}{\baselinestretch} -\newcommand{\setdisplayskipstretch}[1]{\renewcommand{\displayskipstretch}{#1}} -\DeclareOption{nodisplayskipstretch}{\setdisplayskipstretch{1.0}} - -% GT: add George Pearsons' suggested options. - -%% Karnes' -\newif\if@singlespacefn -\DeclareOption{nofloatspacing}{\@singlespacefnfalse} -\newif\if@singlespacequote -\DeclareOption{quotespacing}{\@singlespacequotetrue} -\newif\if@hangul -\DeclareOption{hangul}{\@hangultrue\AtEndOfPackage{\hangulspacing}} -\newif\if@adjustfootnotesep -\DeclareOption{adjustfootnotesep}{\@adjustfootnoteseptrue} -\newif\if@adjustverbatim -\DeclareOption{adjustverbatim}{\@adjustverbatimtrue} - -\DeclareOption{singlespacing}{\AtEndOfPackage{\singlespacing}} -\DeclareOption{onehalfspacing}{\AtEndOfPackage{\onehalfspacing}} -\DeclareOption{doublespacing}{\AtEndOfPackage{\doublespacing}} - -\@singlespacefntrue -\@singlespacequotefalse -\@hangulfalse -\@adjustfootnotesepfalse -\@adjustverbatimfalse -\ProcessOptions - -%%% provide memucsfninterwordhook -\ifx\undefined\memucsfninterwordhook - \providecommand\memucsfninterwordhook{}% -\fi - -\def\@floatfnspacinghook{% - \if@singlespacefn - \hangulfspacing - \else - \hangulspacing - \fi -} - -\newcommand\noadjustquotespacing{% - \@singlespacequotefalse -} - -\newcommand\adjustquotespacing{% - \@singlespacequotetrue -} - -\newcommand\adjustfloatfnspacing{% - \@singlespacefntrue -} - -\newcommand\noadjustfloatfnspacing{% - \@singlespacefnfalse -} - -% GT: Sat 28 Sep 1996: Widely using \newcommand, \renewcommand, and -% \newenvironment, instead of \def. - -% ** Line space commands. - -\newcommand{\setstretch}[1]{% - \def\baselinestretch{#1}% - \@currsize -} - -% GT: Sat 28 Sep 1996: spacing commands and environments modified to -% use \setstretch instead of \baselinestretch. -% -% GT: Sat 28 Sep 1996: No, I don't know understand the line spacing -% algorithms! If someone (LaTeX team) can enlighten me as to the -% general rule, please do! It would be very pleasant if setspace.sty -% were suited for document font sizes other than 10, 11 and 12 pt. -% -% GT: Tue 10 Dec 1996: Instead of fixing singlespacing to exact unity, -% allow user to redefine it (only slightly, please!) from its initial -% value of unity, in the case when a particular font is slightly larger -% or slightly smaller than its point size would indicate. This change -% affects setspace's single spacing commands, and LaTeX's footnote and -% float environments. The one and a half, double, and arbitrary -% spacing commands are unaltered. - -\newcommand{\SetSinglespace}[1]{% - \def\setspace@singlespace{#1}% -} - -%% 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}% -} - -\let\tmp@current@hangulspace\setspace@hangulspace -\let\tmp@current@hangulfspace\setspace@hangulfspace - -\newcommand{\ResetHangulspace}[2]{% - \let\tmp@current@hangulspace\setspace@hangulspace% - \let\tmp@current@hangulfspace\setspace@hangulfspace% - \Set@Hangulspace{#1}{#2}% -} - -\newcommand{\RestoreHangulspace}{% - \Set@Hangulspace{\tmp@current@hangulspace}{\tmp@current@hangulfspace}% -} - -% Here's the default single line spacing value. -\SetSinglespace{1} - -%% Karnes. -\if@hangul -\Set@Hangulspace{1.333}{1.1} -\else -\Set@Hangulspace{1.0}{1.0} -\fi - -\newcommand{\singlespacing}{% - \setstretch {\setspace@singlespace}% normally 1 - \vskip \baselineskip % Correction for coming into singlespace -} - -%% Karnes. -\newcommand{\hangulspacing}{% - \setstretch{\setspace@hangulspace}% default -} - -\newcommand{\hangulfspacing}{% - \setstretch{\setspace@hangulfspace}% -} - -\newcommand{\hangulverbspacing}{% - \setstretch{\setspace@hangulverbspace}% -} - -\newcommand{\onehalfspacing}{% - \setstretch{1.25}% default - \ifcase \@ptsize \relax % 10pt - \setstretch {1.25}% - \or % 11pt - \setstretch {1.213}% - \or % 12pt - \setstretch {1.241}% - \fi -} - -\newcommand{\doublespacing}{% - \setstretch {1.667}% default - \ifcase \@ptsize \relax % 10pt - \setstretch {1.667}% - \or % 11pt - \setstretch {1.618}% - \or % 12pt - \setstretch {1.655}% - \fi -} - -%% 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 - -% ** Modification of the LaTeX command \@setsize. - -%---Stretch the baseline BEFORE calculating the strut size. This improves -% spacing below tabular environments etc., probably... -% Comments are welcomed. - -% GT: Sun 29 Sep 1996: Question: Is this code anywhere near correct -% since this part of LaTeX (in, eg, latex.ltx) has been greatly changed? - -% GT: Sun 29 Sep 1996: The meanings of the arguments to \@setsize -% appear to be (whatever these may signify) : -% current size; font baselineskip; ignored (!); and font size. - -% GT: Sun 29 Sep 1996: Note that \@setsize (in latest LaTeX, -% \@setfontsize, which is called by \@setsize) seems to be the only -% place in purely modern LaTeX where \@currsize is set, and ltxguide.cls -% seems to be the only file in the LaTeX base distribution that uses it! - -\def\@setsize#1#2#3#4{% - % Modified 1993.04.07--GDG per KPC - \@nomath#1% - \let\@currsize#1% - \baselineskip #2% - \baselineskip \baselinestretch\baselineskip - \parskip \baselinestretch\parskip - \setbox\strutbox \hbox{% - \vrule height.7\baselineskip - depth.3\baselineskip - width\z@}% - \skip\footins \baselinestretch\skip\footins - \normalbaselineskip\baselineskip#3#4} - -% ** Float and footnote adjustments to compensate for a change in the -% ** main text's line spacing. - -%---Increase the space between last line of text and footnote rule. -%\skip\footins 20pt plus4pt minus4pt - -%---Reset baselinestretch within floats and footnotes. - -% GT: Tue 23 Jan 1996: This is where the conflict with the combination -% of the color package and the figure environment used to occur. - -% Floats. - -% GT: Sat 28 Sep 1996: \@xfloat is the only place where \normalsize -% is still used in setspace.sty ! - -\if@singlespacefn -\let\latex@xfloat=\@xfloat -\def\@xfloat #1[#2]{% - \latex@xfloat #1[#2]% - \if@singlespacefn - \def\baselinestretch {\setspace@hangulfspace} - \else - \def\baselinestretch {\setspace@hangulspace} - \fi - \normalsize -} -\else\fi - -% Karnes: footnotesep for hangul -\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 - -% GT: Wed 24 Jan 1996: This footnote code was copied from LaTeX and -% modified rather naively. It had to be brought up to date, not only -% because of LaTeX's new color ability, but also because ther had -% been major changes to this code in LaTeX at least as far back as -% March 1992. - -% Normal, bottom of the page, footnotes. -% -% GT: Based HEAVILY on original LaTeX (2e) code. A standard hook would -% be MUCH preferred, so that LaTeX's footnote implementation needn't be -% copied each time it changes. -% -% GT: The \protected@edef requires at least the December 1994 LaTeX. -% This is precisely the kind of VERSION DEPENDENCY situation that -% cannot (AFAIK) be avoided, because LaTeX (2e) LACKS appropriate -% standard hooks and/or context markers. -\if@singlespacefn -\def\m@mold@footnotetext{\@memsetspace@footnotetext} -\renewcommand{\@footnotetext}[1]{\m@mold@footnotetext{#1}\m@mmf@prepare} -\long\def\@memsetspace@footnotetext#1{% - \insert\footins{% -% GT: Next line added. Hook desired here! - \@floatfnspacinghook\memucsfninterwordhook -% \def\baselinestretch {\setspace@hangulfspace}% -% \@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. -\renewcommand{\@mpfootnotetext}[1]{% - \global\setbox\@mpfootins\vbox{% - \unvbox\@mpfootins -% GT: Next line added. Hook desired here! - \@floatfnspacinghook\memucsfninterwordhook -% \def\baselinestretch {\setspace@hangulfspace}% - \foottextfont \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 - -% ** Line space environments. - -% A single spaced quote (say) is done by surrounding singlespace with quote. - -\newenvironment{singlespace}{% - \vskip \baselineskip - \setstretch {\setspace@singlespace}% - \vskip -\baselineskip -}{% - \par -} - -% GT (c/o Mark Olesen), Wed 15 April 1998. - -\newenvironment{singlespace*}{% - \setstretch {\setspace@singlespace}% - \vskip -\baselineskip -}{% - \vskip -0.5\baselineskip -} - -% spacing, doublespace and onehalfspace all are meant to INCREASE the -% spacing (i.e. calling onehalfspace from within doublespace will not -% produce a graceful transition between spacings) -% -% Next two definitions fixed for consistency with TeX 3.x - -% In order to use \newenvironment, while easily using same code for -% end of each environment, the code that used to be in \endspacing has -% been moved into a new (but internal) macro, \restore@spacing. - -\newcommand{\restore@spacing}{% - \par - \vskip \parskip - \vskip \baselineskip - \endgroup - \vskip -\parskip - \vskip -\baselineskip -} - -\newenvironment{spacing}[1]{% - \par - \begingroup % moved from \endspacing by PGBR 29-1-91 - \setstretch {#1}% -}{% - \restore@spacing -} - -% one and a half spacing is 1.5 x pt size -\newenvironment{onehalfspace}{% - \begingroup - \onehalfspacing -}{% - \restore@spacing -} - -% double spacing is 2 x pt size -\newenvironment{doublespace}{% - \begingroup - \doublespacing -}{% - \restore@spacing -} - -%% quote and quotation environment : Karnes. -\def\@quotespacinghook{% - \if@singlespacequote - \hangulfspacing% - \else - \hangulspacing% - \fi -} - -\renewenvironment{quotation}% - {\list{}{\listparindent 1.5em% - \itemindent \listparindent - \rightmargin \leftmargin - \parsep \z@ \@plus\p@}% -% \memhangulinterwordhook - \item[]% - \@quotespacinghook - }% - {\endlist - \if@singlespacequote\vskip-.2\onelineskip\fi} -\renewenvironment{quote}% - {\list{}{\rightmargin\leftmargin}% -% \memhangulinterwordhook - \item[] - \@quotespacinghook - }% - {\endlist - \if@singlespacequote\vskip-.2\onelineskip\fi} -\renewenvironment{symbols}{\list{}% - {\itemindent 0em \leftmargin 8em - \labelsep 1em \labelwidth 5em -% \memhangulinterwordhook - \let\makelabel\symbollabel}% - \@quotespacinghook - }% - {\endlist} - -%%%%%%%%%%%%%%%%%%%% -%%%% fix vertical spacing in the verse environment. mempatch 3.3 -\renewenvironment{verse}[1][\linewidth]{% - \refstepcounter{verse}% - \setcounter{poemline}{0}\refstepcounter{poemline}% - \setcounter{vslineno}{1}% - \let\\=\@vscentercr - \list{}{\itemsep \z@ - \itemindent -\vindent - \listparindent\itemindent - \parsep \stanzaskip - \ifdim #1<\linewidth %% short line - \rightmargin \z@ - \leftmargin \linewidth - \advance\leftmargin -#1\relax - \advance\leftmargin -0.5\leftmargin - \advance\leftmargin \vindent - \else - \ifdim #1>\linewidth %% long line - \rightmargin \z@ - \leftmargin \vindent - \else %% default - \rightmargin \leftmargin - \advance\leftmargin \vindent - \fi - \fi} - \item[]% - \@quotespacinghook}{\endlist} -%%%%%%%%%%%%%% - -\renewenvironment{altverse}% - {\starpatternfalse\patternfalse\altindenttrue\setcounter{vslineno}{1}% - \@quotespacinghook - }% - {\altindentfalse} - -\def\@verbatim{\the\every@verbatim - \trivlist - \if@adjustverbatim\hangulverbspacing\else\fi% - \item \relax - \if@minipage\else\vskip\parskip\fi - \@beginparpenalty \predisplaypenalty - \leftskip\@totalleftmargin\rightskip\z@ - \parindent\z@\parfillskip\@flushglue\parskip\z@ - \@@par - \def\par{% - \if@tempswa - \leavevmode\null\@@par\penalty\interlinepenalty - \else - \@tempswatrue - \ifhmode\@@par\penalty\interlinepenalty\fi - \fi}% - \def\@noitemerr{\@warning{No verbatim text}}% - \obeylines - \let\do\@makeother \dospecials - \verbatim@font - \everypar \expandafter{\the\everypar \unpenalty}% - \wrapright\the\afterevery@verbatim} - -%% Karnes : epigraph -\newcommand\epigraphspacinghook{\setstretch{1.0}} -\newcommand\epigraphspacing[1]{% - \renewcommand\epigraphspacinghook{\setstretch{#1}}% -} - -\renewcommand{\epigraph}[2]{\vspace{\beforeepigraphskip} - {\epigraphsize\begin{\epigraphflush}% - \epigraphspacinghook - \begin{minipage}{\epigraphwidth} - \@epitext{#1}\\ \@episource{#2} - \end{minipage}\end{\epigraphflush} - \vspace{\afterepigraphskip}}} - -\renewenvironment{epigraphs}{% - \vspace{\beforeepigraphskip}\begin{\epigraphflush} - \epigraphsize - \begin{minipage}{\epigraphwidth} - \epigraphspacinghook - \list{}% - {\itemindent\z@ \labelwidth\z@ \labelsep\z@ - \leftmargin\z@ \rightmargin\z@ - \let\makelabel\qitemlabel}}% - {\endlist\end{minipage}\end{\epigraphflush} - \vspace{\afterepigraphskip}} - -% GT: EMSH chose to omit display math part that follows. -% She wrote (see above) that the "altered spacing before and after displayed -% equations ... just looked too much". -% -% Fix up spacing before and after displayed math -% (arraystretch seems to do a fine job for inside LaTeX displayed math, -% since array and eqnarray seem to be affected as expected). -% Changing \baselinestretch and doing a font change also works if done here, -% but then you have to change @setsize to remove the call to @nomath) -% -% GT: The \belowdisplayskip line was mistyped; now fixed, courtesy of -% David Hull. -% -% GT: Brett Parnell has addressed EMSH's concern by replacing -% \baselinestretch by \displayskipstretch in displays, as follows. - -\everydisplay\expandafter{% - \the\everydisplay - \abovedisplayskip \displayskipstretch\abovedisplayskip - \belowdisplayskip \displayskipstretch\belowdisplayskip - \abovedisplayshortskip \displayskipstretch\abovedisplayshortskip - \belowdisplayshortskip \displayskipstretch\belowdisplayshortskip -} - -\endinput - -%%% EOF. diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/nanumfontsel.sty b/language/korean/kotex-oblivoir/memhangul-ucs/nanumfontsel.sty deleted file mode 100644 index 3a24d64566..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/nanumfontsel.sty +++ /dev/null @@ -1,29 +0,0 @@ -%% File `nanumfontsel.sty` -%% -%% Copyright (c) 2007-2013 Kangsoo Kim -%% -%% 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{nanumfontsel} - -\newif\ifUSETONE\USETONEfalse -\DeclareOption{USETONEt1font}{\USETONEtrue} -\DeclareOption{uset1font}{\USETONEtrue} -\ProcessOptions - -\ifUSETONE -\RequirePackage[T1]{fontenc} -\renewcommand{\rmdefault}{nanummj} -\renewcommand{\sfdefault}{nanumgt} -\fi -\SetHangulFonts{nanummj}{nanumgt}{nanumgt} -\SetHanjaFonts{nanumgt}{nanumgt}{nanumgt} - -\endinput - diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/ob-koreanappendix.sty b/language/korean/kotex-oblivoir/memhangul-ucs/ob-koreanappendix.sty deleted file mode 100644 index 9c46eaa9c5..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/ob-koreanappendix.sty +++ /dev/null @@ -1,98 +0,0 @@ -%% File `ob-koreanappendix.sty` -%% -%% Copyright (c) 2007-2015 Kangsoo Kim -%% -%% 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. -%% -%% oblivoir sub-style. part of oblivoir -%% \appendix (부록) -%% -\gdef\set@appendix@chapter{% - \renewcommand\thesection{\Alph{APPsection}}% - \renewcommand\thesubsection{\thesection.\arabic{APPsubsection}} - \ifanappendix - \counterwithout{APPsection}{APPchapter} - \counterwithin{APPsubsection}{APPsection} - \fi% - \counterwithin{figure}{APPsection}\counterwithin{table}{APPsection}% - \counterwithin{equation}{APPsection}% - \renewcommand\thefigure{\Alph{APPsection}.\arabic{figure}}% - \renewcommand\thetable{\Alph{APPsection}.\arabic{table}}% - \renewcommand\theequation{\Alph{APPsection}.\arabic{equation}}% - \set@appendix@chapsec -} - -\renewcommand{\@resets@pp}{% - \par - \@ppsavesec - \set@appendix@chapter - \restoreapp -} - -\renewcommand{\appendix}{\par - \set@appendix@chapter - \anappendixtrue -% \chapterstyle{appendixdefault}% - \if@AppendixTitleToToc - \addcontentsline{toc}{chapter}{\appendixname}% - \fi - \if@AttachAppendixTitleToSecnum - \addtodef{\secheadstyle}{}{\appendixrefname~}% - \fi -} - -\def\set@appendix@chapsec{% - %%% SECTION in APPENDIX - \renewcommand{\section}{% - \sechook\memucsinterwordhook% - \@startsection{section}{1}% level 1 - {\secindent}% heading indent - {\beforesecskip}% skip before the heading - {\aftersecskip}% skip after the heading - {\normalfont\secheadstyle}} % font - % - \def\M@sect##1##2##3##4##5##6[##7][##8]##9{% - \ifheadnameref\M@gettitle{##8}\else\M@gettitle{##7}\fi - \ifnum ##2>\c@secnumdepth - \let\@svsec\@empty - \else - \refstepcounter{APP##1}% - \protected@edef\@svsec{\@seccntformat{##1}\relax}% - \fi - \@tempskipa ##5\relax - \ifdim \@tempskipa>\z@ - \begingroup - ##6{% - \@hangfrom{\hskip ##3\relax\@svsec}% - \interlinepenalty \@M ##9\@@par}% - \endgroup - \csname ##1mark\endcsname{##8}% - \addcontentsline{toc}{##1}{% - \ifnum ##2>\c@secnumdepth \else - \protect\numberline{\noexpand\protect\csname the##1\endcsname}% - \fi - ##7}% - \else - \def\@svsechd{% - ##6{\hskip ##3\relax - \@svsec ##9}% - \csname ##1mark\endcsname{##8}% - \addcontentsline{toc}{##1}{% - \ifnum ##2>\c@secnumdepth \else - \protect\numberline{\csname the##1\endcsname}% - \fi - ##7}}% - \fi - \expandafter\protected@edef - \expandafter\@currentlabel - \expandafter{\csname the##1\endcsname}% - \@xsect{##5}}% -} - -\endinput diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/ob-nokoreanappendix.sty b/language/korean/kotex-oblivoir/memhangul-ucs/ob-nokoreanappendix.sty deleted file mode 100644 index 69044f5eba..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/ob-nokoreanappendix.sty +++ /dev/null @@ -1,96 +0,0 @@ -%% File `ob-nokoreanappendix.sty` -%% -%% Copyright (c) 2007-2013 Kangsoo Kim -%% -%% 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. -%% -%% oblivoir sub-style. part of oblivoir -%% \appendix (부록) : nokorean -%% -\gdef\set@appendix@chapter{% - \ifanappendix\counterwithout{section}{chapter}\fi% - \setcounter{section}{0} - \setcounter{chapter}{0} - \renewcommand\thesection{\Alph{section}}% - \counterwithin{figure}{section}\counterwithin{table}{section}% - \counterwithin{equation}{section}% - \renewcommand\thefigure{\Alph{section}.\arabic{figure}}% - \renewcommand\thetable{\Alph{section}.\arabic{table}}% - \renewcommand\theequation{\Alph{section}.\arabic{equation}}% - \set@appendix@chapsec -} - -\renewcommand{\@resets@pp}{% - \par - \@ppsavesec - \set@appendix@chapter - \restoreapp -} - -\renewcommand{\appendix}{\par - \set@appendix@chapter - \anappendixtrue -% \chapterstyle{appendixdefault}% - \if@AppendixTitleToToc - \addcontentsline{toc}{chapter}{\appendixname}% - \fi - \if@AttachAppendixTitleToSecnum - \addtodef{\secheadstyle}{}{\appendixrefname~}% - \fi -} - -\def\set@appendix@chapsec{% - %%% SECTION in APPENDIX - \renewcommand{\section}{% - \sechook - \@startsection{section}{1}% level 1 - {\secindent}% heading indent - {\beforesecskip}% skip before the heading - {\aftersecskip}% skip after the heading - {\normalfont\secheadstyle}} % font - % - \def\M@sect##1##2##3##4##5##6[##7][##8]##9{% - \ifheadnameref\M@gettitle{##8}\else\M@gettitle{##7}\fi - \ifnum ##2>\c@secnumdepth - \let\@svsec\@empty - \else - \refstepcounter{##1}% - \protected@edef\@svsec{\@seccntformat{##1}\relax}% - \fi - \@tempskipa ##5\relax - \ifdim \@tempskipa>\z@ - \begingroup - ##6{% - \@hangfrom{\hskip ##3\relax\@svsec}% - \interlinepenalty \@M ##9\@@par}% - \endgroup - \csname ##1mark\endcsname{##8}% - \addcontentsline{toc}{##1}{% - \ifnum ##2>\c@secnumdepth \else - \protect\numberline{\noexpand\protect\csname the##1\endcsname}% - \fi - ##7}% - \else - \def\@svsechd{% - ##6{\hskip ##3\relax - \@svsec ##9}% - \csname ##1mark\endcsname{##8}% - \addcontentsline{toc}{##1}{% - \ifnum ##2>\c@secnumdepth \else - \protect\numberline{\csname the##1\endcsname}% - \fi - ##7}}% - \fi - \expandafter\protected@edef - \expandafter\@currentlabel - \expandafter{\csname the##1\endcsname}% - \@xsect{##5}}% -} - -\endinput diff --git a/language/korean/kotex-oblivoir/memhangul-ucs/ob-toclof.sty b/language/korean/kotex-oblivoir/memhangul-ucs/ob-toclof.sty deleted file mode 100644 index 5ef56b463f..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-ucs/ob-toclof.sty +++ /dev/null @@ -1,144 +0,0 @@ -%% File `ob-toclof.sty` -%% -%% Copyright (c) 2007-2013 Kangsoo Kim -%% -%% 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. -%% -%% oblivoir substyle. part of oblivoir, -%% -%% \newlistof{listoffigures}{lof}{\listfigurename} -%% \kill@lastcounter{lofdepth} -%% \newlistentry[section]{figure}{lof}{0} -%% \cftsetindents{figure}{0em}{2.3em} -%% -\if@toclofentry\else -\renewcommand{\put@bsintoc}{% - \ifadd@bstotoc - \ifnumber@bs\else - \phantomsection - \addcontentsline{toc}{section}{\abstractname} - \fi - \fi} - -\def\addappheadtotoc{\addcontentsline{toc}{section}{\appendixtocname}} - -\renewcommand{\newlistof}[3]{% - \@namedef{ext@#2}{#2} - \@ifundefined{c@#2depth}{\newcounter{#2depth}}{} - \setcounter{#2depth}{1} - \@namedef{#2mark}{\markboth{#3}{#3}} - \@namedef{#1}{\@ifstar{\@nameuse{@star#2}}{\@nameuse{@plain#2}}} - \@namedef{@star#2}{% - \ensureonecol - \par - \begingroup -%%% \parindent\z@ \parskip\cftparskip - \@nameuse{@#2maketitle} - \@starttoc{#2}% - \endgroup - \restorefromonecol} - \@namedef{@plain#2}{% - \ensureonecol - \par - \begingroup -%%% \parindent\z@ \parskip\cftparskip - \@nameuse{@#2maketitle} - \phantomsection - \addcontentsline{toc}{section}{#3} - \@starttoc{#2}% - \endgroup - \restorefromonecol} - \@namedef{@#2maketitle}{% - \@nameuse{#2headstart} - {\parindent\z@ \parskip\cftparskip - \interlinepenalty\@M - \@nameuse{print#2nonum}% - \@nameuse{print#2title}{#3}% - \@nameuse{#2mark}% - \thispagestyle{chapter}% - \@nameuse{after#2title} - } - \@afterheading} -% \@namedef{#2headstart}{\chapterheadstart} -% \@namedef{after#2title}{\afterchaptertitle} -% \@namedef{print#2nonum}{\printchapternonum} -% \@namedef{print#2title}##1{\printchaptertitle{##1}} -} % end \newlistof - -\def\@chapter[#1]#2{% - \ifx\ch@pt@c\m@m@empty % no optional args - \def\f@rtoc{#1}% - \def\f@rhdr{#1}% - \else % at least one opt arg - \def\f@rtoc{\ch@pt@c}% - \nametest{#1}{#2}% - \ifsamename % one opt arg - \def\f@rhdr{\ch@pt@c}% - \else % two opt args - \def\f@rhdr{#1}% - \fi - \fi - \m@m@Andfalse - \ifnum \c@secnumdepth >\m@ne - \if@mainmatter - \m@m@Andtrue - \fi - \fi - \ifm@m@And - \ifanappendix - \refstepcounter{APPchapter}% - \else - \refstepcounter{chapter}% - \fi - \fi - \chaptermark{\f@rhdr} - \ifartopt - \@makechapterhead{#2}% - \@afterheading - \else - \insertchapterspace - \if@twocolumn - \@topnewpage[\@makechapterhead{#2}]% - \else - \@makechapterhead{#2}% - \fi - \@afterheading - \fi - \ifm@m@And - \ifanappendix - \addcontentsline{toc}{appendix}{% - \protect\chapternumberline{\hchaptertitlehead}\f@rtoc}% - \memappchapinfo{\thechapter}{\f@rtoc}{\f@rhdr}{#2}% - \else - \addcontentsline{toc}{section}{% - \protect\chapternumberline{\hchaptertitlehead}\f@rtoc}% - \memchapinfo{\hchaptertitlehead}{\f@rtoc}{\f@rhdr}{#2}% - \fi - \else - \addcontentsline{toc}{section}{\f@rtoc}% - \ifanappendix - \memappchapinfo{}{\f@rtoc}{\f@rhdr}{#2}% - \else - \memchapinfo{\hchaptertitlehead}{\f@rtoc}{\f@rhdr}{#2}% - \fi - \fi - \ifheadnameref\M@gettitle{\f@rhdr}\else\M@gettitle{\f@rtoc}\fi -%%% for chapter - \ifanappendix - \protected@edef\@currentlabel{\thechapter}% - \fi -} - -\newlistof{tableofcontents}{toc}{\contentsname} -\newlistof{listoffigures}{lof}{\listfigurename} -\newlistof{listoftables}{lot}{\listtablename} - -\fi % of \if@toclofentry - -\endinput diff --git a/language/korean/kotex-oblivoir/memhangul-x/memhangul-x.sty b/language/korean/kotex-oblivoir/memhangul-x/memhangul-x.sty deleted file mode 100644 index 787df1d0db..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-x/memhangul-x.sty +++ /dev/null @@ -1,401 +0,0 @@ -%% File `memhangul-x.sty` -%% -%% (C) Copyright 2006-2015 Kangsoo Kim -%% -%% 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. -%% -%%% file `memhangul-x.sty` -%% part of oblivoir v2 -%% -\NeedsTeXFormat{LaTeX2e} -\def\filedate{2015/10/05} -\def\fileversion{11.10} -\ProvidesPackage{memhangul-x}[\filedate Hangul Typography for (x)oblivoir] -%\typeout{Hangul Typography for (x)oblivoir} - -%% Options : - -\providecommand\DisabledOption[1]{% - \typeout{[#1] option to this class has been disabled!}} - -%%%% DisabledOptions -\newif\if@interwordHWP\@interwordHWPfalse -\DeclareOption{interwordHWP}{\DisabledOption{interwordHWP}} -\newif\if@interworddefault\@interworddefaultfalse -%\DeclareOption{interworddefault}{\DisabledOption{interworddefault}} -\DeclareOption{interworddefault}{\@interworddefaulttrue} -%\newif\if@finemath\@finemathfalse -\DeclareOption{finemath}{\DisabledOption{finemath}} -%\newif\if@nojosa\@nojosafalse -\DeclareOption{nojosa}{\DisabledOption{nojosa}} -%\newif\if@dvips{\@dvipsfalse} -\DeclareOption{dvips}{\DisabledOption{dvips}} -\DeclareOption{strictcharcheck}{\DisabledOption{strictcharcheck}} - -%%%% active options -\newif\if@hsspace\@hsspacetrue -\DeclareOption{nosetspace}{\@hsspacefalse} - -\newcommand\nosetspace{% - \@hsspacefalse -} - -%\RequirePackage{ifluatex} -%\RequirePackage{ifxetex} - -\newif\if@hsspacenoquote\@hsspacenoquotetrue -\DeclareOption{quotespacing}{\@hsspacenoquotefalse} -\newif\if@nonfrench\@nonfrenchfalse -\DeclareOption{nonfrench}{\@nonfrenchtrue} -\newif\if@hanja\@hanjafalse -\DeclareOption{hanja}{\@hanjatrue} -\newif\if@mathdisp\@mathdispfalse -\DeclareOption{adjustmath}{\@mathdisptrue} - -\newif\if@arabicfrontmatter{\@arabicfrontmatterfalse} -\DeclareOption{arabicfront}{\@arabicfrontmattertrue} -\newif\if@defaulthangulpagestyle{\@defaulthangulpagestylefalse} -\DeclareOption{hangulpagestyle}{\@defaulthangulpagestyletrue} -\newif\if@pdfbookmark{\@pdfbookmarkfalse} -\DeclareOption{pdfbookmark}{\@pdfbookmarktrue} -\newif\if@polyglos\@polyglosfalse -\DeclareOption{polyglossia}{\@polyglostrue} - -\ifxetex -%%% xetexko options -\DeclareOption{gremph}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} -\DeclareOption{itemph}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} -%%% new option -\DeclareOption{latinquote}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} -\DeclareOption{oldhangul}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} -\DeclareOption{manualfontspec}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} -\DeclareOption{nowinname}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} -\DeclareOption{unfonts}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} -\DeclareOption{nounfonts}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} -\DeclareOption{nanum}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} -\DeclareOption{hcr}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} -\else\ifluatex -%%% luatexko options -\DeclareOption{gremph}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{itemph}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -%%% new option -\DeclareOption{latinquote}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{oldhangul}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{manualfontspec}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{nowinname}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{unfonts}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{nounfonts}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{nanum}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{hcr}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\else -%%% pdftex options -\ifPDFTeX -\DeclareOption{gremph}{\DisabledOption{gremph}} -\DeclareOption{itemph}{\DisabledOption{itemph}} -\DeclareOption{latinquote}{\DisabledOption{latinquote}} -\DeclareOption{oldhangul}{\DisabledOption{oldhangul}} -\DeclareOption{manualfontspec}{\DisabledOption{manualfontspec}} -\DeclareOption{nowinname}{\DisabledOption{nowinname}} -\DeclareOption{unfonts}{\DisabledOption{unfonts}} -\DeclareOption{nounfonts}{\DisabledOption{nounfonts}} -\DeclareOption{nanum}{\DisabledOption{nanum}} -\DeclareOption{hcr}{\DisabledOption{hcr}} -\fi -\fi\fi - -%%% figtabcapt -\newif\if@figtabcapt@\@figtabcapt@false -\DeclareOption{figtabcapt}{\@figtabcapt@true} - -\newif\ifKOTEXCJK\KOTEXCJKtrue -\DeclareOption{cjk}{\KOTEXCJKtrue} -\DeclareOption{dhucs}{\KOTEXCJKfalse} -\DeclareOption{uset1font}{\PassOptionsToPackage{usecjkt1font}{cjkutf8-ko}} -\DeclareOption{usedotemph}{\PassOptionsToPackage{\CurrentOption}{cjkutf8-ko}} - -\ProcessOptions \relax - -\if@polyglos - \RequirePackage{polyglossia} - \RequirePackage{xparse} -%%% \sethangulfont{FONTNAME} or \sethangulfont[tt]{FONTNAME}[FEATURES] - \NewDocumentCommand\sethangulfont{omo}{% - \IfValueTF{#1}{% - \IfValueTF{#3}{% - \expandafter\newfontfamily\csname hangulfont#1\endcsname - {#2}[#3]}{% - \expandafter\newfontfamily\csname hangulfont#1\endcsname - {#2}}% - }% - {% - \IfValueTF{#3}{% - \newfontfamily\hangulfont{#2}[#3]% - }{% - \newfontfamily\hangulfont{#2}% - }% - }% - } -\else -\ifluatex - \RequirePackage{luatexko} - \RequirePackage{xob-font} - \RequirePackage{xob-dotemph} -\else\ifxetex - \RequirePackage{xetexko-var} - \RequirePackage{xob-dotemph} - \else - \ifKOTEXCJK - \RequirePackage{cjkutf8-ko} -% \else -% \RequirePackage{dhucs} - \fi -\fi\fi\fi - -%% define memh@hu -\newdimen\memh@hu\memh@hu=0.059375em - -\newif\if@inthekoreancontext\@inthekoreancontexttrue - -%% memoir [ms] option -\ifmsdoc -\newcommand*\MSNormalSize{ - \let\large\normalsize - \let\Large\normalsize - \let\LARGE\normalsize - \let\huge\normalsize - \let\Huge\normalsize - \let\HUGE\normalsize - \let\small\normalsize - \let\scriptsize\normalsize - \let\footnotesize\normalsize - \let\tiny\normalsize - } -\AtBeginDocument{ - \renewcommand{\msdoublespacing}{% - \renewcommand{\baselinestretch}{1.75}\large\normalsize} - \renewcommand{\mssinglespacing}{% - \renewcommand{\baselinestretch}{1.1}\large\normalsize} - \renewcommand{\familydefault}{cmtt} - \renewcommand{\rmdefault}{cmtt} - \renewcommand{\sfdefault}{cmtt} - \renewcommand{\bfdefault}{m} - \renewcommand{\itdefault}{n} - \renewcommand{\sldefault}{n} - \renewcommand{\scdefault}{n} - \renewcommand{\baselinestretch}{1.75} - \@twocolumnfalse - \onecolumn - \sloppy - \@twosidefalse - \raggedbottom - \pagestyle{plain} -} -\fi - -\if@pdfbookmark - \@ifpackageloaded{hyperref}{% hyperref is already loaded - \typeout{hyperref is already loaded!}% - \RequirePackage{memhfixc}}% - {% - \RequirePackage{hyperref} - \RequirePackage{memhfixc}} -\fi - -%%% interword -\if@interworddefault - \RequirePackage{memucs-interword-x} -\fi - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% 한글 관련 이름 설정 (not from hangul.sty) - -\if@hanja -\def\today{\number\year 年~\number\month 月~\number\day 日} -\def\enclname{同封物} -\def\ccname{寫本} -\def\headtoname{受信人} -\def\seename{\을~參照} -\def\alsoname{\을~參照} -\def\contentsname{目~次} -\def\listfigurename{圖~目次} -\def\listtablename{表~目次} -\def\refname{參考~文獻} -\def\indexname{索~引} -\def\tablename{表} -\def\figurename{圖} -\def\abstractname{要~約} -\def\bibname{參考~圖書} -\def\appendixname{附錄} -\def\subappendixname{附錄} -\def\appendixtocname{附~錄} -\def\appendixpagename{附~錄} -\def\partname{篇} -\def\chaptername{章} -\def\sectionname{節} -\def\colorlayer{色相레이어} -\def\glossaryname{語彙} -\def\figurerefname{圖} -\def\tablerefname{表} -\def\pagename{面} -\def\pagerefname{面} -\def\partrefname{篇} -\def\chapterrefname{章} -\def\sectionrefname{\S} -\else -\def\today{\number\year 년~\number\month 월~\number\day 일} -\def\enclname{동봉물} -\def\ccname{사본} -\def\headtoname{받는이} -\def\seename{\을~참조} -\def\alsoname{\을~함께~참조} -\def\contentsname{차~례} -\def\listfigurename{그림~차례} -\def\listtablename{표~차례} -\def\refname{참고~문헌} -\def\indexname{찾아보기} -\def\tablename{표} -\def\figurename{그림} -\def\abstractname{요~약} -\def\bibname{참고~문헌} -\def\appendixname{부록} -\def\subappendixname{부록} -\def\appendixtocname{부~록} -\def\appendixpagename{부~록} -\def\partname{편} -\def\chaptername{장} -\def\sectionname{절} -\def\colorlayer{환등판~색상} -\def\glossaryname{용어집} -\def\figurerefname{그림} -\def\tablerefname{표} -\def\pagename{페이지} -\def\pagerefname{페이지} -\def\partrefname{편} -\def\chapterrefname{장} -\def\sectionrefname{\S} -\fi - -%% \marginparswitchtrue/false -\providecommand{\marginparswitchtrue}{\@mparswitchtrue} -\providecommand{\marginparswitchfalse}{\@mparswitchfalse} -\providecommand{\reversemargintrue}{\@reversemargintrue} -\providecommand{\reversemarginfalse}{\@reversemarginfalse} - -%% select textwidth with chars -\def\testh@ng@lch@r@cters{가갸거겨고교구규그기} -\newlength\t@nch@ars -\newcommand*\setxxxlength[2]{% - \setbox0\hbox{\testh@ng@lch@r@cters}\setlength\t@nch@ars{\wd0}% - \@ifundefined{#1length}{\expandafter\newlength\csname #1length\endcsname}{}% - \expandafter\setlength\csname #1length\endcsname{#2\t@nch@ars}% - \expandafter\divide\csname #1length\endcsname by 10% -} - -%%% kscntformat -%%% HLaTeX의 \kscntformat 명령을 흉내냄 -%%% \kscntformat{section}{제}{절} 형식으로 쓴다. -\newsavebox{\tmp@XXbox} -\newdimen\tmp@XXdim -\def\kscntformat#1#2#3{% - \sbox{\tmp@XXbox}{#2\expandafter\number\csname c@#1\endcsname#3}% - \setlength\tmp@XXdim{\wd\tmp@XXbox}\advance\tmp@XXdim by1em% - \expandafter\def\csname the#1\endcsname{#2\expandafter\number\csname c@#1\endcsname#3}% - \expandafter\renewcommand\csname cft#1numwidth\endcsname{\tmp@XXdim}% - \expandafter\renewcommand\csname cft#1presnum\endcsname{}% - \expandafter\renewcommand\csname cft#1aftersnum\endcsname{}% -} - -\AtBeginDocument{% -\ifnokorean\else -\ifkosection -\kscntformat{section}{제\ob@onethirdspace }{\ob@onethirdspace 절} -\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}} -\fi\fi -} - -\RequirePackage{memhangul-common} - -\ifx\memucsinterwordhook\undefined -\def\memucsinterwordhook{} -\fi - -\ifx\memucsinterwordchapterskiphook\undefined -\def\memucsinterwordchapterskiphook{} -\fi - -\if@nonfrench\else - \frenchspacing -\fi - -%%% hsetspace for memucs -\if@hsspace - \RequirePackage[hangul,adjustverbatim,adjustfootnotesep]{memucs-setspace} - \if@hsspacenoquote\else\adjustquotespacing\fi -\else - \RequirePackage{memucs-setspace} - \linespread{1.333} -\fi -%\SetHangulspace{1.333}{1.1} - -%%% fix first pdf page layout error : XeTeX -%%% based on v1.61803398 -%%% these codes are to be deleted later. (2009/09/25) -\renewcommand*{\fixpdflayout}{% - \pdfpageheight=\the\stockheight - \pdfpagewidth=\the\stockwidth - \ifxetex - \AtBeginDvi{\special{pdf: pagesize width \the\stockwidth\ height \the\stockheight}}% - \else - \ifdim\pdfvorigin=0pt\pdfvorigin=1in\fi - \ifdim\pdfhorigin=0pt\pdfhorigin=1in\fi - \fi} - -%%% 호환을 위하여 dhucs 명령 몇 개를 무력화함. -\ifx\SetAdhocFonts\undefined - \def\SetAdhocFonts#1#2{} -\fi -\ifx\regremph\undefined - \let\regremph\relax - \let\ungremph\relax -\fi - -\endinput - -% CHANGE LOG -% 2015/10/05 : change \sethangulfont command for polyglossia -% 2014/04/29 : fix a bug reported by Progress -% 2013/10/22 : introduce memhangul-common.sty -% 2013/10/16 : \kscntformat and [kosection] bug fix. -% 2013/09/27 : \cntrdotss -% 2013/09/15 : \leavevmode at \explpunc, \expldash -% 2013/09/01 : [cjk], [dhucs] option introduced -% 2012/12/02 : drop shipout hacking codes -% 2012/11/29 : \pdfstringdefDisableCommands -% 2012/11/22 : [figtabcapt] opton introduced -% 2012/11/01 : avoid error in \cnm, \ccnm etc. -% 2012/07/12 : introduce xob-font -% 2011/09/15 : changes according to xoblivoir -% 2010/09/16 : cntrdot, adjustmath -% 2009/05/11 : protect bnm commands -% 2009/04/02 : redefine memoir-shipout for pdflualatex and other... -% 2009/02/11. memoir v1.6180339e compatibility mend 1. -% titleref, hangul page style. -%%% -% 오전 6:35 2008-09-18 : rename xkospace.sty to xkospace-var.sty -% to avoid confusion -% 오후 2:16 2008-09-18 : latinquote 옵션 -% 오전 4:32 2008-09-30 : hangul item titles -% 코드 정리. -% 오전 8:24 2008-10-07 : revive interword hook -% 오후 5:25 2008-10-07 : revive gremph/itemph -% 오전 1:21 2008-10-13 : xetexko v0.1 반영 -% 오후 2:37 2008-10-23 : bnmcmds, oblivoirdblquote -% 오후 17:59 2008-12-03 : nowinname 옵션 추가 -% 오전 2:17 2009-09-26 : try to fix the first pdf page layout error on XeTeX (moved from fapapersize) -% diff --git a/language/korean/kotex-oblivoir/memhangul-x/memucs-interword-x.sty b/language/korean/kotex-oblivoir/memhangul-x/memucs-interword-x.sty deleted file mode 100644 index e033b74ce2..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-x/memucs-interword-x.sty +++ /dev/null @@ -1,188 +0,0 @@ -%% memucs-interword-x.sty -%% -%% Copyright (c) 2007-2013 Kangsoo Kim -%% -%% 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{memucs-interword-x}[2009/04/02] -\RequirePackage{ifluatex} -\RequirePackage{ifxetex} - -\def\memucsinterwordskip{} -\def\memucsinterwordchapterskip{} -\def\memucshangulskips{} - -\newif\if@nonfrench\@nonfrenchfalse -\DeclareOption{nonfrench}{% - \@nonfrenchtrue} -\DeclareOption{HWP}{% - \def\memucsinterwordskip{\HWPinterwordskip}} -\DeclareOption{default}{% - \@nonfrenchtrue\def\memucsinterwordskip{\DEFAULTskips}%\interHchar{0pt} - } -\DeclareOption{wider}{} -% \def\memucshangulskips{\widerhangul}} -\DeclareOption{narrower}{} -% \def\memucshangulskips{\narrowerhangul}} -%\DeclareOption*{% -% \def\memucsinterwordskip{\DEFAULTskips}% -%} - -%\newlength\dimen@skip -%\setlength\dimen@skip{.1pt} - -%% finemath active. -%\ifluatex\else\ifxetex\else -% \if@dhucsfinemath\else\@dhucsfinemathtrue\fi -%\fi\fi - -%%% inter hchar -\newcommand*\interHchar[1]{% - \ifluatex - \@luatex@setinterhangulskip{#1}% - \else\ifxetex - \@xetex@setinterhangulskip{#1}% - \else - \@setinterhangulskip{#1}% - \fi\fi -} - -\newcommand*\DefaultInterHchar{% - \interHchar{-.04}% -} - -\newcommand*\@luatex@setinterhangulskip[1]{% -\directlua{ - fmconfig.hangul_hangul = #1 % ѱ ڰ -}} - -\newcommand*\@xetex@setinterhangulskip[1]{% - \def\xetexkointerhchar{#1em}% -} - -\newcommand*\@setinterhangulskip[1]{% - \setInterHangulSkip{#1em}% -} - -\newcommand*\interhword[4][\@empty]{% - \ifx#1\@empty\setinterwordskip{#2}{#3}{#4}\else - \setinterwordskip[#1]{#2}{#3}{#4}\fi -} - -%%%\def\narrowerhangul{% -%%% \def\memucshangulskips{% -%%% \interHchar{-.5pt}% -%%% }% -%%%} -%%%\def\widerhangul{% -%%% \def\memucshangulskips{% -%%% \interHchar{1pt}% -%%% }% -%%%} - -\newdimen\BASE@FONTsize -\BASE@FONTsize=\f@size\p@ - -\def\HWPinterwordskip{% - \def\memucshangulskips{% - \DefaultInterHchar - }% - \def\memucsinterwordskip{% - \spaceskip = .475\BASE@FONTsize plus .25\BASE@FONTsize minus .1331\BASE@FONTsize - \if@nonfrench - \xspaceskip = .6\BASE@FONTsize plus .2\BASE@FONTsize minus .1\BASE@FONTsize - \fi - }% - \def\memucsinterwordchapterskip{% - \spaceskip = .5\BASE@FONTsize plus .1\BASE@FONTsize minus .05\BASE@FONTsize - \if@nonfrench - \xspaceskip = .65\BASE@FONTsize plus .2\BASE@FONTsize minus .1\BASE@FONTsize - \fi - }% -} - -\def\setinterwordskip{\@ifnextchar[\setinterwordskip@\setinterwordskip@@} -\def\setinterwordskip@[#1]#2#3#4{% - \def\memucsinterwordskip{% - \spaceskip = #2\BASE@FONTsize plus #3\BASE@FONTsize minus #4\BASE@FONTsize - \if@nonfrench - \xspaceskip = #1\BASE@FONTsize plus #3\BASE@FONTsize minus #4\BASE@FONTsize - \fi - }% -} - -\def\setinterwordskip@@#1#2#3{% - \def\memucsinterwordskip{% - \spaceskip = #1\BASE@FONTsize plus #2\BASE@FONTsize minus #3\BASE@FONTsize - \if@nonfrench - \xspaceskip = .6\BASE@FONTsize plus #2\BASE@FONTsize minus #3\BASE@FONTsize - \fi - }% -} - -\def\DEFAULTskips{% - \DefaultInterHchar - \def\memucsinterwordskip{% - \spaceskip = .413\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize - \if@nonfrench - \xspaceskip = .55\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize - \fi - }% - \def\memucsinterwordchapterskip{% - \spaceskip = .46\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize - \if@nonfrench - \xspaceskip = .575\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize - \fi - }% -} - -\ProcessOptions\relax - -\def\verbatim@font{\m@mverbfont\spaceskip\z@ - \hyphenchar\font\m@ne - \let\do\do@noligs - \verbatim@nolig@list} - -\def\narrowerinterhword{% - \spaceskip=.331\BASE@FONTsize plus .111\BASE@FONTsize minus .1\BASE@FONTsize - \if@nonfrench - \xspaceskip=.466\BASE@FONTsize plus .05\BASE@FONTsize minus .05\BASE@FONTsize - \fi -} - -\def\memucsinterwordhook{\memucsinterwordskip\memucshangulskips}% -\def\memucsinterwordchapterskiphook{\memucsinterwordchapterskip\memucshangulskips}% -\def\memucsfninterwordhook{\narrowerinterhword}% - -% 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 - -%% CHANGE LOG -% 2009/04/02. small alterations. -% 2005/01/07. code clearance -% 2005/02/08. reset interwordchapterskip values -% 2005/05/17. engtext env. added. -% 2005/07/30. replace em by \BASE@FONTsize -% 2005/08/05. nonfrench option introduced. -% 2005/11/17. \interhword bug fixed. -% 2007/06/03. dhucs 4.0 hfontspec applied diff --git a/language/korean/kotex-oblivoir/memhangul-x/xetexko-var.sty b/language/korean/kotex-oblivoir/memhangul-x/xetexko-var.sty deleted file mode 100644 index 27768dbda6..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-x/xetexko-var.sty +++ /dev/null @@ -1,71 +0,0 @@ -%% xetexko-var.sty -%% -%% Copyright (c) 2007-2014 Kangsoo Kim -%% Copyright (c) 2013 Kihwang Lee -%% -%% 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. -%% -%% A variant of xetexko.sty -%% -%% Updated for xetexko v2.1 -%% 2013.08.26 -%% -\ProvidesPackage{xetexko-var} - [2014/06/12 v0.13 Korean Typesetting under XeTeX] - -%%% common options for xob-font -\DeclareOption{gremph}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{itemph}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{oldhangul}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{latinquote}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{nowinname}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -%%% for kolabels -\newif\if@hangul -\newif\if@hanja -\DeclareOption{hangul}{\@hangultrue} -\DeclareOption{hanja}{\@hangultrue\@hanjatrue} -%%% for xob-fonts -\newif\if@extfontspec\@extfontspecfalse -\DeclareOption{manualfontspec}{\@extfontspectrue} - -%%% unfonts -\DeclareOption{unfonts}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{nounfonts}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{nanum}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{hcr}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\ProcessOptions\relax - -%%% xetexko sub-styles -\RequirePackage{xetexko-space} -\RequirePackage{xetexko-josa} -\RequirePackage{xetexko-vertical} - -%%% xoblivoir sub-styles -\RequirePackage{xob-dotemph} -\RequirePackage{xob-hyper} - -\if@extfontspec - \PackageWarning{xetexko-var}{Load xetexko-font and configure Korean Fonts manually!}{} -\else -%%% We will never use xetexko/luatexko's unfonts option. - \newif\if@unfonts\@unfontsfalse - \RequirePackage{xob-font} -\fi - -\RequirePackage{kolabels-utf} -\if@hangul\AtBeginDocument{\RequirePackage{konames-utf}}\fi - -\endinput - -%%% 2014-06-12: new xob-font.sty -%%% 2013-09-27, nounfonts. -%%% 오후 3:22 2008-11-16 -%%% 오후 17:59 2008-12-03 : nowinname 옵션 추가 -%%% 2009-03-25, xetexko.sty -%%% 오전 2:22 2009-09-26, xetexko-vertical.sty diff --git a/language/korean/kotex-oblivoir/memhangul-x/xob-amssymb.sty b/language/korean/kotex-oblivoir/memhangul-x/xob-amssymb.sty deleted file mode 100644 index 9d9578b44d..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-x/xob-amssymb.sty +++ /dev/null @@ -1,27 +0,0 @@ -%% xob-amssymb.sty -%% -%% Copyright (c) 2007-2013 Kangsoo Kim -%% -%% 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. -%% -%% disable a few commands -%% -\def\DisablePreAmsCmds#1{% - \expandafter\ifx\csname #1\endcsname\undefined\else - \expandafter\let\csname #1\endcsname\relax\fi -} -\DisablePreAmsCmds{Finv} -\DisablePreAmsCmds{Game} -\DisablePreAmsCmds{beth} -\DisablePreAmsCmds{gimel} -\DisablePreAmsCmds{daleth} -% -\RequirePackage{amssymb} -% -\endinput diff --git a/language/korean/kotex-oblivoir/memhangul-x/xob-dotemph.sty b/language/korean/kotex-oblivoir/memhangul-x/xob-dotemph.sty deleted file mode 100644 index 87285578b2..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-x/xob-dotemph.sty +++ /dev/null @@ -1,75 +0,0 @@ -%% xob-dotemph.sty -%% -%% Copyright (c) 2007-2014 Kangsoo Kim -%% -%% 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. -%% -%% xob-dotemph -%% 2014-06-15, \useremph redefined -%% 2014-04-29 -%% 2010-03-18 -%% 오전 9:01 2008-10-22 -%% xetexko-dotemph의 확장 -%% dhucs/hangul compatible (\dotemph, \circemph, \useremph) -%% ---------- -%% \useremph is different from kotex-utf's \useremph *** -%% -%% Updated for xetexko v2.1 -%% Kihwang Lee -%% 2013.08.26 -%% -%% -\protected\def\circemph#1{% - \begingroup - \def\dotemphchar{^^^^02da}\dotemph{#1}% - \endgroup -} - -\def\xob@useremph#1{\begingroup - \let\dotemphchar\useremphchar - \let\dotemphraise\useremphraisedim - \dotemph{#1}\endgroup} - -%%%%% 2014/06/15 -%%%%% \useremph[dim][char]{letter} -%%%%% -\RequirePackage{xparse} - -\ExplSyntaxOn - -\dim_new:N \useremphraisedim \dim_set:Nn \useremphraisedim { 1ex } -\tl_set:Nn \useremphchar { ^^^^02da } - -\DeclareDocumentCommand \useremph { o o m } -{ - \IfValueT { #1 } - { - \tl_if_empty:nF { #1 } - { - \settoheight \useremphraisedim { #3 } - \dim_add:Nn \useremphraisedim { #1 } - } - } - - \IfValueT { #2 } - { - \tl_if_empty:nF { #2 } - { - \tl_set:Nn \useremphchar { #2 } - } - } - \xob@useremph { #3 } -} - -\ExplSyntaxOff - -\def\useremphstarblack{\tiny★} -\def\useremphstarwhite{\tiny☆} - -\endinput diff --git a/language/korean/kotex-oblivoir/memhangul-x/xob-font.sty b/language/korean/kotex-oblivoir/memhangul-x/xob-font.sty deleted file mode 100644 index 16095498f7..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-x/xob-font.sty +++ /dev/null @@ -1,680 +0,0 @@ -%% xob-font.sty -%% -%% Copyright (c) 2014 Kangsoo Kim -%% Copyright (c) 2017 Kihwang Lee -%% -%% 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. -%% -%% -%% oblivoir hangul/hanja font setting. -%% part of oblivoir -%% -\ProvidesPackage{xob-font}[2017/02/03 v0.7 select hangul/hanja fonts for oblivoir] - -%%% obsolete options: retain \if@.. conditions for backward compatibility -\newif\if@nowin\@nowinfalse -\newif\if@latinquote\@latinquotefalse -\newif\if@unfont\@unfontfalse -\DeclareOption{nowinname}{} -\DeclareOption{latinquote}{} -\DeclareOption{unfonts}{\@unfonttrue} -\DeclareOption{nounfonts}{\@unfontfalse} - -%%% active optoins -\newif\if@oldhangul\@oldhangulfalse -\DeclareOption{oldhangul}{\@oldhangultrue} -\newif\if@gremph\@gremphtrue -\DeclareOption{gremph}{\@gremphtrue} -\DeclareOption{itemph}{\@gremphfalse} - -\newif\if@nanumfonts\@nanumfontsfalse -\newif\if@nanumxfonts\@nanumxfontsfalse -\DeclareOption{nanum}{\@nanumfontstrue} -\DeclareOption{nanumx}{\@nanumfontstrue\@nanumxfontstrue} -\newif\if@hcrfonts\@hcrfontsfalse -\DeclareOption{hcr}{\@hcrfontstrue\@oldhangultrue} - -\ProcessOptions -\relax - -\RequirePackage{xparse} -\@ifclassloaded{oblivoir}{}{% - \RequirePackage{fontspec} - \RequirePackage{kotex} -} - -\ExplSyntaxOn - -\sys_if_engine_xetex:T -{ - \RequirePackage{xetexko-space} - \RequirePackage{xetexko-font} -} - -\if@gremph \bool_set_false:N \ital_fake_bool \else \bool_set_true:N \ital_fake_bool \fi -\if@oldhangul \bool_set_true:N \hangulscript_bool \else \bool_set_false:N \hangulscript_bool \fi - -\bool_set_false:N \bold_prov_bool -\bool_set_false:N \in_hanja_mode -\bool_set_false:N \mono_mode - -\DeclareDocumentCommand \setmonoscale { m } -{ - \tl_set:Nn \_mono_scale { #1 } -} - -\setmonoscale{0.95} - -\DeclareDocumentCommand \treat_feature_name_options { d() d() m o } -{ - \tl_set:Nn \_regu_font_name { #3 } - - \IfValueTF { #1 } - { - \tl_set:Nn \_bold_font_name { #1 } \bool_set_true:N \bold_prov_bool - } - { - \tl_clear:N \_bold_font_name \bool_set_false:N \bold_prov_bool - } - - \IfValueTF { #2 } - { - \tl_if_eq:nnTF { #2 } { * } - { \tl_set_eq:NN \_ital_font_name \_regu_font_name } - { \tl_set:Nn \_ital_font_name { #2 } } - } - { - \tl_set_eq:NN \_ital_font_name \_regu_font_name - } - \IfValueTF { #4 } - { \tl_set:Nn \_additional_feature_str { #4 } } - { \tl_clear:N \_additional_feature_str } - - \bool_if:nTF { \mono_mode || \in_hanja_mode } - { - \tl_clear:N \_font_feature_str - } - { - \tl_set:Nn \_font_feature_str { Ligatures = TeX, } - } - - \bool_if:nT \ital_fake_bool - { - \tl_if_eq:NNTF \_ital_font_name \_regu_font_name - { - \tl_put_right:Nn \_font_feature_str { AutoFakeSlant, } - } - { - \tl_put_right:Nn \_font_feature_str { ItalicFeatures = { FakeSlant = { 0.15 } }, } - } - \tl_put_right:Nn \_font_feature_str { BoldItalicFeatures = { FakeSlant = { 0.15 } }, } - } - - \bool_if:nT \bold_prov_bool - { - \tl_put_right:Nn \_font_feature_str { BoldFont = \_bold_font_name, - BoldItalicFont = \_bold_font_name, - ItalicFont = \_ital_font_name, } - } - - \bool_if:nF \in_hanja_mode - { - \bool_if:nT \hangulscript_bool - { \tl_put_right:Nn \_font_feature_str { Script = Hangul, } } - } - - \bool_if:nT \mono_mode - { - \tl_put_right:Nn \_font_feature_str { Scale = \_mono_scale, } - } -} - -\DeclareDocumentCommand \set_kor_sub_hanja_font { m d() d() m o } -{ - \bool_set_true:N \in_hanja_mode -% \treat_feature_name_options ( #2 ) ( #3 ) { #4 } [ #5 ] - \IfValueTF { #2 } - { - \IfValueTF { #3 } - { - \treat_feature_name_options ( #2 ) ( #3 ) { #4 } [ #5 ] - } - { - \treat_feature_name_options ( #2 ) { #4 } [ #5 ] - } - } - { - \treat_feature_name_options { #4 } [ #5 ] - } - \setmainhanjafont [ \_font_feature_str, \_additional_feature_str ] { \_regu_font_name } - - \sys_if_engine_luatex:T - { - \tl_if_exist:NT \hanjabyhanjafont - { - \AtBeginDocument { \hanjabyhanjafont 1 } - } - } -} - -\DeclareDocumentCommand \setkorfont { m d() d() m o d() } -{ - \bool_set_false:N \in_hanja_mode - - \str_if_eq:nnTF { #1 } { mono } - { \bool_set_true:N \mono_mode } - { \bool_set_false:N \mono_mode } - - %%% when regular fontname contains "HCR", input [ Script=Hangul ] to font features. - \tl_if_in:nnT { #4 } { HCR } - { \bool_set_true:N \hangulscript_bool } - \tl_if_in:nnT { #4 } { hcr } - { \bool_set_true:N \hangulscript_bool } -% \tl_if_in:nnT { #4 } { HAN } -% { \bool_set_true:N \hangulscript_bool } - %%% the following three \tl_if_in's for \setkomainfont - \tl_if_in:NnT { #4 } { HCR } - { \bool_set_true:N \hangulscript_bool } - \tl_if_in:NnT { #4 } { hcr } - { \bool_set_true:N \hangulscript_bool } -% \tl_if_in:NnT { #4 } { HAN } -% { \bool_set_true:N \hangulscript_bool } - - \IfValueTF { #2 } - { - \IfValueTF { #3 } - { - \treat_feature_name_options ( #2 ) ( #3 ) { #4 } [ #5 ] - } - { - \treat_feature_name_options ( #2 ) { #4 } [ #5 ] - } - } - { - \treat_feature_name_options { #4 } [ #5 ] - } - - \cs:w set #1 hangulfont \cs_end: - [ \_font_feature_str, \_additional_feature_str ] { \_regu_font_name } - - %%% \set_kor_sub_hanja_font will take more optional arguments, - %%% hence, this codes have to be located at the end of code block. - \IfValueT { #6 } - { - \set_kor_sub_hanja_font { #1 } ( #6 ) - } -} - -%%% new \setko(main|sans|mono)font -%\bool_new:N \setko_bold_process \bool_set_false:N \setko_bold_process - -\NewDocumentCommand \process_set_korob_hanja { m o d() d() d() o } -{ - \IfValueTF { #2 } - { - \tl_set:Nn \ko_hanja_base_font_name { #2 } - \tl_set_eq:NN \ko_hanja_regu_font_name \ko_hanja_base_font_name - \tl_put_right:Nn \ko_hanja_regu_font_name { #3 } - \IfValueTF { #4 } - { - \tl_if_empty:nTF { #4 } - { - \tl_set_eq:NN \ko_hanja_bold_font_name \ko_hanja_regu_font_name - } - { - \tl_set_eq:NN \ko_hanja_bold_font_name \ko_hanja_base_font_name - \tl_put_right:Nn \ko_hanja_bold_font_name { #4 } - } - \bool_set_false:N \setko_hanja_bold_process - } - { -% \tl_clear:N \ko_hanja_bold_font_name - \bool_set_true:N \setko_hanja_bold_process - } - \IfValueTF { #5 } - { - \tl_if_empty:nTF { #5 } - { - \tl_set_eq:NN \ko_hanja_ital_font_name \ko_hanja_regu_font_name - } - { - \tl_set_eq:NN \ko_hanja_ital_font_name \ko_hanja_base_font_name - \tl_put_right:Nn \ko_hanja_ital_font_name { #5 } - } - } - { - \tl_set_eq:NN \ko_hanja_ital_font_name \ko_hanja_regu_font_name - } - } - { - \tl_clear:N \ko_hanja_base_font_name - \tl_set:Nn \ko_hanja_regu_font_name { #3 } - - \IfValueTF { #4 } - { - \tl_set:Nn \ko_hanja_bold_font_name { #4 } - \bool_set_false:N \setko_hanja_bold_process - } - { -% \tl_clear:N \ko_hanja_bold_font_name - \bool_set_true:N \setko_hanja_bold_process - } - - \IfValueTF { #5 } - { - \tl_set:Nn \ko_hanja_ital_font_name { #5 } - } - { - \tl_set_eq:NN \ko_hanja_ital_font_name \ko_hanja_regu_font_name - } - } - - \IfValueTF { #6 } - { - \tl_set:Nn \ko_hanja_features { #6 } - } - { - \tl_clear:N \ko_hanja_features - } - - \bool_if:nTF \setko_bold_process - { - \bool_if:nTF \setko_hanja_bold_process - { - \cs:w setkor #1 font \cs_end: - { \ko_regu_font_name } - [ \ko_features ] - \bool_if:nTF \ital_fake_bool - { - \cs:w set #1 hanjafont \cs_end: - [ \ko_hanja_features, AutoFakeSlant, BoldItalicFeatures={FakeSlant={0.15}} ] - { \ko_hanja_regu_font_name } - } - { - \cs:w set #1 hanjafont \cs_end: - [ \ko_hanja_features ] - { \ko_hanja_regu_font_name } - } - } - { - \cs:w setkor #1 font \cs_end: - { \ko_regu_font_name } - [ \ko_features ] - ( \ko_hanja_bold_font_name ) - ( \ko_hanja_ital_font_name ) - { \ko_hanja_regu_font_name } - [ \ko_hanja_features ] - } - } - { - \bool_if:nTF \setko_hanja_bold_process - { - \cs:w setkor #1 font \cs_end: - ( \ko_bold_font_name ) - ( \ko_ital_font_name ) - { \ko_regu_font_name } - \bool_if:nTF \ital_fake_bool - { - \cs:w set #1 hanjafont \cs_end: - [ \ko_hanja_features, AutoFakeSlant, BoldItalicFeatures={FakeSlant={0.15}} ] - { \ko_hanja_regu_font_name } - } - { - \cs:w set #1 hanjafont \cs_end: - [ \ko_hanja_features ] - { \ko_hanja_regu_font_name } - } - } - { - \cs:w setkor #1 font \cs_end: - ( \ko_bold_font_name ) - ( \ko_ital_font_name ) - { \ko_regu_font_name } - [ \ko_features ] - ( \ko_hanja_bold_font_name ) - ( \ko_hanja_ital_font_name ) - { \ko_hanja_regu_font_name } - [ \ko_hanja_features ] - } - } - - \sys_if_engine_luatex:T - { - \tl_if_exist:NT \hanjabyhanjafont - { - \AtBeginDocument { \hanjabyhanjafont 1 } - } - } -} - -\NewDocumentCommand \process_korob_only_hangul { m } -{ - \bool_if:nTF \setko_bold_process - { - \cs:w setkor #1 font \cs_end: - { \ko_regu_font_name } - [ \ko_features ] - } - { - \cs:w setkor #1 font \cs_end: - ( \ko_bold_font_name ) - ( \ko_ital_font_name ) - { \ko_regu_font_name } - [ \ko_features ] - } -} - -\DeclareDocumentCommand \setkorfontxob { m o d() d() d() o o d() } -{ - \IfValueTF { #2 } - { \tl_set:Nn \ko_base_font_name { #2 } - \tl_set_eq:NN \ko_regu_font_name \ko_base_font_name - \tl_put_right:Nn \ko_regu_font_name { #3 } - \IfValueTF { #4 } - { - \tl_if_empty:nTF { #4 } - { - \tl_set_eq:NN \ko_bold_font_name \ko_regu_font_name - } - { - \tl_set_eq:NN \ko_bold_font_name \ko_base_font_name - \tl_put_right:Nn \ko_bold_font_name { #4 } - } - \bool_set_false:N \setko_bold_process - } - { -% \tl_set_eq:NN \ko_bold_font_name \ko_regu_font_name - \bool_set_true:N \setko_bold_process - } - \IfValueTF { #5 } - { - \tl_if_empty:nTF { #5} - { - \tl_set_eq:NN \ko_ital_font_name \ko_regu_font_name - } - { - \tl_set_eq:NN \ko_ital_font_name \ko_base_font_name - \tl_put_right:Nn \ko_ital_font_name { #5 } - } - } - { - \tl_set_eq:NN \ko_ital_font_name \ko_regu_font_name - } - } - { - \tl_clear:N \ko_base_font_name - \tl_set:Nn \ko_regu_font_name { #3 } - - \IfValueTF { #4 } - { - \tl_set:Nn \ko_bold_font_name { #4 } - \bool_set_false:N \setko_bold_process - } - { -% \tl_set_eq:NN \ko_bold_font_name \ko_regu_font_name - \bool_set_true:N \setko_bold_process - } - - \IfValueTF { #5 } - { - \tl_set:Nn \ko_ital_font_name { #5 } - } - { - \tl_set_eq:NN \ko_ital_font_name \ko_regu_font_name - } - - } - - \IfValueTF { #6 } - { - \tl_set:Nn \ko_features { #6 } - } - { - \tl_clear:N \ko_features - } - - \IfValueTF { #7 } - { - \IfValueTF { #8 } - { - \process_set_korob_hanja { #1 } [ #7 ] ( #8 ) - } - { - \process_set_korob_hanja { #1 } [ #7 ] - } - } - { - \IfValueTF { #8 } - { - \process_set_korob_hanja { #1 } ( #8 ) - } - { - \process_korob_only_hangul { #1 } - } - } -} - -%%% bracket version. -\bool_set_false:N \ext_loc_bool - -\DeclareDocumentCommand \set_kor_font_orig_method_sub_hanja { m o m } -{ - \IfValueTF { #2 } - { - \cs:w set #1 hanjafont \cs_end: [ #2, \ext_loc_feature ] { #3 } - } - { - \cs:w set #1 hanjafont \cs_end: [ \ext_loc_feature ]{ #3 } - } - \bool_set_false:N \ext_loc_bool -} - -\DeclareDocumentCommand \setkorfontorigmethod { m o m o } -{ - \bool_if:nTF \ext_loc_bool - { - \tl_set:Nn \ext_loc_feature { ExternalLocation, } - } - { - \tl_clear:N \ext_loc_feature - } - \IfValueTF { #2 } - { - \cs:w set #1 hangulfont \cs_end: [ #2, \ext_loc_feature ] { #3 } - } - { - \cs:w set #1 hangulfont \cs_end: [ \ext_loc_feature ] { #3 } - } - - \IfValueTF { #4 } - { - \set_kor_font_orig_method_sub_hanja { #1 } [ #4 ] - } - { - \bool_set_false:N \ext_loc_bool - } -} - -%%% starred version. -\DeclareDocumentCommand \setkorfontorigstar { s m } -{ - \bool_set_true:N \ext_loc_bool - \setkorfontorigmethod { #2 } -} - -%%% \setobmainfont -\DeclareDocumentCommand \setxoblatinfont { m o d() d() d() o } -{ - \IfValueTF { #2 } - { - \tl_set:Nn \latin_base_font_name { #2 } - \tl_set_eq:NN \latin_regu_font_name \latin_base_font_name - \tl_put_right:Nn \latin_regu_font_name { #3 } - \IfValueTF { #4 } - { - \tl_if_empty:nTF { #4 } - { - \tl_set_eq:NN \latin_bold_font_name \latin_regu_font_name - } - { - \tl_set_eq:NN \latin_bold_font_name \latin_base_font_name - \tl_put_right:Nn \latin_bold_font_name { #4 } - } - \bool_set_false:N \setlatin_bold_process - } - { - \bool_set_true:N \setlatin_bold_process - } - \IfValueTF { #5 } - { - \tl_if_empty:nTF { #5} - { - \tl_set_eq:NN \latin_ital_font_name \latin_regu_font_name - } - { - \tl_set_eq:NN \latin_ital_font_name \latin_base_font_name - \tl_put_right:Nn \latin_ital_font_name { #5 } - } - \bool_set_false:N \setlatin_ital_process - } - { - \bool_set_true:N \setlatin_ital_process - } - } - { - \tl_clear:N \latin_base_font_name - \tl_set:Nn \latin_regu_font_name { #3 } - - \IfValueTF { #4 } - { - \tl_set:Nn \latin_bold_font_name { #4 } - \bool_set_false:N \setlatin_bold_process - } - { - \bool_set_true:N \setlatin_bold_process - } - - \IfValueTF { #5 } - { - \tl_set:Nn \latin_ital_font_name { #5 } - \bool_set_false:N \setlatin_ital_process - } - { - \bool_set_true:N \setlatin_ital_process - } - - } - - \tl_if_eq:nnTF { #1 } { mono } - { - \bool_set_true:N \latin_mono_mode - } - { - \bool_set_false:N \latin_mono_mode - } - - \bool_if:nTF \latin_mono_mode - { - \tl_clear:N \latin_feature - } - { - \tl_set:Nn \latin_feature { Ligatures=TeX, } - } - - \bool_if:nF \setlatin_bold_process - { - \tl_put_right:Nn \latin_feature { - BoldFont = { \latin_bold_font_name }, - } - } - - \bool_if:nF \setlatin_ital_process - { - \tl_put_right:Nn \latin_feature { - ItalicFont = { \latin_ital_font_name }, - } - } - - \IfValueT { #6 } - { - \tl_put_right:Nn \latin_feature { #6 } - } - - \cs:w set #1 font \cs_end: - [ \latin_feature ] - { \latin_regu_font_name } - -} - -\ExplSyntaxOff - -%%% starred version commands are provided for backward compatibility. -\protected\def\setkormainfont{% - \@ifstar{\setkorfontorigstar*{main}}{% - \@ifnextchar[{\setkorfontorigmethod{main}}{\setkorfont{main}}}} -\protected\def\setkorsansfont{% - \@ifstar{\setkorfontorigstar*{sans}}{% - \@ifnextchar[{\setkorfontorigmethod{sans}}{\setkorfont{sans}}}} -\protected\def\setkormonofont{% - \@ifstar{\setkorfontorigstar*{mono}}{% - \@ifnextchar[{\setkorfontorigmethod{mono}}{\setkorfont{mono}}}} - -%%% newly defined commands: -%%% \setkomainfont[BASENAME](Regu)(Bold)(Ital)[Feature]% -%%% [HJBASENAME](HJREGU)(HJBOLD)(HJITAL)[HJFeatures] -%%% no spaces allowed between optional arguments, e.g., [...]*nospace*[...] -\protected\def\setkomainfont{\setkorfontxob{main}} -\protected\def\setkosansfont{\setkorfontxob{sans}} -\protected\def\setkomonofont{\setkorfontxob{mono}} - -%%% \setobmainfont(regu)[features] = \setmainfont[features]{regu} -\protected\def\setobmainfont{\setxoblatinfont{main}} -\protected\def\setobsansfont{\setxoblatinfont{sans}} -\protected\def\setobmonofont{\setxoblatinfont{mono}} - -%%% [unfonts] will be deprecated shortly. -\if@unfont - \if@gremph - \setkomainfont(UnBatang.ttf)(UnBatangBold.ttf)(UnGraphic.ttf)[Script=Hangul]% - (UnBatang.ttf)(UnBatangBold.ttf)(UnBatang.ttf)[Script=Hangul] - \else - \setkomainfont(UnBatang.ttf)(UnBatangBold.ttf)(UnBatang.ttf)[Script=Hangul] - \fi - \setkosansfont[UnDotum](.ttf)(Bold.ttf)(.ttf) - \setmonoscale{1.05} - \setkomonofont(UnTaza.ttf) -\fi - -\if@nanumfonts - \if@nanumxfonts - \setkomainfont(NanumMyeongjo)(*ExtraBold)(*)[](NanumGothic)(*Bold) - \else - \setkomainfont(NanumMyeongjo)(*Bold)(*)[](NanumGothic)(*Bold) - \fi - \setkosansfont(NanumGothic)(*Bold)(*) - \setkomonofont(NanumGothic) -\fi - -%%% [hcr] adds [Script=Hangul] feature automatically. -\if@hcrfonts - \setkomainfont(HCRBatangLVT)(*-Bold)(*) - \setkosansfont(HCRDotumLVT)(*-Bold)(*) - \setkomonofont(HCRDotumLVT) -\fi - -\endinput - -%%% end of file `xob-font.sty` -%% CHANGES -%% v0.7 : Use \sys_if_engine_xetex and \sys_if_engine_luatex instead of xetex_if_engine and luatex_if_engine to be compatible with latest l3kernel. -%% v0.6 : HCR auto insert Script=Hangul, HAN disabled -%% v0.5 : [nanum] sets Bold, [nanumx] sets ExtraBold for NanumMyeongjo -%% v0.4 : hangul_bold_exist && hanja_bold_no_exist bug fixed. -%% v0.3 : \setobmainfont ( = \setmainfont ) introduced. -%% v0.2 : do not insert [ Ligatures=TeX ] in mono_mode diff --git a/language/korean/kotex-oblivoir/memhangul-x/xob-hyper.sty b/language/korean/kotex-oblivoir/memhangul-x/xob-hyper.sty deleted file mode 100644 index 154e8d3544..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-x/xob-hyper.sty +++ /dev/null @@ -1,74 +0,0 @@ -%% xob-hyper.sty -%% -%% Copyright (c) 2013 Kihwang Lee -%% -%% 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. -%% -%% Created for xetexko v2.1 -%% 2013.08.26 -%% -\AtBeginDocument{ - % for ulem package - \ifcsname UL@hook\endcsname \xetexkoulemsupport \fi - % for hyperref package - \@ifpackageloaded{hyperref}{\pdfstringdefDisableCommands{% - \let\dotemph\@firstofone - \let\makejosa\@secondoftwo - \let\jong\relax - \let\jung\relax - \let\rieul\relax - \let\latinalphs\relax - \let\hangulalphs\relax - \let\hanjaalphs\relax - \let\prevfontalphs\relax - \let\latinnums\relax - \let\hangulnums\relax - \let\hanjanums\relax - \let\prevfontnums\relax - \let\latinparens\relax - \let\hangulparens\relax - \let\hanjaparens\relax - \let\prevfontparens\relax - \let\latinquotes\relax - \let\hangulquotes\relax - \let\hanjaquotes\relax - \let\prevfontquotes\relax - \let\latinpuncts\relax - \let\hangulpuncts\relax - \let\hanjapuncts\relax - \let\prevfontpuncts\relax - \let\latinmarks\relax - \let\hangulmarks\relax - \let\hanjamarks\relax - \let\prevfontmarks\relax - \let\latincolons\relax - \let\hangulcolons\relax - \let\hanjacolons\relax - \let\prevfontcolons\relax - \let\latinhyphens\relax - \let\hangulhyphens\relax - \let\hanjahyphens\relax - \let\prevfonthyphens\relax - \let\latincjksymbols\relax - \let\hangulcjksymbols\relax - \let\hanjacjksymbols\relax - \let\prevfontcjksymbols\relax - \let\disablekoreanfonts\relax - \let\disablehangulspacing\relax - \let\disablehangulspacingandlinebreak\relax - \let\disableautojosa\relax - \let\disablecjksymbolspacing\relax - \let\japanese\relax - \let\chinese\relax - \let\Tchinese\relax - \let\Schinese\relax - }}{} -} - -\endinput diff --git a/language/korean/kotex-oblivoir/memhangul-x/xob-paralist.sty b/language/korean/kotex-oblivoir/memhangul-x/xob-paralist.sty deleted file mode 100644 index 534d2b8066..0000000000 --- a/language/korean/kotex-oblivoir/memhangul-x/xob-paralist.sty +++ /dev/null @@ -1,48 +0,0 @@ -%% xob-paralist.sty -%% -%% Copyright (c) 2007-2013 Kangsoo Kim -%% -%% 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. -%% -%% paralist, -%% -\@ifpackageloaded{paralist}{}{\RequirePackage{paralist}} -\RequirePackage{iftex} -\ifPDFTeX - \RequirePackage{dhucs-paralist} -\else -\def\pl@loop@{% - \ifx 가\pl@temp \def\@tempa{\pl@label\gana }\else - \ifx ㈎\pl@temp \def\@tempa{\pl@label\pgana }\else - \ifx ㉮\pl@temp \def\@tempa{\pl@label\ogana }\else - \ifx ㄱ\pl@temp \def\@tempa{\pl@label\jaso }\else - \ifx ㈀\pl@temp \def\@tempa{\pl@label\pjaso }\else - \ifx ㉠\pl@temp \def\@tempa{\pl@label\ojaso }\else - \ifx ⑴\pl@temp \def\@tempa{\pl@label\pnum }\else - \ifx ①\pl@temp \def\@tempa{\pl@label\onum }\else - \ifx ⒜\pl@temp \def\@tempa{\pl@label\peng }\else - \ifx ⓐ\pl@temp \def\@tempa{\pl@label\oeng }\else - \ifx ⅰ\pl@temp \def\@tempa{\pl@label\hroman}\else - \ifx Ⅰ\pl@temp \def\@tempa{\pl@label\hRoman}\else -%%%%%%%%%%%%%%%%%%%%%%%%%% - \ifx A\pl@temp \def\@tempa{\pl@label\Alph }\else - \ifx a\pl@temp \def\@tempa{\pl@label\alph }\else - \ifx i\pl@temp \def\@tempa{\pl@label\roman }\else - \ifx I\pl@temp \def\@tempa{\pl@label\Roman }\else - \ifx 1\pl@temp \def\@tempa{\pl@label\arabic}\else - \ifx \@sptoken\pl@temp \let\@tempa\pl@space \else - \ifx \bgroup\pl@temp \let\@tempa\pl@group \else - \ifx \@@@\pl@temp \let\@tempa\@gobble \else - \let\@tempa\pl@other - \pl@hook - \fi\fi\fi\fi\fi\fi\fi\fi - \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi - \@tempa} -\fi -\endinput diff --git a/language/korean/kotex-oblivoir/oblivoir-base.cls b/language/korean/kotex-oblivoir/oblivoir-base.cls deleted file mode 100644 index bff68d1565..0000000000 --- a/language/korean/kotex-oblivoir/oblivoir-base.cls +++ /dev/null @@ -1,603 +0,0 @@ -%% File `oblivoir.cls` -%% -%% (C) Copyright 2006-2015 Kangsoo Kim -%% -%% 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. -%% -\ProvidesClass{oblivoir-base} - [2015/10/19 v0.8.1 article-like class to typeset UTF-8 korean using memoir.] -%\typeout{oblivoir requires memoir, dhucs, and memhangul. 2008/10/23.} - -%%% Acknowledgements: -%%% Many thanks to -%%% ischo who provided a computer, place and time for developing and testing. -%%% smcho, ischo, synapse and beomsukhyun who requested functional improvements. -%%% progress who wrote a nice introductory document. -%%% and all the people who do or do not use this class. -%%% -%%% Options: -%%% nokorean : 영문용 -%%% twoside : twoside -%%% openright -%%% kosection : 절 표제항의 한글화 -%%% nobookmarks : 북마크 만들지 않음 -%%% dvips : dvips 작업용 옵션 -%%% 10.5pt : 10.5pt 본문 폰트 사이즈. -%%% footnote : 한글식 각주 모양 사용. -%%% tocentry : toc 등을 한 수준 위에서 처리. -%%% itemph : 강조를 itshape로 처리함. -%%% finemath : pass finemath option to dhucs. made default. -%%% nofinemath : no finemath. -%%% strictcharcheck : strictcharcheck to dhucs. -%%% microtype : load microtype and apply margin-kerning & font-expansion -%%% romanfixed : 10.5pt 옵션 사용시 영문 글꼴은 10pt로 고정. -%%% faht,fawd : flowfram과 함께 쓸 때 임의의 페이지 사이즈. -%%% moreverb : pdfmtricks와 함께 쓰기 위해 moreverb를 로드. -%%% 기타 옵션 : memoir 옵션 사용. -%%% default는 oneside, openany, kosection false, pdfbookmark임. -%%% subfigure : load old subfigure packaged -%%% -%%% 한글 폰트 관련: -%%% unfonts-type-1 -%%% - -%\RequirePackage{etex} -\RequirePackage{xkeyval} - -\newif\ifnokorean\nokoreanfalse -\DeclareOptionX{nokorean}{\nokoreantrue} -\newif\iftwosidedoc\twosidedocfalse -\DeclareOptionX{twoside}{\twosidedoctrue} -\newif\ifopenrightdoc\openrightdocfalse -\DeclareOptionX{openright}{\openrightdoctrue} -\newif\ifkosection\kosectionfalse -\DeclareOptionX{kosection}{\kosectiontrue} -\newif\ifnobookmarks\nobookmarksfalse -\DeclareOptionX{nobookmarks}{\nobookmarkstrue} -\newif\ifhyperrefwithlyx\hyperrefwithlyxfalse -\DeclareOptionX{lyxhyper}{\hyperrefwithlyxtrue}{\hyperrefwithlyxfalse} -\newif\if@dvips\@dvipsfalse -\DeclareOptionX{dvips}{\@dvipstrue} -\newif\if@tendotfive\@tendotfivefalse -\DeclareOptionX{10.5pt}{\@tendotfivetrue} -\newif\if@koreanfn\@koreanfnfalse -\DeclareOptionX{footnote}{\@koreanfntrue} -\newif\if@toclofentry\@toclofentryfalse -\DeclareOptionX{tocentry}{\@toclofentrytrue} -\newif\if@itemph\@itemphfalse -\DeclareOptionX{itemph}{\@itemphtrue} -\newif\if@resizelatin\@resizelatintrue -\DeclareOptionX{romanfixed}{\@resizelatinfalse} -\newif\if@chapter\@chapterfalse -\DeclareOptionX{chapter}{\@chaptertrue\@toclofentrytrue} -\newif\if@finemath\@finemathtrue -\DeclareOptionX{finemath}{\@finemathtrue} -\DeclareOptionX{nofinemath}{\@finemathfalse} -\newif\if@microtype\@microtypefalse -\DeclareOptionX{microtype}{\@microtypetrue} -\newif\if@subfigure\@subfigurefalse -\DeclareOptionX{subfigure}{\@subfiguretrue} -\DeclareOptionX{strictcharcheck}{\PassOptionsToPackage{\CurrentOption}{memhangul-ucs}} - -\newif\if@moreverb\@moreverbfalse -\DeclareOptionX{moreverb}{\@moreverbtrue} -\newif\if@foursix\@foursixfalse\newlength\fa@setheight\newlength\fa@setwidth -\DeclareOptionX{faht}[]{\fa@setheight=#1\@foursixtrue} -\DeclareOptionX{fawd}[]{\fa@setwidth=#1\@foursixtrue} - -\DeclareOptionX{figtabcapt}[]{\PassOptionsToPackage{\CurrentOption}{memhangul-ucs}} - -%%% 2013-09-26 -%%% disabled option unfonts/nounfonts, 2014-06-13 -\newif\if@unfont\@unfontfalse -\DeclareOptionX{unfonts}{\@unfonttrue} -\DeclareOptionX{nounfonts}{\@unfontfalse} -\DeclareOptionX{nanum}{\@unfontfalse} -\DeclareOptionX{uset1font}{\PassOptionsToPackage{\CurrentOption}{nanumfontsel}} - -\DeclareOptionX{cjk}{\PassOptionsToPackage{\CurrentOption}{memhangul-ucs}} -\DeclareOptionX{dhucs}{\PassOptionsToPackage{\CurrentOption}{memhangul-ucs}} - -%%% Disabled Options -\DeclareOptionX{hcr}{} % do nothing - -\newif\if@AMSmath\@AMSmathfalse -\DeclareOptionX{amsmath}{\@AMSmathtrue} - -\newif\if@FULLROOM\@FULLROOMfalse -\DeclareOptionX{moreroom}{\@FULLROOMtrue} - -\DeclareOptionX*{% - \PassOptionsToClass{\CurrentOption}{memoir}% -} -\ProcessOptionsX - -%%% moreroom, reported by Juho Lee, 2013-09-26. -%%% 2015-08-01: LaTeX will do auto-alloc. -%\if@FULLROOM -%\def\alloc@#1#2#3#4#5% -% {\ifnum\count1#1<#4% make sure there's still room -% \allocationnumber\count1#1 -% \global\advance\count1#1\@ne -% \global#3#5\allocationnumber -% \wlog{\string#5=\string#2\the\allocationnumber}% -% \else\ifnum#1<6 -% \def\etex@dummy@definition{}% <-- code added -% \begingroup \escapechar\m@ne -% \expandafter\alloc@@\expandafter{\string#2}#5% -% \else\errmessage{No room for a new #2}\fi\fi -% } -%\fi - -%% expl3 -\RequirePackage{xparse,expl3} - -%%% moreverb : 2008/10/23 -\if@moreverb - \RequirePackage{moreverb} -\fi - -%%% dvips -\ifnokorean\else -\if@dvips - \PassOptionsToPackage{dvips}{memhangul-ucs} -\fi\fi - -%%% memoir/memhangul-ucs 로드. -\if@chapter - \LoadClass[openany]{memoir} -\else -\iftwosidedoc - \LoadClass[article,openany]{memoir} -\else - \LoadClass[article,openany,oneside]{memoir} -\fi -\fi -%%% flowfram confict : 2008/10/23 -\if@foursix - \newcommand*{\fa@dblfoursix}{\stockheight=\fa@setheight \stockwidth=\fa@setwidth} - \fa@dblfoursix -\fi - -\if@AMSmath -\RequirePackage{amsmath,amssymb} -\fi - -%%% -\ifopenrightdoc\openright\fi -\newcommand\finemath@status{\if@finemath finemath\else\fi} -\ifnokorean\else - \if@itemph - \RequirePackage[nonfrench,interworddefault,hangulpagestyle,\finemath@status]{memhangul-ucs} - \else - \RequirePackage[nonfrench,interworddefault,hangulpagestyle,gremph,\finemath@status]{memhangul-ucs} - \fi -\fi -\if@chapter\else -\counterwithout{section}{chapter} -\fi - -%%% hfontspec -\ifnokorean\let\usehangulfontspec\@gobble\fi - -%%% korean fontsettings -\ifnokorean\else - \if@unfont - \RequirePackage{hfontsel} - \usehangulfontspec{obut} - \else - \RequirePackage{nanumfontsel} - \usehangulfontspec{nanum} - \fi - \ifpdf - \input glyphtounicode\pdfgentounicode=1 - \RequirePackage{dhucs-cmap} - \else\fi -% \ifpdf -% \RequirePackage[ps]{hfontsel} % ut**를 기본 글꼴로 -% \usehangulfontspec{obut} -% \pdfmapfile{=unttf-pdftex-dhucs.map} % 그래도 혹시 모르므로 -%%%% dhucs-cmap은 여기서 로드한다. -% \RequirePackage{dhucs-cmap} % ut**가 기본글꼴일 때는 disable? -% \input glyphtounicode\pdfgentounicode=1 -% \else -% \if@dvips -% \RequirePackage[ps]{hfontsel} % ut**를 기본 글꼴로 -% \usehangulfontspec{obut} -% \else -% \RequirePackage{hfontsel} % 아무 옵션도 없다면 un** -% \usehangulfontspec{obun} -% \RequirePackage{dhucs-cmap} % un**일 때 -% \fi -% \fi -\fi - -%%% Gremph -\if@itemph\else - \ifnokorean\else -% \ifpdf - \if@unfont - \SetGremphFonts{outgr}{outgt} - \else - \SetGremphFonts{nanumgt}{nanumgt} - \fi -% \else -% \if@dvips -% \SetGremphFonts{utgr}{utgt} -% \fi -% \fi - \fi -\fi - -%%% microtype -\ifpdf - \if@microtype - \RequirePackage[expansion=all]{microtype} - % for more elaborated operation, document specific config is needed. - % expansion works for ONE fontset only; so, basictext + LUC. -% \DeclareMicrotypeSet{dhucsmicro} -% { encoding = {LUC,OT1,T1,LY1,OT4,QX,T5}, -% % family = {rm*,sf*}, -% % series = {md*}, -% % size = {normalsize,footnotesize,small,large} -% } -% \UseMicrotypeSet[expansion]{dhucsmicro} - \fi -\else - \if@microtype -% \ClassWarningNoLine{oblivoir}{no pdflatex runs! microtype option is ignored.}{} - \RequirePackage{microtype} - \fi -\fi - -%%% 기본 자간 -\newdimen\ob@hu % 1jw=.95em, 1hu=1/16jw. see hfontspec.oblivoir -\ifnokorean\ob@hu=\z@\else\ob@hu=\dhucs@hu\fi -% 기본 자간 설정은 hfontspec.obu{n/t}. -%%%\newdimen\ob@hangulglue\ob@hangulglue=-.55\ob@hu -%%%\interhchar{\ob@hangulglue} - -\def\ob@DEFAULTskips{% - \def\memucshangulskips{% -% \interhchar{\ob@hangulglue}% - }% - \def\memucsinterwordskip{% - \spaceskip = .390\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize - \if@nonfrench - \xspaceskip = .432\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize - \fi - }% - \def\memucsinterwordchapterskip{% - \spaceskip = .41\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize - \if@nonfrench - \xspaceskip = .55\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize - \fi - }% -} - -\let\DEFAULTskips\ob@DEFAULTskips -\def\ob@thinthinspace{\hskip2\ob@hu} -\def\ob@onethirdspace{\hskip5\ob@hu} - -\ifnokorean\else -\if@koreanfn -%%% footnote setting -%%% 99)에 해당하는 박스 길이를 구한 다음 -\newsavebox\mytmpbox\sbox\mytmpbox{\footnotesize 99)\ } -%%% 각주 번호 박스를 길이에 대하여 오른쪽 정렬함. 두 자리 -%%% 각주 번호 기준으로 오른쪽 정렬되도록 만든다. -\footmarkstyle{\makebox[\wd\mytmpbox][r]{#1)\ }} -\setlength\footmarksep{\wd\mytmpbox} -\setlength\footmarkwidth{0pt} -\setlength\footparindent{0pt} -%\ifnokorean\else -\SetFnmark{\textsuperscript}{\textsuperscript{)}} -%\fi -\fi\fi -%%% footnotes and floats. codes from memmanadd.pdf -\renewcommand*{\footnoterule}{\kern-3pt\vfill - \hrule width 0.4\columnwidth \kern 2.6pt} -\setlength{\skip\footins}{1.3\onelineskip} - -%%% toc 등의 레이아웃. -\if@chapter\else -\renewcommand\chaptitlefont{\Large\bfseries} -\renewcommand\printchapternonum{} -\renewcommand\printchaptertitle[1]{\chaptitlefont #1} -\setlength\afterchapskip{\onelineskip} -\setlength\beforechapskip{1.5\onelineskip} -\fi - -\setlength\cftsectionindent{0pt} -\ifnokorean\else -\setlength\cftsectionnumwidth{1.8em} -\setlength\cftsubsectionindent{1.8em} -\setlength\cftsubsectionnumwidth{2.5em} -\fi -\if@chapter\else -\let\cftchapterindent\cftsectionindent -\let\cftchapternumwidth\cftsectionnumwidth -\let\cftbeforechapterskip\cftbeforesectionskip -\fi - -\renewcommand\cftsectionpresnum{\hfill} -\renewcommand\cftsectionaftersnum{\hskip.8em} - -%%%% kscntformat definition moved to memhangul-ucs. -%%%% HLaTeX의 \kscntformat 명령을 흉내냄 -%%%% \kscntformat{section}{제}{절} 형식으로 쓴다. -%\newsavebox{\tmp@XXbox} -%\newdimen\tmp@XXdim -%\def\kscntformat#1#2#3{% -% \sbox{\tmp@XXbox}{#2\expandafter\number\csname c@#1\endcsname#3}% -% \setlength\tmp@XXdim{\wd\tmp@XXbox}\advance\tmp@XXdim by1em% -% \expandafter\def\csname the#1\endcsname{#2\expandafter\number\csname c@#1\endcsname#3}% -% \expandafter\renewcommand\csname cft#1numwidth\endcsname{\tmp@XXdim}% -% \expandafter\renewcommand\csname cft#1presnum\endcsname{}% -% \expandafter\renewcommand\csname cft#1aftersnum\endcsname{}% -%} -% -%\ifnokorean\else -%\ifkosection -%\kscntformat{section}{제\ob@onethirdspace}{\ob@onethirdspace 절} -%\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}} -%\fi\fi - -%%% misc settings -\raggedbottom -\ifnokorean -\renewcommand\sectionmark[1]{\markboth{\thetitle}{#1}} -\else -\renewcommand\sectionmark[1]{\markboth{\thetitle}{#1}} -\fi -%\renewcommand\subsectionmark[1]{\markright{#1}} -\ifnokorean -\newcommand*\MarkDocTitle{\markboth{\thetitle}{}} -\else -\newcommand*\MarkDocTitle{\markboth{\thetitle}{}} -\fi - -%%% for bookmarks and hyperref -\def\CallHyperref{% - \ifnobookmarks - \@Call@Hyperref@Without@Bookmarks - \else - \@Call@Hyperref@With@Bookmarks - \fi -} - -\def\@Call@Hyperref@Without@Bookmarks{% - \ifpdf - \RequirePackage[pdftex,unicode,bookmarks=false]{hyperref} - \else - \if@dvips - \RequirePackage[dvips,unicode,bookmarks=false]{hyperref} - \else - \RequirePackage[dvipdfm,unicode,bookmarks=false]{hyperref} - \fi - \fi -} - -\def\@Call@Hyperref@With@Bookmarks{% - \ifpdf - \RequirePackage[pdftex,unicode]{hyperref} - \else - \if@dvips - \RequirePackage[dvips,unicode]{hyperref} - \else - \RequirePackage[dvipdfm,unicode]{hyperref} - \fi - \fi -} - -%% LyX 1.6.x의 Insert-Hyperlink 기능과 충돌하지 않게 하기 위하여 -%% hyperref을 로드하지 않음. (lyxhyper 옵션) -%% note: memhfixc는 memoir 자신이 로드해준다. -\ifnokorean\relax\else - \ifhyperrefwithlyx\relax\else - \CallHyperref -\fi\fi - -%%% \engtxt를 일일이 쓰기 귀찮고 space가 하나밖에 없을 때 -%%% 쓰기 위한 \ensp 매크로. -\newskip\@ensp -\@ensp=.297em plus .02em minus .01em -\def\ensp{\hskip\@ensp} - -%%% article의 pagestyle 기본값은 plain임. -\pagestyle{plain} - -%%% 2006/09/01 \title, \author 문제. reported by IsCho -\AtBeginDocument{% - \@ifundefined{thetitle}{\title{}}{\relax} - \@ifundefined{theauthor}{\author{}}{\relax} -} - -%%% 2006/09/05 [10.5pt] option, [romanfixed] 2006/10/22. -\if@tendotfive - \RequirePackage{10_5} - \if@resizelatin - \RequirePackage{type1cm} - \RequirePackage{type1ec} - \fi -\fi - -%%%% 2006/10/19. 현범석 님이 지적한 lof, toc 문제 -\if@chapter\else - \RequirePackage{ob-toclof} -\fi - -%%% oblivoir-chapter (12/20) -\if@chapter -\newcommand\oblivoirchapterstyle[1]{% - \chapterstyle{#1} - \renewcommand{\chapterheadstart}{\clearforchapter\vspace*{\beforechapskip}} -} -\fi - -%%%%%%%%%%%%% APPENDIX - -\ifnokorean\def\appendixrefname{Appendix}\else\def\appendixrefname{부록}\fi -\def\appref#1{\appendixrefname~\ref{#1}} - -\newif\if@AppendixTitleToToc\@AppendixTitleToTocfalse -\newif\if@AttachAppendixTitleToSecnum\@AttachAppendixTitleToSecnumfalse - -\def\AppendixTitleToToc{% - \@AppendixTitleToToctrue -} - -\def\AttachAppendixTitleToSecnum{% - \@AttachAppendixTitleToSecnumtrue -} - -\def\AppendixTitle{% - \chapter*{\appendixname} -} - -\ifnokorean -\RequirePackage{ob-nokoreanappendix} -\else -\RequirePackage{ob-koreanappendix} -\fi - -%%% modified from dhucs-enumerate.sty -\ifnokorean\else -\def\@enloop@{% - \ifx A\@entemp \def\@memtempa{\@enLabel\Alph }\else - \ifx a\@entemp \def\@memtempa{\@enLabel\alph }\else - \ifx i\@entemp \def\@memtempa{\@enLabel\roman }\else - \ifx I\@entemp \def\@memtempa{\@enLabel\Roman }\else - \ifx 1\@entemp \def\@memtempa{\@enLabel\arabic}\else - \ifx \@sptoken\@entemp \let\@memtempa\@enSpace \else - \ifx \bgroup\@entemp \let\@memtempa\@enGroup \else - \ifx \@enum@\@entemp \let\@memtempa\@gobble \else - \ifx^^ea\@entemp % 가, - \let\@memtempa\@dhucs@enumerate@EA\else %%%%% - \ifx^^e2\@entemp % ①, ⑴, ⒜, ⓐ, ⅰ, Ⅰ - \let\@memtempa\@dhucs@enumerate@Eii\else %%%%% - \ifx^^e3\@entemp % ㄱ, ㉠, ㉮, ㈀, ㈎ - \let\@memtempa\@dhucs@enumerate@Eiii\else - \let\@memtempa\@enOther - \@enhook - \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi - \@memtempa} - -\def\@dhucs@enumerate@error#1{% - \PackageError{dhucs-enumerate} - {You can't use `\unexpanded{#1}' as enum label} - {Legal enum labels of hangul-ucs are: \MessageBreak\space\space - \unexpanded{가, ㄱ, ㉠, ㉮, ㈀, ㈎, ①, ⑴, ⒜, ⓐ, ⅰ, Ⅰ}.}% -} -\def\@dhucs@enumerate@EA#1#2#3{% - \ifnum\pdfstrcmp{#1#2#3}{^^ea^^b0^^80}=\z@ \def\@tempa{\@enLabel\gana}\else - \@dhucs@enumerate@error{#1#2#3}% - \fi - \@tempa\relax -} -\def\@dhucs@enumerate@Eii#1#2#3{% - \ifnum\pdfstrcmp{#1#2#3}{^^e2^^85^^b0}=\z@ \def\@tempa{\@enLabel\hroman}\else - \ifnum\pdfstrcmp{#1#2#3}{^^e2^^85^^a0}=\z@ \def\@tempa{\@enLabel\hRoman}\else - \ifnum\pdfstrcmp{#1#2#3}{^^e2^^92^^9c}=\z@ \def\@tempa{\@enLabel\peng}\else - \ifnum\pdfstrcmp{#1#2#3}{^^e2^^93^^90}=\z@ \def\@tempa{\@enLabel\oeng}\else - \ifnum\pdfstrcmp{#1#2#3}{^^e2^^91^^b4}=\z@ \def\@tempa{\@enLabel\pnum}\else - \ifnum\pdfstrcmp{#1#2#3}{^^e2^^91^^a0}=\z@ \def\@tempa{\@enLabel\onum}\else - \@dhucs@enumerate@error{#1#2#3}% - \fi\fi\fi\fi\fi\fi - \@tempa\relax -} -\def\@dhucs@enumerate@Eiii#1#2#3{% - \ifnum\pdfstrcmp{#1#2#3}{^^e3^^88^^8e}=\z@ \def\@tempa{\@enLabel\pgana}\else - \ifnum\pdfstrcmp{#1#2#3}{^^e3^^89^^ae}=\z@ \def\@tempa{\@enLabel\ogana}\else - \ifnum\pdfstrcmp{#1#2#3}{^^e3^^89^^a0}=\z@ \def\@tempa{\@enLabel\ojaso}\else - \ifnum\pdfstrcmp{#1#2#3}{^^e3^^84^^b1}=\z@ \def\@tempa{\@enLabel\jaso}\else - \ifnum\pdfstrcmp{#1#2#3}{^^e3^^88^^80}=\z@ \def\@tempa{\@enLabel\pjaso}\else - \@dhucs@enumerate@error{#1#2#3}% - \fi\fi\fi\fi\fi - \@tempa\relax -} - -\fi - -%%% subsection까지 항번을 붙이고 toc에 두자. -\maxtocdepth{subsection} -\maxsecnumdepth{subsection} - -%%% oblivoirallowbreak -\ifx\oblivoirallowbreak\undefined -\def\oblivoirallowbreak{\hskip1sp\hskip-1sp} -\fi - -%%% subfigure package compatibility -\if@subfigure - \let\c@lofdepth\relax - \let\c@lotdepth\relax -\fi - -%%% redefine \see or \seealso -\ifnokorean\else -\@ifundefined{see}{}{% - \renewcommand*{\see}[2]{#1\seename, \hyperpage{#2}} -} -\@ifundefined{seealso}{}{% - \renewcommand*{\seealso}[2]{#1\alsoname, \hyperpage{#2}} -} -\fi - -%%% to avoid conflicts with etextools -\ExplSyntaxOn -\cs_if_exist:NF \globcount -{ \let\globcount\newcount } -\ExplSyntaxOff - -\endinput - -%%% ChangeLog: -%%% 2015/10/19 : fix conflicts with etextools package. -%%% 2015/08/24 : dhuce-enumerate compatibility. -%%% 2015/08/01 : etex.sty dropped -%%% ver0.6 2014/06/12 : introduce new xob-font.sty -%%% ver0.5 2014/06/06 : replace \renewcommand's with \setlength's. -%%% ver0.4.3 2013/10/26 : move \kscntformat definition to memhangul-ucs -%%% ver0.4.2 2013/10/03 : fix a typo. -%%% ver0.4.1 2013/09/26 : [moreroom] thanks to Juho.Lee -%%% ver0.4.0 2013/09/25 : redesign for nanum type 1 -%%% ver0.3.9 2012/11/22 : [figtabcapt] option -%%% ver0.3.8 2009/04/06 : [lyxhyper] option -%%% ver0.3.4 2008/10/23 : moreverb, faht, fawd options. (See xoblivoir.cls) -%%% ver0.3.3a 2008/09/30 : change the way of calling microtype (non-released version) -%%% ver0.3.3 2008/09/16 : apply microtype to non-pdflatex -%%% ver0.3.2 2007/11/18 : add \see, \seealso definition -%%% ver0.3.1 2007/10/23 : subfigure package compatibility (in order to use with LyX) -%%% ver0.3.0 2007/07/15 : no changes. part of ko.TeX -%%% ver0.2.4a 2007/07/05 : add \pjaso to enumerate -%%% ver0.2.4 2007/07/01 : adopt dhucs-enumerate.sty, enumerate hook. -%%% ver0.2.3 2007/06/26 : strictcharcheck option introduced. cf. dhucs 4.0.6 -%%% ver0.2.2 2007/06/16 : finemath setto default. [nofinemath] introduced. [microtype] introduces, which works only under pdflatex. -%%% ver0.2.1 2007/06/14 : dhucs 4.0.1, memhangul-ucs 1.5.1 -%%% ver0.20c 2007/06/03 : pdfbookmark option to memhangul-ucs dropped. -%%% ver0.20a 2007/05/24 : \oblivoirallowbreak introduced -%%% ver0.20 2007/05/17 : dhucs 4.0, memhangul-ucs 1.5.0 -%%% ver0.18a 2007/01/14 : slightly alter calling-hyperref method. -%%% ver0.17C.a 2006/12/20 : \chapter-compatible feature. (private version) : \oblivoirchapterstyle command added. -%%% ver0.17 2006/12/06 : \appendix+nokorean option bug fix (req. by Beomsuk Hyun) -%%% ver0.16 2006/11/23 : \appendix features added. (req. by Beomsuk Hyun) -%%% ver0.15 2006/11/01 : [nokorean] option \if..\fi pair bug fix (rep. by smcho) -%%% ver0.14 2006/10/22 : [itemph], [romanfixed] option introduced. -%%% ver0.13 2006/10/19 : [tocentry] option introduced. (req. by Beomsuk Hyun) -%%% ver0.12 2006/09/25 : \kscntformat bug fix -%%% ver0.11 2006/09/18 : article-like footnote style made default, [footnote] option introduced -%%% ver0.1 2006/09/13 : renamed to oblivoir (req. by ischo) -%%% ver0.014 2006/09/05 : introduce [10.5pt] option with 10_5.sty (req. by synapse) -%%% ver0.013 2006/09/03 : introduce hfontsel.sty. (req. by synapse) -%%% ver0.012 2006/09/01 : \thetitle, \theauthor undefined problem fixed. (rep. by IsCho) -%%% ver0.011 2006/05/02 : rename ksnamedef(false) to kscntformat -%%% ver0.01 2006/04/27 : introduce [nokorean] option requested by smcho. -%%% ver0.001 2006/03/11 : started this class, just for fun! -%%% diff --git a/language/korean/kotex-oblivoir/oblivoir-xlua.cls b/language/korean/kotex-oblivoir/oblivoir-xlua.cls deleted file mode 100644 index 5afc06b4b9..0000000000 --- a/language/korean/kotex-oblivoir/oblivoir-xlua.cls +++ /dev/null @@ -1,497 +0,0 @@ -%% File `oblivoir-xlua.cls` -%% -%% (C) Copyright 2006-2015 Kangsoo Kim -%% -%% 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. -%% -%% an oblivoir-compatible package for using with LuaLaTeX or XeLaTeX. -%% depends upon Dohyun Kim's xetexko and the author's memhangul-x. -%% -\ProvidesClass{oblivoir-xlua} - [2015/10/19 v0.8.3 article-like class to typeset UTF-8 korean using memoir.] -\typeout{A variant of oblivoir class for Lua- or XeLaTeX.} - -\providecommand\@DisabledOption[1]{% - \typeout{[#1] option is deprecated}} - -\RequirePackage{xkeyval} - -%%% Disabled Options -\DeclareOptionX{dvips}{\@DisabledOption{\CurrentOption}} -\DeclareOptionX{romanfixed}{\@DisabledOption{\CurrentOption}} -\DeclareOptionX{finemath}{\@DisabledOption{\CurrentOption}} -\DeclareOptionX{nofinemath}{\@DisabledOption{\CurrentOption}} -\DeclareOptionX{strictcharcheck}{\@DisabledOption{\CurrentOption}} -\DeclareOptionX{noreserveinserts}{\@DisabledOption{\CurrentOption}} - -%%% active Options -\newif\ifnokorean\nokoreanfalse -\DeclareOptionX{nokorean}{\nokoreantrue} -\newif\if@polyglossia\@polyglossiafalse -\DeclareOptionX{polyglossia}{\@polyglossiatrue} -\newif\iftwosidedoc\twosidedocfalse -\DeclareOptionX{twoside}{\twosidedoctrue} -\newif\ifopenrightdoc\openrightdocfalse -\DeclareOptionX{openright}{\openrightdoctrue} -\newif\ifkosection\kosectionfalse -\DeclareOptionX{kosection}{\kosectiontrue} -\newif\ifnobookmarks\nobookmarksfalse -\DeclareOptionX{nobookmarks}{\nobookmarkstrue} -\newif\ifhyperrefwithlyx\hyperrefwithlyxfalse -\DeclareOptionX{lyxhyper}{\hyperrefwithlyxtrue}{\hyperrefwithlyxfalse} -\newif\if@tendotfive\@tendotfivefalse -\DeclareOptionX{10.5pt}{\@tendotfivetrue} -\newif\if@koreanfn\@koreanfnfalse -\DeclareOptionX{footnote}{\@koreanfntrue} -\newif\if@toclofentry\@toclofentryfalse -\DeclareOptionX{tocentry}{\@toclofentrytrue} -%\newif\if@itemph\@itemphfalse -\DeclareOptionX{itemph}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} -\DeclareOptionX{gremph}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} -\newif\if@chapter\@chapterfalse -\DeclareOptionX{chapter}{\@chaptertrue\@toclofentrytrue} -\newif\if@microtype\@microtypefalse -\DeclareOptionX{microtype}{\@microtypetrue} -\newif\if@subfigure\@subfigurefalse -\DeclareOptionX{subfigure}{\@subfiguretrue} -\DeclareOptionX{adjustmath}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} -\newif\if@manspace\@manspacefalse -\DeclareOptionX{obspace}{\@manspacetrue} -% -%%% new Options -\DeclareOptionX{latinquote}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} -%%% changed fontspec -> manualfontspec -\DeclareOptionX{fontspec}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} -\newif\if@moreverb\@moreverbfalse -\DeclareOptionX{moreverb}{\@moreverbtrue} -\newif\if@foursix\@foursixfalse\newlength\fa@setheight\newlength\fa@setwidth -\DeclareOptionX{faht}[]{\fa@setheight=#1\@foursixtrue} -\DeclareOptionX{fawd}[]{\fa@setwidth=#1\@foursixtrue} -\newif\if@amsmath\@amsmathfalse -\DeclareOptionX{amsmath}{\@amsmathtrue} -\DeclareOptionX{nowinname}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} -% -\newif\ifPRELOAD\PRELOADfalse -\DeclareOptionX{preload}[]{\PRELOADtrue\def\PRELOADstr{#1}} -\def\PRELOADoptstr{} -\DeclareOptionX{preloadoption}[]{\def\PRELOADoptstr{#1}} - -%% [nounfonts] -\DeclareOptionX{unfonts}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} -\DeclareOptionX{nounfonts}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} -\DeclareOptionX{nanum}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} -\DeclareOptionX{hcr}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} - -\DeclareOptionX{figtabcapt}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} - -\DeclareOptionX{cjk}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} -%\DeclareOptionX{cjkoption}[]{\PassOptionsToPackage{#1}{cjkutf8-ko}} -\DeclareOptionX{dhucs}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} - -%%% compatibility options -\DeclareOptionX{uset1font}{\PassOptionsToPackage{usecjkt1font}{cjkutf8-ko}} -\DeclareOptionX{usedotemph}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} - -%%% -\DeclareOptionX*{% - \PassOptionsToClass{\CurrentOption}{memoir}% -} -% -\ProcessOptionsX - -% expl3 -\RequirePackage{expl3,xparse} - -%%% moreverb -\if@moreverb - \RequirePackage{moreverb} -\fi - -%%% preload -\ifPRELOAD - \RequirePackage[\PRELOADoptstr]{\PRELOADstr} - \ifx\medspace\undefined\relax\else\let\medspace\relax\fi -\fi - -%% LyX compatibility -\ifx\@textsubscript\undefined\else - \let\@textsubscript\relax -\fi - -%%% memoir/memhangul-ucs 로드. -\if@chapter - \LoadClass[openany]{memoir} -\else -\iftwosidedoc - \LoadClass[article,openany]{memoir} -\else - \LoadClass[article,openany,oneside]{memoir} -\fi -\fi - -%%% fontspec problem -% \RequirePackage{etex}\reserveinserts{40}% - -%%% workaround with flowfram -\if@foursix - \newcommand*{\fa@dblfoursix}{\stockheight=\fa@setheight \stockwidth=\fa@setwidth} - \fa@dblfoursix -\fi - -%%% ams{math|symb} -\if@amsmath - \RequirePackage{amsmath,xob-amssymb} -\fi - -%%% -\ifopenrightdoc\openright\fi - -\RequirePackage{ifluatex} -\RequirePackage{ifxetex} - -%%\RequirePackage{comment} -%%\def\finemath@status{} - -%\ifxetex\else\ifluatex\else -% \PackageError{xoblivoir}{This Document requires Xe(La)TeX or Lua(La)TeX!}{} -%\fi\fi - -\def\@Load@Memhangul{% - \if@polyglossia - \RequirePackage[polyglossia]{memhangul-x} - \else - \RequirePackage[nonfrench,hangulpagestyle]{memhangul-x} - \fi -} - -\ifnokorean\else - \@Load@Memhangul -\fi - -\if@chapter\else - \counterwithout{section}{chapter} -\fi - -%%% -%%% xetex doesn't know microtype, -%%% but xetexko has hangingpunctuation feature, which -%%% we will use instead. -%%% -\ifnokorean\else -\if@microtype - \ifxetex - \usepackage{xetexko-hanging} - \AtBeginDocument{\hangingpunctuation} - \typeout {xoblivoir: use xetexko-hanging instead of microtype} - \else -% \ifluatex -% \enablemicrotype -% \fi - \fi -\fi -\fi - -%%% 기본 자간 -\newdimen\ob@hu % 1jw=.95em, 1hu=1/16jw. see hfontspec.oblivoir -\ifnokorean\ob@hu=\z@\else\ob@hu=.059375em\fi -%%% defaultskip: suppressed (2015/04/19) -\if@manspace -\def\ob@DEFAULTskips{% - \def\memucshangulskips{}% - \def\memucsinterwordskip{% - \spaceskip = .390\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize -% \if@nonfrench - \xspaceskip = .432\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize -% \fi - }% - \def\memucsinterwordchapterskip{% - \spaceskip = .41\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize -% \if@nonfrench - \xspaceskip = .55\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize -% \fi - }% -} -\let\DEFAULTskips\ob@DEFAULTskips -\else -\let\memucshangulskips\relax -\let\memucsinterwordskip\relax -\let\memucsinterwordchapterskip\relax -\let\DEFAULTskips\relax -\fi -\def\ob@thinthinspace{\hskip2\ob@hu} -\def\ob@onethirdspace{\hskip5\ob@hu} - -\ifnokorean\else -\if@koreanfn -%%% footnote setting -%%% 99)에 해당하는 박스 길이를 구한 다음 -\newsavebox\mytmpbox\sbox\mytmpbox{\footnotesize 99)\ } -%%% 각주 번호 박스를 길이에 대하여 오른쪽 정렬함. 두 자리 -%%% 각주 번호 기준으로 오른쪽 정렬되도록 만든다. -\footmarkstyle{\makebox[\wd\mytmpbox][r]{#1)\ }} -\setlength\footmarksep{\wd\mytmpbox} -\setlength\footmarkwidth{0pt} -\setlength\footparindent{0pt} -%\ifnokorean\else -\SetFnmark{\textsuperscript}{\textsuperscript{)}} -%\fi -\fi\fi -%%% footnotes and floats. codes from memmanadd.pdf -\renewcommand*{\footnoterule}{\kern-3pt\vfill - \hrule width 0.4\columnwidth \kern 2.6pt} -\setlength{\skip\footins}{1.3\onelineskip} - -%%% toc 등의 레이아웃. -\if@chapter\else -\renewcommand\chaptitlefont{\Large\bfseries} -\renewcommand\printchapternonum{} -\renewcommand\printchaptertitle[1]{\chaptitlefont #1} -\setlength\afterchapskip{\onelineskip} -\setlength\beforechapskip{1.5\onelineskip} -\fi - -\setlength\cftsectionindent{0pt} -\ifnokorean\else -\setlength\cftsectionnumwidth{1.8em} -\setlength\cftsubsectionindent{1.8em} -\setlength\cftsubsectionnumwidth{2.5em} -\fi -\if@chapter\else -\let\cftchapterindent\cftsectionindent -\let\cftchapternumwidth\cftsectionnumwidth -\let\cftbeforechapterskip\cftbeforesectionskip -\fi - -\renewcommand\cftsectionpresnum{\hfill} -\renewcommand\cftsectionaftersnum{\hskip.8em} - -%% moved kscntformat to memhangul-x -%%%% kscntformat -%%%% HLaTeX의 \kscntformat 명령을 흉내냄 -%%%% \kscntformat{section}{제}{절} 형식으로 쓴다. -%\newsavebox{\tmp@XXbox} -%\newdimen\tmp@XXdim -%\def\kscntformat#1#2#3{% -% \sbox{\tmp@XXbox}{#2\expandafter\number\csname c@#1\endcsname#3}% -% \setlength\tmp@XXdim{\wd\tmp@XXbox}\advance\tmp@XXdim by1em% -% \expandafter\def\csname the#1\endcsname{#2\expandafter\number\csname c@#1\endcsname#3}% -% \expandafter\renewcommand\csname cft#1numwidth\endcsname{\tmp@XXdim}% -% \expandafter\renewcommand\csname cft#1presnum\endcsname{}% -% \expandafter\renewcommand\csname cft#1aftersnum\endcsname{}% -%} - -%\ifnokorean\else -%\ifkosection -%\kscntformat{section}{제}{절} -%\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}} -%\fi\fi - -%%% misc settings -\raggedbottom -\ifnokorean -\renewcommand\sectionmark[1]{\markboth{\thetitle}{#1}} -\else -\renewcommand\sectionmark[1]{\markboth{\thetitle}{#1}} -\fi -%\renewcommand\subsectionmark[1]{\markright{#1}} -\ifnokorean -\newcommand*\MarkDocTitle{\markboth{\thetitle}{}} -\else -\newcommand*\MarkDocTitle{\markboth{\thetitle}{}} -\fi - -%%% for bookmarks and hyperref -\def\CallHyperref{% - \ifnobookmarks - \@Call@Hyperref@Without@Bookmarks - \else - \@Call@Hyperref@With@Bookmarks - \fi -} - -\def\@Call@Hyperref@Without@Bookmarks{% - \ifluatex - \usepackage[unicode,bookmarks=false]{hyperref} - \else\ifxetex - \usepackage[bookmarks=false]{hyperref} - \else - \usepackage[unicode,bookmarks=false]{hyperref} - \fi\fi -} - -\def\@Call@Hyperref@With@Bookmarks{% - \ifluatex - \usepackage[unicode]{hyperref} - \else\ifxetex - \usepackage{hyperref} - \else - \usepackage[unicode]{hyperref} - \fi\fi -} - -%% LyX 1.6.x의 Insert-Hyperlink 기능과 충돌하지 않게 하기 위하여 -%% hyperref을 로드하지 않음. (lyxhyper 옵션) -%% note: memhfixc는 memoir 자신이 로드해준다. -\ifnokorean\relax\else - \ifhyperrefwithlyx\relax\else - \CallHyperref -\fi\fi - -%%% \engtxt를 일일이 쓰기 귀찮고 space가 하나밖에 없을 때 -%%% 쓰기 위한 \ensp 매크로. -\newskip\@ensp -\@ensp=.297em plus .02em minus .01em -\def\ensp{\hskip\@ensp} - -%%% article의 pagestyle 기본값은 plain임. -\pagestyle{plain} - -%%% 2006/09/01 \title, \author 문제. reported by IsCho -\AtBeginDocument{% - \@ifundefined{thetitle}{\title{}}{\relax} - \@ifundefined{theauthor}{\author{}}{\relax} -} - -%%% 2006/09/05 [10.5pt] option, [romanfixed] 2006/10/22. -\if@tendotfive - \RequirePackage{10_5} -\fi - -%%%% 2006/10/19. 현범석 님이 지적한 lof, toc 문제 -\if@chapter\else - \usepackage{ob-toclof} -\fi - -%%% oblivoir-chapter (12/20) -\if@chapter -\newcommand\oblivoirchapterstyle[1]{% - \chapterstyle{#1} - \renewcommand{\chapterheadstart}{\clearforchapter\vspace*{\beforechapskip}} -} -\fi - -%%%%%%%%%%%%% APPENDIX - -\ifnokorean\def\appendixrefname{Appendix}\else\def\appendixrefname{부록}\fi -\def\appref#1{\appendixrefname~\ref{#1}} - -\newif\if@AppendixTitleToToc\@AppendixTitleToTocfalse -\newif\if@AttachAppendixTitleToSecnum\@AttachAppendixTitleToSecnumfalse - -\def\AppendixTitleToToc{% - \@AppendixTitleToToctrue -} - -\def\AttachAppendixTitleToSecnum{% - \@AttachAppendixTitleToSecnumtrue -} - -\def\AppendixTitle{% - \chapter*{\appendixname} -} - -\ifnokorean -\usepackage{ob-nokoreanappendix} -\else -\usepackage{ob-koreanappendix} -\fi - -%%%%%%%%%%%%%%% enumerate -\@ifpackageloaded{enumerate}{}{\RequirePackage{enumerate}} -\def\@enloop@{% -%%% why @enhook doesn't work? - \ifx 가\@entemp \def\@tempa{\@enLabel\gana }\else - \ifx ㈎\@entemp \def\@tempa{\@enLabel\pgana }\else - \ifx ㉮\@entemp \def\@tempa{\@enLabel\ogana }\else - \ifx ㄱ\@entemp \def\@tempa{\@enLabel\jaso }\else - \ifx ㈀\@entemp \def\@tempa{\@enLabel\pjaso }\else - \ifx ㉠\@entemp \def\@tempa{\@enLabel\ojaso }\else - \ifx ⑴\@entemp \def\@tempa{\@enLabel\pnum }\else - \ifx ①\@entemp \def\@tempa{\@enLabel\onum }\else - \ifx ⒜\@entemp \def\@tempa{\@enLabel\peng }\else - \ifx ⓐ\@entemp \def\@tempa{\@enLabel\oeng }\else - \ifx ⅰ\@entemp \def\@tempa{\@enLabel\hroman}\else - \ifx Ⅰ\@entemp \def\@tempa{\@enLabel\hRoman}\else -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \ifx A\@entemp \def\@tempa{\@enLabel\Alph }\else - \ifx a\@entemp \def\@tempa{\@enLabel\alph }\else - \ifx i\@entemp \def\@tempa{\@enLabel\roman }\else - \ifx I\@entemp \def\@tempa{\@enLabel\Roman }\else - \ifx 1\@entemp \def\@tempa{\@enLabel\arabic}\else - \ifx \@sptoken\@entemp \let\@tempa\@enSpace \else - \ifx \bgroup\@entemp \let\@tempa\@enGroup \else - \ifx \@enum@\@entemp \let\@tempa\@gobble \else - \let\@tempa\@enOther - \@enhook - \fi\fi\fi\fi\fi\fi\fi\fi - \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi - \@tempa} - -%%% subsection까지 항번을 붙이고 toc에 두자. -\maxtocdepth{subsection} -\maxsecnumdepth{subsection} - -%%% oblivoirallowbreak -\ifx\oblivoirallowbreak\undefined -\def\oblivoirallowbreak{\hskip1sp\hskip-1sp} -\fi - -%%% subfigure package compatibility -\if@subfigure - \let\c@lofdepth\relax - \let\c@lotdepth\relax -\fi - -%%% redefine \see or \seealso -\ifnokorean\else -\@ifundefined{see}{}{% - \renewcommand*{\see}[2]{#1\seename, \hyperpage{#2}} -} -\@ifundefined{seealso}{}{% - \renewcommand*{\seealso}[2]{#1\alsoname, \hyperpage{#2}} -} -\fi - -%%% to avoid conflicts with etextools -\ExplSyntaxOn -\cs_if_exist:NF \globcount -{ \let\globcount\newcount } -\ExplSyntaxOff - -\endinput - -%%% ChangeLog: -%%% 2015-10-19 : fix conflicts with etextools package. -%%%% 2015-08-01 : drop etex.sty -%%% 2015-07-27 : fix nokorean bug -%%% 2015-07-10 : etex-pkg conflicts fixed. -%%% 2015-04-19 : suppress space factors -%%% 2014-06-12 : introduce new xob-font.sty -%%% 2014-06-06 : replace false \renewcommand with \setlength -%%% 2013-10-26 : moved \kscntformat definition to memhangul. -%%% 2013-09-12 : integrate ifluaorxetex.sty -%%% 2013-09-01 : [cjk], [dhucs] option introduced. -%%% 2011-09-26 : [preloadoption] bugfix. -%%% 2011-09-15 : [fontspec] renamed to [manualfontspec]; and intrudoce [fontspec, xcolor, hyperref, preloadoption] -%%% 2010-09-16 : reserveinserts, lyx compatibility etc. (for TeX Live 2010) -%%% 08:46 2010-02-09 : [microtype] -> hanging punctuation (xetexko) -%%% 10:16 2009-10-27 : [preload] 옵션 -%%% 오전 3:12 2009-04-07 : [lyxhyper] 옵션 -%%% 오전 6:36 2008-09-18 : revive microtype option, in spite of its impotence. -%%% 오후 2:16 2008-09-18 : latinquote 옵션 -%%% 오전 4:58 2008-09-30 : xkospace 새 버전에 맞춘 대대적인 수정. -%%% : enumerate, hangul item title, 기호문자 등을 추가. -%%% 오후 5:25 2008-10-07 : revive gremph/itemph -%%% 오전 10:51 2008-10-08 : revive kscntformat -%%% 오전 5:12 2008-10-12 : fontspec, moreverb, xob-hanfont -%%% 오전 1:19 2008-10-13 : xetexko v0.1 반영 -%%% 오전 12:50 2008-10-22 : fawd, faht 옵션 추가. (workaround with flowfram) -%%% 오후 12:22 2008-10-24 : add [unicode] option to hyperref under LuaTeX -%%% 13:49 2008-11-24 : add [amsmath] option to avoid LyX's auto loading problem under XeLaTeX. -%%% 오후 17:59 2008-12-03 : nowinname 옵션 추가 diff --git a/language/korean/kotex-oblivoir/oblivoir.cls b/language/korean/kotex-oblivoir/oblivoir.cls deleted file mode 100644 index 82c2faa98d..0000000000 --- a/language/korean/kotex-oblivoir/oblivoir.cls +++ /dev/null @@ -1,23 +0,0 @@ -%% File `oblivoir.cls` -%% -%% (C) Copyright 2006-2013 Kangsoo Kim -%% (C) Copyright 2013 Kihwang Lee -%% -%% 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. -%% -%% Read LICENSE included in the package. -%% -%% -------------------------------------------------------- -%% oblivoir.cls - -\ProvidesClass{oblivoir} - -\LoadClassWithOptions{xoblivoir} - -\endinput diff --git a/language/korean/kotex-oblivoir/tex/memhangul-common/10_5.sty b/language/korean/kotex-oblivoir/tex/memhangul-common/10_5.sty new file mode 100644 index 0000000000..401c569ff9 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-common/10_5.sty @@ -0,0 +1,82 @@ +%% File `10_5.sty` +%% +%% Copyright (c) 2006-2013 Kangsoo Kim +%% +%% 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. +%% +%% default font sizes 10.5 +%% 폰트 사이즈 설정. +%% +\def\@xvarpt{10.5} +\def\@ixvarpt{9.5} +\def\@vvarpt{5.5} +\def\@vivarpt{6.5} +\def\@viivarpt{7.5} +\def\@viiivarpt{8.6} +\def\@xivarpt{11.65} +\def\@xiivarpt{12.5} +\def\@xiiipt{13} +\renewcommand{\normalsize}{% + \@setfontsize\normalsize\@xvarpt\@xiipt + \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ + \abovedisplayshortskip \z@ \@plus3\p@ + \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ + \belowdisplayskip \abovedisplayskip + \let\@listi\@listI} +\normalsize +\renewcommand{\small}{% + \@setfontsize\small\@ixvarpt{11}% + \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ + \abovedisplayshortskip \z@ \@plus2\p@ + \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@ + \def\@listi{\leftmargin\leftmargini + \topsep 4\p@ \@plus2\p@ \@minus2\p@ + \parsep 2\p@ \@plus\p@ \@minus\p@ + \itemsep \parsep +%% \itemindent\z@ + }% + \belowdisplayskip \abovedisplayskip +} +\renewcommand{\footnotesize}{% + \@setfontsize\footnotesize\@viiivarpt{9.5}% + \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@ + \abovedisplayshortskip \z@ \@plus\p@ + \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@ + \def\@listi{\leftmargin\leftmargini + \topsep 3\p@ \@plus\p@ \@minus\p@ + \parsep 2\p@ \@plus\p@ \@minus\p@ + \itemsep \parsep +%% \itemindent\z@ + }% + \belowdisplayskip \abovedisplayskip +} +\renewcommand{\miniscule}{\@setfontsize\miniscule\@vipt{6}} +\renewcommand{\tiny}{\@setfontsize\tiny\@viipt{7.5}} +\renewcommand{\scriptsize}{\@setfontsize\scriptsize\@viivarpt{8}} +\renewcommand{\large}{\@setfontsize\large\@xivarpt{13.6}} +\renewcommand{\Large}{\@setfontsize\Large\@xiiipt{14.5}} +\renewcommand{\LARGE}{\@setfontsize\LARGE\@xivpt{18}} +\renewcommand{\huge}{\@setfontsize\huge\@xviipt{22}} +\renewcommand{\Huge}{\@setfontsize\Huge\@xxpt{25}} +\renewcommand{\HUGE}{\@setfontsize\HUGE\@xxvpt{30}} +\setlength{\onelineskip}{\@xiipt\p@} +\if@twocolumn + \setlength\parindent{1em} +\else + \setlength\parindent{15\p@} +\fi + +\if@twocolumn + \setlength\marginparsep{11\p@} +\else + \setlength\marginparsep{6\p@} +\fi +\setlength{\marginparpush}{7\p@} + +\endinput diff --git a/language/korean/kotex-oblivoir/tex/memhangul-common/fapapersize.sty b/language/korean/kotex-oblivoir/tex/memhangul-common/fapapersize.sty new file mode 100644 index 0000000000..a1a57f113f --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-common/fapapersize.sty @@ -0,0 +1,147 @@ +%% File `fapapersize.sty` +%% +%% Copyright (c) 2006-2013 Kangsoo Kim +%% +%% 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. +%% +%% ver 0.031 (2006/12/04) +%% trivial bug fix. +%% ver 0.03 (2006/11/24) +%% stocksize를 별도 지정할 수 있게 함 +%% option [stock], command \usefastocksize{}{} +%% ver 0.02 +%% 사륙배판, 국판, 신국판 정의. +%% marginnote 영역 설정은 제외되어 있음. +%% ver 0.1 +%% option 1in added +%% +\ProvidesPackage{fapapersize}[2020/02/10 v0.1] +%%% +%%% 옵션 +%%% dbl4x6 : 사륙배판 +%%% mum : 국판 +%%% newmum : 신국판 +\DeclareOption{dbl4x6}{% + \AtEndOfPackage{\usefapapersize{190mm,260mm,30mm,*,30mm,*}}% +} +\DeclareOption{mum}{% + \AtEndOfPackage{\usefapapersize{148mm,210mm,25mm,*,25mm,*}}% +} +\DeclareOption{newmum}{% + \AtEndOfPackage{\usefapapersize{154mm,225mm,25mm,*,25mm,*}}% +} +\DeclareOption{1in}{% + \AtEndOfPackage{\usefapapersize{*,*,1in,*,1in,*}}% + } +\newif\ifStockSize@\StockSize@false +\DeclareOption{stock}{% + \StockSize@true +} +\newif\if@showtrim\@showtrimfalse +%\DeclareOption{trimmark}{\@showtrimtrue} +\DeclareOption{showtrims}{\@showtrimtrue} +\ProcessOptions + +\newlength\fa@stockheight\newlength\fa@stockwidth +\newlength\fa@paperheight\newlength\fa@paperwidth +\newlength\fa@leftmargin\newlength\fa@rightmargin +\newlength\fa@uppermargin\newlength\fa@lowermargin +\newlength\fa@tmplenwd\newlength\fa@tmplenht + +\newdimen\tmp@dim + +\def\set@paper@size{% + \ifnum\fa@paperwidth>\fa@tmplenwd + \if@showtrim + \typeout{the page size is too small. Trim mark will not be shown.} + \@showtrimfalse\trimNone + \fi + \fi + \if@showtrim + \setstocksize{\fa@tmplenht}{\fa@tmplenwd} + \settrimmedsize{\fa@paperheight}{\fa@paperwidth}{*} + \setlrmarginsandblock{\fa@leftmargin}{\fa@rightmargin}{*} + \setulmarginsandblock{\fa@uppermargin}{\fa@lowermargin}{*} + \setlength{\trimtop}{\stockheight} + \addtolength{\trimtop}{-\paperheight} + \setlength{\trimedge}{\stockwidth} + \addtolength{\trimedge}{-\paperwidth} + \settrims{.5\trimtop}{.5\trimedge} + \trimLmarks + \else + \setstocksize{\fa@paperheight}{\fa@paperwidth} + \settrimmedsize{\stockheight}{\stockwidth}{*} + \setlrmarginsandblock{\fa@leftmargin}{\fa@rightmargin}{*} + \setulmarginsandblock{\fa@uppermargin}{\fa@lowermargin}{*} + \trimNone + \fi + \tmp@dim=\headheight\advance\tmp@dim by\headsep\advance\tmp@dim by1mm + \ifdim\fa@uppermargin<\tmp@dim + \setheaderspaces{*}{10pt}{*} + \tmp@dim=\fa@uppermargin\advance\tmp@dim by-\headsep\advance\tmp@dim by-1mm + \setheadfoot{\tmp@dim}{\tmp@dim} + \fi + \checkandfixthelayout +} + +\def\@usefastocksize#1#2{% + \setlength\fa@stockheight{#2}% + \setlength\fa@stockwidth{#1}% +} + +\newcommand*{\usefastocksize}[1]{% + \set@fa@stocksizeparameters#1\@nil +} + +\def\set@fa@stocksizeparameters#1,#2\@nil{% + \setlength{\fa@stockwidth}{#1}% + \setlength{\fa@stockheight}{#2}% +} + +\def\@usefapapersize#1#2#3[#4]#5[#6]{% + \setlength\fa@paperwidth{#1} + \setlength\fa@paperheight{#2} + \setlength\fa@leftmargin{#3} + \setlength\fa@rightmargin{#4} + \setlength\fa@uppermargin{#5} + \setlength\fa@lowermargin{#6} +} + +\newcommand*\usefapapersize[1]{% + \get@stocksize + \set@fa@papersizeparameters#1\@nil + \set@paper@size +} + +\def\get@stocksize{% + \ifStockSize@ + \def\fa@tmplenwd{\fa@stockwidth}\def\fa@tmplenht{\fa@stockheight} + \else + \def\fa@tmplenwd{\stockwidth}\def\fa@tmplenht{\stockheight} + \fi +} + +\def\set@fa@papersizeparameters#1,#2,#3,#4,#5,#6\@nil{% + \ifx*#1\def\@tmp@pgwidth{\fa@tmplenwd}\else\def\@tmp@pgwidth{#1}\fi + \ifx*#2\def\@tmp@pgheight{\fa@tmplenht}\else\def\@tmp@pgheight{#2}\fi + \ifx*#4 + \ifx*#6 + \@usefapapersize{\@tmp@pgwidth}{\@tmp@pgheight}{#3}[{#3}]{#5}[{#5}] + \else + \@usefapapersize{\@tmp@pgwidth}{\@tmp@pgheight}{#3}[{#3}]{#5}[{#6}] + \fi\else + \ifx*#6 + \@usefapapersize{\@tmp@pgwidth}{\@tmp@pgheight}{#3}[{#4}]{#5}[{#5}] + \else + \@usefapapersize{\@tmp@pgwidth}{\@tmp@pgheight}{#3}[{#4}]{#5}[{#6}] + \fi + \fi +} + +\endinput diff --git a/language/korean/kotex-oblivoir/tex/memhangul-common/memhangul-common.sty b/language/korean/kotex-oblivoir/tex/memhangul-common/memhangul-common.sty new file mode 100644 index 0000000000..4550be5467 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-common/memhangul-common.sty @@ -0,0 +1,1184 @@ +%% File `memhangul-common.sty` +%% +%% (C) Copyright 2013-2020 Kangsoo Kim +%% +%% 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. +%% +%%% +%%% part of kotex-oblivoir +%%% +%%% ===================== +%%% 편, 장 섹션 타이틀 재설정 +%%% 절의 섹션 타이틀은 수정하지 않음. +%% +\ProvidesPackage{memhangul-common}[2020/02/05] + +\let\@CHAPAPP\@chapapp +\def\refreshprepostchapters{% + \if@hanja + \def\pre@chapter{第}% + \else + \def\pre@chapter{제}% + \fi + \let\@chapapp\@CHAPAPP + \def\post@chapter{\@chapapp}% +} +\refreshprepostchapters +%\renewcommand\@chapapp{장} +\def\prechapternum{\pre@chapter} +\def\postchapternum{\post@chapter} +\newcommand\hchaptertitlehead{\pre@chapter\,\thechapter\,\post@chapter} +\providecommand\partmark[1]{} + +\let\pre@part\pre@chapter +\let\post@part\partname +%\renewcommand{\printpartname}{\partnamefont \pre@part} +\renewcommand{\printpartname}{} % disabled. +\renewcommand{\partnamenum}{\space} +\def\prepartnum{\partnamefont \pre@part} +\def\postpartnum{\partnamefont \post@part} +\newcommand\hparttitlehead{\pre@part\partnamenum\thepart\partnamenum\post@part} + +%% PART +%\long\def\@part[#1]#2{% +% \M@gettitle{#1}% +% \ifnum \c@secnumdepth >-2\relax +% \refstepcounter{part}% +% \addcontentsline{toc}{part}% +% {\protect\partnumberline{\hparttitlehead}#1}% +% \else +% \addcontentsline{toc}{part}{#1}% +% \fi +%% \markboth{}{}% +% \ifx#1\@empty\partmark{#2}\else\partmark{#1}\fi +% {\centering +% \interlinepenalty \@M +% \normalfont +% \ifnum \c@secnumdepth >-2\relax +% \prepartnum \partnamenum \printpartnum \partnamenum \postpartnum +% \midpartskip +% \fi +% \printparttitle{#2}\par}% +% \@endpart} +\long\def\@part[#1]#2{% +% \ifx#1\@empty\PrerenderUnicode{#2}\else\PrerenderUnicode{#1}\fi + \M@gettitle{#1}% + \def\f@rtoc{#1}% + \@nameuse{part@f@rtoc@before@write@hook}% + \phantomsection + \mempreaddparttotochook + \ifnum \c@secnumdepth >-2\relax + \refstepcounter{part}% + \addcontentsline{toc}{part}% +% {\protect\partnumberline{\thepart}#1}% + {\protect\partnumberline{\hparttitlehead}#1}% + \mempartinfo{\thepart}{#1}{#2}% + \else + \addcontentsline{toc}{part}{#1}% + \mempartinfo{}{#1}{#2}% + \fi + \mempostaddparttotochook + \partmark{#1}% + {\centering + \interlinepenalty \@M + \normalfont + \ifnum \c@secnumdepth >-2\relax +% \printpartname \partnamenum \printpartnum +% \midpartskip + \prepartnum \partnamenum \printpartnum \partnamenum \postpartnum + \midpartskip + \fi + \printparttitle{#2}\par}% + \@endpart} + +\def\@spart#1{% + \M@gettitle{#1}% + \phantomsection + {\centering + \interlinepenalty \@M + \normalfont + \printparttitle{#1}\par}% + \@endpart} + +%\def\@endpart{\afterpartskip +% \if@twoside +% \if@openright +% \null +% \thispagestyle{empty}% +% \newpage +% \fi +% \fi +% \if@tempswa +% \twocolumn +% \fi} + +%% CHAPTER +%%%%%%%%%%% +\renewcommand{\@m@mchapter}[1][\@empty]{% + \def\ch@pt@c{#1}% capture first optional arg + \@dblarg{\@chapter}} +%%\def\m@m@empty{\@empty} + +%%%%\def\@chapter[#1]#2{% +%%%% \ifx\ch@pt@c\m@m@empty % no optional args +%%%% \def\f@rtoc{#1}% +%%%% \def\f@rhdr{#1}% +%%%% \else % at least one opt arg +%%%% \def\f@rtoc{\ch@pt@c}% +%%%% \nametest{#1}{#2}% +%%%% \ifsamename % one opt arg +%%%% \def\f@rhdr{\ch@pt@c}% +%%%% \else % two opt args +%%%% \def\f@rhdr{#1}% +%%%% \fi +%%%% \fi +%%%% \ifnum \c@secnumdepth >\m@ne +%%%% \if@mainmatter +%%%% \refstepcounter{chapter}% +%%%% \fi +%%%% \fi +%%%% \chaptermark{\f@rhdr}% +%%%% \ifartopt +%%%% \@makechapterhead{#2}% +%%%% \@afterheading +%%%% \else +%%%% \insertchapterspace +%%%% \if@twocolumn +%%%% \@topnewpage[\@makechapterhead{#2}]% +%%%% \else +%%%% \@makechapterhead{#2}% +%%%% \fi +%%%% \@afterheading +%%%% \fi +%%%% \ifnum \c@secnumdepth >\m@ne +%%%% \if@mainmatter +%%%% \addcontentsline{toc}{chapter}{% +%%%%% \protect\chapternumberline{\thechapter}\f@rtoc}% +%%%% \protect\chapternumberline{\hchaptertitlehead}\f@rtoc}% +%%%% \else +%%%% \addcontentsline{toc}{chapter}{\f@rtoc}% +%%%% \fi +%%%% \else +%%%% \addcontentsline{toc}{chapter}{\f@rtoc}% +%%%% \fi +%%%% \ifheadnameref\M@gettitle{\f@rhdr}\else\M@gettitle{\f@rtoc}\fi +%%%%} +%%%% +%%%%\def\@makechapterhead#1{% +%%%% \chapterheadstart% \vspace*{50\p@}% +%%%% {\parindent \z@ \raggedright \normalfont +%%%% \ifnum \c@secnumdepth >\m@ne +%%%% \if@mainmatter +%%%% \memucsinterwordchapterskiphook +%%%%% \printchaptername \chapternamenum \printchapternum \chapternamenum \postchapternum +%%%% \prechapternum \chapternamenum \printchapternum \chapternamenum \postchapternum +%%%% \afterchapternum % \par\nobreak \vskip 20\p@ +%%%% \else +%%%% \printchapternonum +%%%% \fi +%%%% \else +%%%% \printchapternonum +%%%% \fi +%%%% \interlinepenalty\@M +%%%% \printchaptertitle{#1} % \Huge \bfseries #1 +%%%% \afterchaptertitle % \par\nobreak \vskip 40\p@ +%%%% }} +%%%% +%%%%\def\@makeschapterhead#1{% +%%%% \chapterheadstart +%%%% {\parindent \z@ \raggedright \normalfont \memucsinterwordchapterskiphook +%%%% \printchapternonum +%%%% \interlinepenalty\@M +%%%% \printchaptertitle{#1} +%%%% \afterchaptertitle +%%%% } +%%%%} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% CHAPTER +%% memhangul : opt args : different from memoir 1.618 +%% \chapter[toc][hdr]{title} +%% \chapter[toc]{hdr/title} +%% \chapter{toc/hdr/title} +\def\@chapter[#1]#2{% + \m@mpn@new@chaptrue% + \m@mpn@new@schapfalse% + \def\f@rbdy{#2}% +% \ifx\ch@pt@c\@empty % no optional args +% \def\f@rtoc{#2}% +% \def\f@rhdr{#2}% +% \PrerenderUnicode{#2}% +% \else % at least one opt arg +% \let\f@rtoc\ch@pt@c +% \ifx\@empty#1\@empty +% \let\f@rhdr\ch@pt@c +% \PrerenderUnicode{#1#2}% +% \else +% \def\f@rhdr{#1}% +% \PrerenderUnicode{#1}% +% \fi +% \fi + \ifx\ch@pt@c\m@m@empty % no optional args + \def\f@rtoc{#1}% + \def\f@rhdr{#1}% +% \PrerenderUnicode{#1}% + \else % at least one opt arg + \def\f@rtoc{\ch@pt@c}% + \nametest{#1}{#2}% + \ifsamename % one opt arg + \def\f@rhdr{\ch@pt@c}% +% \PrerenderUnicode{#1#2}% + \else % two opt args + \def\f@rhdr{#1}% +% \PrerenderUnicode{#1}% + \fi + \fi + \m@m@Andfalse + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \m@m@Andtrue + \fi + \fi + \ifm@m@And + \ifanappendix + \refstepcounter{APPchapter}% + \else + \refstepcounter{chapter}% + \fi + \fi + \chaptermark{\f@rhdr} + \ifartopt + \@makechapterhead{#2}% + \@afterheading + \else + \insertchapterspace + \if@twocolumn + \@topnewpage[\@makechapterhead{#2}]% + \else + \@makechapterhead{#2}% + \fi + \@afterheading + \fi + \ifm@m@And + \ifanappendix + \addcontentsline{toc}{appendix}{% +% \protect\chapternumberline{\thechapter}\f@rtoc}% + \protect\chapternumberline{\hchaptertitlehead}\f@rtoc}% +% \memappchapinfo{\thechapter}{\f@rtoc}{\f@rhdr}{#2}% + \memappchapinfo{\thechapter}{\f@rtoc}{\f@rhdr}{#2}% + \else + \addcontentsline{toc}{chapter}{% +% \protect\chapternumberline{\thechapter}\f@rtoc}% + \protect\chapternumberline{\hchaptertitlehead}\f@rtoc}% +% \memchapinfo{\thechapter}{\f@rtoc}{\f@rhdr}{#2}% + \memchapinfo{\hchaptertitlehead}{\f@rtoc}{\f@rhdr}{#2}% + \fi + \else + \addcontentsline{toc}{chapter}{\f@rtoc}% + \ifanappendix + \memappchapinfo{}{\f@rtoc}{\f@rhdr}{#2}% + \else + \memchapinfo{\hchaptertitlehead}{\f@rtoc}{\f@rhdr}{#2}% + \fi + \fi + \mempostaddchaptertotochook% + \ifheadnameref\M@gettitle{\f@rhdr}\else\M@gettitle{\f@rtoc}\fi +%%% for chapter + \ifanappendix + \protected@edef\@currentlabel{\thechapter}% + \fi + \memendofchapterhook% +} + +%\def\@makechapterhead#1{% +% \chapterheadstart% \vspace*{50\p@}% +% {\parindent \z@ \raggedright \normalfont +% \ifm@m@And +% \memucsinterwordchapterskiphook +%% \printchaptername \chapternamenum \printchapternum +%% \afterchapternum % \par\nobreak \vskip 20\p@ +% \prechapternum \chapternamenum \printchapternum \chapternamenum \postchapternum +% \afterchapternum % \par\nobreak \vskip 20\p@ +% \else +% \printchapternonum +% \fi +% \interlinepenalty\@M +% \printchaptertitle{#1} % \Huge \bfseries #1 +% \afterchaptertitle % \par\nobreak \vskip 40\p@ +% }} +\RequirePackage{etoolbox} +\patchcmd\@makechapterhead{% + \printchaptername \chapternamenum \printchapternum + \afterchapternum}{% + \prechapternum \chapternamenum \printchapternum + \chapternamenum \postchapternum \afterchapternum}{}{} + +\renewcommand{\@m@mschapter}[2][\@empty]{% + \@schapter{#2}% + \ifx \@empty#1 + \def\f@rhdr{#2}% +% \PrerenderUnicode{#2}% + \else % opt arg + \def\f@rhdr{#1}% +% \PrerenderUnicode{#1}% + \setcounter{secnumdepth}{-10}% + \chaptermark{#1}% + \setcounter{secnumdepth}{\value{maxsecnumdepth}}% + \fi + \ifanappendix + \memappchapstarinfo{\f@rhdr}{#2}% + \else + \memchapstarinfo{\f@rhdr}{#2}% + \fi} + +\def\@makeschapterhead#1{% + \chapterheadstart +% {\parindent \z@ \raggedright \normalfont + {\parindent \z@ \raggedright \normalfont \memucsinterwordchapterskiphook + \printchapternonum + \interlinepenalty\@M + \printchaptertitle{#1} + \afterchaptertitle + } +} + +%%%%%%%%%%%%% + +\renewcommand{\@chs@def@ult}{% + \def\chapterheadstart{\vspace*{\beforechapskip}} +% \def\printchaptername{\chapnamefont \@chapapp} +% \def\printchaptername{\chapnamefont \pre@chapter} + \def\printchaptername{} % disabled. +% \def\chapternamenum{\space} + \def\chapternamenum{\,} + \def\printchapternum{\chapnumfont \thechapter} + \def\prechapternum{\chapnamefont \pre@chapter} + \def\postchapternum{\chapnamefont \post@chapter} + \def\afterchapternum{\par\nobreak\vskip \midchapskip} + \def\printchapternonum{} + \def\printchaptertitle##1{\chaptitlefont ##1} + \def\postchaptertitle{\post@chapter} + \def\afterchaptertitle{\par\nobreak\vskip \afterchapskip} +} + +%% l@chapter, l@part + +\setlength{\cftpartnumwidth}{4.5em} +\setlength{\cftchapternumwidth}{4.0em} +%% for compatibility with mempatch 3.12 +\def\@chapapp@head{}% + +%% SECTION + +\renewcommand{\section}{% + \sechook\memucsinterwordhook% + \@startsection{section}{1}% level 1 + {\secindent}% heading indent + {\beforesecskip}% skip before the heading + {\aftersecskip}% skip after the heading + {\normalfont\secheadstyle}} % font + +%% PAGESTYLES +%% headings, ruled, Ruled, companioin을 수정함 + +%% pagestyle headings +\if@twoside + \makepagestyle{headings} + \makepsmarks{headings}{% + \let\@mkboth\markboth + \def\chaptermark##1{% + \markboth{\MakeUppercase{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \hchaptertitlehead \enskip\ % + \fi + \fi + ##1}}{}}% + \def\tocmark{\markboth{\MakeUppercase{\contentsname}}{}}% + \def\lofmark{\markboth{\MakeUppercase{\listfigurename}}{}}% + \def\lotmark{\markboth{\MakeUppercase{\listtablename}}{}}% + \def\bibmark{\markboth{\MakeUppercase{\bibname}}{}}% + \def\indexmark{\markboth{\MakeUppercase{\indexname}}{}}% + \def\sectionmark##1{% + \markright{\MakeUppercase{% + \ifnum \c@secnumdepth > \z@ + \thesection \enskip\ % + \fi + ##1}}}% + } + \makeevenhead{headings}{\thepage}{}{\normalfont\slshape\leftmark} + \makeoddhead{headings}{\normalfont\slshape\rightmark}{}{\thepage} +\else + \makepagestyle{headings} + \makepsmarks{headings}{% + \let\@mkboth\markboth + \def\chaptermark##1{% + \markright{\MakeUppercase{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \hchaptertitlehead \enskip\ % + \fi + \fi + ##1}}}% + \def\tocmark{\markright{\MakeUppercase{\contentsname}}}% + \def\lofmark{\markright{\MakeUppercase{\listfigurename}}}% + \def\lotmark{\markright{\MakeUppercase{\listtablename}}}% + \def\bibmark{\markright{\MakeUppercase{\bibname}}}% + \def\indexmark{\markright{\MakeUppercase{\indexname}}}% + } + \makeoddhead{headings}{\normalfont\slshape\rightmark}{}{\thepage} +\fi + +%% Pagestyle ruled + +\makepagestyle{ruled} +\makeevenfoot{ruled}{\thepage}{}{} +\makeoddfoot{ruled}{}{}{\thepage} +\makeheadrule{ruled}{\textwidth}{\normalrulethickness} +\renewcommand{\@ruledmarks}{% + \let\@mkboth\markboth + \def\chaptermark##1{% + \markboth{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \hchaptertitlehead \enskip\ % + \fi + \fi + ##1}{}} + \def\sectionmark##1{\markright{##1}} + \def\tocmark{\markboth{\contentsname}{}} + \def\lofmark{\markboth{\listfigurename}{}} + \def\lotmark{\markboth{\listtablename}{}} + \def\bibmark{\markboth{\bibname}{}} + \def\indexmark{\markboth{\indexname}{}} +} +\makepsmarks{ruled}{\@ruledmarks} +\makeevenhead{ruled}{\normalfont\scshape\leftmark}{}{} +\makeoddhead{ruled}{}{}{\normalfont\rightmark} + + +%%% References +\renewcommand\Cref[1]{% + \pre@chapter\,\ref{#1}\,\chapterrefname% +} +\renewcommand\Pref[1]{% + \pre@part\,\ref{#1}\,\partrefname% +} +\renewcommand\pref[1]{% + \pageref{#1}~\pagerefname +} +\renewcommand\tref[1]{% + \tablerefname~\ref{#1}% +} +\renewcommand\fref[1]{% + \figurerefname~\ref{#1}% +} + +%% arabic, roman... etc. +%%\def\HArabic#1{\arabic{#1}} +\def\HAlph#1{\Alph{#1}} +\def\Halph#1{\alph{#1}} +\def\HROMAN#1{\hRoman{#1}} +\def\Hroman#1{\hroman{#1}} +%% + +%% phantomchapter = phantomsection +\def\phantomchapter{% + \Hy@GlobalStepCount\Hy@linkcounter + \xdef\@currentHref{chapter*.\the\Hy@linkcounter}% + \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% +} + +%%% index +\renewcommand{\@wrindexm@m}[1]{\@@wrindexhyp#1||\\} + + +%%% 한글 문장부호 관련 명령 +%%% \hfontfamilynameprefix is deprecated. (ver1.5.0) +\def\hfontfamilynameprefix{ut} % for compatibility only + +\def\cnm@char@open{〈} +\def\cnm@char@close{〉} +\def\ccnm@char@open{《} +\def\ccnm@char@close{》} +\def\snm@char@open{「} +\def\snm@char@close{」} +\def\bnm@char@open{『} +\def\bnm@char@close{』} + +\ExplSyntaxOn +\NewDocumentCommand \memx@make@bnmcmd { mm } +{ + \ifvmode\leavevmode\fi + \memx@bnmcmd@prekern + \use:c { #1@char@open } + #2 + \use:c { #1@char@close } + \memx@bnmcmd@postkern +} +\ExplSyntaxOff + +\protected\def\cnm{% + \@ifnextchar*\cnm@star\cnm@nostar +} + +\def\cnm@star*#1{% + \def\memx@bnmcmd@prekern{\kern-.35em}% + \def\memx@bnmcmd@postkern{\kern-.4em}% + \memx@make@bnmcmd{cnm}{#1}% +} + +\def\cnm@nostar#1{% + \let\memx@bnmcmd@prekern\relax + \let\memx@bnmcmd@postkern\relax + \memx@make@bnmcmd{cnm}{#1}% +} + +\protected\def\ccnm{% + \@ifnextchar*\ccnm@star\ccnm@nostar +} + +\def\ccnm@star*#1{% + \def\memx@bnmcmd@prekern{\kern-.35em}% + \def\memx@bnmcmd@postkern{\kern-.4em}% + \memx@make@bnmcmd{ccnm}{#1}% +} + +\def\ccnm@nostar#1{% + \let\memx@bnmcmd@prekern\relax + \let\memx@bnmcmd@postkern\relax + \memx@make@bnmcmd{ccnm}{#1}% +} + +\protected\def\snm{% + \@ifnextchar*\snm@star\snm@nostar +} + +\def\snm@star*#1{% + \def\memx@bnmcmd@prekern{\kern-.35em}% + \def\memx@bnmcmd@postkern{\kern-.4em}% + \memx@make@bnmcmd{snm}{#1}% +} + +\def\snm@nostar#1{% + \let\memx@bnmcmd@prekern\relax + \let\memx@bnmcmd@postkern\relax + \memx@make@bnmcmd{snm}{#1}% +} + +\protected\def\bnm{% + \@ifnextchar*\bnm@star\bnm@nostar +} + +\def\bnm@star*#1{% + \def\memx@bnmcmd@prekern{\kern-.35em}% + \def\memx@bnmcmd@postkern{\kern-.4em}% + \memx@make@bnmcmd{bnm}{#1}% +} + +\def\bnm@nostar#1{% + \let\memx@bnmcmd@prekern\relax + \let\memx@bnmcmd@postkern\relax + \memx@make@bnmcmd{bnm}{#1}% +} + +%%% ldots, hdots, +\ExplSyntaxOn + +\NewDocumentCommand \obldots {} { + .\kern\fontdimen3\font + .\kern\fontdimen3\font + .\kern\fontdimen3\font +} + +\NewDocumentCommand \obellipsis {} { + \nobreak \mbox{\textellipsis\textellipsis} +} + +\ExplSyntaxOff + + +\AtBeginDocument{ + \@ifpackageloaded{hyperref}{% + \pdfstringdefDisableCommands{% + \def\cnm#1{\ifx#1*\expandafter\@@cnm\else <#1>\fi} + \def\@@cnm#1{<#1>} + \def\snm#1{\ifx#1*\expandafter\@@cnm\else <#1>\fi} + \def\ccnm#1{\ifx#1*\expandafter\@@cnm\else <#1>\fi} + \def\bnm#1{\ifx#1*\expandafter\@@cnm\else <#1>\fi} + \def\oblivoirdblquote#1{\ifx#1*\expandafter\@@obquote\else "#1"\fi} + \def\@@obquote#1{"#1"} + \def\oblivoirquote#1{\ifx#1*\expandafter\@@obsquote\else '#1'\fi} + \def\@@obsquote#1{'#1'} + \def\cntrdots{…} + }% + }{} +} + +%%%% 따옴표 +\def\oblivoirdblquote@char@open{“} +\def\oblivoirdblquote@char@close{”} +\def\oblivoirquote@char@open{‘} +\def\oblivoirquote@char@close{’} + +\protected\def\oblivoirdblquote{% + \@ifnextchar*\oblivoirdblquote@star\oblivoirdblquote@nostar +} + +\def\oblivoirdblquote@star*#1{% + \def\memx@bnmcmd@prekern{\kern-.35em}% + \def\memx@bnmcmd@postkern{\kern-.4em}% + \memx@make@bnmcmd{oblivoirdblquote}{#1}% +} + +\def\oblivoirdblquote@nostar#1{% + \let\memx@bnmcmd@prekern\relax + \let\memx@bnmcmd@postkern\relax + \memx@make@bnmcmd{oblivoirdblquote}{#1}% +} + +\protected\def\oblivoirquote{% + \@ifnextchar*\oblivoirquote@star\oblivoirquote@nostar +} + +\def\oblivoirquote@star*#1{% + \def\memx@bnmcmd@prekern{\kern-.35em}% + \def\memx@bnmcmd@postkern{\kern-.4em}% + \memx@make@bnmcmd{oblivoirquote}{#1}% +} + +\def\oblivoirquote@nostar#1{% + \let\memx@bnmcmd@prekern\relax + \let\memx@bnmcmd@postkern\relax + \memx@make@bnmcmd{oblivoirquote}{#1}% +} + +%%%% cntrdots + +\ifx\cntrdot\undefined +\DeclareRobustCommand{\cntrdot}{% + \@ifnextchar*\@cntrd@t\@@cntrd@t +} +\else +\renewcommand{\cntrdot}{% + \@ifnextchar*\@cntrd@t\@@cntrd@t +} +\fi + +\ifx\oblivoirallowbreak\undefined +\let\oblivoirallowbreak\allowbreak +\fi + +\def\@cntrd@t*{% + \leavevmode\kern.2em\@@cntrd@t\hskip.2em\oblivoirallowbreak +} +\def\@@cntrd@t{% + \leavevmode\nobreak\raise.02ex\hbox{·}\oblivoirallowbreak +} + +\DeclareRobustCommand{\cntrdots}{% + \leavevmode…%\oblivoirallowbreak +} + +\DeclareRobustCommand{\cntrdotss}{% + \leavevmode ……% +} + +%% Punctuation Explanation Rule. +%% usage: \explpunc.Some_running_texts.\ % last space must not be succeeded by ^M. +\protected\def\explpunc.#1.\ {\leavevmode\,\XBrule#1\XErule\,} +\protected\def\expldash{\leavevmode\,\XBrule\,} +% +\newsavebox\togetheightoffont\sbox\togetheightoffont{!} +\newlength\htoffnt\setlength\htoffnt{\ht\togetheightoffont} +\addtolength\htoffnt{\dp\togetheightoffont} +\def\XBrule{\raise.45\htoffnt\hbox{\rule{1.25em}{.25pt}}} +\def\XErule{\raise.45\htoffnt\hbox{\hskip1pt\rule{1.25em}{.25pt}}} + +%% Misc def. +%\def\PageName{페이지} +%\def\AltPageName{쪽} + +%% \titleref +%% -- 2009/02/11. revert to original definition. +\let\M@TitleReference\@firstoftwo +\let\M@M@TitleReference\@firstoftwo +\def\@mem@theTR{\let\M@M@TitleReference\@firstoftwo\theTitleReference} + +%% vertical distance of math display +\if@mathdisp +\addtodef{\normalsize}{}{% + \abovedisplayskip 6\p@ \@plus2\p@ \@minus1\p@ + \abovedisplayshortskip .5\p@ \@plus2\p@ \@minus1\p@ + \belowdisplayshortskip 6\p@ \@plus2\p@ \@minus1\p@ + \belowdisplayskip \abovedisplayskip} +\fi + +%% arabic frontmatter numbering +\if@arabicfrontmatter +\renewcommand{\@memfront}{% + \@smemfront\pagenumbering{arabic}} +\fi + +%% 할주. +%% still experimental +%% \hbox로 처리하기 때문에 행끝에서 할주 행나눔은 이루어지지 않는다. +%% 글꼴이 \tiny로 고정. \footnotesize를 쓰면 행간이 흐트러짐. +%% TODO: 현재 설정은 10pt 문서에서 1pt정도가 행간에 추가됨. +%% \lineskiplimit를 이용해서 행간을 고정시켜둘 것인지는 아직 +%% 결정하지 못하였음. +\newskip\divnoteskip +\def\divnotedelimopen{\hskip.1em$\big($} +\def\divnotedelimclose{$\big)$\hskip.1em} +\divnoteskip = .18em plus .02em minus .02em +\def\divnotestyle{% + \spaceskip\divnoteskip\normalfont\tiny} +\protected\def\divnote#1{% + \settowidth{\@tempdima}{\divnotestyle #1}% + \ifvmode\leavevmode\fi\divnotedelimopen + \raise.2em\hbox{\parbox{.525\@tempdima}{\divnotestyle\singlespace #1}}\divnotedelimclose +} + +%% 각주 설정을 위한 추가 매크로 +\def\SetFnmark#1#2{% + \expandafter\def\csname @makefnmark\endcsname{\bgroup #1\@thefnmark#2\egroup}% +} + +%% chapter의 첫 단락 들여쓰기. +\newcommand*\chapterindentfirst{% + \addtodef{\@afterheading}{\@afterindenttrue}{} +} + +%% memhangul-patch +\InputIfFileExists{memhangul-patch.sty}{}{} + +%%% fig, tab caption +\def\obCaptionFont#1{\def\@figtabcaptfont@{#1}} +\providecommand\@figtabcaptfont@{\normalfont} +\if@figtabcapt@ +\AtBeginDocument{ +\@ifpackageloaded{caption}{% requested by Progress + \DeclareCaptionLabelFormat{xob-cnm-parens}{\cnm{#1~#2}} + \captionsetup{labelformat=xob-cnm-parens,labelsep=space} +}% +{% + \precaption{{\@figtabcaptfont@\cnm@char@open}} + \captiondelim{{\@figtabcaptfont@\cnm@char@close}\quad} + \renewcommand\cfttablepresnum{\cnm@char@open\tablename\space} + \renewcommand\cfttableaftersnum{\cnm@char@close} + \setlength\cfttablenumwidth{3.8em} + \renewcommand\cftfigurepresnum{\cnm@char@open\figurename\space} + \renewcommand\cftfigureaftersnum{\cnm@char@close} + \setlength\cftfigurenumwidth{4.5em} +} +} +\fi + +%%% LuaTeX, XeTeX logos +\RequirePackage{xparse} +\ExplSyntaxOn +\tl_if_exist:NF \XeTeX +{ + \RequirePackage{hologo} + \ProvideDocumentCommand \XeTeX { } { \hologo{XeTeX} } + \ProvideDocumentCommand \XeLaTeX { } { \hologo{XeLaTeX} } +} +\tl_if_exist:NF \LuaTeX +{ + \RequirePackage{hologo} + \ProvideDocumentCommand \LuaTeX { } { \hologo{LuaTeX} } + \ProvideDocumentCommand \LuaLaTeX { } { \hologo{LuaLaTeX} } +} +\ExplSyntaxOff + +%% Pagestyle Ruled + +\makepagestyle{Ruled} +\makerunningwidth{Ruled}{1.1\textwidth} +\makeheadposition{Ruled}{flushright}{flushleft}{flushright}{flushleft} +\makeevenfoot{Ruled}{\thepage}{}{} +\makeoddfoot{Ruled}{}{}{\thepage} +\makeheadrule{Ruled}{1.1\textwidth}{\normalrulethickness} +\makepsmarks{Ruled}{\@ruledmarks} +\makeevenhead{Ruled}{\normalfont\scshape\leftmark}{}{} +\makeoddhead{Ruled}{}{}{\normalfont\rightmark} + +%% Pagestyle companion + +%\makepagestyle{companion} +%\setlength{\headwidth}{\textwidth} +% \addtolength{\headwidth}{\marginparsep} +% \addtolength{\headwidth}{\marginparwidth} +%\makerunningwidth{companion}{\headwidth} +%\makeheadrule{companion}{\headwidth}{\normalrulethickness} +%\makeheadposition{companion}{flushright}{flushleft}{}{} +%\makepsmarks{companion}{% +% \let\@mkboth\markboth +% \def\chaptermark##1{\markboth{##1}{##1}} % left mark & right marks +% \def\sectionmark##1{\markright{% +% \ifnum \c@secnumdepth>\z@ +% \thesection. \ % +% \fi +% ##1}} +% \def\tocmark{\markboth{\contentsname}{\contentsname}} +% \def\lofmark{\markboth{\listfigurename}{\listfigurename}} +% \def\lotmark{\markboth{\listtablename}{\listtablename}} +% \def\bibmark{\markboth{\bibname}{\bibname}} +% \def\indexmark{\markboth{\indexname}{\indexname}} +%} +%\makeevenhead{companion}{\normalfont\bfseries\thepage}{}% +% {\normalfont\bfseries\leftmark} +%\makeoddhead{companion}{\normalfont\bfseries\rightmark}{}% +% {\normalfont\bfseries\thepage} + +%% 한글 pagestyle hangul +\makepagestyle{hangul} +\newdimen\pghgheadwidth\let\pghgheadwidth=\textwidth +\makerunningwidth{hangul}{\pghgheadwidth} +%\makeheadrule{hangul}{\pghgheadwidth}{0pt} +\makeheadposition{hangul}{flushleft}{flushright}{flushleft}{flushright} +\def\@hgpsmarks{% + \let\@mkboth\markboth + \def\chaptermark##1{% + \markboth{\scshape + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \hchaptertitlehead \enskip\ % + \fi + \fi + ##1}{}}% + \def\tocmark{\markboth{\scshape\contentsname}{}}% + \def\lofmark{\markboth{\scshape\listfigurename}{}}% + \def\lotmark{\markboth{\scshape\listtablename}{}}% + \def\bibmark{\markboth{\scshape\bibname}{}}% + \def\indexmark{\markboth{\scshape\indexname}{}}% + \def\sectionmark##1{% + \markright{\scshape +%% disabled printing \thesection. +% \ifnum \c@secnumdepth >\z@ +% \thesection \enskip\ % +% \fi + ##1}}% + } +\makepsmarks{hangul}{\@hgpsmarks} +\makeoddhead{hangul}{}{}{\normalfont\small\rightmark~\makebox[2em][r]{\normalfont\normalsize\sffamily\thepage}} +\makeevenhead{hangul}{\makebox[2em][l]{\normalfont\normalsize\sffamily\thepage}~\normalfont\small\leftmark}{}{} + +%%%%%%%%%%%%%%%% chapterstyles %%%%%%%%%%%%%%% +\makechapterstyle{default}{% + \renewcommand{\post@chapter}{\chaptername}% + \renewcommand{\chapnamefont}{\normalfont\huge\bfseries} + \renewcommand{\chapnumfont}{\normalfont\huge\bfseries} + \renewcommand{\chaptitlefont}{\normalfont\Huge\bfseries} + \setlength{\beforechapskip}{50pt} + \setlength{\midchapskip}{20pt} + \setlength{\afterchapskip}{40pt} +} +\chapterstyle{default} + +%% for Appendix +\makechapterstyle{appendixdefault}{% + \renewcommand{\chapnamefont}{\normalfont\huge\bfseries} + \renewcommand{\chapnumfont}{\normalfont\huge\bfseries} + \renewcommand{\chaptitlefont}{\normalfont\Huge\bfseries} +% \renewcommand{\printchaptername}{\chapnumfont\@chapapp} + \renewcommand{\prechapternum}{\chapnumfont\@chapapp} + \renewcommand{\postchapternum}{} + \renewcommand{\chapternamenum}{\enskip} + \setlength{\beforechapskip}{50pt} + \setlength{\midchapskip}{20pt} + \setlength{\afterchapskip}{40pt} +} + +\makechapterstyle{section}{% +% \renewcommand{\printchaptername}{} + \renewcommand{\chapternamenum}{\enskip} + \renewcommand{\prechapternum}{} + \renewcommand{\postchapternum}{} + \renewcommand{\chapnumfont}{\normalfont\Huge\bfseries} + \renewcommand{\printchapternum}{\chapnumfont \thechapter\space} + \renewcommand{\afterchapternum}{} +} + +%% for appendix +\makechapterstyle{appendixsection}{% +% \renewcommand{\printchaptername}{\chapnumfont\@chapapp} + \renewcommand{\chapternamenum}{\enskip} + \renewcommand{\prechapternum}{\chapnumfont\@chapapp} + \renewcommand{\postchapternum}{} + \renewcommand{\chapnumfont}{\normalfont\Huge\bfseries} + \renewcommand{\printchapternum}{\chapnumfont \thechapter\space} + \renewcommand{\afterchapternum}{} +} + +\makechapterstyle{article}{% + \renewcommand{\chapterheadstart}{\vspace{\beforechapskip}} + \setlength{\beforechapskip}{3.5ex \@plus 1ex \@minus .2ex} + \setlength{\afterchapskip}{2.3ex \@plus .2ex} +% \renewcommand{\printchaptername}{} + \renewcommand{\prechapternum}{} + \renewcommand{\chapternamenum}{} + \renewcommand{\postchapternum}{} + \renewcommand{\chaptitlefont}{\normalfont\Large\bfseries} + \renewcommand{\chapnumfont}{\normalfont\Large\bfseries} + \renewcommand{\printchapternum}{\chapnumfont \thechapter\quad} + \renewcommand{\afterchapternum}{} +} + +\makechapterstyle{hangnum}{% + \renewcommand{\chapnumfont}{\chaptitlefont} + \settowidth{\chapindent}{\chapnumfont 999} +% \renewcommand{\printchaptername}{} + \renewcommand{\chapternamenum}{} + \renewcommand{\prechapternum}{} + \renewcommand{\postchapternum}{} + \renewcommand{\printchapternum}{% + \noindent\llap{\makebox[\chapindent][l]{\chapnumfont \thechapter}}} + \renewcommand{\afterchapternum}{} +} + +%\newlength{\chapindent} + +\makechapterstyle{companion}{% + \chapterstyle{default} + \renewcommand*{\chapnamefont}{\normalfont\LARGE\scshape} + \renewcommand*{\printchaptername}{\raggedleft\chapnamefont \@chapapp} + \renewcommand*{\prechapternum}{\raggedleft\chapnamefont \pre@chapter} + \renewcommand*{\chapnumfont}{\normalfont\Huge} + \setlength{\chapindent}{\marginparsep} + \addtolength{\chapindent}{\marginparwidth} + \renewcommand*{\printchaptertitle}[1]{% + \begin{adjustwidth}{}{-\chapindent} + \raggedleft \chaptitlefont ##1\par\nobreak + \end{adjustwidth}}} + +%% for appendix. +\makechapterstyle{appendixcompanion}{% + \renewcommand{\chapnamefont}{\normalfont\LARGE\scshape} + \renewcommand{\prechapternum}{\raggedleft\chapnamefont \@chapapp} +% \renewcommand{\printchaptername}{\raggedleft\chapnamefont \pre@chapter} + \renewcommand{\chapnumfont}{\normalfont\Huge} + \renewcommand{\postchapternum}{} + \setlength{\chapindent}{\marginparsep} + \addtolength{\chapindent}{\marginparwidth} + \renewcommand{\printchaptertitle}[1]{% + \begin{adjustwidth}{}{-\chapindent} + \raggedleft \chaptitlefont ##1\par\nobreak + \end{adjustwidth}} +} + +\makechapterstyle{demo}{ +% \renewcommand{\printchaptername}{\centering} + \renewcommand{\prechapternum}{\centering} + \renewcommand{\printchapternum}{\chapnumfont \numtoName{\c@chapter}} + \renewcommand{\postchapternum}{} + \renewcommand{\chaptitlefont}{\normalfont\Huge\sffamily} + \renewcommand{\printchaptertitle}[1]{% + \hrule\vskip\onelineskip \raggedleft \chaptitlefont ##1} + \renewcommand{\afterchaptertitle}{\vskip\onelineskip \hrule\vskip \afterchapskip} +} + +\makechapterstyle{demovar}{ +% \renewcommand{\printchaptername}{\centering} + \renewcommand{\prechapternum}{\centering} + \renewcommand{\printchapternum}{\chapnumfont \hNum{chapter}} + \renewcommand{\postchapternum}{\post@chapter} + \renewcommand{\chaptitlefont}{\normalfont\Huge\sffamily} + \renewcommand{\printchaptertitle}[1]{% + \hrule\vskip\onelineskip \raggedleft \chaptitlefont ##1} + \renewcommand{\afterchaptertitle}{\vskip\onelineskip \hrule\vskip \afterchapskip} +} + +%% for appendix +\makechapterstyle{appendixdemo}{ +% \renewcommand{\printchaptername}{\centering\chapnumfont\@chapapp} + \renewcommand{\prechapternum}{\centering\chapnumfont\@chapapp} + \renewcommand{\printchapternum}{\chapnumfont \@Alph\c@chapter} + \renewcommand{\postchapternum}{\ } + \renewcommand{\chaptitlefont}{\normalfont\Huge\sffamily} + \renewcommand{\printchaptertitle}[1]{% + \hrule\vskip\onelineskip \raggedleft \chaptitlefont ##1} + \renewcommand{\afterchaptertitle}{\vskip\onelineskip \hrule\vskip \afterchapskip} +} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%% appendix %%%%%%%%%%%%%%%%%%%%%%%%% + +\def\set@appendix@chapsec{% + %%% SECTION in APPENDIX + \renewcommand{\section}{% + \sechook\memucsinterwordhook% + \@startsection{section}{1}% level 1 + {\secindent}% heading indent + {\beforesecskip}% skip before the heading + {\aftersecskip}% skip after the heading + {\normalfont\secheadstyle}} % font + \def\M@sect##1##2##3##4##5##6[##7][##8]##9{% + \ifheadnameref\M@gettitle{##8}\else\M@gettitle{##7}\fi + \ifnum ##2>\c@secnumdepth + \let\@svsec\@empty + \else + \refstepcounter{APP##1}% + \protected@edef\@svsec{\@seccntformat{##1}\relax}% + \fi + \@tempskipa ##5\relax + \ifdim \@tempskipa>\z@ + \begingroup + ##6{% + \@hangfrom{\hskip ##3\relax\@svsec}% + \interlinepenalty \@M ##9\@@par}% + \endgroup + \csname ##1mark\endcsname{##8}% + \addcontentsline{toc}{##1}{% + \ifnum ##2>\c@secnumdepth \else + \protect\numberline{\noexpand\protect\csname the##1\endcsname}% + \fi + ##7}% + \else + \def\@svsechd{% + ##6{\hskip ##3\relax + \@svsec ##9}% + \csname ##1mark\endcsname{##8}% + \addcontentsline{toc}{##1}{% + \ifnum ##2>\c@secnumdepth \else + \protect\numberline{\csname the##1\endcsname}% + \fi + ##7}}% + \fi + \@xsect{##5}}% +} + +\def\restorechapsec{% + %%% SECTION in APPENDIX + \renewcommand{\section}{% + \sechook\memucsinterwordhook% + \@startsection{section}{1}% level 1 + {\secindent}% heading indent + {\beforesecskip}% skip before the heading + {\aftersecskip}% skip after the heading + {\normalfont\secheadstyle}} % font + \def\M@sect##1##2##3##4##5##6[##7][##8]##9{% + \ifheadnameref\M@gettitle{##8}\else\M@gettitle{##7}\fi + \ifnum ##2>\c@secnumdepth + \let\@svsec\@empty + \else + \refstepcounter{##1}% + \protected@edef\@svsec{\@seccntformat{##1}\relax}% + \fi + \@tempskipa ##5\relax + \ifdim \@tempskipa>\z@ + \begingroup + ##6{% + \@hangfrom{\hskip ##3\relax\@svsec}% + \interlinepenalty \@M ##9\@@par}% + \endgroup + \csname ##1mark\endcsname{##8}% + \addcontentsline{toc}{##1}{% + \ifnum ##2>\c@secnumdepth \else + \protect\numberline{\noexpand\protect\csname the##1\endcsname}% + \fi + ##7}% + \else + \def\@svsechd{% + ##6{\hskip ##3\relax + \@svsec ##9}% + \csname ##1mark\endcsname{##8}% + \addcontentsline{toc}{##1}{% + \ifnum ##2>\c@secnumdepth \else + \protect\numberline{\csname the##1\endcsname}% + \fi + ##7}}% + \fi + \@xsect{##5}} +} + +\renewcommand{\appendix}{\par +% \setcounter{chapter}{0}% +% \setcounter{section}{0}% +% \gdef\@chapapp{\appendixname}% +% \gdef\thechapter{\@Alph\c@chapter}% + \set@appendix@chapter + \anappendixtrue + \chapterstyle{appendixdefault}% +} + +\newcounter{APPchapter}\setcounter{APPchapter}{0}% +\newcounter{APPsection}[APPchapter]\setcounter{APPsection}{0}% +\newcounter{APPsubsection}[APPsection]\setcounter{APPsubsection}{0}% + +\def\set@appendix@chapter{% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\Alph{APPchapter}}% + \gdef\thesection{\thechapter.\arabic{APPsection}}% +% \counterwithout{figure}{chapter}\counterwithout{table}{chapter}% + \counterwithin{figure}{APPchapter}\counterwithin{table}{APPchapter}% + \counterwithin{equation}{APPchapter}% + \renewcommand\thefigure{\thechapter.\arabic{figure}}% + \renewcommand\thetable{\thechapter.\arabic{table}}% + \renewcommand\theequation{\thechapter.\arabic{equation}}% + \set@appendix@chapsec + \renewcommand\hchaptertitlehead{\appendixname\:\thechapter}% +} + +%%% here, I will renewcommand chapterstyle, +%%% to recover chapterstyle after appendices. +\renewcommand{\chapterstyle}[1]{% + \@nameuse{chs@#1}% + \ifanappendix\else\gdef\CURR@chpstyle{#1}\fi +} + +\def\restore@appendices@chapter{% + \refreshprepostchapters + \gdef\thechapter{\arabic{chapter}}% + \gdef\thesection{\thechapter.\arabic{section}}% + \def\hchaptertitlehead{\pre@chapter\:\thechapter}% + \counterwithin{figure}{chapter}\counterwithin{table}{chapter}% + \restorechapsec + \@ifundefined{CURR@chapstyle}{\chapterstyle{default}}% + {\expandafter\expandafter\chapterstyle{\CURR@chapstyle}}% +} + +\renewcommand{\@resets@pp}{% + \par + \@ppsavesec +% \setcounter{section}{0}% +% \setcounter{chapter}{0}% +% \renewcommand\@chapapp{\appendixname}% +% \renewcommand\thechapter{\@Alph\c@chapter}% + \set@appendix@chapter + \chapterstyle{appendixdefault} + \restoreapp +} + +\renewenvironment{appendices}% + {\@resets@pp\anappendixtrue}% + {\@ppsaveapp\@pprestoresec\restore@appendices@chapter\anappendixfalse} + +\renewenvironment{subappendices}{% + \@resets@ppsub + \def\addappheadtotoc{\phantomsection\addcontentsline{toc}{section}{\appendixtocname}} % <- mempatch 2.3 + \ifnamesubappendix + \def\sectionname{\protect\subappendixname}% + \def\@seccntformat##1{\@ifundefined{##1name}{}{\csname ##1name\endcsname\ }% + \csname the##1\endcsname\quad} + \fi + }{} + +%% default pagestyle +\if@defaulthangulpagestyle + \pagestyle{hangul} +\fi + + + +\endinput + +%%% 2015/10/15: \@part, \@chapter renewal. +%%% 2015/08/07: default chapter style, postchapternum (hoze & gromov) diff --git a/language/korean/kotex-oblivoir/tex/memhangul-common/memhangul-patch.sty b/language/korean/kotex-oblivoir/tex/memhangul-common/memhangul-patch.sty new file mode 100644 index 0000000000..b3cf729958 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-common/memhangul-patch.sty @@ -0,0 +1,20 @@ +%% File `memhangul-patch.sty` +%% +%% Copyright (c) 2005-2013 Kangsoo Kim +%% +%% 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. +%% +%% 2005/10/15 +%% some day, this patch has to be weaved into memhangul-use, 1.4, I hope. +%% 2005/12/28 +%% appendix-related minor fix +%% 2006/04/27 +%% remove redundant prerenderunicodes according to dhucs 3.0.0 +%% +\endinput \ No newline at end of file diff --git a/language/korean/kotex-oblivoir/tex/memhangul-common/memucs-enumerate.sty b/language/korean/kotex-oblivoir/tex/memhangul-common/memucs-enumerate.sty new file mode 100644 index 0000000000..c3fd53f85e --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-common/memucs-enumerate.sty @@ -0,0 +1,49 @@ +%% File `memucs-enumerate.sty` +%% +%% (C) Copyright 2006-2013 Dohyun Kim +%% Kangsoo Kim +%% +%% 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{memucs-enumerate} + [2006/07/01 partially support enumrate in memoir under memhangul] + +%\@ifpackageloaded{enumerate}{}{\RequirePackage{enumerate}} + +\g@addto@macro\@enhook{% + \ifx^^ea\@entemp % 가, + \let\@memtempa\@dhucs@enumerate\else %%%%% + \ifx^^e2\@entemp % ①, ⑴, ⒜, ⓐ, ⅰ, Ⅰ + \let\@memtempa\@dhucs@enumerate\else %%%%% + \ifx^^e3\@entemp % ㄱ, ㉠, ㉮, ㈀, ㈎ + \let\@memtempa\@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/language/korean/kotex-oblivoir/tex/memhangul-common/memucs-setspace.sty b/language/korean/kotex-oblivoir/tex/memhangul-common/memucs-setspace.sty new file mode 100644 index 0000000000..a4353ab971 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-common/memucs-setspace.sty @@ -0,0 +1,587 @@ +%% File `memucs-setspace.sty` +%% +%% Copyright (c) 2007-2013 Kangsoo Kim +%% +%% 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. +%% +%% ======================= +%% +%% 이 스타일은 setspace 6.7을 바탕으로, memoir의 +%% 출력루틴을 hooking하여 거의 동일하게 동작하도록 +%% 수정한 스타일이다. +%% memoir 클래스에서 memhangul 스타일을 사용했을 때 +%% 불린다. 다른 용도로는 사용할 수 없음. +%% +%% This style is a modified version of SETSTYLE ver 6.7 by Erica M. S. Harris +%% modified by Karnes Kim +%% +%% FEATURES: +%% all the features of setstyle package +%% +%% NEW FEATURES: +%% +%% 1. [nofloatspacing] option +%% disables the feature of SETSTYLE, turning off all the line spacing +%% in the floats(figures, tables) and footnotes. +%% \noadjustfloatfnspacing, \adjustfloatfnspacing +%% 2. [hangul] option +%% When [hangul] option is on, the basic line spreading is set to +%% a proper line spacing in Korean(Hangul) documents, which has +%% a wider gap between the lines. +%% \SetHangulspace +%% 3. quote and quotation environment +%% quote and quotation environment have the same line spacing +%% with the floats and footnotes, verse. +%% \noadjustquotespacing, \adjustquotespacing +%% 4. [adjustfootnotesep] option +%% this option is meaningful only when [hangul] is on and +%% [nofloatspacing] off. +%% 5. [adjustverbatim] option. +%% verbatim environment. +%% \SetHangulVerbatimSpace. +%% 6. \ResetHangulspace, \RestoreHangulspace +%% + +\NeedsTeXFormat {LaTeX2e}[1994/12/09] +\def \filename {memucs-setspace.sty} +\def \filedate {2007/09/21} +\def \fileversion {6.7-memucs8} +\ProvidesPackage {memucs-setspace}[\filedate\space\fileversion\space + Contributed and Supported LaTeX2e package] +\typeout {Package: `memucs-setspace', a modified version of `setspace', \fileversion\space <\filedate>} + +% BP: add nodisplayskipstretch option and \setdisplayskipstretch command. + +\providecommand{\displayskipstretch}{\baselinestretch} +\providecommand{\setdisplayskipstretch}[1]{\renewcommand{\displayskipstretch}{#1}} +\DeclareOption{nodisplayskipstretch}{\setdisplayskipstretch{1.0}} + +% GT: add George Pearsons' suggested options. + +%% Karnes' +\newif\if@singlespacefn +\DeclareOption{nofloatspacing}{\@singlespacefnfalse} +\newif\if@singlespacequote +\DeclareOption{quotespacing}{\@singlespacequotetrue} +\newif\if@hangul +\DeclareOption{hangul}{\@hangultrue\AtEndOfPackage{\hangulspacing}} +\newif\if@adjustfootnotesep +\DeclareOption{adjustfootnotesep}{\@adjustfootnoteseptrue} +\newif\if@adjustverbatim +\DeclareOption{adjustverbatim}{\@adjustverbatimtrue} + +\DeclareOption{singlespacing}{\AtEndOfPackage{\singlespacing}} +\DeclareOption{onehalfspacing}{\AtEndOfPackage{\onehalfspacing}} +\DeclareOption{doublespacing}{\AtEndOfPackage{\doublespacing}} + +\@singlespacefntrue +\@singlespacequotefalse +\@hangulfalse +\@adjustfootnotesepfalse +\@adjustverbatimfalse +\ProcessOptions + +%%% provide memucsfninterwordhook +\ifx\undefined\memucsfninterwordhook + \providecommand\memucsfninterwordhook{}% +\fi + +\def\@floatfnspacinghook{% + \if@singlespacefn + \hangulfspacing + \else + \hangulspacing + \fi +} + +\providecommand\noadjustquotespacing{% + \@singlespacequotefalse +} + +\providecommand\adjustquotespacing{% + \@singlespacequotetrue +} + +\providecommand\adjustfloatfnspacing{% + \@singlespacefntrue +} + +\providecommand\noadjustfloatfnspacing{% + \@singlespacefnfalse +} + +% GT: Sat 28 Sep 1996: Widely using \providecommand, \renewcommand, and +% \provideenvironment, instead of \def. + +% ** Line space commands. + +\providecommand{\setstretch}[1]{% + \def\baselinestretch{#1}% + \@currsize +} + +% GT: Sat 28 Sep 1996: spacing commands and environments modified to +% use \setstretch instead of \baselinestretch. +% +% GT: Sat 28 Sep 1996: No, I don't know understand the line spacing +% algorithms! If someone (LaTeX team) can enlighten me as to the +% general rule, please do! It would be very pleasant if setspace.sty +% were suited for document font sizes other than 10, 11 and 12 pt. +% +% GT: Tue 10 Dec 1996: Instead of fixing singlespacing to exact unity, +% allow user to redefine it (only slightly, please!) from its initial +% value of unity, in the case when a particular font is slightly larger +% or slightly smaller than its point size would indicate. This change +% affects setspace's single spacing commands, and LaTeX's footnote and +% float environments. The one and a half, double, and arbitrary +% spacing commands are unaltered. + +\providecommand{\SetSinglespace}[1]{% + \def\setspace@singlespace{#1}% +} + +%% Karnes. +\providecommand{\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}% +} + +\providecommand{\SetHangulVerbatimSpace}[1]{% + \def\setspace@hangulverbspace{#1}% +} + +\let\tmp@current@hangulspace\setspace@hangulspace +\let\tmp@current@hangulfspace\setspace@hangulfspace + +\providecommand{\ResetHangulspace}[2]{% + \let\tmp@current@hangulspace\setspace@hangulspace% + \let\tmp@current@hangulfspace\setspace@hangulfspace% + \Set@Hangulspace{#1}{#2}% +} + +\providecommand{\RestoreHangulspace}{% + \Set@Hangulspace{\tmp@current@hangulspace}{\tmp@current@hangulfspace}% +} + +% Here's the default single line spacing value. +\SetSinglespace{1} + +%% Karnes. +\if@hangul +\Set@Hangulspace{1.333}{1.1} +\else +\Set@Hangulspace{1.0}{1.0} +\fi + +\providecommand{\singlespacing}{% + \setstretch {\setspace@singlespace}% normally 1 + \vskip \baselineskip % Correction for coming into singlespace +} + +%% Karnes. +\providecommand{\hangulspacing}{% + \setstretch{\setspace@hangulspace}% default +} + +\providecommand{\hangulfspacing}{% + \setstretch{\setspace@hangulfspace}% +} + +\providecommand{\hangulverbspacing}{% + \setstretch{\setspace@hangulverbspace}% +} + +\providecommand{\onehalfspacing}{% + \setstretch{1.25}% default + \ifcase \@ptsize \relax % 10pt + \setstretch {1.25}% + \or % 11pt + \setstretch {1.213}% + \or % 12pt + \setstretch {1.241}% + \fi +} + +\providecommand{\doublespacing}{% + \setstretch {1.667}% default + \ifcase \@ptsize \relax % 10pt + \setstretch {1.667}% + \or % 11pt + \setstretch {1.618}% + \or % 12pt + \setstretch {1.655}% + \fi +} + +%% 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 + +% ** Modification of the LaTeX command \@setsize. + +%---Stretch the baseline BEFORE calculating the strut size. This improves +% spacing below tabular environments etc., probably... +% Comments are welcomed. + +% GT: Sun 29 Sep 1996: Question: Is this code anywhere near correct +% since this part of LaTeX (in, eg, latex.ltx) has been greatly changed? + +% GT: Sun 29 Sep 1996: The meanings of the arguments to \@setsize +% appear to be (whatever these may signify) : +% current size; font baselineskip; ignored (!); and font size. + +% GT: Sun 29 Sep 1996: Note that \@setsize (in latest LaTeX, +% \@setfontsize, which is called by \@setsize) seems to be the only +% place in purely modern LaTeX where \@currsize is set, and ltxguide.cls +% seems to be the only file in the LaTeX base distribution that uses it! + +\def\@setsize#1#2#3#4{% + % Modified 1993.04.07--GDG per KPC + \@nomath#1% + \let\@currsize#1% + \baselineskip #2% + \baselineskip \baselinestretch\baselineskip + \parskip \baselinestretch\parskip + \setbox\strutbox \hbox{% + \vrule height.7\baselineskip + depth.3\baselineskip + width\z@}% + \skip\footins \baselinestretch\skip\footins + \normalbaselineskip\baselineskip#3#4} + +% ** Float and footnote adjustments to compensate for a change in the +% ** main text's line spacing. + +%---Increase the space between last line of text and footnote rule. +%\skip\footins 20pt plus4pt minus4pt + +%---Reset baselinestretch within floats and footnotes. + +% GT: Tue 23 Jan 1996: This is where the conflict with the combination +% of the color package and the figure environment used to occur. + +% Floats. + +% GT: Sat 28 Sep 1996: \@xfloat is the only place where \normalsize +% is still used in setspace.sty ! + +\if@singlespacefn +\let\latex@xfloat=\@xfloat +\def\@xfloat #1[#2]{% + \latex@xfloat #1[#2]% + \if@singlespacefn + \def\baselinestretch {\setspace@hangulfspace} + \else + \def\baselinestretch {\setspace@hangulspace} + \fi + \normalsize +} +\else\fi + +% Karnes: footnotesep for hangul +\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 + +% GT: Wed 24 Jan 1996: This footnote code was copied from LaTeX and +% modified rather naively. It had to be brought up to date, not only +% because of LaTeX's new color ability, but also because ther had +% been major changes to this code in LaTeX at least as far back as +% March 1992. + +% Normal, bottom of the page, footnotes. +% +% GT: Based HEAVILY on original LaTeX (2e) code. A standard hook would +% be MUCH preferred, so that LaTeX's footnote implementation needn't be +% copied each time it changes. +% +% GT: The \protected@edef requires at least the December 1994 LaTeX. +% This is precisely the kind of VERSION DEPENDENCY situation that +% cannot (AFAIK) be avoided, because LaTeX (2e) LACKS appropriate +% standard hooks and/or context markers. +\if@singlespacefn +\def\m@mold@footnotetext{\@memsetspace@footnotetext} +\renewcommand{\@footnotetext}[1]{\m@mold@footnotetext{#1}\m@mmf@prepare} +\long\def\@memsetspace@footnotetext#1{% + \insert\footins{% +% GT: Next line added. Hook desired here! + \@floatfnspacinghook\memucsfninterwordhook +% \def\baselinestretch {\setspace@hangulfspace}% +% \@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. +\renewcommand{\@mpfootnotetext}[1]{% + \global\setbox\@mpfootins\vbox{% + \unvbox\@mpfootins +% GT: Next line added. Hook desired here! + \@floatfnspacinghook\memucsfninterwordhook +% \def\baselinestretch {\setspace@hangulfspace}% + \foottextfont \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 + +% ** Line space environments. + +% A single spaced quote (say) is done by surrounding singlespace with quote. + +\provideenvironment{singlespace}{% + \vskip \baselineskip + \setstretch {\setspace@singlespace}% + \vskip -\baselineskip +}{% + \par +} + +% GT (c/o Mark Olesen), Wed 15 April 1998. + +\provideenvironment{singlespace*}{% + \setstretch {\setspace@singlespace}% + \vskip -\baselineskip +}{% + \vskip -0.5\baselineskip +} + +% spacing, doublespace and onehalfspace all are meant to INCREASE the +% spacing (i.e. calling onehalfspace from within doublespace will not +% produce a graceful transition between spacings) +% +% Next two definitions fixed for consistency with TeX 3.x + +% In order to use \provideenvironment, while easily using same code for +% end of each environment, the code that used to be in \endspacing has +% been moved into a new (but internal) macro, \restore@spacing. + +\providecommand{\restore@spacing}{% + \par + \vskip \parskip + \vskip \baselineskip + \endgroup + \vskip -\parskip + \vskip -\baselineskip +} + +\provideenvironment{spacing}[1]{% + \par + \begingroup % moved from \endspacing by PGBR 29-1-91 + \setstretch {#1}% +}{% + \restore@spacing +} + +% one and a half spacing is 1.5 x pt size +\provideenvironment{onehalfspace}{% + \begingroup + \onehalfspacing +}{% + \restore@spacing +} + +% double spacing is 2 x pt size +\provideenvironment{doublespace}{% + \begingroup + \doublespacing +}{% + \restore@spacing +} + +%% quote and quotation environment : Karnes. +\def\@quotespacinghook{% + \if@singlespacequote + \hangulfspacing% + \else + \hangulspacing% + \fi +} + +\renewenvironment{quotation}% + {\list{}{\listparindent 1.5em% + \itemindent \listparindent + \rightmargin \leftmargin + \parsep \z@ \@plus\p@}% +% \memhangulinterwordhook + \item[]% + \@quotespacinghook + }% + {\endlist + \if@singlespacequote\vskip-.2\onelineskip\fi} +\renewenvironment{quote}% + {\list{}{\rightmargin\leftmargin}% +% \memhangulinterwordhook + \item[] + \@quotespacinghook + }% + {\endlist + \if@singlespacequote\vskip-.2\onelineskip\fi} +\renewenvironment{symbols}{\list{}% + {\itemindent 0em \leftmargin 8em + \labelsep 1em \labelwidth 5em +% \memhangulinterwordhook + \let\makelabel\symbollabel}% + \@quotespacinghook + }% + {\endlist} + +%%%%%%%%%%%%%%%%%%%% +%%%% fix vertical spacing in the verse environment. mempatch 3.3 +\renewenvironment{verse}[1][\linewidth]{% + \refstepcounter{verse}% + \setcounter{poemline}{0}\refstepcounter{poemline}% + \setcounter{vslineno}{1}% + \let\\=\@vscentercr + \list{}{\itemsep \z@ + \itemindent -\vindent + \listparindent\itemindent + \parsep \stanzaskip + \ifdim #1<\linewidth %% short line + \rightmargin \z@ + \leftmargin \linewidth + \advance\leftmargin -#1\relax + \advance\leftmargin -0.5\leftmargin + \advance\leftmargin \vindent + \else + \ifdim #1>\linewidth %% long line + \rightmargin \z@ + \leftmargin \vindent + \else %% default + \rightmargin \leftmargin + \advance\leftmargin \vindent + \fi + \fi} + \item[]% + \@quotespacinghook}{\endlist} +%%%%%%%%%%%%%% + +\renewenvironment{altverse}% + {\starpatternfalse\patternfalse\altindenttrue\setcounter{vslineno}{1}% + \@quotespacinghook + }% + {\altindentfalse} + +\def\@verbatim{\the\every@verbatim + \trivlist + \if@adjustverbatim\hangulverbspacing\else\fi% + \item \relax + \if@minipage\else\vskip\parskip\fi + \@beginparpenalty \predisplaypenalty + \leftskip\@totalleftmargin\rightskip\z@ + \parindent\z@\parfillskip\@flushglue\parskip\z@ + \@@par + \def\par{% + \if@tempswa + \leavevmode\null\@@par\penalty\interlinepenalty + \else + \@tempswatrue + \ifhmode\@@par\penalty\interlinepenalty\fi + \fi}% + \def\@noitemerr{\@warning{No verbatim text}}% + \obeylines + \let\do\@makeother \dospecials + \verbatim@font + \everypar \expandafter{\the\everypar \unpenalty}% + \wrapright\the\afterevery@verbatim} + +%% Karnes : epigraph +\providecommand\epigraphspacinghook{\setstretch{1.0}} +\providecommand\epigraphspacing[1]{% + \renewcommand\epigraphspacinghook{\setstretch{#1}}% +} + +\renewcommand{\epigraph}[2]{\vspace{\beforeepigraphskip} + {\epigraphsize\begin{\epigraphflush}% + \epigraphspacinghook + \begin{minipage}{\epigraphwidth} + \@epitext{#1}\\ \@episource{#2} + \end{minipage}\end{\epigraphflush} + \vspace{\afterepigraphskip}}} + +\renewenvironment{epigraphs}{% + \vspace{\beforeepigraphskip}\begin{\epigraphflush} + \epigraphsize + \begin{minipage}{\epigraphwidth} + \epigraphspacinghook + \list{}% + {\itemindent\z@ \labelwidth\z@ \labelsep\z@ + \leftmargin\z@ \rightmargin\z@ + \let\makelabel\qitemlabel}}% + {\endlist\end{minipage}\end{\epigraphflush} + \vspace{\afterepigraphskip}} + +% GT: EMSH chose to omit display math part that follows. +% She wrote (see above) that the "altered spacing before and after displayed +% equations ... just looked too much". +% +% Fix up spacing before and after displayed math +% (arraystretch seems to do a fine job for inside LaTeX displayed math, +% since array and eqnarray seem to be affected as expected). +% Changing \baselinestretch and doing a font change also works if done here, +% but then you have to change @setsize to remove the call to @nomath) +% +% GT: The \belowdisplayskip line was mistyped; now fixed, courtesy of +% David Hull. +% +% GT: Brett Parnell has addressed EMSH's concern by replacing +% \baselinestretch by \displayskipstretch in displays, as follows. + +\everydisplay\expandafter{% + \the\everydisplay + \abovedisplayskip \displayskipstretch\abovedisplayskip + \belowdisplayskip \displayskipstretch\belowdisplayskip + \abovedisplayshortskip \displayskipstretch\abovedisplayshortskip + \belowdisplayshortskip \displayskipstretch\belowdisplayshortskip +} + +\endinput + +%%% EOF. diff --git a/language/korean/kotex-oblivoir/tex/memhangul-common/ob-koreanappendix.sty b/language/korean/kotex-oblivoir/tex/memhangul-common/ob-koreanappendix.sty new file mode 100644 index 0000000000..9c46eaa9c5 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-common/ob-koreanappendix.sty @@ -0,0 +1,98 @@ +%% File `ob-koreanappendix.sty` +%% +%% Copyright (c) 2007-2015 Kangsoo Kim +%% +%% 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. +%% +%% oblivoir sub-style. part of oblivoir +%% \appendix (부록) +%% +\gdef\set@appendix@chapter{% + \renewcommand\thesection{\Alph{APPsection}}% + \renewcommand\thesubsection{\thesection.\arabic{APPsubsection}} + \ifanappendix + \counterwithout{APPsection}{APPchapter} + \counterwithin{APPsubsection}{APPsection} + \fi% + \counterwithin{figure}{APPsection}\counterwithin{table}{APPsection}% + \counterwithin{equation}{APPsection}% + \renewcommand\thefigure{\Alph{APPsection}.\arabic{figure}}% + \renewcommand\thetable{\Alph{APPsection}.\arabic{table}}% + \renewcommand\theequation{\Alph{APPsection}.\arabic{equation}}% + \set@appendix@chapsec +} + +\renewcommand{\@resets@pp}{% + \par + \@ppsavesec + \set@appendix@chapter + \restoreapp +} + +\renewcommand{\appendix}{\par + \set@appendix@chapter + \anappendixtrue +% \chapterstyle{appendixdefault}% + \if@AppendixTitleToToc + \addcontentsline{toc}{chapter}{\appendixname}% + \fi + \if@AttachAppendixTitleToSecnum + \addtodef{\secheadstyle}{}{\appendixrefname~}% + \fi +} + +\def\set@appendix@chapsec{% + %%% SECTION in APPENDIX + \renewcommand{\section}{% + \sechook\memucsinterwordhook% + \@startsection{section}{1}% level 1 + {\secindent}% heading indent + {\beforesecskip}% skip before the heading + {\aftersecskip}% skip after the heading + {\normalfont\secheadstyle}} % font + % + \def\M@sect##1##2##3##4##5##6[##7][##8]##9{% + \ifheadnameref\M@gettitle{##8}\else\M@gettitle{##7}\fi + \ifnum ##2>\c@secnumdepth + \let\@svsec\@empty + \else + \refstepcounter{APP##1}% + \protected@edef\@svsec{\@seccntformat{##1}\relax}% + \fi + \@tempskipa ##5\relax + \ifdim \@tempskipa>\z@ + \begingroup + ##6{% + \@hangfrom{\hskip ##3\relax\@svsec}% + \interlinepenalty \@M ##9\@@par}% + \endgroup + \csname ##1mark\endcsname{##8}% + \addcontentsline{toc}{##1}{% + \ifnum ##2>\c@secnumdepth \else + \protect\numberline{\noexpand\protect\csname the##1\endcsname}% + \fi + ##7}% + \else + \def\@svsechd{% + ##6{\hskip ##3\relax + \@svsec ##9}% + \csname ##1mark\endcsname{##8}% + \addcontentsline{toc}{##1}{% + \ifnum ##2>\c@secnumdepth \else + \protect\numberline{\csname the##1\endcsname}% + \fi + ##7}}% + \fi + \expandafter\protected@edef + \expandafter\@currentlabel + \expandafter{\csname the##1\endcsname}% + \@xsect{##5}}% +} + +\endinput diff --git a/language/korean/kotex-oblivoir/tex/memhangul-common/ob-nokoreanappendix.sty b/language/korean/kotex-oblivoir/tex/memhangul-common/ob-nokoreanappendix.sty new file mode 100644 index 0000000000..69044f5eba --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-common/ob-nokoreanappendix.sty @@ -0,0 +1,96 @@ +%% File `ob-nokoreanappendix.sty` +%% +%% Copyright (c) 2007-2013 Kangsoo Kim +%% +%% 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. +%% +%% oblivoir sub-style. part of oblivoir +%% \appendix (부록) : nokorean +%% +\gdef\set@appendix@chapter{% + \ifanappendix\counterwithout{section}{chapter}\fi% + \setcounter{section}{0} + \setcounter{chapter}{0} + \renewcommand\thesection{\Alph{section}}% + \counterwithin{figure}{section}\counterwithin{table}{section}% + \counterwithin{equation}{section}% + \renewcommand\thefigure{\Alph{section}.\arabic{figure}}% + \renewcommand\thetable{\Alph{section}.\arabic{table}}% + \renewcommand\theequation{\Alph{section}.\arabic{equation}}% + \set@appendix@chapsec +} + +\renewcommand{\@resets@pp}{% + \par + \@ppsavesec + \set@appendix@chapter + \restoreapp +} + +\renewcommand{\appendix}{\par + \set@appendix@chapter + \anappendixtrue +% \chapterstyle{appendixdefault}% + \if@AppendixTitleToToc + \addcontentsline{toc}{chapter}{\appendixname}% + \fi + \if@AttachAppendixTitleToSecnum + \addtodef{\secheadstyle}{}{\appendixrefname~}% + \fi +} + +\def\set@appendix@chapsec{% + %%% SECTION in APPENDIX + \renewcommand{\section}{% + \sechook + \@startsection{section}{1}% level 1 + {\secindent}% heading indent + {\beforesecskip}% skip before the heading + {\aftersecskip}% skip after the heading + {\normalfont\secheadstyle}} % font + % + \def\M@sect##1##2##3##4##5##6[##7][##8]##9{% + \ifheadnameref\M@gettitle{##8}\else\M@gettitle{##7}\fi + \ifnum ##2>\c@secnumdepth + \let\@svsec\@empty + \else + \refstepcounter{##1}% + \protected@edef\@svsec{\@seccntformat{##1}\relax}% + \fi + \@tempskipa ##5\relax + \ifdim \@tempskipa>\z@ + \begingroup + ##6{% + \@hangfrom{\hskip ##3\relax\@svsec}% + \interlinepenalty \@M ##9\@@par}% + \endgroup + \csname ##1mark\endcsname{##8}% + \addcontentsline{toc}{##1}{% + \ifnum ##2>\c@secnumdepth \else + \protect\numberline{\noexpand\protect\csname the##1\endcsname}% + \fi + ##7}% + \else + \def\@svsechd{% + ##6{\hskip ##3\relax + \@svsec ##9}% + \csname ##1mark\endcsname{##8}% + \addcontentsline{toc}{##1}{% + \ifnum ##2>\c@secnumdepth \else + \protect\numberline{\csname the##1\endcsname}% + \fi + ##7}}% + \fi + \expandafter\protected@edef + \expandafter\@currentlabel + \expandafter{\csname the##1\endcsname}% + \@xsect{##5}}% +} + +\endinput diff --git a/language/korean/kotex-oblivoir/tex/memhangul-common/ob-toclof.sty b/language/korean/kotex-oblivoir/tex/memhangul-common/ob-toclof.sty new file mode 100644 index 0000000000..5ef56b463f --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-common/ob-toclof.sty @@ -0,0 +1,144 @@ +%% File `ob-toclof.sty` +%% +%% Copyright (c) 2007-2013 Kangsoo Kim +%% +%% 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. +%% +%% oblivoir substyle. part of oblivoir, +%% +%% \newlistof{listoffigures}{lof}{\listfigurename} +%% \kill@lastcounter{lofdepth} +%% \newlistentry[section]{figure}{lof}{0} +%% \cftsetindents{figure}{0em}{2.3em} +%% +\if@toclofentry\else +\renewcommand{\put@bsintoc}{% + \ifadd@bstotoc + \ifnumber@bs\else + \phantomsection + \addcontentsline{toc}{section}{\abstractname} + \fi + \fi} + +\def\addappheadtotoc{\addcontentsline{toc}{section}{\appendixtocname}} + +\renewcommand{\newlistof}[3]{% + \@namedef{ext@#2}{#2} + \@ifundefined{c@#2depth}{\newcounter{#2depth}}{} + \setcounter{#2depth}{1} + \@namedef{#2mark}{\markboth{#3}{#3}} + \@namedef{#1}{\@ifstar{\@nameuse{@star#2}}{\@nameuse{@plain#2}}} + \@namedef{@star#2}{% + \ensureonecol + \par + \begingroup +%%% \parindent\z@ \parskip\cftparskip + \@nameuse{@#2maketitle} + \@starttoc{#2}% + \endgroup + \restorefromonecol} + \@namedef{@plain#2}{% + \ensureonecol + \par + \begingroup +%%% \parindent\z@ \parskip\cftparskip + \@nameuse{@#2maketitle} + \phantomsection + \addcontentsline{toc}{section}{#3} + \@starttoc{#2}% + \endgroup + \restorefromonecol} + \@namedef{@#2maketitle}{% + \@nameuse{#2headstart} + {\parindent\z@ \parskip\cftparskip + \interlinepenalty\@M + \@nameuse{print#2nonum}% + \@nameuse{print#2title}{#3}% + \@nameuse{#2mark}% + \thispagestyle{chapter}% + \@nameuse{after#2title} + } + \@afterheading} +% \@namedef{#2headstart}{\chapterheadstart} +% \@namedef{after#2title}{\afterchaptertitle} +% \@namedef{print#2nonum}{\printchapternonum} +% \@namedef{print#2title}##1{\printchaptertitle{##1}} +} % end \newlistof + +\def\@chapter[#1]#2{% + \ifx\ch@pt@c\m@m@empty % no optional args + \def\f@rtoc{#1}% + \def\f@rhdr{#1}% + \else % at least one opt arg + \def\f@rtoc{\ch@pt@c}% + \nametest{#1}{#2}% + \ifsamename % one opt arg + \def\f@rhdr{\ch@pt@c}% + \else % two opt args + \def\f@rhdr{#1}% + \fi + \fi + \m@m@Andfalse + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \m@m@Andtrue + \fi + \fi + \ifm@m@And + \ifanappendix + \refstepcounter{APPchapter}% + \else + \refstepcounter{chapter}% + \fi + \fi + \chaptermark{\f@rhdr} + \ifartopt + \@makechapterhead{#2}% + \@afterheading + \else + \insertchapterspace + \if@twocolumn + \@topnewpage[\@makechapterhead{#2}]% + \else + \@makechapterhead{#2}% + \fi + \@afterheading + \fi + \ifm@m@And + \ifanappendix + \addcontentsline{toc}{appendix}{% + \protect\chapternumberline{\hchaptertitlehead}\f@rtoc}% + \memappchapinfo{\thechapter}{\f@rtoc}{\f@rhdr}{#2}% + \else + \addcontentsline{toc}{section}{% + \protect\chapternumberline{\hchaptertitlehead}\f@rtoc}% + \memchapinfo{\hchaptertitlehead}{\f@rtoc}{\f@rhdr}{#2}% + \fi + \else + \addcontentsline{toc}{section}{\f@rtoc}% + \ifanappendix + \memappchapinfo{}{\f@rtoc}{\f@rhdr}{#2}% + \else + \memchapinfo{\hchaptertitlehead}{\f@rtoc}{\f@rhdr}{#2}% + \fi + \fi + \ifheadnameref\M@gettitle{\f@rhdr}\else\M@gettitle{\f@rtoc}\fi +%%% for chapter + \ifanappendix + \protected@edef\@currentlabel{\thechapter}% + \fi +} + +\newlistof{tableofcontents}{toc}{\contentsname} +\newlistof{listoffigures}{lof}{\listfigurename} +\newlistof{listoftables}{lot}{\listtablename} + +\fi % of \if@toclofentry + +\endinput diff --git a/language/korean/kotex-oblivoir/tex/memhangul-ucs/hfontsel.sty b/language/korean/kotex-oblivoir/tex/memhangul-ucs/hfontsel.sty new file mode 100644 index 0000000000..93ecf2ca97 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-ucs/hfontsel.sty @@ -0,0 +1,88 @@ +%% File `hfontsel.sty` +%% +%% Copyright (c) 2006-2013 Kangsoo Kim +%% +%% 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. +%% +%% 사용법은 다음과 같음 +%% * 전체 정의 +%% \SelectHfonts{utbt,utgt,uttz}{utbt,utgt,utgt} +%% * 한자 부분을 한글 부분과 같게. 주의. +%% 은타자는 한자가 없으므로 타자체로 은타자를 설정한 경우 +%% 이 방식을 쓰면 ttfamily에서 오류. +%% \SelectHfonts{utbt,utgt,utgt}{*} +%% * 몇 개만 바꿀 때. 별표 부분은 모두 기본폰트(은글꼴)로 설정됨. +%% \SelectHfonts{utbt,*,*}{*,*,utgt} +%% +%% 2007/06/03 +%% \SelectHfonts 명령에 의해 생성되는 \hfontfamilynameprefix (2letters)를 +%% [hfontspec] 옵션에 의하여 \usehangulfontspec의 인자로 사용한다. oblivoir +%% 에서는 이 방법을 쓰지 않음. +%% 2007/05/25 +%% dhucs 4.0 compatible +%% \hfontfamilynameprefix는 사용되지 않을 것이나, 하위호환성을 위해 유지함. +%% 2006/12/15 +%% bug fix. thanks to Dohyun Kim. +%% 2006/09/06 +%% unfonts-type1을 쓸 때 \hfontfamilynameprefix가 {ut}로 되돌려지던 문제점 수정. +%% non-default 상태에서는 hanja/roman의 설정에 영향을 받는다. +%% +\ProvidesPackage{hfontsel}[2013/09/27] + +\newif\if@pshfont\@pshfonttrue +\DeclareOption{ps}{\@pshfonttrue} +\DeclareOption{unttf}{\@pshfontfalse} +\newif\if@hfontspec\@hfontspecfalse +\DeclareOption{hfontspec}{\@hfontspectrue} +\ProcessOptions + +\newif\if@defaulthfnt\@defaulthfnttrue +\if@pshfont +\def\defaulthfntprefix{ut} +\else +\def\defaulthfntprefix{un} +\fi + +\def\FirstTwoOfFour#1#2#3#4{#1#2} +\newcommand*\SelectHfonts[2]{% + \def\reserved@a{#2}\def\reserved@b{*}% + \ifx\reserved@a\reserved@b + \hangul@fontmap#1\@nil\hanja@fontmap#1\@nil + \else + \hangul@fontmap#1\@nil\hanja@fontmap#2\@nil + \fi + \if@hfontspec + \expandafter\usehangulfontspec\expandafter{\hfontfamilynameprefix} + \fi +} +\def\hangul@fontmap#1,#2,#3\@nil{% + \ifx*#1\def\h@ng@ls@rif{\defaulthfntprefix bt}\else\def\h@ng@ls@rif{#1}\fi + \ifx*#2\def\h@ng@ls@ns{\defaulthfntprefix gt}\else\def\h@ng@ls@ns{#2}\fi + \ifx*#3\def\h@ng@lt@z@{\defaulthfntprefix tz}\else\def\h@ng@lt@z@{#3}\fi + \SetHangulFonts{\h@ng@ls@rif}{\h@ng@ls@ns}{\h@ng@lt@z@}% +} +\def\hanja@fontmap#1,#2,#3\@nil{% + \ifx*#1\def\h@nj@s@rif{\defaulthfntprefix bt}\else\def\h@nj@s@rif{#1}\@defaulthfntfalse\fi + \ifx*#2\def\h@nj@s@ns{\defaulthfntprefix gt}\else\def\h@nj@s@ns{#2}\fi + \ifx*#3\def\h@nj@t@z@{\defaulthfntprefix gt}\else\def\h@nj@t@z@{#3}\fi + \SetHanjaFonts{\h@nj@s@rif}{\h@nj@s@ns}{\h@nj@t@z@}% +%%%% 2006/09/06, 2007/05/25 downward compatibility + \if@defaulthfnt\def\hfontfamilynameprefix{ut}\else + \def\hfontfamilynameprefix{\expandafter\FirstTwoOfFour\h@nj@s@rif}\fi +} + +%%% hangul font spec +\if@hfontspec +\usehangulfontspec{\defaulthfntprefix} +\fi + +%%% default setting +%\SelectHfonts{\defaulthfntprefix bt,\defaulthfntprefix gt,\defaulthfntprefix tz}{*} + +\endinput diff --git a/language/korean/kotex-oblivoir/tex/memhangul-ucs/hfontspec.nanum b/language/korean/kotex-oblivoir/tex/memhangul-ucs/hfontspec.nanum new file mode 100644 index 0000000000..0e6179f292 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-ucs/hfontspec.nanum @@ -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/language/korean/kotex-oblivoir/tex/memhangul-ucs/memhangul-ucs.sty b/language/korean/kotex-oblivoir/tex/memhangul-ucs/memhangul-ucs.sty new file mode 100644 index 0000000000..cb62187ed8 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-ucs/memhangul-ucs.sty @@ -0,0 +1,716 @@ +%%% file `memhangul-ucs.sty` +%% +%% (C) Copyright 2006-2013 Kangsoo Kim +%% +%% 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} +\def\filedate{2014/06/12} +\def\fileversion{1.7.7} +\ProvidesPackage{memhangul-ucs}[\filedate UCS Hangul Package for memoir class] +\typeout{memhangul-ucs\space v\fileversion\space \filedate} + +%% Options : +%% interwordHWP, interworddefault +%% nosetspace, quotespacing, +%% gremph +%% nonfrench +%% arabicfront, hangulpagestyle +%% adjustmath +%% finemath +\newif\if@interwordHWP\@interwordHWPfalse +\DeclareOption{interwordHWP}{\@interwordHWPtrue} + +\newif\if@interworddefault\@interworddefaultfalse +\DeclareOption{interworddefault}{\@interworddefaulttrue} + +\newif\if@hsspace\@hsspacetrue +\DeclareOption{nosetspace}{\@hsspacefalse} + +\newcommand\nosetspace{% + \@hsspacefalse +} + +\newif\if@hsspacenoquote\@hsspacenoquotetrue +\DeclareOption{quotespacing}{\@hsspacenoquotefalse} + +\newif\if@nonfrench\@nonfrenchfalse +\DeclareOption{nonfrench}{\PassOptionsToPackage{\CurrentOption}{dhucs}\@nonfrenchtrue} + +\newif\if@nojosa\@nojosafalse +\DeclareOption{nojosa}{\PassOptionsToPackage{\CurrentOption}{dhucs}\@nojosatrue} + +\newif\if@hanja\@hanjafalse +\DeclareOption{hanja}{\PassOptionsToPackage{\CurrentOption}{dhucs}\@hanjatrue} + +\newif\if@finemath\@finemathfalse +\DeclareOption{finemath}{\PassOptionsToPackage{\CurrentOption}{dhucs}\@finemathtrue} + +\newif\if@gremph\@gremphfalse +\DeclareOption{gremph}{\@gremphtrue} + +\newif\if@mathdisp\@mathdispfalse +\DeclareOption{adjustmath}{\@mathdisptrue} + +\newif\if@arabicfrontmatter{\@arabicfrontmatterfalse} +\DeclareOption{arabicfront}{\@arabicfrontmattertrue} + +\newif\if@defaulthangulpagestyle{\@defaulthangulpagestylefalse} +\DeclareOption{hangulpagestyle}{\@defaulthangulpagestyletrue} + +\newif\if@pdfbookmark{\@pdfbookmarkfalse} +\DeclareOption{pdfbookmark}{\@pdfbookmarktrue} + +\newif\if@dvips{\@dvipsfalse} +\DeclareOption{dvips}{\@dvipstrue} + +\DeclareOption{strictcharcheck}{\PassOptionsToPackage{\CurrentOption}{dhucs}} + +%%% figtabcapt +\newif\if@figtabcapt@\@figtabcapt@false +\DeclareOption{figtabcapt}{\@figtabcapt@true} + +%%% dhucs, cjk +\DeclareOption{dhucs}{} +\DeclareOption{cjk}{} + +\ProcessOptions + +\RequirePackage{dhucs}[2007/06/26] + +%% define memh@hu +%hu=0.059375em % 1jw=.95em, 1hu=1/16jw +\newdimen\memh@hu\memh@hu=\dhucs@hu + +\newif\if@inthekoreancontext\@inthekoreancontexttrue + +\AtBeginDocument{% + \@ifpackageloaded{dhucs-trivcj}{% + \newdimen\japparindent\japparindent=1em% +% \def\cjksymbolextraspace{\hskip4em\relax}% + \renewenvironment{japanese}{% + \@inthekoreancontextfalse + \let\ORIGparindent=\parindent + \parindent=\japparindent + \if@afterindent\let\ORIG@afterindent\@afterindenttrue\else + \let\ORIG@afterindent\@afterindentfalse\fi % advised by SUGAI Y. + \let\@afterindentfalse\@afterindenttrue\@afterindenttrue + \SetHanjaFonts{min}{min}{min}\trivcjtypesetting}% + {\@inthekoreancontexttrue + \parindent=\ORIGparindent + \ORIG@afterindent} + \renewenvironment{chinese}{% + \@inthekoreancontextfalse + \let\ORIGparindent=\parindent + \parindent=\japparindent + \SetHanjaFonts{gbsn}{gbsn}{gbsn}\trivcjtypesetting}% + {\@inthekoreancontexttrue + \parindent=\ORIGparindent} + }{}% +} + +%%%% from lucenc.dfu of dhucs +\AtBeginDocument{% not to be affected by textcomp +\DeclareUnicodeCharacter{00B7}% · + {\leavevmode\hbox to.7em{\hss\textperiodcentered\hss}\postcjksymbol}% +} +%\DeclareUnicodeCharacter{3001}% 、 +% {\unkern\hbox to.5em{\unihangulchar{"3001}\hss}\memh@postcjksymkern} +%\DeclareUnicodeCharacter{3002}% 。 +% {\unkern\hbox to.6em{\unihangulchar{"3002}\hss}\memh@postcjksymkern} +%\DeclareUnicodeCharacter{3008}% 〈 +% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3008}}\postcjksymnobreak} +%\DeclareUnicodeCharacter{3009}% 〉 +% {\unkern\hbox to.5em{\unihangulchar{"3009}\hss}\memh@postcjksymkern} +%\DeclareUnicodeCharacter{300A}% 《 +% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"300A}}\postcjksymnobreak} +%\DeclareUnicodeCharacter{300B}% 》 +% {\unkern\hbox to.5em{\unihangulchar{"300B}\hss}\memh@postcjksymkern} +%\DeclareUnicodeCharacter{300C}% 「 +% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"300C}}\postcjksymnobreak} +%\DeclareUnicodeCharacter{300D}% 」 +% {\unkern\hbox to.5em{\unihangulchar{"300D}\hss}\memh@postcjksymkern} +%\DeclareUnicodeCharacter{300E}% 『 +% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"300E}}\postcjksymnobreak} +%\DeclareUnicodeCharacter{300F}% 』 +% {\unkern\hbox to.5em{\unihangulchar{"300F}\hss}\memh@postcjksymkern} +%\DeclareUnicodeCharacter{3010}% 【 +% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3010}}\postcjksymnobreak} +%\DeclareUnicodeCharacter{3011}% 】 +% {\unkern\hbox to.5em{\unihangulchar{"3011}\hss}\memh@postcjksymkern} +%\DeclareUnicodeCharacter{3014}% 〔 +% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3014}}\postcjksymnobreak} +%\DeclareUnicodeCharacter{3015}% 〕 +% {\unkern\hbox to.5em{\unihangulchar{"3015}\hss}\memh@postcjksymkern} +%\DeclareUnicodeCharacter{3016}% 〖 +% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3016}}\postcjksymnobreak} +%\DeclareUnicodeCharacter{3017}% 〗 +% {\unkern\hbox to.5em{\unihangulchar{"3017}\hss}\memh@postcjksymkern} +%\DeclareUnicodeCharacter{3018}% 〘 +% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"3018}}\postcjksymnobreak} +%\DeclareUnicodeCharacter{3019}% 〙 +% {\unkern\hbox to.5em{\unihangulchar{"3019}\hss}\memh@postcjksymkern} +%\DeclareUnicodeCharacter{301A}% 〚 +% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"301A}}\postcjksymnobreak} +%\DeclareUnicodeCharacter{301B}% 〛 +% {\unkern\hbox to.5em{\unihangulchar{"301B}\hss}\memh@postcjksymkern} +%\DeclareUnicodeCharacter{FF08}% ( +% {\memh@cjksymbolskip\hbox to.5em{\hss\unihangulchar{"FF08}}\postcjksymnobreak} +%\DeclareUnicodeCharacter{FF09}% ) +% {\unkern\hbox to.5em{\unihangulchar{"FF09}\hss}\memh@postcjksymkern} + +%% We will use E-TEX +%\RequirePackage{etex} + +%% memoir [ms] option +\ifmsdoc +\newcommand*\MSNormalSize{ + \let\large\normalsize + \let\Large\normalsize + \let\LARGE\normalsize + \let\huge\normalsize + \let\Huge\normalsize + \let\HUGE\normalsize + \let\small\normalsize + \let\scriptsize\normalsize + \let\footnotesize\normalsize + \let\tiny\normalsize + } +\AtBeginDocument{ + \let\dhucs@serifhangulfont\dhucs@monohangulfont + \let\dhucs@sanshangulfont\dhucs@monohangulfont + \let\dhucs@serifhanjafont\dhucs@monohanjafont + \let\dhucs@sanshanjafont\dhucs@monohanjafont + \setInterHangulSkip{\z@} + \renewcommand{\msdoublespacing}{% + \renewcommand{\baselinestretch}{1.75}\large\normalsize} + \renewcommand{\mssinglespacing}{% + \renewcommand{\baselinestretch}{1.1}\large\normalsize} + \renewcommand{\familydefault}{cmtt} + \renewcommand{\rmdefault}{cmtt} + \renewcommand{\sfdefault}{cmtt} + \renewcommand{\bfdefault}{m} + \renewcommand{\itdefault}{n} + \renewcommand{\sldefault}{n} + \renewcommand{\scdefault}{n} + \renewcommand{\baselinestretch}{1.75} + \@twocolumnfalse + \onecolumn + \sloppy + \@twosidefalse + \raggedbottom + \pagestyle{plain} +} +\fi + +%% load hyperref for pdf bookmarks. +%% to configure hyperref, you can use \hypersetup command. +%%%%% 1.4.4b -> disable CJKbookmarks, just use dhucs-ucshyper +%% 2007/06/03. drop dhucs-ucshyper +\if@pdfbookmark + \@ifpackageloaded{hyperref}{% hyperref is already loaded + \typeout{hyperref is already loaded!}% + \RequirePackage{memhfixc}}% + {% + \if@dvips + \RequirePackage[dvips,unicode]{hyperref}% + \else + \ifpdf + \RequirePackage[pdftex,unicode]{hyperref}% + \else + \RequirePackage[dvipdfm,unicode]{hyperref}% + \fi + \fi + \RequirePackage{memhfixc}} +\fi + +%% from ucs-hangul.tex +% \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} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% 한글 관련 이름 설정 (not from hangul.sty) + +\if@hanja +\def\today{\number\year 年~\number\month 月~\number\day 日} +\def\enclname{同封物} +\def\ccname{寫本} +\def\headtoname{受信人} +\def\seename{\을~參照} +\def\alsoname{\을~參照} +\def\contentsname{目~次} +\def\listfigurename{圖~目次} +\def\listtablename{表~目次} +\def\refname{參考~文獻} +\def\indexname{索~引} +\def\tablename{表} +\def\figurename{圖} +\def\abstractname{要~約} +\def\bibname{參考~圖書} +\def\appendixname{附錄} +\def\subappendixname{附錄} +\def\appendixtocname{附~錄} +\def\appendixpagename{附~錄} +\def\partname{篇} +\def\chaptername{章} +\def\sectionname{節} +\def\colorlayer{色相레이어} +\def\glossaryname{語彙} +\def\figurerefname{圖} +\def\tablerefname{表} +\def\pagename{面} +\def\pagerefname{面} +\def\partrefname{篇} +\def\chapterrefname{章} +\def\sectionrefname{\S} +\else +\def\today{\number\year 년~\number\month 월~\number\day 일} +\def\enclname{동봉물} +\def\ccname{사본} +\def\headtoname{받는이} +\def\seename{\을~참조} +\def\alsoname{\을~함께~참조} +\def\contentsname{차~례} +\def\listfigurename{그림~차례} +\def\listtablename{표~차례} +\def\refname{참고~문헌} +\def\indexname{찾아보기} +\def\tablename{표} +\def\figurename{그림} +\def\abstractname{요~약} +\def\bibname{참고~문헌} +\def\appendixname{부록} +\def\subappendixname{부록} +\def\appendixtocname{부~록} +\def\appendixpagename{부~록} +\def\partname{편} +\def\chaptername{장} +\def\sectionname{절} +\def\colorlayer{환등판~색상} +\def\glossaryname{용어집} +\def\figurerefname{그림} +\def\tablerefname{표} +\def\pagename{페이지} +\def\pagerefname{페이지} +\def\partrefname{편} +\def\chapterrefname{장} +\def\sectionrefname{\S} +\fi + +%% \marginparswitchtrue/false +\providecommand{\marginparswitchtrue}{\@mparswitchtrue} +\providecommand{\marginparswitchfalse}{\@mparswitchfalse} +\providecommand{\reversemargintrue}{\@reversemargintrue} +\providecommand{\reversemarginfalse}{\@reversemarginfalse} + +%% select textwidth with chars +\def\testh@ng@lch@r@cters{가갸거겨고교구규그기} +\newlength\t@nch@ars +\newcommand*\setxxxlength[2]{% + \setbox0\hbox{\testh@ng@lch@r@cters}\setlength\t@nch@ars{\wd0}% + \@ifundefined{#1length}{\expandafter\newlength\csname #1length\endcsname}{}% + \expandafter\setlength\csname #1length\endcsname{#2\t@nch@ars}% + \expandafter\divide\csname #1length\endcsname by 10% +} + +%%% kscntformat +%%% HLaTeX의 \kscntformat 명령을 흉내냄 +%%% \kscntformat{section}{제}{절} 형식으로 쓴다. +\newsavebox{\tmp@XXbox} +\newdimen\tmp@XXdim +\def\kscntformat#1#2#3{% + \sbox{\tmp@XXbox}{#2\expandafter\number\csname c@#1\endcsname#3}% + \setlength\tmp@XXdim{\wd\tmp@XXbox}\advance\tmp@XXdim by1em% + \expandafter\def\csname the#1\endcsname{#2\expandafter\number\csname c@#1\endcsname#3}% + \expandafter\renewcommand\csname cft#1numwidth\endcsname{\tmp@XXdim}% + \expandafter\renewcommand\csname cft#1presnum\endcsname{}% + \expandafter\renewcommand\csname cft#1aftersnum\endcsname{}% +} + +\AtBeginDocument{% +\ifnokorean\else +\ifkosection +\kscntformat{section}{제\,}{\,절} +\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}} +\fi\fi +} + +\RequirePackage{memhangul-common} + +%%% default linespacing for Hangul Documents +%%% interword +\if@interwordHWP + \RequirePackage[HWP]{memucs-interword} +\else +\if@interworddefault + \RequirePackage[default]{memucs-interword} +\else +\if@nonfrench + \RequirePackage[nonfrench]{memucs-interword} +\else + \RequirePackage{memucs-interword} +\fi\fi\fi +\AtBeginDocument{\memucsinterwordhook} + +%%% hsetspace for memucs +\if@hsspace + \RequirePackage[hangul,adjustverbatim,adjustfootnotesep]{memucs-setspace} + \if@hsspacenoquote\else\adjustquotespacing\fi +\else + \RequirePackage{memucs-setspace} + \linespread{1.333} +\fi +%\SetHangulspace{1.333}{1.1} + +%% GrEmph +\newif\if@bfem\@bfemfalse +\def\bfemtrue{\@bfemtrue} +\def\bfemfalse{\@bfemfalse} + +\if@unfont +\if@bfem + \def\GrEmphFont{outbt} + \def\GrEmphHanjaFont{outbt} +\else + \def\GrEmphFont{outgr} + \def\GrEmphHanjaFont{outgt} +\fi +\else +\if@bfem + \def\GrEmphFont{nanummj} + \def\GrEmphHanjaFont{uhcmj} +\else + \def\GrEmphFont{nanumgt} + \def\GrEmphHanjaFont{nanumgt} +\fi +\fi +\def\SetGremphFonts#1#2{% + \def\GrEmphFont{#1}% + \def\GrEmphHanjaFont{#2}% +} +\@onlypreamble\SetGremphFonts + +\AtBeginDocument{% +\if@gremph\if@bfem + \RequirePackage[gremphhangul=\GrEmphFont,gremphhanja=\GrEmphHanjaFont,bfemph]{memucs-gremph} +\else + \RequirePackage[gremphhangul=\GrEmphFont,gremphhanja=\GrEmphHanjaFont]{memucs-gremph} +\fi\fi +} + +%% 한글 기호문자 +\DeclareUnicodeCharacter{00BC}% 1/4 + {\textsuperscript1\kern-.45em\unichar{65295}\kern-.45em\textsubscript4}% uni-0.def +\DeclareUnicodeCharacter{00BD}% 1/2 + {\textsuperscript1\kern-.45em\unichar{65295}\kern-.45em\textsubscript2}% uni-0.def +\DeclareUnicodeCharacter{00BE}% 3/4 + {\textsuperscript3\kern-.45em\unichar{65295}\kern-.45em\textsubscript4}% uni-0.def +\DeclareUnicodeCharacter{02D0}% ː + {\unihangulchar{"02D0}} +\DeclareUnicodeCharacter{2025}% ‥ + {\unihangulchar{"2025}} +\DeclareUnicodeCharacter{2026}% … + {\unihangulchar{"2026}} +\DeclareUnicodeCharacter{2015}% ― + {\nobreak\hskip\memh@hu\unihangulchar{"2015}\hskip\memh@hu\relax} +\DeclareUnicodeCharacter{2312}% ⌒ + {\unihangulchar{"2312}} + +%% BANGJEOM emphasis : extension. (inspired from hangul.sty) + +\def\circemphchar{˚} +\def\dotemphchar{˙} +\def\bfdotemphchar{\textbf{˙}} +\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\bfdotemph#1{\begingroup + \get@dhucs@mphheight{#1}% + \let\dhucs@emph\dhucs@bfdot@emph + #1\endgroup} + +\def\dhucs@bfdot@emph#1{% + \settowidth{\dhucs@emph@width}{#1}% + \put@dhucs@mphch@r{\bfdotemphchar}% +} + +%\ifx\hfontfamilynameprefix\UnPrefix\let\dotemph\bfdotemph\fi + +\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@ + +\def\@@user@emph#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{% + \settowidth{\dhucs@emph@width}{#1}% + \put@dhucs@mphch@r{\useremphchar}% +} + +\g@addto@macro\pdfstringdefPreHook{% + \let\circemph\@firstofone + \let\useremph\@firstofone +} + +\RequirePackage{xparse} +\ExplSyntaxOn + +\dim_new:N \tmp_user_emph_dim +\dim_set:Nn \tmp_user_emph_dim { 1ex } +\tl_set:Nn \tmp_user_emph_char { ˚ } +\DeclareDocumentCommand \useremph { o o m } +{ + \IfValueT { #1 } + { + \tl_if_empty:nF { #1 } + { + \settoheight \tmp_user_emph_dim { #3 } + \dim_add:Nn \tmp_user_emph_dim { #1 } + } + } + \IfValueT { #2 } + { + \tl_if_empty:nF { #2 } + { + \tl_set:Nn \tmp_user_emph_char { #2 } + } + } + + \dim_set_eq:NN \useremphraisedim \tmp_user_emph_dim + \tl_set_eq:NN \useremphchar \tmp_user_emph_char + \@@user@emph{#3} +} + +\ExplSyntaxOff + +\def\useremphstarblack{\tiny★} +\def\useremphstarwhite{\tiny☆} + +\endinput + +% CHANGE LOG +% +% 2014/06/15: \useremph[raise][char]{text} compatible to xoblivoir +% 2014/06/12: \if@unfonts => \if@unfont +% 2013/10/22: introduce memhangul-common.sty +% 2013/10/16: [kosection] bug fix +% 2013/09/27: xoblivoir-related fixes. +% 2012/12/02: drop shipout hacking codes. (problem solved) +% 2012/11/22. [figtabcapt] +% 2009/04/02. redefine mem@shipii. +% 2009/02/11. memoir v1.6180339e compatibility mend 1. +% titleref, hangul page style. +% 2007/11/18. add \alsoname definition +% 2007/09/09. remove test code +% 2007/08/06. add \expldash command +% 2007/07/15. no changes. part of ko.TeX +% 2007/06/26. introduce [strictcharcheck], acc. dhucs 4.0.6 +% 2007/06/14. follow up dhucs 4.0.1, rename a few cs. +% 2007/06/07. indent first in japanese env. +% 2007/06/03. dhucs hfontspec etc. +% 2007/05/20. memh@cjksymbolskip & memh@postcjksymkern, cntrdot etc. +% 2007/05/16. ver 1.5.0 (dhucs 4.0) +% ================================== +% +% 2004/12/30. dhhangul-ucs-test 2004/12/30 버전을 반영함. +% 폰트 설정 명령을 \DeclareRobustCommand로 함. +% 한글 section 카운터 관련 수정. +% +% 2004/12/31. dhhangul-ucs-test 2004/12/31 버전을 반영함. +% +% 2005/01/02. +% * heading, ruled, Ruled의 헤딩 폰트가 달라지는 것을 수정. +% * slshape, itshape의 폰트 교란을 수정. +% * \hanjanum, \hNum 카운터 포맷, demovar chapter style 추가. +% +% 2005/01/04 +% * dhucs 2005/01/04 반영. +% * nonfrench 괄호 문제 개선. +% * 확장한자 개선. +% +% 2005/01/05 +% * \unichar 재정의(dhucs 20050105) +% * .aux에 \PrerenderUnicode를 씀. +% * \GrEmph 옵션 도입. +% +% 2005/01/07 +% * \GrEmph 수정. \bfemtrue, \bfemfalse +% * \josa@hyper@link 수정(dhucs 1.1) +% * \utf@viii@undeferr의 경우 \jobname.pru에 \PrerenderUnicode를 씀(after dhucs) +% * renew \makeindex because of conflicts between \utf@viii@undeferr and \@index +% * \HArabic counter added. +% +% 2005/01/15 +% * require dhucs. +% * drop including kshangul.prerenders +% * release. +% +% 2005/01/20 +% * \index를 memoir의 3-pass 방식으로 되돌림 +% +% 2005/01/29 +% * memucs-setspace 변경 +% * companion pagestyle 변경 +% +% 2005/01/31 +% * 한글 특수문자 정의 +% +% 2005/02/08 +% * mempatch 3.5 적용. +% * revive interwordchapterskiphook +% * minor fixes. +% +% 2005/02/11 +% * marginparswitch added. +% +% 2005/02/14 +% * disable \MakeUppercase redefinition after dhucs 2.0 +% * release 1.0 +% +% 2005/02/22 +% * \chapter definition retrieved to original memoir manner. +% * \titleref bug(memoir) fixed. +% * \appendix chapter PDF bookmarks hyperlink problem improved. +% +% 2005/02/23 +% * revised 1.1v +% * PROBLEM unsolved : +% +% 2005/02/23 +% * revised. 1.1x +% * dhucs (plain)1.6과 함께 사용함. +% +% 2005/04/22 +% * gremph 관련 수정. 1.1x1 +% * memucs-gremph.sty 추가 +% +% 2005/04/24 +% * 드러냄표 구현. +% * dhucs-plain 1.7. +% * \normalfont로 고침. +% +% 2005/04/26 +% * 드러냄표. dhucs 2.2를 따름. +% +% 2005/06/06 +% * pdf bookmark hyperlink to APPENDIX sections problem fixed. +% +% 2005/06/28 +% * drop dhucs-plain, dhucs 2.4 +% +% 2005/07/08 +% * improve \titleref +% +% 2005/07/17 +% * reintroduce chapter \PrerenderUnicode's +% +% 2005/07/30 +% * fix the bug that [noquotespacing] option has no effects. +% +% 2005/08/05 +% * change after dhucs 2.6 +% * adjustmath option added. +% +% 2005/08/09 +% * pagestyle hangul added. +% * [hangulpagestyle], [arabicfront] options. +% * \explpunc defined. +% * \partmark added. +% * \bfdotemph added. +% +% 2005/08/12. ver 1.3 +% * \divnote test version. +% * \chapterindentfirst added. +% * \cntrdots added. +% +% 2005/09/09. ver 1.31 +% * memucs-setspace default changed. quote/quotation normal interline. +% +% 2005/09/21. ver 1.32 +% * [ms] option. +% +% 2005/10/15. ver 1.4.1 +% * introduce memhangul-patch.sty to make compatible with memoir 1.618 +% +% 2005/10/19 ver 1.4.2 +% * appendix-related bug fix +% +% 2005/10/29 ver 1.4.3 +% * mended appendix-related problems +% * introduced [pdfbookmark] option. +% * TODO. figs & tables in appendix hyperlinks have problems. +% +% 2005/10/30 ver 1.4.4 +% * CJKbookmark option added to hyperref +% +% 2006/04/19 ver 1.4.4b +% * drop CJKbookmarks hyperref option, just use dhucs-ucshyper +% * [dvips] option added. +% * reject dhucs 2.7.2 autojosa routine, adopt previous version +% +% 2006/04/27 ver 1.4.4f +% * adopt dhucs 3.0.0 +% +% 2006/06/25 ver 1.4.4g +% * suppress auto loading etex.sty +% +%% end of file `memhangul-ucs.sty` diff --git a/language/korean/kotex-oblivoir/tex/memhangul-ucs/memucs-gremph.sty b/language/korean/kotex-oblivoir/tex/memhangul-ucs/memucs-gremph.sty new file mode 100644 index 0000000000..475fa8238c --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-ucs/memucs-gremph.sty @@ -0,0 +1,115 @@ +%% File `memucs-gremph.sty` +%% +%% Copyright (c) 2006-2014 Kangsoo Kim +%% +%% 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{memucs-gremph} + +\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@unfont + \if@vargremphhangulfont\else + \def\GrEmphFont{outgr}\fi + \if@vargremphhanjafont\else + \def\GrEmphHanjaFont{outgt}\fi +\else + \if@vargremphhangulfont\else + \def\GrEmphFont{nanumgt}\fi + \if@vargremphhanjafont\else + \def\GrEmphHanjaFont{nanumgt}\fi +\fi +%\fi +%\def\SetGremphFonts#1#2{% +% \def\GrEmphFont{#1}% +% \def\GrEmphHanjaFont{#2}% +%} + +\if@bfem +\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 + +\if@gremph +\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}} +\else\fi +\def\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}}% +} +\def\ungremph{% + \@gremphfalse + \DeclareRobustCommand*{\itshape}% + {\not@math@alphabet\itshape\mathit + \fontshape\itdefault\selectfont}% + \DeclareRobustCommand\slshape + {\not@math@alphabet\slshape\relax + \fontshape\sldefault\selectfont}% +} +% \slhangul +\def\slhangul#1{% + \bgroup + \fontshape{sl}\selectfont #1\egroup +} + +\endinput + +% end of style. +% +% CHANGE LOG. +% * 2014/06/12. \if@unfonts => \if@unfont +% * 2007/08/02. redundant space bug fix +% * 2007/06/08. \slshape independent from \itshape +% * 2005/08/17. \slhangul added. diff --git a/language/korean/kotex-oblivoir/tex/memhangul-ucs/memucs-interword.sty b/language/korean/kotex-oblivoir/tex/memhangul-ucs/memucs-interword.sty new file mode 100644 index 0000000000..e4e3f2f3ea --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-ucs/memucs-interword.sty @@ -0,0 +1,160 @@ +%% File `memucs-interword.sty` +%% +%% Copyright (c) 2007-2013 Kangsoo Kim +%% +%% 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{memucs-interword}[2007/09/22] + +\def\memucsinterwordskip{} +\def\memucsinterwordchapterskip{} +\def\memucshangulskips{} + +\newif\if@nonfrench\@nonfrenchfalse +\DeclareOption{nonfrench}{% + \@nonfrenchtrue} +\DeclareOption{HWP}{% + \def\memucsinterwordskip{\HWPinterwordskip}} +\DeclareOption{default}{% + \@nonfrenchtrue\def\memucsinterwordskip{\DEFAULTskips}\interHchar{0pt}} +\DeclareOption{wider}{% + \def\memucshangulskips{\widerhangul}} +\DeclareOption{narrower}{% + \def\memucshangulskips{\narrowerhangul}} +%\DeclareOption*{% +% \def\memucsinterwordskip{\DEFAULTskips}% +%} + +%\newlength\dimen@skip +%\setlength\dimen@skip{.1pt} + +%% finemath active. +\if@dhucsfinemath\else\@dhucsfinemathtrue\fi + +%\let\interhchar\setInterHangulSkip +\newcommand*\interHchar[1]{\setInterHangulSkip{#1}} +\let\interhchar\interHchar + +\newcommand*\interhword[4][\@empty]{% + \ifx#1\@empty\setinterwordskip{#2}{#3}{#4}\else + \setinterwordskip[#1]{#2}{#3}{#4}\fi +} + +\def\narrowerhangul{% + \def\memucshangulskips{% + \interHchar{-.5pt}% + }% +} +\def\widerhangul{% + \def\memucshangulskips{% + \interHchar{1pt}% + }% +} + +\newdimen\BASE@FONTsize +\BASE@FONTsize=\f@size\p@ + +\def\HWPinterwordskip{% + \def\memucshangulskips{% + \interHchar{0pt}% + }% + \def\memucsinterwordskip{% + \spaceskip = .475\BASE@FONTsize plus .25\BASE@FONTsize minus .1331\BASE@FONTsize + \if@nonfrench + \xspaceskip = .6\BASE@FONTsize plus .2\BASE@FONTsize minus .1\BASE@FONTsize + \fi + }% + \def\memucsinterwordchapterskip{% + \spaceskip = .5\BASE@FONTsize plus .1\BASE@FONTsize minus .05\BASE@FONTsize + \if@nonfrench + \xspaceskip = .65\BASE@FONTsize plus .2\BASE@FONTsize minus .1\BASE@FONTsize + \fi + }% +} + +\def\setinterwordskip{\@ifnextchar[\setinterwordskip@\setinterwordskip@@} +\def\setinterwordskip@[#1]#2#3#4{% + \def\memucsinterwordskip{% + \spaceskip = #2\BASE@FONTsize plus #3\BASE@FONTsize minus #4\BASE@FONTsize + \if@nonfrench + \xspaceskip = #1\BASE@FONTsize plus #3\BASE@FONTsize minus #4\BASE@FONTsize + \fi + }% +} + +\def\setinterwordskip@@#1#2#3{% + \def\memucsinterwordskip{% + \spaceskip = #1\BASE@FONTsize plus #2\BASE@FONTsize minus #3\BASE@FONTsize + \if@nonfrench + \xspaceskip = .6\BASE@FONTsize plus #2\BASE@FONTsize minus #3\BASE@FONTsize + \fi + }% +} + +\def\DEFAULTskips{% + \def\memucshangulskips{% +% \interHchar{0pt}% + }% + \def\memucsinterwordskip{% + \spaceskip = .413\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize + \if@nonfrench + \xspaceskip = .55\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize + \fi + }% + \def\memucsinterwordchapterskip{% + \spaceskip = .46\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize + \if@nonfrench + \xspaceskip = .575\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize + \fi + }% +} + +\ProcessOptions\relax + +\def\verbatim@font{\m@mverbfont\spaceskip\z@ + \hyphenchar\font\m@ne + \let\do\do@noligs + \verbatim@nolig@list} + +\def\narrowerinterhword{% + \spaceskip=.331\BASE@FONTsize plus .111\BASE@FONTsize minus .1\BASE@FONTsize + \if@nonfrench + \xspaceskip=.466\BASE@FONTsize plus .05\BASE@FONTsize minus .05\BASE@FONTsize + \fi +} + +\def\memucsinterwordhook{\memucsinterwordskip\memucshangulskips}% +\def\memucsinterwordchapterskiphook{\memucsinterwordchapterskip\memucshangulskips}% +\def\memucsfninterwordhook{\narrowerinterhword}% + +% 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 + +%% CHANGE LOG +% 2005/01/07. code clearance +% 2005/02/08. reset interwordchapterskip values +% 2005/05/17. engtext env. added. +% 2005/07/30. replace em by \BASE@FONTsize +% 2005/08/05. nonfrench option introduced. +% 2005/11/17. \interhword bug fixed. +% 2007/06/03. dhucs 4.0 hfontspec applied diff --git a/language/korean/kotex-oblivoir/tex/memhangul-ucs/nanumfontsel.sty b/language/korean/kotex-oblivoir/tex/memhangul-ucs/nanumfontsel.sty new file mode 100644 index 0000000000..3a24d64566 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-ucs/nanumfontsel.sty @@ -0,0 +1,29 @@ +%% File `nanumfontsel.sty` +%% +%% Copyright (c) 2007-2013 Kangsoo Kim +%% +%% 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{nanumfontsel} + +\newif\ifUSETONE\USETONEfalse +\DeclareOption{USETONEt1font}{\USETONEtrue} +\DeclareOption{uset1font}{\USETONEtrue} +\ProcessOptions + +\ifUSETONE +\RequirePackage[T1]{fontenc} +\renewcommand{\rmdefault}{nanummj} +\renewcommand{\sfdefault}{nanumgt} +\fi +\SetHangulFonts{nanummj}{nanumgt}{nanumgt} +\SetHanjaFonts{nanumgt}{nanumgt}{nanumgt} + +\endinput + diff --git a/language/korean/kotex-oblivoir/tex/memhangul-x/memhangul-x.sty b/language/korean/kotex-oblivoir/tex/memhangul-x/memhangul-x.sty new file mode 100644 index 0000000000..31a600349e --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-x/memhangul-x.sty @@ -0,0 +1,405 @@ +%% File `memhangul-x.sty` +%% +%% (C) Copyright 2006-2020 Kangsoo Kim +%% +%% 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. +%% +%%% file `memhangul-x.sty` +%% part of oblivoir v2 +%% +\NeedsTeXFormat{LaTeX2e} +\def\filedate{2020/02/05} +\def\fileversion{11.11} +\ProvidesPackage{memhangul-x}[\filedate Hangul Typography for (x)oblivoir] +%\typeout{Hangul Typography for (x)oblivoir} + +%% Options : + +\providecommand\DisabledOption[1]{% + \typeout{[#1] option to this class has been disabled!}} + +%%%% DisabledOptions +\newif\if@interwordHWP\@interwordHWPfalse +\DeclareOption{interwordHWP}{\DisabledOption{interwordHWP}} +\newif\if@interworddefault\@interworddefaultfalse +%\DeclareOption{interworddefault}{\DisabledOption{interworddefault}} +\DeclareOption{interworddefault}{\@interworddefaulttrue} +%\newif\if@finemath\@finemathfalse +\DeclareOption{finemath}{\DisabledOption{finemath}} +%\newif\if@nojosa\@nojosafalse +\DeclareOption{nojosa}{\DisabledOption{nojosa}} +%\newif\if@dvips{\@dvipsfalse} +\DeclareOption{dvips}{\DisabledOption{dvips}} +\DeclareOption{strictcharcheck}{\DisabledOption{strictcharcheck}} +\DeclareOption{adjustmath}{\DisabledOption{adjustmath}} + +%%%% active options +\newif\if@hsspace\@hsspacetrue +\DeclareOption{nosetspace}{\@hsspacefalse} + +\newcommand\nosetspace{% + \@hsspacefalse +} + +%\RequirePackage{ifluatex} +%\RequirePackage{ifxetex} + +\newif\if@hsspacenoquote\@hsspacenoquotetrue +\DeclareOption{quotespacing}{\@hsspacenoquotefalse} +\newif\if@nonfrench\@nonfrenchfalse +\DeclareOption{nonfrench}{\@nonfrenchtrue} +\newif\if@hanja\@hanjafalse +\DeclareOption{hanja}{\@hanjatrue} +\newif\if@mathdisp\@mathdisptrue +\DeclareOption{mathdisp}{\@mathdispfalse} + +\newif\if@arabicfrontmatter{\@arabicfrontmatterfalse} +\DeclareOption{arabicfront}{\@arabicfrontmattertrue} +\newif\if@defaulthangulpagestyle{\@defaulthangulpagestylefalse} +\DeclareOption{hangulpagestyle}{\@defaulthangulpagestyletrue} +\newif\if@pdfbookmark{\@pdfbookmarkfalse} +\DeclareOption{pdfbookmark}{\@pdfbookmarktrue} +\newif\if@polyglos\@polyglosfalse +\DeclareOption{polyglossia}{\@polyglostrue} + +\ifxetex +%%% xetexko options +\DeclareOption{gremph}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} +\DeclareOption{itemph}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} +%%% new option +\DeclareOption{latinquote}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} +\DeclareOption{oldhangul}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} +\DeclareOption{manualfontspec}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} +\DeclareOption{nowinname}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} +\DeclareOption{unfonts}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} +\DeclareOption{nounfonts}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} +\DeclareOption{nanum}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} +\DeclareOption{hcr}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} +\DeclareOption{noto}{\PassOptionsToPackage{\CurrentOption}{xetexko-var}} +\else\ifluatex +%%% luatexko options +\DeclareOption{gremph}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{itemph}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +%%% new option +\DeclareOption{latinquote}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{oldhangul}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{manualfontspec}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{nowinname}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{unfonts}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{nounfonts}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{nanum}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{hcr}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{noto}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\else +%%% pdftex options +\ifPDFTeX +\DeclareOption{gremph}{\DisabledOption{gremph}} +\DeclareOption{itemph}{\DisabledOption{itemph}} +\DeclareOption{latinquote}{\DisabledOption{latinquote}} +\DeclareOption{oldhangul}{\DisabledOption{oldhangul}} +\DeclareOption{manualfontspec}{\DisabledOption{manualfontspec}} +\DeclareOption{nowinname}{\DisabledOption{nowinname}} +\DeclareOption{unfonts}{\DisabledOption{unfonts}} +\DeclareOption{nounfonts}{\DisabledOption{nounfonts}} +\DeclareOption{nanum}{\DisabledOption{nanum}} +\DeclareOption{hcr}{\DisabledOption{hcr}} +\DeclareOption{noto}{\DisableOption{noto}} +\fi +\fi\fi + +%%% figtabcapt +\newif\if@figtabcapt@\@figtabcapt@false +\DeclareOption{figtabcapt}{\@figtabcapt@true} + +\newif\ifKOTEXCJK\KOTEXCJKtrue +\DeclareOption{cjk}{\KOTEXCJKtrue} +\DeclareOption{dhucs}{\KOTEXCJKfalse} +\DeclareOption{uset1font}{\PassOptionsToPackage{usecjkt1font}{cjkutf8-ko}} +\DeclareOption{usedotemph}{\PassOptionsToPackage{\CurrentOption}{cjkutf8-ko}} + +\ProcessOptions \relax + +\if@polyglos + \RequirePackage{polyglossia} + \RequirePackage{xparse} +%%% \sethangulfont{FONTNAME} or \sethangulfont[tt]{FONTNAME}[FEATURES] + \NewDocumentCommand\sethangulfont{omo}{% + \IfValueTF{#1}{% + \IfValueTF{#3}{% + \expandafter\newfontfamily\csname hangulfont#1\endcsname + {#2}[#3]}{% + \expandafter\newfontfamily\csname hangulfont#1\endcsname + {#2}}% + }% + {% + \IfValueTF{#3}{% + \newfontfamily\hangulfont{#2}[#3]% + }{% + \newfontfamily\hangulfont{#2}% + }% + }% + } +\else +\ifluatex + \@ifpackageloaded{luatexko}{}{\RequirePackage{luatexko}} + \RequirePackage{xob-font} + \RequirePackage{xob-dotemph} +\else\ifxetex + \RequirePackage{xetexko-var} + \RequirePackage{xob-dotemph} + \else + \ifKOTEXCJK + \RequirePackage{cjkutf8-ko} +% \else +% \RequirePackage{dhucs} + \fi +\fi\fi\fi + +%% define memh@hu +\newdimen\memh@hu\memh@hu=0.059375em + +\newif\if@inthekoreancontext\@inthekoreancontexttrue + +%% memoir [ms] option +\ifmsdoc +\newcommand*\MSNormalSize{ + \let\large\normalsize + \let\Large\normalsize + \let\LARGE\normalsize + \let\huge\normalsize + \let\Huge\normalsize + \let\HUGE\normalsize + \let\small\normalsize + \let\scriptsize\normalsize + \let\footnotesize\normalsize + \let\tiny\normalsize + } +\AtBeginDocument{ + \renewcommand{\msdoublespacing}{% + \renewcommand{\baselinestretch}{1.75}\large\normalsize} + \renewcommand{\mssinglespacing}{% + \renewcommand{\baselinestretch}{1.1}\large\normalsize} + \renewcommand{\familydefault}{cmtt} + \renewcommand{\rmdefault}{cmtt} + \renewcommand{\sfdefault}{cmtt} + \renewcommand{\bfdefault}{m} + \renewcommand{\itdefault}{n} + \renewcommand{\sldefault}{n} + \renewcommand{\scdefault}{n} + \renewcommand{\baselinestretch}{1.75} + \@twocolumnfalse + \onecolumn + \sloppy + \@twosidefalse + \raggedbottom + \pagestyle{plain} +} +\fi + +\if@pdfbookmark + \@ifpackageloaded{hyperref}{% hyperref is already loaded + \typeout{hyperref is already loaded!}% + \RequirePackage{memhfixc}}% + {% + \RequirePackage{hyperref} + \RequirePackage{memhfixc}} +\fi + +%%% interword +\if@interworddefault + \RequirePackage{memucs-interword-x} +\fi + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% 한글 관련 이름 설정 (not from hangul.sty) + +\if@hanja +\def\today{\number\year 年~\number\month 月~\number\day 日} +\def\enclname{同封物} +\def\ccname{寫本} +\def\headtoname{受信人} +\def\seename{\을~參照} +\def\alsoname{\을~參照} +\def\contentsname{目~次} +\def\listfigurename{圖~目次} +\def\listtablename{表~目次} +\def\refname{參考~文獻} +\def\indexname{索~引} +\def\tablename{表} +\def\figurename{圖} +\def\abstractname{要~約} +\def\bibname{參考~圖書} +\def\appendixname{附錄} +\def\subappendixname{附錄} +\def\appendixtocname{附~錄} +\def\appendixpagename{附~錄} +\def\partname{篇} +\def\chaptername{章} +\def\sectionname{節} +\def\colorlayer{色相레이어} +\def\glossaryname{語彙} +\def\figurerefname{圖} +\def\tablerefname{表} +\def\pagename{面} +\def\pagerefname{面} +\def\partrefname{篇} +\def\chapterrefname{章} +\def\sectionrefname{\S} +\else +\def\today{\number\year 년~\number\month 월~\number\day 일} +\def\enclname{동봉물} +\def\ccname{사본} +\def\headtoname{받는이} +\def\seename{\을~참조} +\def\alsoname{\을~함께~참조} +\def\contentsname{차~례} +\def\listfigurename{그림~차례} +\def\listtablename{표~차례} +\def\refname{참고~문헌} +\def\indexname{찾아보기} +\def\tablename{표} +\def\figurename{그림} +\def\abstractname{요~약} +\def\bibname{참고~문헌} +\def\appendixname{부록} +\def\subappendixname{부록} +\def\appendixtocname{부~록} +\def\appendixpagename{부~록} +\def\partname{편} +\def\chaptername{장} +\def\sectionname{절} +\def\colorlayer{환등판~색상} +\def\glossaryname{용어집} +\def\figurerefname{그림} +\def\tablerefname{표} +\def\pagename{페이지} +\def\pagerefname{페이지} +\def\partrefname{편} +\def\chapterrefname{장} +\def\sectionrefname{\S} +\fi + +%% \marginparswitchtrue/false +\providecommand{\marginparswitchtrue}{\@mparswitchtrue} +\providecommand{\marginparswitchfalse}{\@mparswitchfalse} +\providecommand{\reversemargintrue}{\@reversemargintrue} +\providecommand{\reversemarginfalse}{\@reversemarginfalse} + +%% select textwidth with chars +\def\testh@ng@lch@r@cters{가갸거겨고교구규그기} +\newlength\t@nch@ars +\newcommand*\setxxxlength[2]{% + \setbox0\hbox{\testh@ng@lch@r@cters}\setlength\t@nch@ars{\wd0}% + \@ifundefined{#1length}{\expandafter\newlength\csname #1length\endcsname}{}% + \expandafter\setlength\csname #1length\endcsname{#2\t@nch@ars}% + \expandafter\divide\csname #1length\endcsname by 10% +} + +%%% kscntformat +%%% HLaTeX의 \kscntformat 명령을 흉내냄 +%%% \kscntformat{section}{제}{절} 형식으로 쓴다. +\newsavebox{\tmp@XXbox} +\newdimen\tmp@XXdim +\def\kscntformat#1#2#3{% + \sbox{\tmp@XXbox}{#2\expandafter\number\csname c@#1\endcsname#3}% + \setlength\tmp@XXdim{\wd\tmp@XXbox}\advance\tmp@XXdim by1em% + \expandafter\def\csname the#1\endcsname{#2\expandafter\number\csname c@#1\endcsname#3}% + \expandafter\renewcommand\csname cft#1numwidth\endcsname{\tmp@XXdim}% + \expandafter\renewcommand\csname cft#1presnum\endcsname{}% + \expandafter\renewcommand\csname cft#1aftersnum\endcsname{}% +} + +\AtBeginDocument{% +\ifnokorean\else +\ifkosection +\kscntformat{section}{제\ob@onethirdspace }{\ob@onethirdspace 절} +\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}} +\fi\fi +} + +\RequirePackage{memhangul-common} + +\ifx\memucsinterwordhook\undefined +\def\memucsinterwordhook{} +\fi + +\ifx\memucsinterwordchapterskiphook\undefined +\def\memucsinterwordchapterskiphook{} +\fi + +\if@nonfrench\else + \frenchspacing +\fi + +%%% hsetspace for memucs +\if@hsspace + \RequirePackage[hangul,adjustverbatim,adjustfootnotesep]{memucs-setspace} + \if@hsspacenoquote\else\adjustquotespacing\fi +\else + \RequirePackage{memucs-setspace} + \linespread{1.33} +\fi +%\SetHangulspace{1.333}{1.1} + +%%% fix first pdf page layout error : XeTeX +%%% based on v1.61803398 +%%% these codes are to be deleted later. (2009/09/25) +\renewcommand*{\fixpdflayout}{% + \pdfpageheight=\the\stockheight + \pdfpagewidth=\the\stockwidth + \ifxetex + \AtBeginDvi{\special{pdf: pagesize width \the\stockwidth\ height \the\stockheight}}% + \else + \ifdim\pdfvorigin=0pt\pdfvorigin=1in\fi + \ifdim\pdfhorigin=0pt\pdfhorigin=1in\fi + \fi} + +%%% 호환을 위하여 dhucs 명령 몇 개를 무력화함. +\ifx\SetAdhocFonts\undefined + \def\SetAdhocFonts#1#2{} +\fi +\ifx\regremph\undefined + \let\regremph\relax + \let\ungremph\relax +\fi + +\endinput + +% CHANGE LOG +% 2015/10/05 : change \sethangulfont command for polyglossia +% 2014/04/29 : fix a bug reported by Progress +% 2013/10/22 : introduce memhangul-common.sty +% 2013/10/16 : \kscntformat and [kosection] bug fix. +% 2013/09/27 : \cntrdotss +% 2013/09/15 : \leavevmode at \explpunc, \expldash +% 2013/09/01 : [cjk], [dhucs] option introduced +% 2012/12/02 : drop shipout hacking codes +% 2012/11/29 : \pdfstringdefDisableCommands +% 2012/11/22 : [figtabcapt] opton introduced +% 2012/11/01 : avoid error in \cnm, \ccnm etc. +% 2012/07/12 : introduce xob-font +% 2011/09/15 : changes according to xoblivoir +% 2010/09/16 : cntrdot, adjustmath +% 2009/05/11 : protect bnm commands +% 2009/04/02 : redefine memoir-shipout for pdflualatex and other... +% 2009/02/11. memoir v1.6180339e compatibility mend 1. +% titleref, hangul page style. +%%% +% 오전 6:35 2008-09-18 : rename xkospace.sty to xkospace-var.sty +% to avoid confusion +% 오후 2:16 2008-09-18 : latinquote 옵션 +% 오전 4:32 2008-09-30 : hangul item titles +% 코드 정리. +% 오전 8:24 2008-10-07 : revive interword hook +% 오후 5:25 2008-10-07 : revive gremph/itemph +% 오전 1:21 2008-10-13 : xetexko v0.1 반영 +% 오후 2:37 2008-10-23 : bnmcmds, oblivoirdblquote +% 오후 17:59 2008-12-03 : nowinname 옵션 추가 +% 오전 2:17 2009-09-26 : try to fix the first pdf page layout error on XeTeX (moved from fapapersize) +% diff --git a/language/korean/kotex-oblivoir/tex/memhangul-x/memucs-interword-x.sty b/language/korean/kotex-oblivoir/tex/memhangul-x/memucs-interword-x.sty new file mode 100644 index 0000000000..e033b74ce2 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-x/memucs-interword-x.sty @@ -0,0 +1,188 @@ +%% memucs-interword-x.sty +%% +%% Copyright (c) 2007-2013 Kangsoo Kim +%% +%% 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{memucs-interword-x}[2009/04/02] +\RequirePackage{ifluatex} +\RequirePackage{ifxetex} + +\def\memucsinterwordskip{} +\def\memucsinterwordchapterskip{} +\def\memucshangulskips{} + +\newif\if@nonfrench\@nonfrenchfalse +\DeclareOption{nonfrench}{% + \@nonfrenchtrue} +\DeclareOption{HWP}{% + \def\memucsinterwordskip{\HWPinterwordskip}} +\DeclareOption{default}{% + \@nonfrenchtrue\def\memucsinterwordskip{\DEFAULTskips}%\interHchar{0pt} + } +\DeclareOption{wider}{} +% \def\memucshangulskips{\widerhangul}} +\DeclareOption{narrower}{} +% \def\memucshangulskips{\narrowerhangul}} +%\DeclareOption*{% +% \def\memucsinterwordskip{\DEFAULTskips}% +%} + +%\newlength\dimen@skip +%\setlength\dimen@skip{.1pt} + +%% finemath active. +%\ifluatex\else\ifxetex\else +% \if@dhucsfinemath\else\@dhucsfinemathtrue\fi +%\fi\fi + +%%% inter hchar +\newcommand*\interHchar[1]{% + \ifluatex + \@luatex@setinterhangulskip{#1}% + \else\ifxetex + \@xetex@setinterhangulskip{#1}% + \else + \@setinterhangulskip{#1}% + \fi\fi +} + +\newcommand*\DefaultInterHchar{% + \interHchar{-.04}% +} + +\newcommand*\@luatex@setinterhangulskip[1]{% +\directlua{ + fmconfig.hangul_hangul = #1 % ѱ ڰ +}} + +\newcommand*\@xetex@setinterhangulskip[1]{% + \def\xetexkointerhchar{#1em}% +} + +\newcommand*\@setinterhangulskip[1]{% + \setInterHangulSkip{#1em}% +} + +\newcommand*\interhword[4][\@empty]{% + \ifx#1\@empty\setinterwordskip{#2}{#3}{#4}\else + \setinterwordskip[#1]{#2}{#3}{#4}\fi +} + +%%%\def\narrowerhangul{% +%%% \def\memucshangulskips{% +%%% \interHchar{-.5pt}% +%%% }% +%%%} +%%%\def\widerhangul{% +%%% \def\memucshangulskips{% +%%% \interHchar{1pt}% +%%% }% +%%%} + +\newdimen\BASE@FONTsize +\BASE@FONTsize=\f@size\p@ + +\def\HWPinterwordskip{% + \def\memucshangulskips{% + \DefaultInterHchar + }% + \def\memucsinterwordskip{% + \spaceskip = .475\BASE@FONTsize plus .25\BASE@FONTsize minus .1331\BASE@FONTsize + \if@nonfrench + \xspaceskip = .6\BASE@FONTsize plus .2\BASE@FONTsize minus .1\BASE@FONTsize + \fi + }% + \def\memucsinterwordchapterskip{% + \spaceskip = .5\BASE@FONTsize plus .1\BASE@FONTsize minus .05\BASE@FONTsize + \if@nonfrench + \xspaceskip = .65\BASE@FONTsize plus .2\BASE@FONTsize minus .1\BASE@FONTsize + \fi + }% +} + +\def\setinterwordskip{\@ifnextchar[\setinterwordskip@\setinterwordskip@@} +\def\setinterwordskip@[#1]#2#3#4{% + \def\memucsinterwordskip{% + \spaceskip = #2\BASE@FONTsize plus #3\BASE@FONTsize minus #4\BASE@FONTsize + \if@nonfrench + \xspaceskip = #1\BASE@FONTsize plus #3\BASE@FONTsize minus #4\BASE@FONTsize + \fi + }% +} + +\def\setinterwordskip@@#1#2#3{% + \def\memucsinterwordskip{% + \spaceskip = #1\BASE@FONTsize plus #2\BASE@FONTsize minus #3\BASE@FONTsize + \if@nonfrench + \xspaceskip = .6\BASE@FONTsize plus #2\BASE@FONTsize minus #3\BASE@FONTsize + \fi + }% +} + +\def\DEFAULTskips{% + \DefaultInterHchar + \def\memucsinterwordskip{% + \spaceskip = .413\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize + \if@nonfrench + \xspaceskip = .55\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize + \fi + }% + \def\memucsinterwordchapterskip{% + \spaceskip = .46\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize + \if@nonfrench + \xspaceskip = .575\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize + \fi + }% +} + +\ProcessOptions\relax + +\def\verbatim@font{\m@mverbfont\spaceskip\z@ + \hyphenchar\font\m@ne + \let\do\do@noligs + \verbatim@nolig@list} + +\def\narrowerinterhword{% + \spaceskip=.331\BASE@FONTsize plus .111\BASE@FONTsize minus .1\BASE@FONTsize + \if@nonfrench + \xspaceskip=.466\BASE@FONTsize plus .05\BASE@FONTsize minus .05\BASE@FONTsize + \fi +} + +\def\memucsinterwordhook{\memucsinterwordskip\memucshangulskips}% +\def\memucsinterwordchapterskiphook{\memucsinterwordchapterskip\memucshangulskips}% +\def\memucsfninterwordhook{\narrowerinterhword}% + +% 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 + +%% CHANGE LOG +% 2009/04/02. small alterations. +% 2005/01/07. code clearance +% 2005/02/08. reset interwordchapterskip values +% 2005/05/17. engtext env. added. +% 2005/07/30. replace em by \BASE@FONTsize +% 2005/08/05. nonfrench option introduced. +% 2005/11/17. \interhword bug fixed. +% 2007/06/03. dhucs 4.0 hfontspec applied diff --git a/language/korean/kotex-oblivoir/tex/memhangul-x/xetexko-var.sty b/language/korean/kotex-oblivoir/tex/memhangul-x/xetexko-var.sty new file mode 100644 index 0000000000..f8acc43a23 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-x/xetexko-var.sty @@ -0,0 +1,73 @@ +%% xetexko-var.sty +%% +%% Copyright (c) 2007-2020 Kangsoo Kim +%% Copyright (c) 2013 Kihwang Lee +%% +%% 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. +%% +%% A variant of xetexko.sty +%% +%% Updated for xetexko v2.1 +%% 2013.08.26 +%% +\ProvidesPackage{xetexko-var} + [2020/02/05 v0.14 Korean Typesetting under XeTeX] + +%%% common options for xob-font +\DeclareOption{gremph}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{itemph}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{oldhangul}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{latinquote}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{nowinname}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +%%% for kolabels +\newif\if@hangul +\newif\if@hanja +\DeclareOption{hangul}{\@hangultrue} +\DeclareOption{hanja}{\@hangultrue\@hanjatrue} +%%% for xob-fonts +\newif\if@extfontspec\@extfontspecfalse +\DeclareOption{manualfontspec}{\@extfontspectrue} + +%%% unfonts +%\DeclareOption{unfonts}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +%\DeclareOption{nounfonts}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{nanum}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\DeclareOption{hcr}{\PassOptionsToPackage{\CurrentOption}{xob-font}} +\ProcessOptions\relax + +%%% xetexko sub-styles +\RequirePackage{xetexko-space} +\RequirePackage{xetexko-josa} +\if@lwarp\else +\RequirePackage{xetexko-vertical} +\fi + +%%% xoblivoir sub-styles +\RequirePackage{xob-dotemph} +\RequirePackage{xob-hyper} + +\if@extfontspec + \PackageWarning{xetexko-var}{Load xetexko-font and configure Korean Fonts manually!}{} +\else +%%% We will never use xetexko/luatexko's unfonts option. +% \newif\if@unfonts\@unfontsfalse + \RequirePackage{xob-font} +\fi + +\RequirePackage{kolabels-utf} +\if@hangul\AtBeginDocument{\RequirePackage{konames-utf}}\fi + +\endinput + +%%% 2014-06-12: new xob-font.sty +%%% 2013-09-27, nounfonts. +%%% 오후 3:22 2008-11-16 +%%% 오후 17:59 2008-12-03 : nowinname 옵션 추가 +%%% 2009-03-25, xetexko.sty +%%% 오전 2:22 2009-09-26, xetexko-vertical.sty diff --git a/language/korean/kotex-oblivoir/tex/memhangul-x/xob-amssymb.sty b/language/korean/kotex-oblivoir/tex/memhangul-x/xob-amssymb.sty new file mode 100644 index 0000000000..9d9578b44d --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-x/xob-amssymb.sty @@ -0,0 +1,27 @@ +%% xob-amssymb.sty +%% +%% Copyright (c) 2007-2013 Kangsoo Kim +%% +%% 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. +%% +%% disable a few commands +%% +\def\DisablePreAmsCmds#1{% + \expandafter\ifx\csname #1\endcsname\undefined\else + \expandafter\let\csname #1\endcsname\relax\fi +} +\DisablePreAmsCmds{Finv} +\DisablePreAmsCmds{Game} +\DisablePreAmsCmds{beth} +\DisablePreAmsCmds{gimel} +\DisablePreAmsCmds{daleth} +% +\RequirePackage{amssymb} +% +\endinput diff --git a/language/korean/kotex-oblivoir/tex/memhangul-x/xob-dotemph.sty b/language/korean/kotex-oblivoir/tex/memhangul-x/xob-dotemph.sty new file mode 100644 index 0000000000..87285578b2 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-x/xob-dotemph.sty @@ -0,0 +1,75 @@ +%% xob-dotemph.sty +%% +%% Copyright (c) 2007-2014 Kangsoo Kim +%% +%% 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. +%% +%% xob-dotemph +%% 2014-06-15, \useremph redefined +%% 2014-04-29 +%% 2010-03-18 +%% 오전 9:01 2008-10-22 +%% xetexko-dotemph의 확장 +%% dhucs/hangul compatible (\dotemph, \circemph, \useremph) +%% ---------- +%% \useremph is different from kotex-utf's \useremph *** +%% +%% Updated for xetexko v2.1 +%% Kihwang Lee +%% 2013.08.26 +%% +%% +\protected\def\circemph#1{% + \begingroup + \def\dotemphchar{^^^^02da}\dotemph{#1}% + \endgroup +} + +\def\xob@useremph#1{\begingroup + \let\dotemphchar\useremphchar + \let\dotemphraise\useremphraisedim + \dotemph{#1}\endgroup} + +%%%%% 2014/06/15 +%%%%% \useremph[dim][char]{letter} +%%%%% +\RequirePackage{xparse} + +\ExplSyntaxOn + +\dim_new:N \useremphraisedim \dim_set:Nn \useremphraisedim { 1ex } +\tl_set:Nn \useremphchar { ^^^^02da } + +\DeclareDocumentCommand \useremph { o o m } +{ + \IfValueT { #1 } + { + \tl_if_empty:nF { #1 } + { + \settoheight \useremphraisedim { #3 } + \dim_add:Nn \useremphraisedim { #1 } + } + } + + \IfValueT { #2 } + { + \tl_if_empty:nF { #2 } + { + \tl_set:Nn \useremphchar { #2 } + } + } + \xob@useremph { #3 } +} + +\ExplSyntaxOff + +\def\useremphstarblack{\tiny★} +\def\useremphstarwhite{\tiny☆} + +\endinput diff --git a/language/korean/kotex-oblivoir/tex/memhangul-x/xob-font.sty b/language/korean/kotex-oblivoir/tex/memhangul-x/xob-font.sty new file mode 100644 index 0000000000..cab543826d --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-x/xob-font.sty @@ -0,0 +1,694 @@ +%% xob-font.sty +%% +%% Copyright (c) 2014-2020 Kangsoo Kim +%% Copyright (c) 2017-2020 Kihwang Lee +%% +%% 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 otef 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. +%% +%% +%% oblivoir hangul/hanja font setting. +%% part of oblivoir +%% +\ProvidesPackage{xob-font}[2020/02/04 v0.8 select hangul/hanja fonts for oblivoir] + +%%% obsolete options: retain \if@.. conditions for backward compatibility +\newif\if@nowin\@nowinfalse +\newif\if@latinquote\@latinquotefalse +\newif\if@unfont\@unfontfalse +\DeclareOption{nowinname}{} +\DeclareOption{latinquote}{} +\DeclareOption{unfonts}{\@unfonttrue} +\DeclareOption{nounfonts}{\@unfontfalse} + +%%% active optoins +\newif\if@oldhangul\@oldhangulfalse +\DeclareOption{oldhangul}{\@oldhangultrue} +\newif\if@gremph\@gremphtrue +\DeclareOption{gremph}{\@gremphtrue} +\DeclareOption{itemph}{\@gremphfalse} + +\newif\if@nanumfonts\@nanumfontsfalse +\newif\if@nanumxfonts\@nanumxfontsfalse +\DeclareOption{nanum}{\@nanumfontstrue} +\DeclareOption{nanumx}{\@nanumfontstrue\@nanumxfontstrue} +\newif\if@hcrfonts\@hcrfontsfalse +\DeclareOption{hcr}{\@hcrfontstrue\@oldhangultrue} + +\ProcessOptions +\relax + +\RequirePackage{xparse} +\@ifclassloaded{oblivoir}{}{% + \RequirePackage{fontspec} + \RequirePackage{kotex} +} + +\ExplSyntaxOn + +\sys_if_engine_xetex:T +{ + \RequirePackage{xetexko-space} + \RequirePackage{xetexko-font} +} + +\if@gremph \bool_set_false:N \ital_fake_bool \else \bool_set_true:N \ital_fake_bool \fi +\if@oldhangul \bool_set_true:N \hangulscript_bool \else \bool_set_false:N \hangulscript_bool \fi + +\bool_set_false:N \bold_prov_bool +\bool_set_false:N \in_hanja_mode +\bool_set_false:N \mono_mode + +\DeclareDocumentCommand \setmonoscale { m } +{ + \tl_set:Nn \_mono_scale { #1 } +} + +\setmonoscale{0.95} + +\DeclareDocumentCommand \treat_feature_name_options { d() d() m o } +{ + \tl_set:Nn \_regu_font_name { #3 } + + \IfValueTF { #1 } + { + \tl_set:Nn \_bold_font_name { #1 } \bool_set_true:N \bold_prov_bool + } + { + \tl_clear:N \_bold_font_name \bool_set_false:N \bold_prov_bool + } + + \IfValueTF { #2 } + { + \tl_if_eq:nnTF { #2 } { * } + { \tl_set_eq:NN \_ital_font_name \_regu_font_name } + { \tl_set:Nn \_ital_font_name { #2 } } + } + { + \tl_set_eq:NN \_ital_font_name \_regu_font_name + } + \IfValueTF { #4 } + { \tl_set:Nn \_additional_feature_str { #4 } } + { \tl_clear:N \_additional_feature_str } + + \bool_if:nTF { \mono_mode || \in_hanja_mode } + { + \tl_clear:N \_font_feature_str + } + { + \tl_set:Nn \_font_feature_str { Ligatures = TeX, } + } + + \bool_if:nT \ital_fake_bool + { + \tl_if_eq:NNTF \_ital_font_name \_regu_font_name + { + \tl_put_right:Nn \_font_feature_str { AutoFakeSlant, } + } + { + \tl_put_right:Nn \_font_feature_str { ItalicFeatures = { FakeSlant = { 0.15 } }, } + } + \tl_put_right:Nn \_font_feature_str { BoldItalicFeatures = { FakeSlant = { 0.15 } }, } + } + + \bool_if:nT \bold_prov_bool + { + \tl_put_right:Nn \_font_feature_str + { + BoldFont = \_bold_font_name, + BoldItalicFont = \_bold_font_name, + ItalicFont = \_ital_font_name, +% FontFace = {bx}{n} {Font = {\_bold_font_name}}, +% FontFace = {bx}{it} {Font = {\_bold_font_name}}, +% FontFace = {m}{up} {Font = {\_regu_font_name}} + } + } + + \bool_if:nF \in_hanja_mode + { + \bool_if:nT \hangulscript_bool + { \tl_put_right:Nn \_font_feature_str { Script = Hangul, } } + } + + \bool_if:nT \mono_mode + { + \tl_put_right:Nn \_font_feature_str { Scale = \_mono_scale, } + } +} + +\DeclareDocumentCommand \set_kor_sub_hanja_font { m d() d() m o } +{ + \bool_set_true:N \in_hanja_mode +% \treat_feature_name_options ( #2 ) ( #3 ) { #4 } [ #5 ] + \IfValueTF { #2 } + { + \IfValueTF { #3 } + { + \treat_feature_name_options ( #2 ) ( #3 ) { #4 } [ #5 ] + } + { + \treat_feature_name_options ( #2 ) { #4 } [ #5 ] + } + } + { + \treat_feature_name_options { #4 } [ #5 ] + } + \setmainhanjafont [ \_font_feature_str, \_additional_feature_str ] { \_regu_font_name } + + \sys_if_engine_luatex:T + { + \tl_if_exist:NT \hanjabyhanjafont + { + \AtBeginDocument { \hanjabyhanjafont 1 } + } + } +} + +\DeclareDocumentCommand \setkorfont { m d() d() m o d() } +{ + \bool_set_false:N \in_hanja_mode + + \str_if_eq:nnTF { #1 } { mono } + { \bool_set_true:N \mono_mode } + { \bool_set_false:N \mono_mode } + + %%% when regular fontname contains "HCR", input [ Script=Hangul ] to font features. + \tl_if_in:nnT { #4 } { HCR } + { \bool_set_true:N \hangulscript_bool } + \tl_if_in:nnT { #4 } { hcr } + { \bool_set_true:N \hangulscript_bool } +% \tl_if_in:nnT { #4 } { HAN } +% { \bool_set_true:N \hangulscript_bool } + %%% the following three \tl_if_in's for \setkomainfont + \tl_if_in:NnT { #4 } { HCR } + { \bool_set_true:N \hangulscript_bool } + \tl_if_in:NnT { #4 } { hcr } + { \bool_set_true:N \hangulscript_bool } +% \tl_if_in:NnT { #4 } { HAN } +% { \bool_set_true:N \hangulscript_bool } + + \IfValueTF { #2 } + { + \IfValueTF { #3 } + { + \treat_feature_name_options ( #2 ) ( #3 ) { #4 } [ #5 ] + } + { + \treat_feature_name_options ( #2 ) { #4 } [ #5 ] + } + } + { + \treat_feature_name_options { #4 } [ #5 ] + } + +% \tl_set:Nx \l_tmpa_tl { \_font_feature_str, \_additional_feature_str } + + \cs:w set #1 hangulfont \cs_end: + [ \_font_feature_str, \_additional_feature_str, + FontFace = {bx}{n}{ Font={\_bold_font_name} , \_font_feature_str }, + FontFace = {m}{up}{ Font={\_regu_font_name} , \_font_feature_str } + ] + { \_regu_font_name } + + %%% \set_kor_sub_hanja_font will take more optional arguments, + %%% hence, this codes have to be located at the end of code block. + \IfValueT { #6 } + { + \set_kor_sub_hanja_font { #1 } ( #6 ) + } +} + +%%% new \setko(main|sans|mono)font +%\bool_new:N \setko_bold_process \bool_set_false:N \setko_bold_process + +\NewDocumentCommand \process_set_korob_hanja { m o d() d() d() o } +{ + \IfValueTF { #2 } + { + \tl_set:Nn \ko_hanja_base_font_name { #2 } + \tl_set_eq:NN \ko_hanja_regu_font_name \ko_hanja_base_font_name + \tl_put_right:Nn \ko_hanja_regu_font_name { #3 } + \IfValueTF { #4 } + { + \tl_if_empty:nTF { #4 } + { + \tl_set_eq:NN \ko_hanja_bold_font_name \ko_hanja_regu_font_name + } + { + \tl_set_eq:NN \ko_hanja_bold_font_name \ko_hanja_base_font_name + \tl_put_right:Nn \ko_hanja_bold_font_name { #4 } + } + \bool_set_false:N \setko_hanja_bold_process + } + { +% \tl_clear:N \ko_hanja_bold_font_name + \bool_set_true:N \setko_hanja_bold_process + } + \IfValueTF { #5 } + { + \tl_if_empty:nTF { #5 } + { + \tl_set_eq:NN \ko_hanja_ital_font_name \ko_hanja_regu_font_name + } + { + \tl_set_eq:NN \ko_hanja_ital_font_name \ko_hanja_base_font_name + \tl_put_right:Nn \ko_hanja_ital_font_name { #5 } + } + } + { + \tl_set_eq:NN \ko_hanja_ital_font_name \ko_hanja_regu_font_name + } + } + { + \tl_clear:N \ko_hanja_base_font_name + \tl_set:Nn \ko_hanja_regu_font_name { #3 } + + \IfValueTF { #4 } + { + \tl_set:Nn \ko_hanja_bold_font_name { #4 } + \bool_set_false:N \setko_hanja_bold_process + } + { +% \tl_clear:N \ko_hanja_bold_font_name + \bool_set_true:N \setko_hanja_bold_process + } + + \IfValueTF { #5 } + { + \tl_set:Nn \ko_hanja_ital_font_name { #5 } + } + { + \tl_set_eq:NN \ko_hanja_ital_font_name \ko_hanja_regu_font_name + } + } + + \IfValueTF { #6 } + { + \tl_set:Nn \ko_hanja_features { #6 } + } + { + \tl_clear:N \ko_hanja_features + } + + \bool_if:nTF \setko_bold_process + { + \bool_if:nTF \setko_hanja_bold_process + { + \cs:w setkor #1 font \cs_end: + { \ko_regu_font_name } + [ \ko_features ] + \bool_if:nTF \ital_fake_bool + { + \cs:w set #1 hanjafont \cs_end: + [ \ko_hanja_features, AutoFakeSlant, BoldItalicFeatures={FakeSlant={0.15}} ] + { \ko_hanja_regu_font_name } + } + { + \cs:w set #1 hanjafont \cs_end: + [ \ko_hanja_features ] + { \ko_hanja_regu_font_name } + } + } + { + \cs:w setkor #1 font \cs_end: + { \ko_regu_font_name } + [ \ko_features ] + ( \ko_hanja_bold_font_name ) + ( \ko_hanja_ital_font_name ) + { \ko_hanja_regu_font_name } + [ \ko_hanja_features ] + } + } + { + \bool_if:nTF \setko_hanja_bold_process + { + \cs:w setkor #1 font \cs_end: + ( \ko_bold_font_name ) + ( \ko_ital_font_name ) + { \ko_regu_font_name } + \bool_if:nTF \ital_fake_bool + { + \cs:w set #1 hanjafont \cs_end: + [ \ko_hanja_features, AutoFakeSlant, BoldItalicFeatures={FakeSlant={0.15}} ] + { \ko_hanja_regu_font_name } + } + { + \cs:w set #1 hanjafont \cs_end: + [ \ko_hanja_features ] + { \ko_hanja_regu_font_name } + } + } + { + \cs:w setkor #1 font \cs_end: + ( \ko_bold_font_name ) + ( \ko_ital_font_name ) + { \ko_regu_font_name } + [ \ko_features ] + ( \ko_hanja_bold_font_name ) + ( \ko_hanja_ital_font_name ) + { \ko_hanja_regu_font_name } + [ \ko_hanja_features ] + } + } + + \sys_if_engine_luatex:T + { + \tl_if_exist:NT \hanjabyhanjafont + { + \AtBeginDocument { \hanjabyhanjafont 1 } + } + } +} + +\NewDocumentCommand \process_korob_only_hangul { m } +{ + \bool_if:nTF \setko_bold_process + { + \cs:w setkor #1 font \cs_end: + { \ko_regu_font_name } + [ \ko_features ] + } + { + \cs:w setkor #1 font \cs_end: + ( \ko_bold_font_name ) + ( \ko_ital_font_name ) + { \ko_regu_font_name } + [ \ko_features ] + } +} + +\DeclareDocumentCommand \setkorfontxob { m o d() d() d() o o d() } +{ + \IfValueTF { #2 } + { \tl_set:Nn \ko_base_font_name { #2 } + \tl_set_eq:NN \ko_regu_font_name \ko_base_font_name + \tl_put_right:Nn \ko_regu_font_name { #3 } + \IfValueTF { #4 } + { + \tl_if_empty:nTF { #4 } + { + \tl_set_eq:NN \ko_bold_font_name \ko_regu_font_name + } + { + \tl_set_eq:NN \ko_bold_font_name \ko_base_font_name + \tl_put_right:Nn \ko_bold_font_name { #4 } + } + \bool_set_false:N \setko_bold_process + } + { +% \tl_set_eq:NN \ko_bold_font_name \ko_regu_font_name + \bool_set_true:N \setko_bold_process + } + \IfValueTF { #5 } + { + \tl_if_empty:nTF { #5} + { + \tl_set_eq:NN \ko_ital_font_name \ko_regu_font_name + } + { + \tl_set_eq:NN \ko_ital_font_name \ko_base_font_name + \tl_put_right:Nn \ko_ital_font_name { #5 } + } + } + { + \tl_set_eq:NN \ko_ital_font_name \ko_regu_font_name + } + } + { + \tl_clear:N \ko_base_font_name + \tl_set:Nn \ko_regu_font_name { #3 } + + \IfValueTF { #4 } + { + \tl_set:Nn \ko_bold_font_name { #4 } + \bool_set_false:N \setko_bold_process + } + { +% \tl_set_eq:NN \ko_bold_font_name \ko_regu_font_name + \bool_set_true:N \setko_bold_process + } + + \IfValueTF { #5 } + { + \tl_set:Nn \ko_ital_font_name { #5 } + } + { + \tl_set_eq:NN \ko_ital_font_name \ko_regu_font_name + } + + } + + \IfValueTF { #6 } + { + \tl_set:Nn \ko_features { #6 } + } + { + \tl_clear:N \ko_features + } + + \IfValueTF { #7 } + { + \IfValueTF { #8 } + { + \process_set_korob_hanja { #1 } [ #7 ] ( #8 ) + } + { + \process_set_korob_hanja { #1 } [ #7 ] + } + } + { + \IfValueTF { #8 } + { + \process_set_korob_hanja { #1 } ( #8 ) + } + { + \process_korob_only_hangul { #1 } + } + } +} + +%%% bracket version. +\bool_set_false:N \ext_loc_bool + +\DeclareDocumentCommand \set_kor_font_orig_method_sub_hanja { m o m } +{ + \IfValueTF { #2 } + { + \cs:w set #1 hanjafont \cs_end: [ #2, \ext_loc_feature ] { #3 } + } + { + \cs:w set #1 hanjafont \cs_end: [ \ext_loc_feature ]{ #3 } + } + \bool_set_false:N \ext_loc_bool +} + +\DeclareDocumentCommand \setkorfontorigmethod { m o m o } +{ + \bool_if:nTF \ext_loc_bool + { + \tl_set:Nn \ext_loc_feature { ExternalLocation, } + } + { + \tl_clear:N \ext_loc_feature + } + \IfValueTF { #2 } + { + \cs:w set #1 hangulfont \cs_end: [ #2, \ext_loc_feature ] { #3 } + } + { + \cs:w set #1 hangulfont \cs_end: [ \ext_loc_feature ] { #3 } + } + + \IfValueTF { #4 } + { + \set_kor_font_orig_method_sub_hanja { #1 } [ #4 ] + } + { + \bool_set_false:N \ext_loc_bool + } +} + +%%% starred version. +\DeclareDocumentCommand \setkorfontorigstar { s m } +{ + \bool_set_true:N \ext_loc_bool + \setkorfontorigmethod { #2 } +} + +%%% \setobmainfont +\DeclareDocumentCommand \setxoblatinfont { m o d() d() d() o } +{ + \IfValueTF { #2 } + { + \tl_set:Nn \latin_base_font_name { #2 } + \tl_set_eq:NN \latin_regu_font_name \latin_base_font_name + \tl_put_right:Nn \latin_regu_font_name { #3 } + \IfValueTF { #4 } + { + \tl_if_empty:nTF { #4 } + { + \tl_set_eq:NN \latin_bold_font_name \latin_regu_font_name + } + { + \tl_set_eq:NN \latin_bold_font_name \latin_base_font_name + \tl_put_right:Nn \latin_bold_font_name { #4 } + } + \bool_set_false:N \setlatin_bold_process + } + { + \bool_set_true:N \setlatin_bold_process + } + \IfValueTF { #5 } + { + \tl_if_empty:nTF { #5} + { + \tl_set_eq:NN \latin_ital_font_name \latin_regu_font_name + } + { + \tl_set_eq:NN \latin_ital_font_name \latin_base_font_name + \tl_put_right:Nn \latin_ital_font_name { #5 } + } + \bool_set_false:N \setlatin_ital_process + } + { + \bool_set_true:N \setlatin_ital_process + } + } + { + \tl_clear:N \latin_base_font_name + \tl_set:Nn \latin_regu_font_name { #3 } + + \IfValueTF { #4 } + { + \tl_set:Nn \latin_bold_font_name { #4 } + \bool_set_false:N \setlatin_bold_process + } + { + \bool_set_true:N \setlatin_bold_process + } + + \IfValueTF { #5 } + { + \tl_set:Nn \latin_ital_font_name { #5 } + \bool_set_false:N \setlatin_ital_process + } + { + \bool_set_true:N \setlatin_ital_process + } + + } + + \tl_if_eq:nnTF { #1 } { mono } + { + \bool_set_true:N \latin_mono_mode + } + { + \bool_set_false:N \latin_mono_mode + } + + \bool_if:nTF \latin_mono_mode + { + \tl_clear:N \latin_feature + } + { + \tl_set:Nn \latin_feature { Ligatures=TeX, } + } + + \bool_if:nF \setlatin_bold_process + { + \tl_put_right:Nn \latin_feature { + BoldFont = { \latin_bold_font_name }, + } + } + + \bool_if:nF \setlatin_ital_process + { + \tl_put_right:Nn \latin_feature { + ItalicFont = { \latin_ital_font_name }, + } + } + + \IfValueT { #6 } + { + \tl_put_right:Nn \latin_feature { #6 } + } + + \cs:w set #1 font \cs_end: + [ \latin_feature ] + { \latin_regu_font_name } + +} + +\ExplSyntaxOff + +%%% starred version commands are provided for backward compatibility. +\protected\def\setkormainfont{% + \@ifstar{\setkorfontorigstar*{main}}{% + \@ifnextchar[{\setkorfontorigmethod{main}}{\setkorfont{main}}}} +\protected\def\setkorsansfont{% + \@ifstar{\setkorfontorigstar*{sans}}{% + \@ifnextchar[{\setkorfontorigmethod{sans}}{\setkorfont{sans}}}} +\protected\def\setkormonofont{% + \@ifstar{\setkorfontorigstar*{mono}}{% + \@ifnextchar[{\setkorfontorigmethod{mono}}{\setkorfont{mono}}}} + +%%% newly defined commands: +%%% \setkomainfont[BASENAME](Regu)(Bold)(Ital)[Feature]% +%%% [HJBASENAME](HJREGU)(HJBOLD)(HJITAL)[HJFeatures] +%%% no spaces allowed between optional arguments, e.g., [...]*nospace*[...] +\protected\def\setkomainfont{\setkorfontxob{main}} +\protected\def\setkosansfont{\setkorfontxob{sans}} +\protected\def\setkomonofont{\setkorfontxob{mono}} + +%%% \setobmainfont(regu)[features] = \setmainfont[features]{regu} +\protected\def\setobmainfont{\setxoblatinfont{main}} +\protected\def\setobsansfont{\setxoblatinfont{sans}} +\protected\def\setobmonofont{\setxoblatinfont{mono}} + +%%% [unfonts] will be deprecated shortly. +%\if@unfont +% \if@gremph +% \setkomainfont(UnBatang.ttf)(UnBatangBold.ttf)(UnGraphic.ttf)[Script=Hangul]% +% (UnBatang.ttf)(UnBatangBold.ttf)(UnBatang.ttf)[Script=Hangul] +% \else +% \setkomainfont(UnBatang.ttf)(UnBatangBold.ttf)(UnBatang.ttf)[Script=Hangul] +% \fi +% \setkosansfont[UnDotum](.ttf)(Bold.ttf)(.ttf) +% \setmonoscale{1.05} +% \setkomonofont(UnTaza.ttf) +%\fi + +\if@nanumfonts + \if@nanumxfonts + \setkomainfont(NanumMyeongjo)(*ExtraBold)(*)[](NanumGothic)(*Bold) + \else + \setkomainfont(NanumMyeongjo)(*Bold)(*)[](NanumGothic)(*Bold) + \fi + \setkosansfont(NanumGothic)(*Bold)(*) + \setkomonofont(NanumGothic) +\else +%%% [hcr] adds [Script=Hangul] feature automatically. +\if@hcrfonts + \setkomainfont(HCRBatangLVT)(HCRBatangLVT-Bold)(HCRBatangLVT) + \setkosansfont(HCRDotumLVT)(HCRDotumLVT-Bold)(HCRDotumLVT) + \setkomonofont(HCRDotumLVT) +\else +\setkomainfont(UnBatang.ttf)(UnBatangBold.ttf)(UnGraphic.ttf) +\fi\fi + +\endinput + +%%% end of file `xob-font.sty` +%% CHANGES +%% v0.8 : suport fontspec’s FontFace feature. +%% v0.7 : Use \sys_if_engine_xetex and \sys_if_engine_luatex instead of xetex_if_engine and luatex_if_engine to be compatible with latest l3kernel. +%% v0.6 : HCR auto insert Script=Hangul, HAN disabled +%% v0.5 : [nanum] sets Bold, [nanumx] sets ExtraBold for NanumMyeongjo +%% v0.4 : hangul_bold_exist && hanja_bold_no_exist bug fixed. +%% v0.3 : \setobmainfont ( = \setmainfont ) introduced. +%% v0.2 : do not insert [ Ligatures=TeX ] in mono_mode diff --git a/language/korean/kotex-oblivoir/tex/memhangul-x/xob-hyper.sty b/language/korean/kotex-oblivoir/tex/memhangul-x/xob-hyper.sty new file mode 100644 index 0000000000..154e8d3544 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-x/xob-hyper.sty @@ -0,0 +1,74 @@ +%% xob-hyper.sty +%% +%% Copyright (c) 2013 Kihwang Lee +%% +%% 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. +%% +%% Created for xetexko v2.1 +%% 2013.08.26 +%% +\AtBeginDocument{ + % for ulem package + \ifcsname UL@hook\endcsname \xetexkoulemsupport \fi + % for hyperref package + \@ifpackageloaded{hyperref}{\pdfstringdefDisableCommands{% + \let\dotemph\@firstofone + \let\makejosa\@secondoftwo + \let\jong\relax + \let\jung\relax + \let\rieul\relax + \let\latinalphs\relax + \let\hangulalphs\relax + \let\hanjaalphs\relax + \let\prevfontalphs\relax + \let\latinnums\relax + \let\hangulnums\relax + \let\hanjanums\relax + \let\prevfontnums\relax + \let\latinparens\relax + \let\hangulparens\relax + \let\hanjaparens\relax + \let\prevfontparens\relax + \let\latinquotes\relax + \let\hangulquotes\relax + \let\hanjaquotes\relax + \let\prevfontquotes\relax + \let\latinpuncts\relax + \let\hangulpuncts\relax + \let\hanjapuncts\relax + \let\prevfontpuncts\relax + \let\latinmarks\relax + \let\hangulmarks\relax + \let\hanjamarks\relax + \let\prevfontmarks\relax + \let\latincolons\relax + \let\hangulcolons\relax + \let\hanjacolons\relax + \let\prevfontcolons\relax + \let\latinhyphens\relax + \let\hangulhyphens\relax + \let\hanjahyphens\relax + \let\prevfonthyphens\relax + \let\latincjksymbols\relax + \let\hangulcjksymbols\relax + \let\hanjacjksymbols\relax + \let\prevfontcjksymbols\relax + \let\disablekoreanfonts\relax + \let\disablehangulspacing\relax + \let\disablehangulspacingandlinebreak\relax + \let\disableautojosa\relax + \let\disablecjksymbolspacing\relax + \let\japanese\relax + \let\chinese\relax + \let\Tchinese\relax + \let\Schinese\relax + }}{} +} + +\endinput diff --git a/language/korean/kotex-oblivoir/tex/memhangul-x/xob-lwarp.sty b/language/korean/kotex-oblivoir/tex/memhangul-x/xob-lwarp.sty new file mode 100644 index 0000000000..bbfea75956 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-x/xob-lwarp.sty @@ -0,0 +1,177 @@ +%% xob-lwarp.sty +%% +%% part of xoblivoir package bundle +%% 2020/02/09 +%% +\ProvidesPackage{xob-lwarp} + +\if@lwarp + \def\makerunningwidth#1#2{% + \expandafter\let\csname #1headrunwidth\endcsname\textwidth + \expandafter\let\csname #1footrunwidth\endcsname\textwidth + } + \def\makeheadposition#1#2#3#4#5{} + \def\copypagestyle#1#2{\makepagestyle{#1}} + \AtBeginDocument{ + \def\@partapp{Part} + \def\@chapapp{Chapter} + } + \AtEndPreamble{ + \HTMLLanguage{\LWARPlan} + } + + \let\if@bsstyle\iftrue + \let\abstitlestyle\textbf +% + %%%% copy-paste from xetexko-vertical.sty + \ifxetex + % do not veticalize headline/footline + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname selectfont\endcsname\relax % plain + \protected\def\verticaltypesetting{% + \dimen@\hsize\hsize\vsize\vsize\dimen@ + \edef\plainoutput{\unexpanded{\dimen@\hsize\hsize\vsize\vsize\dimen@}% + \unexpanded\expandafter{\plainoutput}}% + \def\pagebody{\setbox\z@\vbox to\hsize{\boxmaxdepth=\maxdepth + \pagecontents}\xetexko@rotatebox\z@\box\z@}% + \maxdepth\z@ \XK@vertical@spacing} + \else % latex + \protected\def\verticaltypesetting{% + \AtBeginDocument{\XK@vertical@spacing}% + \maxdepth\z@ + \dimen@\textwidth + \textwidth\textheight + \textheight\dimen@ + \edef\@outputpage{% + \unexpanded{\xetexko@rotatebox\@outputbox\textwidth\textheight}% + \unexpanded\expandafter{\@outputpage}}% + } + \@onlypreamble\verticaltypesetting + \fi + + \def\xetexko@rotatebox#1{% + \ifvbox#1\count@\@ne\else\count@\z@\fi + \dimen@\wd#1\dimen@ii\dimexpr\ht#1+\dp#1\relax + \setbox#1\ifnum\count@=\@ne + \vbox to\dimen@\bgroup\hbox to\dimen@ii\bgroup\hfil\else + \hbox to\dimen@ii\bgroup\vbox to\dimen@\bgroup\fi + \wd#1\z@ \ht#1\z@ \dp#1\z@ + \special{x:gsave}\special{x:rotate -90}\box#1\special{x:grestore}% + \ifnum\count@=\@ne\egroup\vfil\else\vfil\egroup\hfil\fi\egroup + } + + % users can declare vertical EM size, which might be different from 1em. + \newdimen\verticalem + + \def\XK@vertical@spacing{% + \ifnum\verticalem > \z@ + \def\XK@vert@half@em{.5\verticalem}% + \else + \def\XK@vert@half@em{.5em}% + \fi + \let\xk@horiz@precjkopenparen \precjkopenparen + \let\xk@horiz@precjkcloseparen\precjkcloseparen + \let\xk@horiz@precjkfullstop \precjkfullstop + \ifx\precjkopenparen\relax\else + \def\precjkopenparen {\leavevmode + \ifx\empty\xetexkocharraise\else\raise\xetexkocharraise\fi + \hbox + \ifx\XKdisablecjksymbolspacing\empty + \bgroup + \else + to\XK@vert@half@em \bgroup \hss + \fi + }% + \fi + \ifx\precjkcloseparen\relax\else + \def\precjkcloseparen{\leavevmode + \ifx\empty\xetexkocharraise\else\raise\xetexkocharraise\fi + \hbox + \ifx\XKdisablecjksymbolspacing\empty\else + to\XK@vert@half@em + \fi + \bgroup}% + \fi + \ifx\precjkfullstop\relax\else + \def\precjkfullstop {\leavevmode + \ifx\empty\xetexkocharraise\else\raise\xetexkocharraise\fi + \hbox + \ifx\XKdisablecjksymbolspacing\empty\else + to\XK@vert@half@em + \fi + \bgroup}% + \fi + \spaceskip\XK@vert@half@em plus\XK@vert@half@em\relax + \parindent\XK@vert@half@em \parindent2\parindent + } + + \protected\def\vertical#1{% + \setbox\z@\vbox\bgroup + \hsize=#1% + \leftskip\z@ + \rightskip\z@ + \parindent\z@ + \everypar{}% + \XK@vertical@spacing + } + + \protected\def\endvertical{% + \egroup + \dimen@\dimexpr\ht\z@+\dp\z@\relax + \dimen@ii\dimexpr\wd\z@-\dp\z@\relax + \setbox\z@\hbox{% + \kern\dimexpr\ht\z@+0.5em\relax + \wd\z@\z@ + \ht\z@\z@ + \dp\z@\z@ + \special{x:gsave}% + \special{x:rotate -90}% + \box\z@ + \special{x:grestore}}% + \wd\z@\dimen@ + \ht\z@\z@ + \dp\z@\z@ + \leavevmode + \raise\dimen@ii\box\z@ + } + + % horizontal box inside vertical typesetting + \protected\def\horizontal#1{% + \setbox\z@\vbox\bgroup + \hsize=#1% + \leftskip \z@ + \rightskip\z@ + \parindent\z@ + \everypar {}% + \spaceskip \fontdimen2\font + plus \fontdimen3\font + minus\fontdimen4\font + \ifdefined\xk@horiz@precjkopenparen + \let\precjkopenparen \xk@horiz@precjkopenparen + \let\precjkcloseparen\xk@horiz@precjkcloseparen + \let\precjkfullstop \xk@horiz@precjkfullstop + \fi + } + \protected\def\endhorizontal{% + \egroup + \dimen@\dimexpr\ht\z@+\dp\z@\relax + \dimen@ii\dimexpr\wd\z@+.5ex\relax + \setbox\z@\hbox\bgroup + \wd\z@\z@\ht\z@\z@\dp\z@\z@ + \special{x:gsave}% + \special{x:rotate 90}% + \box\z@ + \special{x:grestore}% + \egroup + \wd\z@\dimen@ + \ht\z@\dimen@ii + \dp\z@\z@ + \fboxsep=-\fboxrule + \leavevmode\lower.5ex\box\z@ + } + + \protected\def\vertlatin#1{\leavevmode\lower0.5ex\hbox{\latinmarks #1}} + \fi % end of vertical +\fi +\endinput + diff --git a/language/korean/kotex-oblivoir/tex/memhangul-x/xob-paralist.sty b/language/korean/kotex-oblivoir/tex/memhangul-x/xob-paralist.sty new file mode 100644 index 0000000000..534d2b8066 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/memhangul-x/xob-paralist.sty @@ -0,0 +1,48 @@ +%% xob-paralist.sty +%% +%% Copyright (c) 2007-2013 Kangsoo Kim +%% +%% 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. +%% +%% paralist, +%% +\@ifpackageloaded{paralist}{}{\RequirePackage{paralist}} +\RequirePackage{iftex} +\ifPDFTeX + \RequirePackage{dhucs-paralist} +\else +\def\pl@loop@{% + \ifx 가\pl@temp \def\@tempa{\pl@label\gana }\else + \ifx ㈎\pl@temp \def\@tempa{\pl@label\pgana }\else + \ifx ㉮\pl@temp \def\@tempa{\pl@label\ogana }\else + \ifx ㄱ\pl@temp \def\@tempa{\pl@label\jaso }\else + \ifx ㈀\pl@temp \def\@tempa{\pl@label\pjaso }\else + \ifx ㉠\pl@temp \def\@tempa{\pl@label\ojaso }\else + \ifx ⑴\pl@temp \def\@tempa{\pl@label\pnum }\else + \ifx ①\pl@temp \def\@tempa{\pl@label\onum }\else + \ifx ⒜\pl@temp \def\@tempa{\pl@label\peng }\else + \ifx ⓐ\pl@temp \def\@tempa{\pl@label\oeng }\else + \ifx ⅰ\pl@temp \def\@tempa{\pl@label\hroman}\else + \ifx Ⅰ\pl@temp \def\@tempa{\pl@label\hRoman}\else +%%%%%%%%%%%%%%%%%%%%%%%%%% + \ifx A\pl@temp \def\@tempa{\pl@label\Alph }\else + \ifx a\pl@temp \def\@tempa{\pl@label\alph }\else + \ifx i\pl@temp \def\@tempa{\pl@label\roman }\else + \ifx I\pl@temp \def\@tempa{\pl@label\Roman }\else + \ifx 1\pl@temp \def\@tempa{\pl@label\arabic}\else + \ifx \@sptoken\pl@temp \let\@tempa\pl@space \else + \ifx \bgroup\pl@temp \let\@tempa\pl@group \else + \ifx \@@@\pl@temp \let\@tempa\@gobble \else + \let\@tempa\pl@other + \pl@hook + \fi\fi\fi\fi\fi\fi\fi\fi + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \@tempa} +\fi +\endinput diff --git a/language/korean/kotex-oblivoir/tex/oblivoir-utf.cls b/language/korean/kotex-oblivoir/tex/oblivoir-utf.cls new file mode 100644 index 0000000000..535b74dbd4 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/oblivoir-utf.cls @@ -0,0 +1,613 @@ +%% File `oblivoir-utf.cls` +%% +%% (C) Copyright 2006-2015 Kangsoo Kim +%% +%% 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. +%% +\ProvidesClass{oblivoir-utf} + [2020/02/10 v0.8.2 article-like class to typeset UTF-8 korean using memoir.] +%\typeout{oblivoir requires memoir, dhucs, and memhangul. 2008/10/23.} + +%%% Acknowledgements: +%%% Many thanks to +%%% ischo who provided a computer, place and time for developing and testing. +%%% smcho, ischo, synapse and beomsukhyun who requested functional improvements. +%%% progress who wrote a nice introductory document. +%%% and all the people who do or do not use this class. +%%% +%%% Options: +%%% nokorean : 영문용 +%%% twoside : twoside +%%% openright +%%% kosection : 절 표제항의 한글화 +%%% nobookmarks : 북마크 만들지 않음 +%%% dvips : dvips 작업용 옵션 +%%% 10.5pt : 10.5pt 본문 폰트 사이즈. +%%% footnote : 한글식 각주 모양 사용. +%%% tocentry : toc 등을 한 수준 위에서 처리. +%%% itemph : 강조를 itshape로 처리함. +%%% finemath : pass finemath option to dhucs. made default. +%%% nofinemath : no finemath. +%%% strictcharcheck : strictcharcheck to dhucs. +%%% microtype : load microtype and apply margin-kerning & font-expansion +%%% romanfixed : 10.5pt 옵션 사용시 영문 글꼴은 10pt로 고정. +%%% faht,fawd : flowfram과 함께 쓸 때 임의의 페이지 사이즈. +%%% moreverb : pdfmtricks와 함께 쓰기 위해 moreverb를 로드. +%%% 기타 옵션 : memoir 옵션 사용. +%%% default는 oneside, openany, kosection false, pdfbookmark임. +%%% subfigure : load old subfigure packaged +%%% +%%% 한글 폰트 관련: +%%% unfonts-type-1 +%%% + +%\RequirePackage{etex} +\RequirePackage{xkeyval} + +\newif\ifnokorean\nokoreanfalse +\DeclareOptionX{nokorean}{\nokoreantrue} +\newif\iftwosidedoc\twosidedocfalse +\DeclareOptionX{twoside}{\twosidedoctrue} +\newif\ifopenrightdoc\openrightdocfalse +\DeclareOptionX{openright}{\openrightdoctrue} +\newif\ifkosection\kosectionfalse +\DeclareOptionX{kosection}{\kosectiontrue} +\newif\ifnobookmarks\nobookmarksfalse +\DeclareOptionX{nobookmarks}{\nobookmarkstrue} +\newif\ifhyperrefwithlyx\hyperrefwithlyxfalse +\DeclareOptionX{lyxhyper}{\hyperrefwithlyxtrue}{\hyperrefwithlyxfalse} +\newif\if@dvips\@dvipsfalse +\DeclareOptionX{dvips}{\@dvipstrue} +\newif\if@tendotfive\@tendotfivefalse +\DeclareOptionX{10.5pt}{\@tendotfivetrue} +\newif\if@koreanfn\@koreanfnfalse +\DeclareOptionX{footnote}{\@koreanfntrue} +\newif\if@toclofentry\@toclofentryfalse +\DeclareOptionX{tocentry}{\@toclofentrytrue} +\newif\if@itemph\@itemphfalse +\DeclareOptionX{itemph}{\@itemphtrue} +\newif\if@resizelatin\@resizelatintrue +\DeclareOptionX{romanfixed}{\@resizelatinfalse} +\newif\if@chapter\@chapterfalse +\DeclareOptionX{chapter}{\@chaptertrue\@toclofentrytrue} +\newif\if@finemath\@finemathtrue +\DeclareOptionX{finemath}{\@finemathtrue} +\DeclareOptionX{nofinemath}{\@finemathfalse} +\newif\if@microtype\@microtypefalse +\DeclareOptionX{microtype}{\@microtypetrue} +\newif\if@subfigure\@subfigurefalse +\DeclareOptionX{subfigure}{\@subfiguretrue} +\DeclareOptionX{strictcharcheck}{\PassOptionsToPackage{\CurrentOption}{memhangul-ucs}} + +\newif\if@moreverb\@moreverbfalse +\DeclareOptionX{moreverb}{\@moreverbtrue} +\newif\if@foursix\@foursixfalse\newlength\fa@setheight\newlength\fa@setwidth +\DeclareOptionX{faht}[]{\fa@setheight=#1\@foursixtrue} +\DeclareOptionX{fawd}[]{\fa@setwidth=#1\@foursixtrue} + +\DeclareOptionX{figtabcapt}[]{\PassOptionsToPackage{\CurrentOption}{memhangul-ucs}} + +%%% 2013-09-26 +%%% disabled option unfonts/nounfonts, 2014-06-13 +\newif\if@unfont\@unfontfalse +%\DeclareOptionX{unfonts}{\@unfonttrue} +%\DeclareOptionX{nounfonts}{\@unfontfalse} +\DeclareOptionX{nanum}{\@unfontfalse} +\DeclareOptionX{uset1font}{\PassOptionsToPackage{\CurrentOption}{nanumfontsel}} + +\DeclareOptionX{cjk}{\PassOptionsToPackage{\CurrentOption}{memhangul-ucs}} +\DeclareOptionX{dhucs}{\PassOptionsToPackage{\CurrentOption}{memhangul-ucs}} + +%%% Disabled Options +\DeclareOptionX{hcr}{} % do nothing + +\newif\if@AMSmath\@AMSmathfalse +\DeclareOptionX{amsmath}{\@AMSmathtrue} + +\newif\if@FULLROOM\@FULLROOMfalse +\DeclareOptionX{moreroom}{\@FULLROOMtrue} + +\DeclareOptionX*{% + \PassOptionsToClass{\CurrentOption}{memoir}% +} +\newif\if@lwarp\@lwarpfalse +\DeclareOptionX{lwarp}{} +\DeclareOptionX{lwarpoption}[]{} +\DeclareOptionX{lwarplanguage}[]{} + +\ProcessOptionsX + +%%% \ifLwarp compatibility +\ExplSyntaxOn +\tl_new:N \g_lwarp_option_str +\ExplSyntaxOff + +%%% moreroom, reported by Juho Lee, 2013-09-26. +%%% 2015-08-01: LaTeX will do auto-alloc. +%\if@FULLROOM +%\def\alloc@#1#2#3#4#5% +% {\ifnum\count1#1<#4% make sure there's still room +% \allocationnumber\count1#1 +% \global\advance\count1#1\@ne +% \global#3#5\allocationnumber +% \wlog{\string#5=\string#2\the\allocationnumber}% +% \else\ifnum#1<6 +% \def\etex@dummy@definition{}% <-- code added +% \begingroup \escapechar\m@ne +% \expandafter\alloc@@\expandafter{\string#2}#5% +% \else\errmessage{No room for a new #2}\fi\fi +% } +%\fi + +%% expl3 +\RequirePackage{xparse,expl3} + +%%% moreverb : 2008/10/23 +\if@moreverb + \RequirePackage{moreverb} +\fi + +%%% dvips +\ifnokorean\else +\if@dvips + \PassOptionsToPackage{dvips}{memhangul-ucs} +\fi\fi + +%%% memoir/memhangul-ucs 로드. +\if@chapter + \LoadClass[openany]{memoir} +\else +\iftwosidedoc + \LoadClass[article,openany]{memoir} +\else + \LoadClass[article,openany,oneside]{memoir} +\fi +\fi +%%% flowfram confict : 2008/10/23 +\if@foursix + \newcommand*{\fa@dblfoursix}{\stockheight=\fa@setheight \stockwidth=\fa@setwidth} + \fa@dblfoursix +\fi + +\if@AMSmath +\RequirePackage{amsmath,amssymb} +\fi + +%%% +\ifopenrightdoc\openright\fi +\newcommand\finemath@status{\if@finemath finemath\else\fi} +\ifnokorean\else + \if@itemph + \RequirePackage[nonfrench,interworddefault,hangulpagestyle,\finemath@status]{memhangul-ucs} + \else + \RequirePackage[nonfrench,interworddefault,hangulpagestyle,gremph,\finemath@status]{memhangul-ucs} + \fi +\fi +\if@chapter\else +\counterwithout{section}{chapter} +\fi + +%%% hfontspec +\ifnokorean\let\usehangulfontspec\@gobble\fi + +%%% korean fontsettings +\ifnokorean\else + \if@unfont + \RequirePackage{hfontsel} + \usehangulfontspec{obut} + \else + \RequirePackage{nanumfontsel} + \usehangulfontspec{nanum} + \fi + \ifpdf + \input glyphtounicode\pdfgentounicode=1 + \RequirePackage{dhucs-cmap} + \else\fi +% \ifpdf +% \RequirePackage[ps]{hfontsel} % ut**를 기본 글꼴로 +% \usehangulfontspec{obut} +% \pdfmapfile{=unttf-pdftex-dhucs.map} % 그래도 혹시 모르므로 +%%%% dhucs-cmap은 여기서 로드한다. +% \RequirePackage{dhucs-cmap} % ut**가 기본글꼴일 때는 disable? +% \input glyphtounicode\pdfgentounicode=1 +% \else +% \if@dvips +% \RequirePackage[ps]{hfontsel} % ut**를 기본 글꼴로 +% \usehangulfontspec{obut} +% \else +% \RequirePackage{hfontsel} % 아무 옵션도 없다면 un** +% \usehangulfontspec{obun} +% \RequirePackage{dhucs-cmap} % un**일 때 +% \fi +% \fi +\fi + +%%% Gremph +\if@itemph\else + \ifnokorean\else +% \ifpdf + \if@unfont + \SetGremphFonts{outgr}{outgt} + \else + \SetGremphFonts{nanumgt}{nanumgt} + \fi +% \else +% \if@dvips +% \SetGremphFonts{utgr}{utgt} +% \fi +% \fi + \fi +\fi + +%%% microtype +\ifpdf + \if@microtype + \RequirePackage[expansion=all]{microtype} + % for more elaborated operation, document specific config is needed. + % expansion works for ONE fontset only; so, basictext + LUC. +% \DeclareMicrotypeSet{dhucsmicro} +% { encoding = {LUC,OT1,T1,LY1,OT4,QX,T5}, +% % family = {rm*,sf*}, +% % series = {md*}, +% % size = {normalsize,footnotesize,small,large} +% } +% \UseMicrotypeSet[expansion]{dhucsmicro} + \fi +\else + \if@microtype +% \ClassWarningNoLine{oblivoir}{no pdflatex runs! microtype option is ignored.}{} + \RequirePackage{microtype} + \fi +\fi + +%%% 기본 자간 +\newdimen\ob@hu % 1jw=.95em, 1hu=1/16jw. see hfontspec.oblivoir +\ifnokorean\ob@hu=\z@\else\ob@hu=\dhucs@hu\fi +% 기본 자간 설정은 hfontspec.obu{n/t}. +%%%\newdimen\ob@hangulglue\ob@hangulglue=-.55\ob@hu +%%%\interhchar{\ob@hangulglue} + +\def\ob@DEFAULTskips{% + \def\memucshangulskips{% +% \interhchar{\ob@hangulglue}% + }% + \def\memucsinterwordskip{% + \spaceskip = .390\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize + \if@nonfrench + \xspaceskip = .432\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize + \fi + }% + \def\memucsinterwordchapterskip{% + \spaceskip = .41\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize + \if@nonfrench + \xspaceskip = .55\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize + \fi + }% +} + +\let\DEFAULTskips\ob@DEFAULTskips +\def\ob@thinthinspace{\hskip2\ob@hu} +\def\ob@onethirdspace{\hskip5\ob@hu} + +\ifnokorean\else +\if@koreanfn +%%% footnote setting +%%% 99)에 해당하는 박스 길이를 구한 다음 +\newsavebox\mytmpbox\sbox\mytmpbox{\footnotesize 99)\ } +%%% 각주 번호 박스를 길이에 대하여 오른쪽 정렬함. 두 자리 +%%% 각주 번호 기준으로 오른쪽 정렬되도록 만든다. +\footmarkstyle{\makebox[\wd\mytmpbox][r]{#1)\ }} +\setlength\footmarksep{\wd\mytmpbox} +\setlength\footmarkwidth{0pt} +\setlength\footparindent{0pt} +%\ifnokorean\else +\SetFnmark{\textsuperscript}{\textsuperscript{)}} +%\fi +\fi\fi +%%% footnotes and floats. codes from memmanadd.pdf +\renewcommand*{\footnoterule}{\kern-3pt\vfill + \hrule width 0.4\columnwidth \kern 2.6pt} +\setlength{\skip\footins}{1.3\onelineskip} + +%%% toc 등의 레이아웃. +\if@chapter\else +\renewcommand\chaptitlefont{\Large\bfseries} +\renewcommand\printchapternonum{} +\renewcommand\printchaptertitle[1]{\chaptitlefont #1} +\setlength\afterchapskip{\onelineskip} +\setlength\beforechapskip{1.5\onelineskip} +\fi + +\setlength\cftsectionindent{0pt} +\ifnokorean\else +\setlength\cftsectionnumwidth{1.8em} +\setlength\cftsubsectionindent{1.8em} +\setlength\cftsubsectionnumwidth{2.5em} +\fi +\if@chapter\else +\let\cftchapterindent\cftsectionindent +\let\cftchapternumwidth\cftsectionnumwidth +\let\cftbeforechapterskip\cftbeforesectionskip +\fi + +\renewcommand\cftsectionpresnum{\hfill} +\renewcommand\cftsectionaftersnum{\hskip.8em} + +%%%% kscntformat definition moved to memhangul-ucs. +%%%% HLaTeX의 \kscntformat 명령을 흉내냄 +%%%% \kscntformat{section}{제}{절} 형식으로 쓴다. +%\newsavebox{\tmp@XXbox} +%\newdimen\tmp@XXdim +%\def\kscntformat#1#2#3{% +% \sbox{\tmp@XXbox}{#2\expandafter\number\csname c@#1\endcsname#3}% +% \setlength\tmp@XXdim{\wd\tmp@XXbox}\advance\tmp@XXdim by1em% +% \expandafter\def\csname the#1\endcsname{#2\expandafter\number\csname c@#1\endcsname#3}% +% \expandafter\renewcommand\csname cft#1numwidth\endcsname{\tmp@XXdim}% +% \expandafter\renewcommand\csname cft#1presnum\endcsname{}% +% \expandafter\renewcommand\csname cft#1aftersnum\endcsname{}% +%} +% +%\ifnokorean\else +%\ifkosection +%\kscntformat{section}{제\ob@onethirdspace}{\ob@onethirdspace 절} +%\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}} +%\fi\fi + +%%% misc settings +\raggedbottom +\ifnokorean +\renewcommand\sectionmark[1]{\markboth{\thetitle}{#1}} +\else +\renewcommand\sectionmark[1]{\markboth{\thetitle}{#1}} +\fi +%\renewcommand\subsectionmark[1]{\markright{#1}} +\ifnokorean +\newcommand*\MarkDocTitle{\markboth{\thetitle}{}} +\else +\newcommand*\MarkDocTitle{\markboth{\thetitle}{}} +\fi + +%%% for bookmarks and hyperref +\def\CallHyperref{% + \ifnobookmarks + \@Call@Hyperref@Without@Bookmarks + \else + \@Call@Hyperref@With@Bookmarks + \fi +} + +\def\@Call@Hyperref@Without@Bookmarks{% + \ifpdf + \RequirePackage[pdftex,unicode,bookmarks=false]{hyperref} + \else + \if@dvips + \RequirePackage[dvips,unicode,bookmarks=false]{hyperref} + \else + \RequirePackage[dvipdfm,unicode,bookmarks=false]{hyperref} + \fi + \fi +} + +\def\@Call@Hyperref@With@Bookmarks{% + \ifpdf + \RequirePackage[pdftex,unicode]{hyperref} + \else + \if@dvips + \RequirePackage[dvips,unicode]{hyperref} + \else + \RequirePackage[dvipdfm,unicode]{hyperref} + \fi + \fi +} + +%% LyX 1.6.x의 Insert-Hyperlink 기능과 충돌하지 않게 하기 위하여 +%% hyperref을 로드하지 않음. (lyxhyper 옵션) +%% note: memhfixc는 memoir 자신이 로드해준다. +\ifnokorean\relax\else + \ifhyperrefwithlyx\relax\else + \CallHyperref +\fi\fi + +%%% \engtxt를 일일이 쓰기 귀찮고 space가 하나밖에 없을 때 +%%% 쓰기 위한 \ensp 매크로. +\newskip\@ensp +\@ensp=.297em plus .02em minus .01em +\def\ensp{\hskip\@ensp} + +%%% article의 pagestyle 기본값은 plain임. +\pagestyle{plain} + +%%% 2006/09/01 \title, \author 문제. reported by IsCho +\AtBeginDocument{% + \@ifundefined{thetitle}{\title{}}{\relax} + \@ifundefined{theauthor}{\author{}}{\relax} +} + +%%% 2006/09/05 [10.5pt] option, [romanfixed] 2006/10/22. +\if@tendotfive + \RequirePackage{10_5} + \if@resizelatin + \RequirePackage{type1cm} + \RequirePackage{type1ec} + \fi +\fi + +%%%% 2006/10/19. 현범석 님이 지적한 lof, toc 문제 +\if@chapter\else + \RequirePackage{ob-toclof} +\fi + +%%% oblivoir-chapter (12/20) +\if@chapter +\newcommand\oblivoirchapterstyle[1]{% + \chapterstyle{#1} + \renewcommand{\chapterheadstart}{\clearforchapter\vspace*{\beforechapskip}} +} +\fi + +%%%%%%%%%%%%% APPENDIX + +\ifnokorean\def\appendixrefname{Appendix}\else\def\appendixrefname{부록}\fi +\def\appref#1{\appendixrefname~\ref{#1}} + +\newif\if@AppendixTitleToToc\@AppendixTitleToTocfalse +\newif\if@AttachAppendixTitleToSecnum\@AttachAppendixTitleToSecnumfalse + +\def\AppendixTitleToToc{% + \@AppendixTitleToToctrue +} + +\def\AttachAppendixTitleToSecnum{% + \@AttachAppendixTitleToSecnumtrue +} + +\def\AppendixTitle{% + \chapter*{\appendixname} +} + +\ifnokorean +\RequirePackage{ob-nokoreanappendix} +\else +\RequirePackage{ob-koreanappendix} +\fi + +%%% modified from dhucs-enumerate.sty +\ifnokorean\else +\def\@enloop@{% + \ifx A\@entemp \def\@memtempa{\@enLabel\Alph }\else + \ifx a\@entemp \def\@memtempa{\@enLabel\alph }\else + \ifx i\@entemp \def\@memtempa{\@enLabel\roman }\else + \ifx I\@entemp \def\@memtempa{\@enLabel\Roman }\else + \ifx 1\@entemp \def\@memtempa{\@enLabel\arabic}\else + \ifx \@sptoken\@entemp \let\@memtempa\@enSpace \else + \ifx \bgroup\@entemp \let\@memtempa\@enGroup \else + \ifx \@enum@\@entemp \let\@memtempa\@gobble \else + \ifx^^ea\@entemp % 가, + \let\@memtempa\@dhucs@enumerate@EA\else %%%%% + \ifx^^e2\@entemp % ①, ⑴, ⒜, ⓐ, ⅰ, Ⅰ + \let\@memtempa\@dhucs@enumerate@Eii\else %%%%% + \ifx^^e3\@entemp % ㄱ, ㉠, ㉮, ㈀, ㈎ + \let\@memtempa\@dhucs@enumerate@Eiii\else + \let\@memtempa\@enOther + \@enhook + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \@memtempa} + +\def\@dhucs@enumerate@error#1{% + \PackageError{dhucs-enumerate} + {You can't use `\unexpanded{#1}' as enum label} + {Legal enum labels of hangul-ucs are: \MessageBreak\space\space + \unexpanded{가, ㄱ, ㉠, ㉮, ㈀, ㈎, ①, ⑴, ⒜, ⓐ, ⅰ, Ⅰ}.}% +} +\def\@dhucs@enumerate@EA#1#2#3{% + \ifnum\pdfstrcmp{#1#2#3}{^^ea^^b0^^80}=\z@ \def\@tempa{\@enLabel\gana}\else + \@dhucs@enumerate@error{#1#2#3}% + \fi + \@tempa\relax +} +\def\@dhucs@enumerate@Eii#1#2#3{% + \ifnum\pdfstrcmp{#1#2#3}{^^e2^^85^^b0}=\z@ \def\@tempa{\@enLabel\hroman}\else + \ifnum\pdfstrcmp{#1#2#3}{^^e2^^85^^a0}=\z@ \def\@tempa{\@enLabel\hRoman}\else + \ifnum\pdfstrcmp{#1#2#3}{^^e2^^92^^9c}=\z@ \def\@tempa{\@enLabel\peng}\else + \ifnum\pdfstrcmp{#1#2#3}{^^e2^^93^^90}=\z@ \def\@tempa{\@enLabel\oeng}\else + \ifnum\pdfstrcmp{#1#2#3}{^^e2^^91^^b4}=\z@ \def\@tempa{\@enLabel\pnum}\else + \ifnum\pdfstrcmp{#1#2#3}{^^e2^^91^^a0}=\z@ \def\@tempa{\@enLabel\onum}\else + \@dhucs@enumerate@error{#1#2#3}% + \fi\fi\fi\fi\fi\fi + \@tempa\relax +} +\def\@dhucs@enumerate@Eiii#1#2#3{% + \ifnum\pdfstrcmp{#1#2#3}{^^e3^^88^^8e}=\z@ \def\@tempa{\@enLabel\pgana}\else + \ifnum\pdfstrcmp{#1#2#3}{^^e3^^89^^ae}=\z@ \def\@tempa{\@enLabel\ogana}\else + \ifnum\pdfstrcmp{#1#2#3}{^^e3^^89^^a0}=\z@ \def\@tempa{\@enLabel\ojaso}\else + \ifnum\pdfstrcmp{#1#2#3}{^^e3^^84^^b1}=\z@ \def\@tempa{\@enLabel\jaso}\else + \ifnum\pdfstrcmp{#1#2#3}{^^e3^^88^^80}=\z@ \def\@tempa{\@enLabel\pjaso}\else + \@dhucs@enumerate@error{#1#2#3}% + \fi\fi\fi\fi\fi + \@tempa\relax +} + +\fi + +%%% subsection까지 항번을 붙이고 toc에 두자. +\maxtocdepth{subsection} +\maxsecnumdepth{subsection} + +%%% oblivoirallowbreak +\ifx\oblivoirallowbreak\undefined +\def\oblivoirallowbreak{\hskip1sp\hskip-1sp} +\fi + +%%% subfigure package compatibility +\if@subfigure + \let\c@lofdepth\relax + \let\c@lotdepth\relax +\fi + +%%% redefine \see or \seealso +\ifnokorean\else +\@ifundefined{see}{}{% + \renewcommand*{\see}[2]{#1\seename, \hyperpage{#2}} +} +\@ifundefined{seealso}{}{% + \renewcommand*{\seealso}[2]{#1\alsoname, \hyperpage{#2}} +} +\fi + +%%% to avoid conflicts with etextools +\ExplSyntaxOn +\cs_if_exist:NF \globcount +{ \let\globcount\newcount } +\ExplSyntaxOff + +\endinput + +%%% ChangeLog: +%%% 2015/10/19 : fix conflicts with etextools package. +%%% 2015/08/24 : dhuce-enumerate compatibility. +%%% 2015/08/01 : etex.sty dropped +%%% ver0.6 2014/06/12 : introduce new xob-font.sty +%%% ver0.5 2014/06/06 : replace \renewcommand's with \setlength's. +%%% ver0.4.3 2013/10/26 : move \kscntformat definition to memhangul-ucs +%%% ver0.4.2 2013/10/03 : fix a typo. +%%% ver0.4.1 2013/09/26 : [moreroom] thanks to Juho.Lee +%%% ver0.4.0 2013/09/25 : redesign for nanum type 1 +%%% ver0.3.9 2012/11/22 : [figtabcapt] option +%%% ver0.3.8 2009/04/06 : [lyxhyper] option +%%% ver0.3.4 2008/10/23 : moreverb, faht, fawd options. (See xoblivoir.cls) +%%% ver0.3.3a 2008/09/30 : change the way of calling microtype (non-released version) +%%% ver0.3.3 2008/09/16 : apply microtype to non-pdflatex +%%% ver0.3.2 2007/11/18 : add \see, \seealso definition +%%% ver0.3.1 2007/10/23 : subfigure package compatibility (in order to use with LyX) +%%% ver0.3.0 2007/07/15 : no changes. part of ko.TeX +%%% ver0.2.4a 2007/07/05 : add \pjaso to enumerate +%%% ver0.2.4 2007/07/01 : adopt dhucs-enumerate.sty, enumerate hook. +%%% ver0.2.3 2007/06/26 : strictcharcheck option introduced. cf. dhucs 4.0.6 +%%% ver0.2.2 2007/06/16 : finemath setto default. [nofinemath] introduced. [microtype] introduces, which works only under pdflatex. +%%% ver0.2.1 2007/06/14 : dhucs 4.0.1, memhangul-ucs 1.5.1 +%%% ver0.20c 2007/06/03 : pdfbookmark option to memhangul-ucs dropped. +%%% ver0.20a 2007/05/24 : \oblivoirallowbreak introduced +%%% ver0.20 2007/05/17 : dhucs 4.0, memhangul-ucs 1.5.0 +%%% ver0.18a 2007/01/14 : slightly alter calling-hyperref method. +%%% ver0.17C.a 2006/12/20 : \chapter-compatible feature. (private version) : \oblivoirchapterstyle command added. +%%% ver0.17 2006/12/06 : \appendix+nokorean option bug fix (req. by Beomsuk Hyun) +%%% ver0.16 2006/11/23 : \appendix features added. (req. by Beomsuk Hyun) +%%% ver0.15 2006/11/01 : [nokorean] option \if..\fi pair bug fix (rep. by smcho) +%%% ver0.14 2006/10/22 : [itemph], [romanfixed] option introduced. +%%% ver0.13 2006/10/19 : [tocentry] option introduced. (req. by Beomsuk Hyun) +%%% ver0.12 2006/09/25 : \kscntformat bug fix +%%% ver0.11 2006/09/18 : article-like footnote style made default, [footnote] option introduced +%%% ver0.1 2006/09/13 : renamed to oblivoir (req. by ischo) +%%% ver0.014 2006/09/05 : introduce [10.5pt] option with 10_5.sty (req. by synapse) +%%% ver0.013 2006/09/03 : introduce hfontsel.sty. (req. by synapse) +%%% ver0.012 2006/09/01 : \thetitle, \theauthor undefined problem fixed. (rep. by IsCho) +%%% ver0.011 2006/05/02 : rename ksnamedef(false) to kscntformat +%%% ver0.01 2006/04/27 : introduce [nokorean] option requested by smcho. +%%% ver0.001 2006/03/11 : started this class, just for fun! +%%% diff --git a/language/korean/kotex-oblivoir/tex/oblivoir-xl.cls b/language/korean/kotex-oblivoir/tex/oblivoir-xl.cls new file mode 100644 index 0000000000..c4ab0916fb --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/oblivoir-xl.cls @@ -0,0 +1,531 @@ +%% File `oblivoir-xl.cls` +%% +%% (C) Copyright 2006-2020 Kangsoo Kim +%% +%% 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. +%% +%% an oblivoir-compatible package for using with LuaLaTeX or XeLaTeX. +%% depends upon Dohyun Kim's xetexko and the author's memhangul-x. +%% +\ProvidesClass{oblivoir-xl} + [2020/02/05 v0.8.4 article-like class to typeset Korean] +%\typeout{A variant of oblivoir class for Lua- or XeLaTeX.} + +\providecommand\@DisabledOption[1]{% + \typeout{[#1] option is deprecated}} + +%\RequirePackage{xkeyval} +%% expl3 and xparse +%\RequirePackage{xparse} + +%%% Disabled Options +\DeclareOptionX{dvips}{\@DisabledOption{\CurrentOption}} +\DeclareOptionX{romanfixed}{\@DisabledOption{\CurrentOption}} +\DeclareOptionX{finemath}{\@DisabledOption{\CurrentOption}} +\DeclareOptionX{nofinemath}{\@DisabledOption{\CurrentOption}} +\DeclareOptionX{strictcharcheck}{\@DisabledOption{\CurrentOption}} +\DeclareOptionX{noreserveinserts}{\@DisabledOption{\CurrentOption}} + +%%% active Options +\newif\ifnokorean\nokoreanfalse +\DeclareOptionX{nokorean}{\nokoreantrue} +\newif\if@polyglossia\@polyglossiafalse +\DeclareOptionX{polyglossia}{\@polyglossiatrue} +\newif\iftwosidedoc\twosidedocfalse +\DeclareOptionX{twoside}{\twosidedoctrue} +\newif\ifopenrightdoc\openrightdocfalse +\DeclareOptionX{openright}{\openrightdoctrue} +\newif\ifkosection\kosectionfalse +\DeclareOptionX{kosection}{\kosectiontrue} +\newif\ifnobookmarks\nobookmarksfalse +\DeclareOptionX{nobookmarks}{\nobookmarkstrue} +\newif\ifhyperrefwithlyx\hyperrefwithlyxfalse +\DeclareOptionX{lyxhyper}{\hyperrefwithlyxtrue}{\hyperrefwithlyxfalse} +\newif\if@tendotfive\@tendotfivefalse +\DeclareOptionX{10.5pt}{\@tendotfivetrue} +\newif\if@koreanfn\@koreanfnfalse +\DeclareOptionX{footnote}{\@koreanfntrue} +\newif\if@toclofentry\@toclofentryfalse +\DeclareOptionX{tocentry}{\@toclofentrytrue} +%\newif\if@itemph\@itemphfalse +\DeclareOptionX{itemph}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} +\DeclareOptionX{gremph}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} +\newif\if@chapter\@chapterfalse +\DeclareOptionX{chapter}{\@chaptertrue\@toclofentrytrue} +\newif\if@microtype\@microtypefalse +\DeclareOptionX{microtype}{\@microtypetrue} +\newif\if@subfigure\@subfigurefalse +\DeclareOptionX{subfigure}{\@subfiguretrue} +\newif\if@manspace\@manspacefalse +\DeclareOptionX{obspace}{\@manspacetrue} +\DeclareOptionX{adjustmath}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} %%% disabled 2020 +\DeclareOptionX{mathdisp}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} +% +%%% new Options +\DeclareOptionX{latinquote}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} +%%% changed fontspec -> manualfontspec +\DeclareOptionX{fontspec}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} +\newif\if@moreverb\@moreverbfalse +\DeclareOptionX{moreverb}{\@moreverbtrue} +\newif\if@foursix\@foursixfalse\newlength\fa@setheight\newlength\fa@setwidth +\DeclareOptionX{faht}[]{\fa@setheight=#1\@foursixtrue} +\DeclareOptionX{fawd}[]{\fa@setwidth=#1\@foursixtrue} +\newif\if@amsmath\@amsmathfalse +\DeclareOptionX{amsmath}{\@amsmathtrue} +\DeclareOptionX{nowinname}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} +% +\newif\ifPRELOAD\PRELOADfalse +\DeclareOptionX{preload}[]{\PRELOADtrue\gdef\PRELOADstr{#1}} + +\ExplSyntaxOn +\tl_new:N \g_preload_option_str +\DeclareOptionX{preloadoption}[]{ + \tl_gset:Nn \g_preload_option_str { #1 } +} +\ExplSyntaxOff + +\newif\if@lwarp\@lwarpfalse +\DeclareOptionX{lwarp}{\@lwarptrue}{\@lwarpfalse} +\ExplSyntaxOn +\tl_new:N \g_lwarp_option_str +\DeclareOptionX{lwarpoption}[]{% + \tl_gset:Nn \g_lwarp_option_str { #1 } +} +\ExplSyntaxOff +\def\LWARPlan{en-US} +\DeclareOptionX{lwarplanguage}[]{\gdef\LWARPlan{#1}} + +%% [nounfonts] +\DeclareOptionX{unfonts}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} +\DeclareOptionX{nounfonts}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} +\DeclareOptionX{nanum}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} +\DeclareOptionX{hcr}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} + +\DeclareOptionX{figtabcapt}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} + +\DeclareOptionX{cjk}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} +%\DeclareOptionX{cjkoption}[]{\PassOptionsToPackage{#1}{cjkutf8-ko}} +\DeclareOptionX{dhucs}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} + +%%% compatibility options +\DeclareOptionX{uset1font}{\PassOptionsToPackage{usecjkt1font}{cjkutf8-ko}} +\DeclareOptionX{usedotemph}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} + +%%% +\DeclareOptionX*{% + \PassOptionsToClass{\CurrentOption}{memoir}% +} +% +\ProcessOptionsX + +%%% moreverb +\if@moreverb + \RequirePackage{moreverb} +\fi + +%%% preload +\ifPRELOAD +\ExplSyntaxOn + \RequirePackage[\g_preload_option_str]{\PRELOADstr} +\ExplSyntaxOff +\ifx\medspace\undefined\relax\else\let\medspace\relax\fi +\fi + +%% LyX compatibility +%\ifx\@textsubscript\undefined\else +% \let\@textsubscript\relax +%\fi + +%%% memoir/memhangul-ucs 로드. +\if@chapter + \LoadClass[openany]{memoir} +\else +\iftwosidedoc + \LoadClass[article,openany]{memoir} +\else + \LoadClass[article,openany,oneside]{memoir} +\fi +\fi + +%%% fontspec problem +% \RequirePackage{etex}\reserveinserts{40}% + +%%% workaround with flowfram +\if@foursix + \newcommand*{\fa@dblfoursix}{\stockheight=\fa@setheight \stockwidth=\fa@setwidth} + \fa@dblfoursix +\fi + +%%% +\ifopenrightdoc\openright\fi + +\RequirePackage{ifluatex} +\RequirePackage{ifxetex} + +%%\RequirePackage{comment} +%%\def\finemath@status{} + +%\ifxetex\else\ifluatex\else +% \PackageError{xoblivoir}{This Document requires Xe(La)TeX or Lua(La)TeX!}{} +%\fi\fi + +%%% lwarp +\ExplSyntaxOn + +\if@lwarp + \ifluatex + \RequirePackage{luatexko} + \fi + \RequirePackage[\g_lwarp_option_str]{lwarp} + \RequirePackage{xob-lwarp} +\fi + +\ExplSyntaxOff + +%%% ams{math|symb} +\if@amsmath + \RequirePackage{amsmath,xob-amssymb} +\fi + +\def\@Load@Memhangul{% + \if@polyglossia + \RequirePackage[polyglossia]{memhangul-x} + \else + \RequirePackage[nonfrench,hangulpagestyle]{memhangul-x} + \fi +} + +\ifnokorean\else + \@Load@Memhangul +\fi + +\if@chapter\else + \counterwithout{section}{chapter} +\fi + +%%% +%%% xetex doesn't know microtype, +%%% but xetexko has hangingpunctuation feature, which +%%% we will use instead. +%%% +\ifnokorean\else +\if@microtype + \ifxetex + \usepackage{xetexko-hanging} + \AtBeginDocument{\hangingpunctuation} + \typeout {xoblivoir: use xetexko-hanging instead of microtype} + \else +% \ifluatex +% \enablemicrotype +% \fi + \fi +\fi +\fi + +%%% 기본 자간 +\newdimen\ob@hu % 1jw=.95em, 1hu=1/16jw. see hfontspec.oblivoir +\ifnokorean\ob@hu=\z@\else\ob@hu=.059375em\fi +%%% defaultskip: suppressed (2015/04/19) +\if@manspace +\def\ob@DEFAULTskips{% + \def\memucshangulskips{}% + \def\memucsinterwordskip{% + \spaceskip = .390\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize +% \if@nonfrench + \xspaceskip = .432\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize +% \fi + }% + \def\memucsinterwordchapterskip{% + \spaceskip = .41\BASE@FONTsize plus .11\BASE@FONTsize minus .1\BASE@FONTsize +% \if@nonfrench + \xspaceskip = .55\BASE@FONTsize plus .1\BASE@FONTsize minus .1\BASE@FONTsize +% \fi + }% +} +\let\DEFAULTskips\ob@DEFAULTskips +\else +\let\memucshangulskips\relax +\let\memucsinterwordskip\relax +\let\memucsinterwordchapterskip\relax +\let\DEFAULTskips\relax +\fi +\def\ob@thinthinspace{\hskip2\ob@hu} +\def\ob@onethirdspace{\hskip5\ob@hu} + +\ifnokorean\else +\if@koreanfn +%%% footnote setting +%%% 99)에 해당하는 박스 길이를 구한 다음 +\newsavebox\mytmpbox\sbox\mytmpbox{\footnotesize 99)\ } +%%% 각주 번호 박스를 길이에 대하여 오른쪽 정렬함. 두 자리 +%%% 각주 번호 기준으로 오른쪽 정렬되도록 만든다. +\footmarkstyle{\makebox[\wd\mytmpbox][r]{#1)\ }} +\setlength\footmarksep{\wd\mytmpbox} +\setlength\footmarkwidth{0pt} +\setlength\footparindent{0pt} +%\ifnokorean\else +\SetFnmark{\textsuperscript}{\textsuperscript{)}} +%\fi +\fi\fi +%%% footnotes and floats. codes from memmanadd.pdf +\renewcommand*{\footnoterule}{\kern-3pt\vfill + \hrule width 0.4\columnwidth \kern 2.6pt} +\setlength{\skip\footins}{1.3\onelineskip} + +%%% toc 등의 레이아웃. +\if@chapter\else +\renewcommand\chaptitlefont{\Large\bfseries} +\renewcommand\printchapternonum{} +\renewcommand\printchaptertitle[1]{\chaptitlefont #1} +\setlength\afterchapskip{\onelineskip} +\setlength\beforechapskip{1.5\onelineskip} +\fi + +\setlength\cftsectionindent{0pt} +\ifnokorean\else +\setlength\cftsectionnumwidth{1.8em} +\setlength\cftsubsectionindent{1.8em} +\setlength\cftsubsectionnumwidth{2.5em} +\fi +\if@chapter\else +\let\cftchapterindent\cftsectionindent +\let\cftchapternumwidth\cftsectionnumwidth +\let\cftbeforechapterskip\cftbeforesectionskip +\fi + +\renewcommand\cftsectionpresnum{\hfill} +\renewcommand\cftsectionaftersnum{\hskip.8em} + +%% moved kscntformat to memhangul-x +%%%% kscntformat +%%%% HLaTeX의 \kscntformat 명령을 흉내냄 +%%%% \kscntformat{section}{제}{절} 형식으로 쓴다. +%\newsavebox{\tmp@XXbox} +%\newdimen\tmp@XXdim +%\def\kscntformat#1#2#3{% +% \sbox{\tmp@XXbox}{#2\expandafter\number\csname c@#1\endcsname#3}% +% \setlength\tmp@XXdim{\wd\tmp@XXbox}\advance\tmp@XXdim by1em% +% \expandafter\def\csname the#1\endcsname{#2\expandafter\number\csname c@#1\endcsname#3}% +% \expandafter\renewcommand\csname cft#1numwidth\endcsname{\tmp@XXdim}% +% \expandafter\renewcommand\csname cft#1presnum\endcsname{}% +% \expandafter\renewcommand\csname cft#1aftersnum\endcsname{}% +%} + +%\ifnokorean\else +%\ifkosection +%\kscntformat{section}{제}{절} +%\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}} +%\fi\fi + +%%% misc settings +\raggedbottom +\ifnokorean +\renewcommand\sectionmark[1]{\markboth{\thetitle}{#1}} +\else +\renewcommand\sectionmark[1]{\markboth{\thetitle}{#1}} +\fi +%\renewcommand\subsectionmark[1]{\markright{#1}} +\ifnokorean +\newcommand*\MarkDocTitle{\markboth{\thetitle}{}} +\else +\newcommand*\MarkDocTitle{\markboth{\thetitle}{}} +\fi + +%%% for bookmarks and hyperref +\def\CallHyperref{% + \ifnobookmarks + \@Call@Hyperref@Without@Bookmarks + \else + \@Call@Hyperref@With@Bookmarks + \fi +} + +\def\@Call@Hyperref@Without@Bookmarks{% + \ifluatex + \usepackage[unicode,bookmarks=false]{hyperref} + \else\ifxetex + \usepackage[bookmarks=false]{hyperref} + \else + \usepackage[unicode,bookmarks=false]{hyperref} + \fi\fi +} + +\def\@Call@Hyperref@With@Bookmarks{% + \ifluatex + \usepackage[unicode]{hyperref} + \else\ifxetex + \usepackage{hyperref} + \else + \usepackage[unicode]{hyperref} + \fi\fi +} + +%% LyX 1.6.x의 Insert-Hyperlink 기능과 충돌하지 않게 하기 위하여 +%% hyperref을 로드하지 않음. (lyxhyper 옵션) +%% note: memhfixc는 memoir 자신이 로드해준다. +\ifnokorean\relax\else + \ifhyperrefwithlyx\relax\else + \CallHyperref +\fi\fi + +%%% \engtxt를 일일이 쓰기 귀찮고 space가 하나밖에 없을 때 +%%% 쓰기 위한 \ensp 매크로. +\newskip\@ensp +\@ensp=.297em plus .02em minus .01em +\def\ensp{\hskip\@ensp} + +%%% article의 pagestyle 기본값은 plain임. +\pagestyle{plain} + +%%% 2006/09/01 \title, \author 문제. reported by IsCho +\AtBeginDocument{% + \@ifundefined{thetitle}{\title{}}{\relax} + \@ifundefined{theauthor}{\author{}}{\relax} +} + +%%% 2006/09/05 [10.5pt] option, [romanfixed] 2006/10/22. +\if@tendotfive + \RequirePackage{10_5} +\fi + +%%%% 2006/10/19. 현범석 님이 지적한 lof, toc 문제 +\if@chapter\else + \usepackage{ob-toclof} +\fi + +%%% oblivoir-chapter (12/20) +\if@chapter +\newcommand\oblivoirchapterstyle[1]{% + \chapterstyle{#1} + \renewcommand{\chapterheadstart}{\clearforchapter\vspace*{\beforechapskip}} +} +\fi + +%%%%%%%%%%%%% APPENDIX + +\ifnokorean\def\appendixrefname{Appendix}\else\def\appendixrefname{부록}\fi +\def\appref#1{\appendixrefname~\ref{#1}} + +\newif\if@AppendixTitleToToc\@AppendixTitleToTocfalse +\newif\if@AttachAppendixTitleToSecnum\@AttachAppendixTitleToSecnumfalse + +\def\AppendixTitleToToc{% + \@AppendixTitleToToctrue +} + +\def\AttachAppendixTitleToSecnum{% + \@AttachAppendixTitleToSecnumtrue +} + +\def\AppendixTitle{% + \chapter*{\appendixname} +} + +\ifnokorean +\usepackage{ob-nokoreanappendix} +\else +\usepackage{ob-koreanappendix} +\fi + +%%%%%%%%%%%%%%% enumerate +\@ifpackageloaded{enumerate}{}{\RequirePackage{enumerate}} +\def\@enloop@{% +%%% why @enhook doesn't work? + \ifx 가\@entemp \def\@tempa{\@enLabel\gana }\else + \ifx ㈎\@entemp \def\@tempa{\@enLabel\pgana }\else + \ifx ㉮\@entemp \def\@tempa{\@enLabel\ogana }\else + \ifx ㄱ\@entemp \def\@tempa{\@enLabel\jaso }\else + \ifx ㈀\@entemp \def\@tempa{\@enLabel\pjaso }\else + \ifx ㉠\@entemp \def\@tempa{\@enLabel\ojaso }\else + \ifx ⑴\@entemp \def\@tempa{\@enLabel\pnum }\else + \ifx ①\@entemp \def\@tempa{\@enLabel\onum }\else + \ifx ⒜\@entemp \def\@tempa{\@enLabel\peng }\else + \ifx ⓐ\@entemp \def\@tempa{\@enLabel\oeng }\else + \ifx ⅰ\@entemp \def\@tempa{\@enLabel\hroman}\else + \ifx Ⅰ\@entemp \def\@tempa{\@enLabel\hRoman}\else +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ifx A\@entemp \def\@tempa{\@enLabel\Alph }\else + \ifx a\@entemp \def\@tempa{\@enLabel\alph }\else + \ifx i\@entemp \def\@tempa{\@enLabel\roman }\else + \ifx I\@entemp \def\@tempa{\@enLabel\Roman }\else + \ifx 1\@entemp \def\@tempa{\@enLabel\arabic}\else + \ifx \@sptoken\@entemp \let\@tempa\@enSpace \else + \ifx \bgroup\@entemp \let\@tempa\@enGroup \else + \ifx \@enum@\@entemp \let\@tempa\@gobble \else + \let\@tempa\@enOther + \@enhook + \fi\fi\fi\fi\fi\fi\fi\fi + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \@tempa} + +%%% subsection까지 항번을 붙이고 toc에 두자. +\maxtocdepth{subsection} +\maxsecnumdepth{subsection} + +%%% oblivoirallowbreak +\ifx\oblivoirallowbreak\undefined +\def\oblivoirallowbreak{\hskip1sp\hskip-1sp} +\fi + +%%% subfigure package compatibility +\if@subfigure + \let\c@lofdepth\relax + \let\c@lotdepth\relax +\fi + +%%% redefine \see or \seealso +\ifnokorean\else +\@ifundefined{see}{}{% + \renewcommand*{\see}[2]{#1\seename, \hyperpage{#2}} +} +\@ifundefined{seealso}{}{% + \renewcommand*{\seealso}[2]{#1\alsoname, \hyperpage{#2}} +} +\fi + +%%% to avoid conflicts with etextools +\ExplSyntaxOn +\cs_if_exist:NF \globcount +{ \let\globcount\newcount } +\ExplSyntaxOff + +%%% for LaTeX programmers +\let\ifLwarp\if@lwarp + +\endinput + +%%% ChangeLog: +%%% 2015-10-19 : fix conflicts with etextools package. +%%%% 2015-08-01 : drop etex.sty +%%% 2015-07-27 : fix nokorean bug +%%% 2015-07-10 : etex-pkg conflicts fixed. +%%% 2015-04-19 : suppress space factors +%%% 2014-06-12 : introduce new xob-font.sty +%%% 2014-06-06 : replace false \renewcommand with \setlength +%%% 2013-10-26 : moved \kscntformat definition to memhangul. +%%% 2013-09-12 : integrate ifluaorxetex.sty +%%% 2013-09-01 : [cjk], [dhucs] option introduced. +%%% 2011-09-26 : [preloadoption] bugfix. +%%% 2011-09-15 : [fontspec] renamed to [manualfontspec]; and intrudoce [fontspec, xcolor, hyperref, preloadoption] +%%% 2010-09-16 : reserveinserts, lyx compatibility etc. (for TeX Live 2010) +%%% 08:46 2010-02-09 : [microtype] -> hanging punctuation (xetexko) +%%% 10:16 2009-10-27 : [preload] 옵션 +%%% 오전 3:12 2009-04-07 : [lyxhyper] 옵션 +%%% 오전 6:36 2008-09-18 : revive microtype option, in spite of its impotence. +%%% 오후 2:16 2008-09-18 : latinquote 옵션 +%%% 오전 4:58 2008-09-30 : xkospace 새 버전에 맞춘 대대적인 수정. +%%% : enumerate, hangul item title, 기호문자 등을 추가. +%%% 오후 5:25 2008-10-07 : revive gremph/itemph +%%% 오전 10:51 2008-10-08 : revive kscntformat +%%% 오전 5:12 2008-10-12 : fontspec, moreverb, xob-hanfont +%%% 오전 1:19 2008-10-13 : xetexko v0.1 반영 +%%% 오전 12:50 2008-10-22 : fawd, faht 옵션 추가. (workaround with flowfram) +%%% 오후 12:22 2008-10-24 : add [unicode] option to hyperref under LuaTeX +%%% 13:49 2008-11-24 : add [amsmath] option to avoid LyX's auto loading problem under XeLaTeX. +%%% 오후 17:59 2008-12-03 : nowinname 옵션 추가 diff --git a/language/korean/kotex-oblivoir/tex/oblivoir.cls b/language/korean/kotex-oblivoir/tex/oblivoir.cls new file mode 100644 index 0000000000..79a0f8f908 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/oblivoir.cls @@ -0,0 +1,66 @@ +%% File `oblivoir.cls` +%% +%% (C) Copyright 2006-2020 Kangsoo Kim +%% +%% 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. +%% +\ProvidesClass{oblivoir}[2020/02/09 v2.2] + +\RequirePackage{xkeyval} +\RequirePackage{xparse} + +\newif\if@CJK\@CJKfalse +\DeclareOptionX{cjk}[]{\@CJKtrue} +\DeclareOptionX{dhucs}[]{\@CJKfalse} +%%% +%%% [fontspec] option introduced +\DeclareOptionX{fontspec}[]{\PassOptionsToPackage{{#1}}{fontspec}} +\DeclareOptionX{hyperref}[]{\PassOptionsToPackage{#1}{hyperref}} +\DeclareOptionX{xcolor}[]{\PassOptionsToPackage{#1}{xcolor}} +\DeclareOptionX{chapter}[]{} + +\ProcessOptionsX + +%%% ifluaorxetex.sty +\RequirePackage{iftex} + +\newif\ifLuaOrXeTeX +%\ifXeTeX\global\LuaOrXeTeXtrue +% \else\ifLuaTeX\global\LuaOrXeTeXtrue +% \else\global\LuaOrXeTeXfalse +%\fi\fi +\ExplSyntaxOn +\bool_if:nTF { \sys_if_engine_xetex_p: || \sys_if_engine_luatex_p: } +{ + \LuaOrXeTeXtrue +} +{ + \LuaOrXeTeXfalse +} +\ExplSyntaxOff + + +\ifLuaOrXeTeX +\LoadClassWithOptions{oblivoir-xl} +% \ifLuaTeX +% \typeout{HANGUL DRIVER: luatexko} +% \else +% \typeout{HANGUL DRIVER: xetexko} +% \fi +\else + \if@CJK + \LoadClassWithOptions{oblivoir-xl} + \typeout{HANGUL DRIVER: cjk-ko} + \else + \LoadClassWithOptions{oblivoir-utf} + \typeout{HANGUL DRIVER: kotex-utf} + \fi +\fi + +\endinput diff --git a/language/korean/kotex-oblivoir/tex/xoblivoir.cls b/language/korean/kotex-oblivoir/tex/xoblivoir.cls new file mode 100644 index 0000000000..4d2c842425 --- /dev/null +++ b/language/korean/kotex-oblivoir/tex/xoblivoir.cls @@ -0,0 +1,23 @@ +%% File `xoblivoir.cls` +%% +%% (C) Copyright 2006-2020 Kangsoo Kim +%% (C) Copyright 2013 Kihwang Lee +%% +%% 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. +%% +%% Read LICENSE included in the package. +%% +%% -------------------------------------------------------- +%% oblivoir.cls + +\ProvidesClass{xoblivoir} + +\LoadClassWithOptions{oblivoir} + +\endinput diff --git a/language/korean/kotex-oblivoir/xoblivoir.cls b/language/korean/kotex-oblivoir/xoblivoir.cls deleted file mode 100644 index 4d7851eba8..0000000000 --- a/language/korean/kotex-oblivoir/xoblivoir.cls +++ /dev/null @@ -1,54 +0,0 @@ -%% File `xoblivoir.cls` -%% -%% (C) Copyright 2006-2015 Kangsoo Kim -%% -%% 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. -%% -\ProvidesClass{xoblivoir}[2015/07/27] - -\RequirePackage{xkeyval} - -\newif\if@CJK\@CJKfalse -\DeclareOptionX{cjk}[]{\@CJKtrue} -\DeclareOptionX{dhucs}[]{\@CJKfalse} -%%% -%%% [fontspec] option introduced -\DeclareOptionX{fontspec}[]{\PassOptionsToPackage{{#1}}{fontspec}} -\DeclareOptionX{hyperref}[]{\PassOptionsToPackage{#1}{hyperref}} -\DeclareOptionX{xcolor}[]{\PassOptionsToPackage{#1}{xcolor}} - -\ProcessOptionsX - -%%% ifluaorxetex.sty -\RequirePackage{iftex} - -\newif\ifLuaOrXeTeX -\ifXeTeX\global\LuaOrXeTeXtrue - \else\ifLuaTeX\global\LuaOrXeTeXtrue - \else\global\LuaOrXeTeXfalse -\fi\fi - -\ifLuaOrXeTeX -\LoadClassWithOptions{oblivoir-xlua} -% \ifLuaTeX -% \typeout{HANGUL DRIVER: luatexko} -% \else -% \typeout{HANGUL DRIVER: xetexko} -% \fi -\else - \if@CJK - \LoadClassWithOptions{oblivoir-xlua} - \typeout{HANGUL DRIVER: cjk-ko} - \else - \LoadClassWithOptions{oblivoir-base} - \typeout{HANGUL DRIVER: kotex-utf} - \fi -\fi - -\endinput -- cgit v1.2.3