Juergen Spitzmueller wrote:
>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
>> %% Bold symbol macro for standard LaTeX users
>> \newcommand{\boldsymbol}[1]{\mbox{\boldmath $#1$}}
>>
>> But beamer also defines a command \boldsymbold, so I want to
>> disable LyX's \boldsymbol as a short workaround. How could this be
>> done? (I'll inform the author of beamer, that he shouldn't use this
>> command.)
>
> Hm, perhaps LyX should use \providecommand instead.
Juergen, could you try out the attached patch? Works for me, but I'm
not trying it against beamer.
--
Angus
Index: src/lyx_sty.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyx_sty.C,v
retrieving revision 1.12
diff -u -p -r1.12 lyx_sty.C
--- src/lyx_sty.C 27 Nov 2002 10:30:09 -0000 1.12
+++ src/lyx_sty.C 8 Apr 2004 11:26:22 -0000
@@ -109,7 +109,7 @@ string const minipageindent_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"