]> git.lyx.org Git - features.git/commitdiff
\boldsymbol fix.
authorAngus Leeming <leeming@lyx.org>
Thu, 8 Apr 2004 13:06:49 +0000 (13:06 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 8 Apr 2004 13:06:49 +0000 (13:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8631 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/lyx_sty.C

index ac5bcebc5f4e27c605717e8438944908ba96ca84..ac5df78442258d580ce54621e9db9749866a899f 100644 (file)
@@ -1,3 +1,10 @@
+2004-04-08  Angus Leeming  <leeming@lyx.org>
+
+       * lyx_sty.C (boldsymbol_def): modify so that it outputs
+       "\providecommand" rather than "\newcommand", thereby preventing
+       clashes with packages that define "\boldsymbol" themselves.
+       Eg, beamer.
+
 2004-04-08  Angus Leeming  <leeming@lyx.org>
 
        * lyxrc.C (read): don't try to set the color of none, inherit, ignore
index 4c9f42af7bd9d115be291749282871663d547bc9..0d754ea08d6bdfb4a640777f14ac6180b705686f 100644 (file)
@@ -109,7 +109,7 @@ string const floatingfootnote_def =
 
 string const boldsymbol_def =
        "%% Bold symbol macro for standard LaTeX users\n"
-       "\\newcommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n";
+       "\\providecommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n";
 
 string const binom_def =
        "%% Binom macro for standard LaTeX users\n"