When I do this:

DefaultModule theorems-ams
NoStyle Problem
Style Problem
LatexType command
LatexName problem
LabelString "Problem:"
LatexType Environment
OptionalArgs 1
End

The Theorems AMS module overwrite my Problem style in the dropdown styles
menu. When trying to compile, it says "LaTeX Error: Command \problem
already defined". I tried changing the order:

NoStyle Problem
DefaultModule theorems-ams
Style Problem
...
End

with the same result. I am attaching my layout file if someone want to see
it.



On Sun, Sep 8, 2013 at 9:30 PM, Richard Heck <rgh...@lyx.org> wrote:

> On 09/08/2013 04:34 PM, Christian Bustamante wrote:
>
>> I tried both, changing where I was putting the NoStyle command and trying
>> to overwrite the setting of the existing style without success. When I try
>> the latter, it looks like the theorems-ams module dominates all that I put
>> in my layout file. No matter if I change the Style settings, or if try to
>> delete it overwrite it with my own Problem style, Lyx deletes my problem
>> style and replaces it with the theorems-ams' problem style.
>> Maybe there is another file that Lyx is calling that overwrites any
>> change I try to make.
>>
>
> Loading order does matter here. Can you post some file illustrating what
> you are trying to do?
>
> Richard
>
>


-- 
CdeB

Attachment: hmcpset.layout
Description: Binary data

Reply via email to