Command `\lneq' already defined. ...mbol{\lneq} {\mathrel}{AMSb}{"0C}

Herbert Voss Herbert.Voss at fu-berlin.de
Sat May 16 20:03:59 CEST 2020



Am 16.05.20 um 17:30 schrieb political science:
> Here is a link to thesis
> https://github.com/kiotie32/thesissokoeradoera
> I am compiling it on Miktex 2.9
> I get error in amssymb.sty
> line 183 Command `\lneq' already defined. ...mbol{\lneq} 
> {\mathrel}{AMSb}{"0C}
> line 441 Command \proof already defined. }
> line 385 File ended while scanning use of \next. \input{texfiles/chapter4}
> Emergency stop.
>
> I am not an expert of latex just a basic read write syntax I read and 
> wrote and wrote something.Just a basic understanding I have.
> I am not able to understand above errors why are they coming.

load the ams package _before_ all other math related packages.

Herbert

\documentclass[oneside,mtp]{iiitg}
\let\mydegree\degree
\let\degree\relax

\usepackage{geometry}
\usepackage{fancyhdr}
\fancyhead{}
\fancyhead[LO]{\slshape \rightmark}
\fancyhead[RO,LE]{\textbf{\thepage}}
\fancyhead[RE]{\slshape \leftmark}
\fancyfoot{}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername \ \thechapter \ \ 
#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection \ \ #1}}

\usepackage{amsmath}%%%%%%%%%%%%%%%%%
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}%%%%%%%%%%%%%%%%%%

\usepackage{makecell,tabularx} % for 'tabularx' env. and 'X' col. type
\usepackage{longtable}
\usepackage{emptypage}
\usepackage{changepage,ifthen}
\addtocounter{secnumdepth}{2}
\usepackage{pdfpages}
\usepackage{epsfig}
\usepackage{geometry}
\usepackage{mathrsfs}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{xltabular}

\usepackage{float}
\usepackage[hyphens]{url}
\urlstyle{rm}
\usepackage{arydshln}
\algtext*{EndIf}

\newcommand{\kthead}[1]{\multicolumn{1}{c}{\bfseries #1}}
\usepackage{program}
\usepackage{comment}
\usepackage{epsfig}
\usepackage{epstopdf}
\usepackage{enumerate}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{subfig}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{times}
\usepackage{lscape}
\usepackage[bottom]{footmisc}
\usepackage{booktabs}
\usepackage{colortbl}
\usepackage{threeparttable}
\usepackage{algorithm}

\usepackage{algorithmicx}

\usepackage{algpseudocode}
\usepackage{epstopdf}
\usepackage{gensymb}

\newcommand {\g}[1]{\textcolor[gray]{0.6} {#1}}
\newcommand{\todo}[1]{\textcolor{red}{TODO: #1}\\}
\newcommand{\done}[1]{\textcolor{blue}{Tried to address. #1}\\}

% these are for the algorithms style file, for writing algorithms
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
%\renewcommand{\algorithmiccomment}[1]{\begin{small}/* #1 */\end{small}}
\renewcommand{\algorithmiccomment}[1]{/* #1 */}

\usepackage{caption}
\DeclareCaptionFormat{suggested}{\singlespace \textbf{#1}\textbf{#2}#3 
\doublespace}
\captionsetup{format=suggested}

\usepackage{cite}
\usepackage{makeidx}
\makeindex

\usepackage[hyphens]{url}
\urlstyle{rm}
\usepackage[bookmarksnumbered,pdfpagelabels=true,plainpages=false,colorlinks=true,
linkcolor=black,citecolor=black,urlcolor=black]{hyperref}
\usepackage[hyphenbreaks]{breakurl}

\newcommand{\bigsize}{\fontsize{14pt}{20pt}\selectfont}
[...]


More information about the texhax mailing list.