From 0062f3e03cc691a498b5887381b797dcbe24b2fd Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Thu, 8 Apr 2004 13:06:49 +0000 Subject: [PATCH] \boldsymbol fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8631 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 7 +++++++ src/lyx_sty.C | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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" -- 2.39.5