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)".
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 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?
--
Guillaume Yziquel
http://yziquel.homelinux.org/