I am facing two issues: First issue is the index does not show in the table of content and the second issue is that the bibliography ( named as References) shows in uppercase. I meant to write the whole coding below hoping it helps finding the issue.
Thanks to you all.
\documentclass[12pt, a4paper]{book}\usepackage[nottoc]{tocbibind}\usepackage{etoolbox}\makeatletter\patchcmd{\ps@headings}{\MakeUppercase}{}{}{}\patchcmd{\ps@headings}{\MakeUppercase}{}{}{}\patchcmd{\ps@headings}{\MakeUppercase}{}{}{}\patchcmd{\ps@headings}{\@chapapp\ \thechapter. \ }{\thechapter\ }{}{}\patchcmd{\ps@headings}{\@chapapp\ \thechapter. \ }{\thechapter\ }{}{}\patchcmd{\ps@headings}{\thesection. \ }{\thesection\ }{}{}\patchcmd{\tableofcontents}{\MakeUppercase}{}{}{}\patchcmd{\tableofcontents}{\MakeUppercase}{}{}{}\patchcmd{\thebibliography}{\MakeUppercase}{}{}{}\patchcmd{\thebibliography}{\MakeUppercase}{}{}{}\patchcmd{\theindex}{\MakeUppercase}{}{}{}\patchcmd{\theindex}{\MakeUppercase}{}{}{}\patchcmd{\ps@headings}{\slshape}{}{}{}\patchcmd{\ps@headings}{\slshape}{}{}{}\patchcmd{\ps@headings}{\slshape}{}{}{}\makeatother\pagestyle{headings}\setcounter{secnumdepth}{4}\setcounter{tocdepth}{4}\textwidth= 6.4in\textheight= 8.0in\topmargin = -18pt\evensidemargin=0pt\oddsidemargin=0pt\headsep=20pt\parskip=10pt\usepackage{amssymb,latexsym} \usepackage{amsmath}\usepackage{relsize}\usepackage{longtable}\usepackage{cancel}\usepackage{imakeidx}\usepackage{booktabs}\usepackage{array}\makeindex\usepackage[colorlinks=true,breaklinks]{hyperref}\usepackage{xcolor}\definecolor{c1}{rgb}{0,0,1}\definecolor{c2}{rgb}{0,0.3,0.9}\definecolor{c3}{rgb}{0.3,0,0.9}\hypersetup{linkcolor={c1},citecolor={c2},urlcolor={c3}}\begin{dosument} \index{Apple}\index{Apricot} \index{Banana}\index{Cherry}\frontmatter\tableofcontents\chapter{Preface}\chapter{Notations}\mainmatter\chapter{One}\chapter{Two}\renewcommand{\bibname}{References}\begin{thebibliography}{}\end{thebibliography}\printindex\end{document}
Image may be NSFW.
Clik here to view.