diff options
author | Karl Berry <karl@freefriends.org> | 2014-08-03 16:52:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-08-03 16:52:03 +0000 |
commit | 2daa6a84a95d9070b144a984ef1ff44d66a29367 (patch) | |
tree | 67bcf198f53418d970794507ab33da887435da87 /Master/texmf-dist/tex/latex/cjk-ko/kotex.sty | |
parent | 763e0cee93b0e0a397fbe9f62e549a2e6ecf8022 (diff) |
cjk-ko
git-svn-id: svn://tug.org/texlive/trunk@34808 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cjk-ko/kotex.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/cjk-ko/kotex.sty | 84 |
1 files changed, 51 insertions, 33 deletions
diff --git a/Master/texmf-dist/tex/latex/cjk-ko/kotex.sty b/Master/texmf-dist/tex/latex/cjk-ko/kotex.sty index f9f190e767e..a90c5ad126d 100644 --- a/Master/texmf-dist/tex/latex/cjk-ko/kotex.sty +++ b/Master/texmf-dist/tex/latex/cjk-ko/kotex.sty @@ -1,7 +1,7 @@ % kotex.sty % -% (C) Copyright 2007-2013 Koaunghi Un <koaunghi at kornet net> -% Kangsoo Kim <karnes at ktug or kr> +% (C) Copyright 2007-2014 Koaunghi Un <koaunghi at kornet net> +% Kangsoo Kim <karnes at gmail com> % Dohyun Kim <nomos at ktug org> % % This work may be distributed and/or modified under the @@ -20,37 +20,55 @@ % \usepackage[euc]{kotex} \usepackage[euc,hangul]{kotex} % \usepackage[cjk]{kotex} \usepackage[cjk,hangul]{kotex} -\ProvidesPackage{kotex}[2013/03/23 v1.1 Korean TeX (ko.TeX)] +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname ProvidesPackage\endcsname\relax\else + \ProvidesPackage{kotex}[2014/07/27 v1.2 Korean TeX (ko.TeX)] +\fi + +\ifx\directlua\relax \let\directlua\undefined \fi +\ifx\XeTeXrevision\relax \let\XeTeXrevision\undefined \fi + +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname selectfont\endcsname\relax + \ifx\directlua\undefined + \ifx\XeTeXrevision\undefined + \input kotexutf + \else + \input xetexko.sty + \fi + \else + \input luatexko.sty + \fi +\endinput\fi + \newif\if@ko@euc \let\@ko@cjk\undefined -\ifx\directlua\relax \let\directlua\undefined \fi -\ifx\eTeXversion\relax \let\eTeXversion\undefined \fi -\ifx\eTeXversion\undefined \let\@ko@cjk\empty \fi \IfFileExists{kotexutf.sty}{}{\let\@ko@cjk\empty} \DeclareOption{utf}{} \DeclareOption{euc}{\@ko@euctrue} \DeclareOption{cjk}{\let\@ko@cjk\empty} \DeclareOption*{ - \ifx가가% - \ifx\directlua\undefined - \PassOptionsToPackage{\CurrentOption}{xetexko} - \else - \PassOptionsToPackage{\CurrentOption}{luatexko} - \fi - \else - \if@ko@euc - \PassOptionsToPackage{\CurrentOption}{kotex-euc} - \else - \ifx\@ko@cjk\undefined - \PassOptionsToPackage{\CurrentOption}{kotexutf} + \ifx\directlua\undefined + \ifx\XeTeXrevision\undefined + \if@ko@euc + \PassOptionsToPackage{\CurrentOption}{kotex-euc} \else - \PassOptionsToPackage{\CurrentOption}{cjkutf8-ko} + \ifx\@ko@cjk\undefined + \PassOptionsToPackage{\CurrentOption}{kotexutf} + \else + \PassOptionsToPackage{\CurrentOption}{cjkutf8-ko} + \fi \fi + \else + \PassOptionsToPackage{\CurrentOption}{xetexko} \fi - \fi} + \else + \PassOptionsToPackage{\CurrentOption}{luatexko} + \fi +} \InputIfFileExists{kotex.cfg}{}{} \ProcessOptions\relax @@ -61,22 +79,22 @@ \fi %%% load one of ko.TeX packages -\ifx가가% - \ifx\directlua\undefined - \RequirePackage{xetexko} - \else - \RequirePackage{luatexko} - \fi -\else - \if@ko@euc - \RequirePackage{kotex-euc} - \else - \ifx\@ko@cjk\undefined - \RequirePackage{kotexutf} +\ifx\directlua\undefined + \ifx\XeTeXrevision\undefined + \if@ko@euc + \RequirePackage{kotex-euc} \else - \RequirePackage{cjkutf8-ko} + \ifx\@ko@cjk\undefined + \RequirePackage{kotexutf} + \else + \RequirePackage{cjkutf8-ko} + \fi \fi + \else + \RequirePackage{xetexko} \fi +\else + \RequirePackage{luatexko} \fi \endinput |