I want to write a paper using the ec-acmsmall.cls style file. Unfortunately, this class already defined the proof and example enviroments, and therefore, in order to avoid an error, I have to add the following lines before the amsthm so the latex preample looks like :
Code: Select all
\documentclass[prodmode,acmec]{ec-acmsmall}
\usepackage[latin9]{inputenc}
\let\proof\relax
\let\endproof\relax
\let\example\relax
\let\endexample\relax
\usepackage{amsthm}
Code: Select all
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[ec-acmsmall]{ec-acmsmall}
# Input general definitions
Input article.layout
"command \proof already defined"
since lyx automatically load amsthm before the custom preamble, and therefore if I manually add:
Code: Select all
\let\proof\relax
\let\endproof\relax
\let\example\relax
\let\endexample\relax
Code: Select all
\usepackage{amsthm}
Any idea how do I avoid this?How do I make the \let lines before the definition of the amsthm? Alternatively, How do I make lyx recognize the built in enviroment in the ec-acmsmall.cls file?
If you have any other workaround method, please let me know. The paper contains a lot of definitions and theorems, and I would prefer a global solution, rather than manually fixing everything (if this is possible at all).