On 09/08/2013 10:03 PM, Christian Bustamante wrote:
When I do this:
DefaultModule theorems-ams
NoStyle Problem
Style Problem
LatexTypecommand
LatexNameproblem
LabelString"Problem:"
LatexTypeEnvironment
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.
You should probably do
Input theorems-ams
ProvidesModule theorems-ams
The DefaultModule stuff just says to load the module, by default, when
modules are loaded, which will happen AFTER the layout stuff is loaded.
That is why your declaration gets over-written. When you use Input, the
file is loaded immediately.
Richard