[Tex/LaTex] geometry package keyval error

geometrygraphicspackages

Could you help me out solve this problem. After compiling my .tex file
I get these two errors.

geometry.sty  Package keyval Error: up undefined. \ProcessOptionsKV[p]{Gm} \
graphics.sty File `dvipdfm.def' not found. ...d{ver@\Gin@driver}{\input{\Gin@driver}}{}
  \@ifundefined{ver@\Gin@driver}{\input{\Gin@driver}}{}

Thank you
Regards


\documentclass[rennes1]{phd}
\usepackage[left=2cm,right=3cm,up=2cm,bottom=2cm]{geometry}
\usepackage[dvipdfm]{graphicx}
\usepackage{color}
\usepackage{url,rotating}
\usepackage{graphicx}
% % % % % % % % % % % % % %
\usepackage{notoccite}
\usepackage{indentfirst} 
\usepackage{array,multirow,makecell}
\usepackage[table]{xcolor}
\usepackage{supertabular}
\usepackage{caption} 
% % % % % % % % % % % % % % % % %
\usepackage{enumitem}
\usepackage{setspace}
\usepackage{longtable}
\usepackage{array}
% % % % % % % % % % % % % % % % % %
%\usepackage[latin1]{inputenc}
\usepackage{boxedminipage}
\usepackage[centertags]{amsmath}
\usepackage{amsfonts}
\usepackage{multirow}
\usepackage{mathtools}

\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{newlfont}
\usepackage{float}
%\usepackage[pdftex]{graphicx}
\usepackage{pdfpages}
\usepackage{cite}
%\usepackage[dvips]{graphicx}
%\usepackage[dvipdfm]{graphicx}
\usepackage{wrapfig}

\usepackage{color}
\usepackage{comment}
\usepackage{url,rotating}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage[utf8]{inputenc}
\usepackage{boxedminipage}
\usepackage[centertags]{amsmath}
\usepackage{longtable} 
\usepackage{amsfonts}
\usepackage{multirow}


\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{array,multirow,makecell}
\setcellgapes{1pt}
\makegapedcells


\usepackage{amssymb}
\usepackage{amsthm}

\usepackage{newlfont}
\usepackage{float}
\usepackage{bbm}
%\usepackage[pdftex]{graphicx}
%\usepackage{epstopdf}
%\usepackage{pdfpages}
%\usepackage{natbib}
\usepackage{tikz} 
\usepackage{amsmath,amsfonts,amssymb,amsthm,epsfig,epstopdf,titling,url,array}
\theoremstyle{plain}
\newtheorem{thm}{Théorème}[chapter]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem*{cor}{Corollary}

\theoremstyle{definition}
\newtheorem{defn}{Définition}[chapter]
\newtheorem{conj}{Conjecture}
%\newtheorem{exmp}{Example}[section]
\theoremstyle{remarque}
\newtheorem{rem}{Remarque}[chapter]


\usepackage{hyperref}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setlength{\parindent}{0.75cm}

%\bibliographystyle{plain}
\begin{document}

\tableofcontents


    \Abreviations{Ab}
    \input{Abreviations}
%   \Notations{Notations}
%   \input{Chp0//Notation.tex}
    \listoffigures
    \Introduction{Liste des Figures}
    %fancyhead[R]{\small Liste des Figures}
    \listoftables
    \Introduction{Liste des Tableaux}
    \fancyhead[R]{\small Liste des Tableaux}
    \mainmatter

    %\newpage
    %%%%%%--------------------------------------- Introduction-------------------------- 


%   \include{chap2}
%   \include{chap3}
%   \include{chap4}
%   \include{chap5}
    \Introduction{Introduction} 
\end{document}

Best Answer

I reorganised and spring-cleaned your preamble. Avoid loading the same packages multiple times, and note that:

  • aeguill has been obsolete for more tha 20 years.
  • You should load inputenc with option utf8, as all modern editors and all modern O.S.s understand Unicode.
  • Needless to load color if you load xcolor, nor url as you load hyperref.
  • The subfigure package is obsolete and no more maintained. The subfigure environment, from subcaption is recommended instead.
  • epsfig is obsolete; graphicx does the job.

    \documentclass[table, french]{book}%[rennes1]{phd}
    \usepackage[utf8]{inputenc}
    \usepackage[T1]{fontenc}
    \usepackage{babel}
    \usepackage{lmodern}
    \usepackage{newlfont}
    \usepackage{amsfonts, amssymb, bbm}
    \usepackage[left=2cm,right=3cm, vmargin=2cm]{geometry}
    \usepackage{comment}
    \usepackage{fancyhdr}
    \setlength{\parindent}{0.75cm}
    \usepackage{indentfirst}
    \usepackage{setspace}
    \usepackage{titling}
    \usepackage{xcolor}
    \usepackage{rotating}
    \usepackage{graphicx}
    \usepackage{epstopdf}
    % % % % % % % % % % % % % %
    \usepackage{array,multirow,makecell}
    \setcellgapes{1pt}
    \makegapedcells
    \usepackage{supertabular, longtable}
    \usepackage{wrapfig}
    \usepackage{float}
    \usepackage{caption, subcaption}
    % % % % % % % % % % % % % % % % %
    \usepackage{enumitem}
    % % % % % % % % % % % % % % % % % %
    \usepackage{boxedminipage2e}
    \usepackage[centertags]{mathtools}
    \usepackage{amsthm}
    % % % % % % % % % % % % % % % % % %
    \usepackage{pdfpages}
    \usepackage{cite, notoccite}
    
    \usepackage{tikz}
    \theoremstyle{plain}
    \newtheorem{thm}{Théorème}[chapter]
    \newtheorem{lem}[thm]{Lemma}
    \newtheorem{prop}[thm]{Proposition}
    \newtheorem*{cor}{Corollary}
    
    \theoremstyle{definition}
    \newtheorem{defn}{Définition}[chapter]
    \newtheorem{conj}{Conjecture}
    %\newtheorem{exmp}{Example}[section]
    \theoremstyle{remarque}
    \newtheorem{rem}{Remarque}[chapter]
    
    \usepackage{hyperref}
    %\bibliographystyle{plain}
    
    \begin{document}