On 12/07/2009 01:12 PM, Guillaume Yziquel wrote:
Hello.
I've been writing a document of document class "AMS(book,french)", and
in the document parameters, in the modules section, I've selected
"Théorèmes (AMS)".
Where did you get that layout file? It looks to me as if it is defining
the theorem environment itself, and then the definitions from the module
are conflicting with its own definitions.
rh
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\theoremstyle{plain}
\newtheorem{thm}{Th\'eor\`eme}[section]
\numberwithin{equation}{section} %% Comment out for
sequentially-numbered
\numberwithin{figure}{section} %% Comment out for sequentially-numbered
\theoremstyle{plain}
\newtheorem{thm}{Theorem}
\theoremstyle{remark}
\newtheorem{rem}[thm]{Remark}
\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition}
And creating the .pdf with pdflatex fails with
Latex Error: Command \thm already defined.
Latex Error: Missing \begin{document}.
I guess the first error is the relevant one.
When I remove the "Théorèmes (AMS)" from the modules section of the
document preferences, the same .tex piece of code becomes:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\theoremstyle{plain}
\newtheorem{thm}{Th\'eor\`eme}[section]
\numberwithin{equation}{section} %% Comment out for
sequentially-numbered
\numberwithin{figure}{section} %% Comment out for sequentially-numbered
\theoremstyle{remark}
\newtheorem{rem}[thm]{Remarque}
\theoremstyle{definition}
\newtheorem{defn}[thm]{D\'efinition}
and I can generate the .pdf file. However, the "Definition", "Remark"
and stuff do not show up in the GUI display of the document.
Am I doing something specifically wrong here?