I am using the following code in latex (llncs template) to write a paper. I am using xpretocmd to avoid conflicts between arabtex and algorithmic but the problem is that once I solved this conflict by adding xpretocmd I lost section numbering.
\documentclass[envcountsect]{llncs}
\usepackage{verbatim}
\usepackage[pdftex]{graphicx}
\usepackage{graphicx}
\usepackage{pdfpages}
\usepackage{float}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{xpatch}
\xpretocmd{\algorithmic}{\let\AND\relax\let\OR\relax\let\NOT\relax}{}{}
\usepackage{arabtex}
\usepackage{utf8}
\setcode{utf8}
\renewcommand{\thesection}{\arabic{section}}
\begin{document}
...