diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/CJK/CJKulem.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/CJK/CJKulem.sty | 176 |
1 files changed, 176 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/CJK/CJKulem.sty b/Master/texmf-dist/tex/latex/CJK/CJKulem.sty new file mode 100644 index 00000000000..6d265f941bb --- /dev/null +++ b/Master/texmf-dist/tex/latex/CJK/CJKulem.sty @@ -0,0 +1,176 @@ +% This is the file CJKulem.sty of the CJK package +% for using Asian logographs (Chinese/Japanese/Korean) with LaTeX2e +% +% created by Werner Lemberg <wl@gnu.org> +% +% Version 4.6.0 (11-Aug-2005) + +\NeedsTeXFormat{LaTeX2e}[1996/12/01] +\def\fileversion{4.6.0} +\def\filedate{2005/08/11} +\ProvidesPackage{CJKulem}[\filedate\space\fileversion] + +\RequirePackage{ulem}[2000/05/26] + +\endlinechar \m@ne + +\newdimen\UL@lastkern +\newskip\CJK@skip + + +\def\UL@CJKnobreakglue{ + \nobreak + \LA@CJKglue + \nobreak} + + +\def\UL@CJKglue{ + \ifx\ \LA@space + \LA@CJKglue + \else + \egroup + \UL@stop + \ifnum\lastkern = \thr@@ + \LA@hskip \CJK@skip + \else + \global\UL@skip \CJK@skip + \UL@leaders + \fi + \UL@start + \bgroup + \fi} + + +\def\UL@Thaiglue{ + \ifx\ \LA@space + \LA@Thaiglue + \else + \egroup + \egroup + \egroup + \UL@stop + \ifnum\lastkern = \thr@@ + \LA@hskip \CJK@skip + \else + \global\UL@skip \CJK@skip + \UL@leaders + \fi + \UL@start + \bgroup + \fontencoding{C90}\selectfont + \bgroup + \bgroup + \fi} + + +\def\UL@Thaibreak{ + \ifx\ \LA@space + \LA@Thaibreak + \else + \egroup + \egroup + \egroup + \UL@stop + \LA@hskip \z@ + \UL@start + \bgroup + \fontencoding{C90}\selectfont + \bgroup + \bgroup + \fi} + + +\def\UL@testLastKern{ + \global\CJK@false + \ifnum\lastkern = \thr@@ + \ifnum\UL@lastkern = \tw@ + \global\CJK@true + \fi + \ifnum\UL@lastkern = 5 + \global\CJK@true + \fi + \fi + + \ifnum\lastkern = \tw@ + \global\CJK@true + \fi + \ifnum\lastkern = 5 + \global\CJK@true + \fi} + + +\def\UL@testLastCJK{ + \global\CJK@false + + \ifnum\lastkern = \thr@@ + \ifnum\UL@lastkern = \@ne + \global\CJK@true + \fi + \fi + + \ifnum\lastkern = \@ne + \global\CJK@true + \fi} + + +\addto@hook\UL@hook{ + \let\CJK@savehskip \hskip + \let\hskip \LA@hskip + \CJKglue + \CJK@skip\lastskip + \unskip + \let\hskip \CJK@savehskip + \let\LA@CJKglue \CJKglue + \let\LA@Thaiglue \Thaiglue + \let\LA@Thaibreak \Thaibreak + \let\CJK@nobreakglue \UL@CJKnobreakglue + \let\CJKglue \UL@CJKglue + \let\Thaiglue \UL@Thaiglue + \let\Thaibreak \UL@Thaibreak + \let\CJK@testLastKern \UL@testLastKern + \let\CJK@testLastCJK \UL@testLastCJK} + + +\def\UL@start{ + \global\UL@lastkern\lastkern + \setbox\UL@box\hbox\bgroup + \everyhbox{\UL@hrest} + \let\UL@start\@empty + \def\UL@unegroup{\bgroup\bgroup} + \let\UL@leadtype\@empty + \bgroup + \kern -3sp + \kern 3sp + \if@ignore + \global\@ignorefalse + \ignorespaces + \fi} + + +\def\UL@stop{ + \global\UL@pe\lastpenalty + \global\UL@lastkern\lastkern + \unpenalty + \ifnum\lastkern = \thr@@ + \egroup + \egroup + \ifdim\wd\UL@box = \z@ + \else + \UL@putbox + \fi + \else + \egroup + \egroup + \UL@putbox + \fi + \ifnum\UL@pe = \z@ + \else + \LA@penalty\UL@pe + \fi + \kern -\UL@lastkern + \kern \UL@lastkern + \UL@unegroup} + +\endlinechar `\^^M + +\endinput |