From 58c4ce1681c0ba0f511802729b1409b92a864617 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 14 Mar 2020 21:01:21 +0000 Subject: kotex-oblivoir (14mar20) git-svn-id: svn://tug.org/texlive/trunk@54302 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/kotex-oblivoir/memhangul-common/10_5.sty | 82 ++ .../memhangul-common/fapapersize.sty | 147 +++ .../memhangul-common/memhangul-common.sty | 1184 ++++++++++++++++++++ .../memhangul-common/memhangul-patch.sty | 20 + .../memhangul-common/memucs-enumerate.sty | 49 + .../memhangul-common/memucs-setspace.sty | 587 ++++++++++ .../memhangul-common/ob-koreanappendix.sty | 98 ++ .../memhangul-common/ob-nokoreanappendix.sty | 96 ++ .../kotex-oblivoir/memhangul-common/ob-toclof.sty | 144 +++ .../latex/kotex-oblivoir/memhangul-ucs/10_5.sty | 82 -- .../kotex-oblivoir/memhangul-ucs/fapapersize.sty | 141 --- .../memhangul-ucs/memhangul-common.sty | 1154 ------------------- .../memhangul-ucs/memhangul-patch.sty | 20 - .../memhangul-ucs/memucs-enumerate.sty | 49 - .../memhangul-ucs/memucs-setspace.sty | 587 ---------- .../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 | 18 +- .../kotex-oblivoir/memhangul-x/xetexko-var.sty | 12 +- .../latex/kotex-oblivoir/memhangul-x/xob-font.sty | 62 +- .../latex/kotex-oblivoir/memhangul-x/xob-lwarp.sty | 177 +++ .../tex/latex/kotex-oblivoir/oblivoir-base.cls | 603 ---------- .../tex/latex/kotex-oblivoir/oblivoir-utf.cls | 613 ++++++++++ .../tex/latex/kotex-oblivoir/oblivoir-xl.cls | 531 +++++++++ .../tex/latex/kotex-oblivoir/oblivoir-xlua.cls | 497 -------- .../tex/latex/kotex-oblivoir/oblivoir.cls | 59 +- .../tex/latex/kotex-oblivoir/xoblivoir.cls | 47 +- 28 files changed, 3843 insertions(+), 3554 deletions(-) create mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/10_5.sty create mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/fapapersize.sty create mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/memhangul-common.sty create mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/memhangul-patch.sty create mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/memucs-enumerate.sty create mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/memucs-setspace.sty create mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/ob-koreanappendix.sty create mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/ob-nokoreanappendix.sty create mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/ob-toclof.sty delete mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/10_5.sty delete mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/fapapersize.sty delete mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memhangul-common.sty delete mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memhangul-patch.sty delete mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memucs-enumerate.sty delete mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memucs-setspace.sty delete mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-koreanappendix.sty delete mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-nokoreanappendix.sty delete mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-toclof.sty create mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/xob-lwarp.sty delete mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-base.cls create mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-utf.cls create mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-xl.cls delete mode 100644 Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-xlua.cls (limited to 'Master/texmf-dist/tex/latex/kotex-oblivoir') diff --git a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/10_5.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/10_5.sty new file mode 100644 index 00000000000..401c569ff9a --- /dev/null +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/fapapersize.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/fapapersize.sty new file mode 100644 index 00000000000..a1a57f113fc --- /dev/null +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/memhangul-common.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/memhangul-common.sty new file mode 100644 index 00000000000..4550be54675 --- /dev/null +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/memhangul-patch.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/memhangul-patch.sty new file mode 100644 index 00000000000..b3cf7299587 --- /dev/null +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/memucs-enumerate.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/memucs-enumerate.sty new file mode 100644 index 00000000000..c3fd53f85ed --- /dev/null +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/memucs-setspace.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/memucs-setspace.sty new file mode 100644 index 00000000000..a4353ab9715 --- /dev/null +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/ob-koreanappendix.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/ob-koreanappendix.sty new file mode 100644 index 00000000000..9c46eaa9c58 --- /dev/null +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/ob-nokoreanappendix.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/ob-nokoreanappendix.sty new file mode 100644 index 00000000000..69044f5eba1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/ob-toclof.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/ob-toclof.sty new file mode 100644 index 00000000000..5ef56b463fb --- /dev/null +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/10_5.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/10_5.sty deleted file mode 100644 index 401c569ff9a..00000000000 --- a/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/fapapersize.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/fapapersize.sty deleted file mode 100644 index 4cb7d1ffd6b..00000000000 --- a/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memhangul-common.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memhangul-common.sty deleted file mode 100644 index 2b0ae2ef71e..00000000000 --- a/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memhangul-patch.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memhangul-patch.sty deleted file mode 100644 index b3cf7299587..00000000000 --- a/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memucs-enumerate.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memucs-enumerate.sty deleted file mode 100644 index c3fd53f85ed..00000000000 --- a/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memucs-setspace.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memucs-setspace.sty deleted file mode 100644 index 8db9d17acfa..00000000000 --- a/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-koreanappendix.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-koreanappendix.sty deleted file mode 100644 index 9c46eaa9c58..00000000000 --- a/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-nokoreanappendix.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-nokoreanappendix.sty deleted file mode 100644 index 69044f5eba1..00000000000 --- a/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-toclof.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-toclof.sty deleted file mode 100644 index 5ef56b463fb..00000000000 --- a/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty index 787df1d0dbf..31a600349ec 100644 --- a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty @@ -1,6 +1,6 @@ %% File `memhangul-x.sty` %% -%% (C) Copyright 2006-2015 Kangsoo Kim +%% (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 @@ -14,8 +14,8 @@ %% part of oblivoir v2 %% \NeedsTeXFormat{LaTeX2e} -\def\filedate{2015/10/05} -\def\fileversion{11.10} +\def\filedate{2020/02/05} +\def\fileversion{11.11} \ProvidesPackage{memhangul-x}[\filedate Hangul Typography for (x)oblivoir] %\typeout{Hangul Typography for (x)oblivoir} @@ -37,6 +37,7 @@ %\newif\if@dvips{\@dvipsfalse} \DeclareOption{dvips}{\DisabledOption{dvips}} \DeclareOption{strictcharcheck}{\DisabledOption{strictcharcheck}} +\DeclareOption{adjustmath}{\DisabledOption{adjustmath}} %%%% active options \newif\if@hsspace\@hsspacetrue @@ -55,8 +56,8 @@ \DeclareOption{nonfrench}{\@nonfrenchtrue} \newif\if@hanja\@hanjafalse \DeclareOption{hanja}{\@hanjatrue} -\newif\if@mathdisp\@mathdispfalse -\DeclareOption{adjustmath}{\@mathdisptrue} +\newif\if@mathdisp\@mathdisptrue +\DeclareOption{mathdisp}{\@mathdispfalse} \newif\if@arabicfrontmatter{\@arabicfrontmatterfalse} \DeclareOption{arabicfront}{\@arabicfrontmattertrue} @@ -80,6 +81,7 @@ \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}} @@ -93,6 +95,7 @@ \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 @@ -106,6 +109,7 @@ \DeclareOption{nounfonts}{\DisabledOption{nounfonts}} \DeclareOption{nanum}{\DisabledOption{nanum}} \DeclareOption{hcr}{\DisabledOption{hcr}} +\DeclareOption{noto}{\DisableOption{noto}} \fi \fi\fi @@ -143,7 +147,7 @@ } \else \ifluatex - \RequirePackage{luatexko} + \@ifpackageloaded{luatexko}{}{\RequirePackage{luatexko}} \RequirePackage{xob-font} \RequirePackage{xob-dotemph} \else\ifxetex @@ -339,7 +343,7 @@ \if@hsspacenoquote\else\adjustquotespacing\fi \else \RequirePackage{memucs-setspace} - \linespread{1.333} + \linespread{1.33} \fi %\SetHangulspace{1.333}{1.1} diff --git a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/xetexko-var.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/xetexko-var.sty index 27768dbda6c..f8acc43a231 100644 --- a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/xetexko-var.sty +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/xetexko-var.sty @@ -1,6 +1,6 @@ %% xetexko-var.sty %% -%% Copyright (c) 2007-2014 Kangsoo Kim +%% Copyright (c) 2007-2020 Kangsoo Kim %% Copyright (c) 2013 Kihwang Lee %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% 2013.08.26 %% \ProvidesPackage{xetexko-var} - [2014/06/12 v0.13 Korean Typesetting under XeTeX] + [2020/02/05 v0.14 Korean Typesetting under XeTeX] %%% common options for xob-font \DeclareOption{gremph}{\PassOptionsToPackage{\CurrentOption}{xob-font}} @@ -35,8 +35,8 @@ \DeclareOption{manualfontspec}{\@extfontspectrue} %%% unfonts -\DeclareOption{unfonts}{\PassOptionsToPackage{\CurrentOption}{xob-font}} -\DeclareOption{nounfonts}{\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}} \ProcessOptions\relax @@ -44,7 +44,9 @@ %%% xetexko sub-styles \RequirePackage{xetexko-space} \RequirePackage{xetexko-josa} +\if@lwarp\else \RequirePackage{xetexko-vertical} +\fi %%% xoblivoir sub-styles \RequirePackage{xob-dotemph} @@ -54,7 +56,7 @@ \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 +% \newif\if@unfonts\@unfontsfalse \RequirePackage{xob-font} \fi diff --git a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/xob-font.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/xob-font.sty index 16095498f7b..cab543826df 100644 --- a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/xob-font.sty +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/xob-font.sty @@ -1,12 +1,12 @@ %% xob-font.sty %% -%% Copyright (c) 2014 Kangsoo Kim -%% Copyright (c) 2017 Kihwang Lee +%% 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 of this license is in +%% 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. @@ -15,7 +15,7 @@ %% oblivoir hangul/hanja font setting. %% part of oblivoir %% -\ProvidesPackage{xob-font}[2017/02/03 v0.7 select hangul/hanja fonts for 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 @@ -118,9 +118,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, } + \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 @@ -200,8 +206,14 @@ \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 ] { \_regu_font_name } + [ \_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. @@ -639,17 +651,17 @@ \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@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 @@ -659,19 +671,21 @@ \fi \setkosansfont(NanumGothic)(*Bold)(*) \setkomonofont(NanumGothic) -\fi - +\else %%% [hcr] adds [Script=Hangul] feature automatically. \if@hcrfonts - \setkomainfont(HCRBatangLVT)(*-Bold)(*) - \setkosansfont(HCRDotumLVT)(*-Bold)(*) + \setkomainfont(HCRBatangLVT)(HCRBatangLVT-Bold)(HCRBatangLVT) + \setkosansfont(HCRDotumLVT)(HCRDotumLVT-Bold)(HCRDotumLVT) \setkomonofont(HCRDotumLVT) -\fi +\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 diff --git a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/xob-lwarp.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/xob-lwarp.sty new file mode 100644 index 00000000000..bbfea75956d --- /dev/null +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/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/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-base.cls b/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-base.cls deleted file mode 100644 index bff68d1565e..00000000000 --- a/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-utf.cls b/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-utf.cls new file mode 100644 index 00000000000..535b74dbd4c --- /dev/null +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/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/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-xl.cls b/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-xl.cls new file mode 100644 index 00000000000..c4ab0916fb1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/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/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-xlua.cls b/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-xlua.cls deleted file mode 100644 index 5afc06b4b9e..00000000000 --- a/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir.cls b/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir.cls index 82c2faa98db..79a0f8f908b 100644 --- a/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir.cls +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir.cls @@ -1,7 +1,6 @@ %% File `oblivoir.cls` %% -%% (C) Copyright 2006-2013 Kangsoo Kim -%% (C) Copyright 2013 Kihwang Lee +%% (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 @@ -11,13 +10,57 @@ %% 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}[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 -\ProvidesClass{oblivoir} -\LoadClassWithOptions{xoblivoir} +\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/Master/texmf-dist/tex/latex/kotex-oblivoir/xoblivoir.cls b/Master/texmf-dist/tex/latex/kotex-oblivoir/xoblivoir.cls index 4d7851eba89..4d2c8424255 100644 --- a/Master/texmf-dist/tex/latex/kotex-oblivoir/xoblivoir.cls +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/xoblivoir.cls @@ -1,6 +1,7 @@ %% File `xoblivoir.cls` %% -%% (C) Copyright 2006-2015 Kangsoo Kim +%% (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 @@ -10,45 +11,13 @@ %% 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} +%% Read LICENSE included in the package. +%% +%% -------------------------------------------------------- +%% oblivoir.cls -\newif\ifLuaOrXeTeX -\ifXeTeX\global\LuaOrXeTeXtrue - \else\ifLuaTeX\global\LuaOrXeTeXtrue - \else\global\LuaOrXeTeXfalse -\fi\fi +\ProvidesClass{xoblivoir} -\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 +\LoadClassWithOptions{oblivoir} \endinput -- cgit v1.2.3