I would like to define a command \defi which allows to color words with one color (not necessarily the color of the picture below) : to color the word matrice, I just want to type \defi{matrice}.
Here is a starting code.
\documentclass[12pt,a4paper]{report}
\usepackage{amsfonts,amsmath,amssymb,graphicx,amsthm}
\usepackage[francais]{babel}
\usepackage{pifont} %bouni
\usepackage{fancybox} %pour faire l'encadrement
\usepackage[latin1]{inputenc}
\usepackage{verbatim}
\usepackage{color}
%\usepackage{hyperref}
\usepackage[final]{pdfpages} %pour inserer une page pdf
\usepackage{fancyhdr} % pagestyle
%---- Dimensions des marges ---
\usepackage{geometry}
\geometry{left=2cm,right=2cm,top=2cm,bottom=2cm}
%\usepackage{setspace}
%\onehalfspacing
%----
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newtheorem{definition}{Définition}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{theorem}{Théorème}[section]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{definition}
\begin{itemize}
\item [(i)] Une matrice $A$ est un tableau rectangulaire
d'élèments de $\mathbb{R}$.
\item [(ii)] Elle est dite de taille $n \times p$ si le tableau
possède $n$ lignes et $p$ colonnes.
\item [(iii)] Les nombres du tableau sont appelès les coefficients de $A$.
\item [(vi)] Le coefficient situé à la $i$-éme ligne et à la $j$-éme colonne
est noté $a_{i,j}$.
\end{itemize}
\end{definition}
\end{document}


\newtheorem{definition}{Définition}[section]especially the[section]part. As for the other something like\newcommand\HL[1]{\emph{\textcolor{orange}{#1}}}(requiresxcolor) – daleif Apr 23 '21 at 09:57\textcolor{orange}{\itshape matrice}for every instance. Also your question is really asking two completely unrelated questions (coloring, numbering). Best if you keep a question limited to a single issue. – Steven B. Segletes Apr 23 '21 at 12:18\setsepchar{apple||banana}is used to define the words you want "always colored". While the syntax is slightly different than you seek (and I could make them the same syntax), the similarity of defining words you always want colored is what the two questions have in common. – Steven B. Segletes Apr 23 '21 at 19:29