I write a document in french language and i use the mathpazo package for mathematical equations. My problem is when I compile, the letters with accents does not appear and I do not want to use the command \ text {}. here is my code:
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[frenchb]{babel}
\usepackage{amsmath, nccmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[T1]{fontenc}
\usepackage{mathrsfs}
\usepackage{mathpazo}
\begin{document}
$ élément $
\end{document}
mathpazodoes not use T1 encoding for maths. Anyway, you shouldn't write plain text in math mode – the letter spacing is bad (a word appears as a product of variables). Have you any serious reason to avoid the use of \text? – Bernard May 21 '20 at 11:14élémentin math mode, you should write it as\acute{e}l\acute{e}ment. See the posting Trying to use “~” to generate tilde symbol in math mode for more information on entering "accents" in math mode and text mode. – Mico May 21 '20 at 11:34élémentwith\text{élément}than it is to replace them with\acute{e}l\acute{e}ment? – Mico May 21 '20 at 12:24