OSDN Git Service

lltjp-xunicode.sty: Fix a bug which may occur when using unicode-math.
authorKazuki Maeda <kmaeda@users.sourceforge.jp>
Sat, 21 Apr 2012 16:02:33 +0000 (01:02 +0900)
committerKazuki Maeda <kmaeda@users.sourceforge.jp>
Sat, 21 Apr 2012 16:02:33 +0000 (01:02 +0900)
src/patches/lltjp-xunicode.sty

index 94a8bd9..ee74848 100644 (file)
 }
 % If unicode-math is already loaded, the following error occurs:
 %    ! Undefined control sequence.
-%    \hbar ->\hslash 
-% Therefore temporarily set \hbar=\relax.
+%    \hbar ->\hslash
+%    ! Missing \endcsname inserted.
+%    <to be read again>
+%                       \Zbar
+% Therefore temporarily set \hbar=\relax and \Zbar=\relax.
 \let\ltj@tmpa\hbar
 \let\hbar\relax
 \let\ltj@tmpb\iftipaonetoken
 \let\iftipaonetoken\relax
-\let\hbar\relax
+\let\ltj@tmpc\Zbar
+\let\Zbar\relax
 \ReloadXunicode{EU2}
 \makeatletter
 \let\hbar\ltj@tmpa
 \let\iftipaonetoken\ltj@tmpb
 \let\ltj@tmpb\relax % no more an if-token
+\let\Zbar\ltj@tmpc
 \endinput
-