5
\documentclass[french]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{amssymb,amsfonts}
\usepackage{amsmath} 
\usepackage{amsfonts}



\theoremstyle{definition}


\begin{document} 

\end{document}

I am working in a French Environment and I am getting the error "Undefined control sequence. l.12 \theoremstyle {definition}". Most probably Theoremstyle is not defined for the French Environment. How should I write it?

Grobber
  • 209

1 Answers1

5

You will need to load the package amsthm, I have attached an example below:

\documentclass[french]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amsthm}

\theoremstyle{definition}

\newtheorem{theorem}{Théorème}
\newtheorem{lemma}[theorem]{Lemme}
\newtheorem{corollary}[theorem]{Corollaire}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{definition}{Définition}
\newtheorem{example}[theorem]{Exemple}
\newtheorem{remark}{Remarque}
\newtheorem{notation}[theorem]{Notation}

\begin{document} 
\begin{theorem}
Mon nouveau théorème
\end{theorem}

\begin{proof}
Et voila
\end{proof}

\end{document}

Then you can fine tune how your environments (theorem, definition, corollary, etc) will behave. I have added a few environments in the code above along with their French names.

enter image description here

Hope that helps.

Romain

RockyRock
  • 1,221