From: Angus Leeming Date: Thu, 8 Apr 2004 13:06:49 +0000 (+0000) Subject: \boldsymbol fix. X-Git-Tag: 1.6.10~15335 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0062f3e03cc691a498b5887381b797dcbe24b2fd;p=lyx.git \boldsymbol fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8631 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index ac5bcebc5f..ac5df78442 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2004-04-08 Angus Leeming + + * 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 * lyxrc.C (read): don't try to set the color of none, inherit, ignore diff --git a/src/lyx_sty.C b/src/lyx_sty.C index 4c9f42af7b..0d754ea08d 100644 --- a/src/lyx_sty.C +++ b/src/lyx_sty.C @@ -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"