diff options
author | Karl Berry <karl@freefriends.org> | 2016-05-15 15:30:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-05-15 15:30:11 +0000 |
commit | 4ea9595c9cb9aab0a87e4fec643b0268c77bdd09 (patch) | |
tree | 2218c5dbd2c930b1a5c8178836e85449c894ca0c /Master/texmf-dist/tex/xelatex/zhspacing/zhulem.sty | |
parent | 71b584cd9c5233528247cb6f0bc261c086609372 (diff) |
zhspacing from.tds.zip
git-svn-id: svn://tug.org/texlive/trunk@41145 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/zhspacing/zhulem.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/zhspacing/zhulem.sty | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/xelatex/zhspacing/zhulem.sty b/Master/texmf-dist/tex/xelatex/zhspacing/zhulem.sty new file mode 100644 index 00000000000..86365e380ab --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/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 |