[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [tex-live] Debian freeze - last chance for changes



> If there is anything else, please let me know.

I have a small fix to CJK.sty, not worth a new release but helpful
anyways since it increases robustness.  Please decide yourself what to
do with it.


    Werner


======================================================================


diff --git a/ChangeLog b/ChangeLog
index 7dcdf1c..eda3c56 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-06-21  Werner LEMBERG  <wl@gnu.org>
+
+	Make some commands robust.
+
+	* texinput/CJK.sty (\CJKtilde, \standardtilde, \CJKspace,
+	\CJKnospace): Use \DeclareRobustCommand.
+
 2012-05-20  Peter Breitenlohner  <peb@mppmu.mpg.de>
 
 	[hbf2gf] Build fix for 64-bit Mac OS X 10.7.3.
diff --git a/texinput/CJK.sty b/texinput/CJK.sty
index 12cfe84..3fa8362 100644
--- a/texinput/CJK.sty
+++ b/texinput/CJK.sty
@@ -847,9 +847,9 @@
 
 \let\nbs \nobreakspace
 
-\newcommand{\CJKtilde}{
+\DeclareRobustCommand{\CJKtilde}{
   \CJK@global\def~{\hspace{0.25em plus 0.125em minus 0.08em}\ignorespaces}}
-\newcommand{\standardtilde}{
+\DeclareRobustCommand{\standardtilde}{
   \CJK@global\def~{\nobreakspace{}}}
 
 
@@ -861,9 +861,9 @@
 %
 % the definitions are in MULEenc.sty also.
 
-\providecommand{\CJKspace}{
+\DeclareRobustCommand{\CJKspace}{
   \CJK@global\let\CJK@ignorespaces \@empty}
-\providecommand{\CJKnospace}{
+\DeclareRobustCommand{\CJKnospace}{
   \CJK@global\let\CJK@ignorespaces \ignorespaces}
 
 


Reply to: