summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xetex/zhspacing/zhulem.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-02-12 00:19:25 +0000
committerKarl Berry <karl@freefriends.org>2016-02-12 00:19:25 +0000
commit16f02bbc1863609a1fa114bc9272d6a2a6f2e047 (patch)
treef03209d8a26c52d3a65fd9840d0d021b7c6a6b9a /Master/texmf-dist/tex/xetex/zhspacing/zhulem.sty
parentd8d0b5b21e8eb9b4970633451dc1e57192d5ab71 (diff)
zhspacing (11feb16)
git-svn-id: svn://tug.org/texlive/trunk@39670 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xetex/zhspacing/zhulem.sty')
-rw-r--r--Master/texmf-dist/tex/xetex/zhspacing/zhulem.sty18
1 files changed, 18 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/xetex/zhspacing/zhulem.sty b/Master/texmf-dist/tex/xetex/zhspacing/zhulem.sty
new file mode 100644
index 00000000000..86365e380ab
--- /dev/null
+++ b/Master/texmf-dist/tex/xetex/zhspacing/zhulem.sty
@@ -0,0 +1,18 @@
+% zhulem.sty coded by YIN Dian
+% Fix compatibility problem with ulem
+% Hist: 070822 Changed \UL@reskip and \UL@@penalty, able to work.
+\NeedsTeXFormat{LaTeX2e}[1996/12/01]
+\def\fileversion{0.4}
+\def\filedate{2007/08/22}
+\ProvidesPackage{zhulem}[\filedate\space\fileversion]
+\RequirePackage{ulem}[2000/05/26]
+%\let\zhulem@printfont\zhs@printf@nt
+\def\zhulem@printfont#1{}
+\def\UL@reskip{\zhs@savef@nt{tmp}\UL@stop \zhulem@printfont{tmp}\UL@leaders
+ \UL@start\zhs@restoref@nt{tmp}}
+\def\UL@@penalty{\LA@penalty \ifnum\count@=\z@
+ \@ne \else \count@ \fi % zero penalty => no penalty, so use 1 instead.
+ \zhs@savef@nt{tmp}\UL@stop \zhulem@printfont{tmp}\UL@start
+ \zhs@restoref@nt{tmp}}
+
+\endinput