As shown below, the summation is visible in sublime text.

The code for the equation is
\begin{equation}\label{cepl}
L = \frac{ \displaystyle \sum\limits_{x=1}^N {T_{d}^{x} - {T_{i}^{x} }} } {N}
\end{equation}
However, in the actual file, it's not.
The output is same irrespective of \displaystyle. What am I doing wrong?
The contents of my packages file are
\documentclass[letterpaper,12pt,titlepage,final]{report}
\usepackage{amsmath} % for eqautions
\newcommand{\bmmax}{0}
\newcommand{\hmmax}{0}
\renewcommand{\baselinestretch}{1.5} % this is the default line space setting
\usepackage{xcolor}
\usepackage[norelsize, linesnumbered, ruled, lined, boxed, commentsnumbered,algochapter]{algorithm2e}
% \newcommand\mycommfont[1]{\footnotesize\ttfamily\textcolor{blue}{#1}}
\newcommand\mycommfont[1]{\footnotesize\ttfamily\textcolor{carmine}{#1}}
\SetCommentSty{mycommfont}
\SetKwComment{Comment}{$\triangleright$\ }{}
\usepackage{listings}
\usepackage{blindtext}
\usepackage{float}
\usepackage{titlesec}
\usepackage{newtxmath}
\usepackage{bm}
\usepackage{blindtext}
\usepackage{array}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\SetKwRepeat{Do}{do}{while}%
\usepackage[skip=3pt]{caption} % example skip set to 2pt
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{algorithmic}
\usepackage{titlesec}
\usepackage[symbols,nogroupskip]{glossaries-extra}
\usepackage{nomencl}
\makenomenclature
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
\newglossarystyle{modsuper}{%
\glossarystyle{super}%
\renewcommand{\glsgroupskip}{}
}
% \titlespacing*{<command>}{<left>}{<before-sep>}{<after-sep>} --this is for managign title spacing
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{1pt}{10pt}
\titlespacing*{\section}{0pt}{3pt}{3pt}
\titlespacing*{\subsection}{0pt}{3pt}{3pt}
\newcommand{\package}[1]{\textbf{#1}} % package names in bold text
\newcommand{\cmmd}[1]{\textbackslash\texttt{#1}} % command name in tt font
\newcommand{\href}[1]{#1} % does nothing, but defines the command so the
\usepackage[toc,page]{appendix}
\usepackage{amsmath,amssymb,amstext} % Lots of math symbols and environments
\usepackage[pdftex]{graphicx} % For including graphics N.B. pdftex graphics driver
\usepackage[export]{adjustbox}
% only for \lipsum blind text
\usepackage{lipsum}
\usepackage[pdftex,pagebackref=false]{hyperref} % with basic options
\definecolor{carmine}{rgb}{0.59, 0.0, 0.09}
\definecolor{gren}{rgb}{34, 139, 34}
\hypersetup{
plainpages=false, % needed if Roman numbers in frontpages
unicode=false, % non-Latin characters in Acrobat’s bookmarks
pdftoolbar=true, % show Acrobat’s toolbar?
pdfmenubar=true, % show Acrobat’s menu?
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits the width of the page to the window
pdftitle={Carleton\ LaTeX\ Thesis\ Template}, % title: CHANGE THIS TEXT!
pdfauthor={Amarjit Singh}, % author: CHANGE THIS TEXT! and uncomment this
pdfnewwindow=true, % links in new window
colorlinks=true, % false: boxed links; true: colored links
% linkcolor=carmine, % color of internal links
linkcolor=black, % color of internal links
citecolor=black, % color of links to bibliography
filecolor=black, % color of file links
urlcolor=black % color of external links
}
% filecolor=magenta, % color of file links
\setlength{\marginparwidth}{0pt}
\setlength{\marginparsep}{0pt} % width of space between body text and margin notes
\setlength{\evensidemargin}{0.1in}
\setlength{\oddsidemargin}{0.1in}
\setlength{\textwidth}{6.5in}
\raggedbottom
\usepackage[noabbrev,nameinlink, capitalise]{cleveref}
\usepackage{makecell} % for giving center align to headings
\usepackage{array}
\usepackage{textcomp} % used for Apostophe
\usepackage{wrapfig}
\usepackage{subfig}
\usepackage{blindtext}% for list of publication , for not to move biblo in new page
\usepackage{etoolbox}%
\usepackage[utf8]{inputenc}
\usepackage{amsmath,tabularx}
\usepackage{siunitx}
\usepackage{lmodern}
\RequirePackage{fix-cm}
\usepackage{silence}
% removing the paragraph indentation - tell it to jazz as well
\newlength\tindent
\setlength{\tindent}{\parindent}
\setlength{\parindent}{0pt}
\renewcommand{\indent}{\hspace*{\tindent}}
\usepackage{caption}
\urlstyle{same} %for same url instead fo monospace
\newcommand*\rot{\rotatebox{90}} % for rotating the text in table
\usepackage{xcolor,pifont}
\newcommand*\colourcheck[1]{%
\expandafter\newcommand\csname #1check\endcsname{\textcolor{#1}{\ding{51}}}%
}
\colourcheck{blue}
\colourcheck{green}
\colourcheck{gren}
\usepackage{xcolor,pifont}
\newcommand*\colourmark[1]{%
\expandafter\newcommand\csname #1mark\endcsname{\textcolor{#1}{\ding{55}}}%
}
\colourmark{red}
\colourmark{green}
% \newcommand{\cmark}{\ding{51}}%
\newcommand{\xmark}{\ding{55}}%
\usepackage{notoccite} %makes sure that the refs in caption are not cited at first, means the order is maintained.
\usepackage{color}
\usepackage{eso-pic}
\definecolor{lightgray}{gray}{.80}
\usepackage{wallpaper}
\usepackage[export]{adjustbox} % for set image baseline to its center
\usepackage{booktabs}
% it si used for coading type formatting
\lstset{basicstyle=\rmfamily,
showstringspaces=false,
commentstyle=\color{red},
keywordstyle=\color{blue}
}
% used for math bold
\usepackage{amsmath}
\usepackage{bm}
% This makes all te math to bold in subsection.
\makeatletter
\g@addto@macro\bfseries{\boldmath}
\makeatother
% for coloring tables
\usepackage{xcolor,colortbl}
\definecolor{Gray}{gray}{0.85}
\definecolor{LightCyan}{rgb}{0.88,1,1}
\newcolumntype{x}{>{\columncolor{Gray}}l}
\newcolumntype{y}{>{\columncolor{Gray}}c}
\newcolumntype{z}{>{\columncolor{Gray}}r}
\usepackage{enumitem} % used to put a,b,c in enumerate
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
% --- this is to desplay only name of chapter on top---
% \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\fancyhf{}
\fancyhead[RO]{\thepage}
\fancyhead[LO]{\nouppercase{\leftmark}}
\usepackage[export]{adjustbox}
\usepackage{tabularx,booktabs,caption,makecell}
\usepackage{mathpazo}
Please let me know if something else is required?


hyperrefandcleverefmust be loaded last), and some packages are loaded incorrectly (e.g., do replace\usepackage{xcolor,colortbl}with\usepackage[table]{xcolor}). And some packages are in unresolvable conflict with each other. E.g., why do you load bothmathpazo(a Palatino clone) andnewtxmath(a Times Roman clone)? BTW, since you loadnewtxmath, why don't you also loadnewtxtext? – Mico Jul 01 '18 at 08:09pdftexwhile loadinggraphicxandhyperref. – Mico Jul 01 '18 at 08:13newtxmath. You can write it as an answer. Much thanks. – Amarjit Dhillon Jul 01 '18 at 08:14amsmathpackage. Loading packages more than once is not always innocuous... – Mico Jul 01 '18 at 08:47