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?
Best Answer
The immediate problem, i.e., the missing summation symbol, can be rectified by not loading the
newtxmath
package. Thenewtxmath
package is in serious conflict with the subsequently-loadedmathpazo
package.If you don't know what you're doing in terms of text and math fonts and, in particular, if you don't have to use a Palatino-type font, you could skip loading the
mathpazo
package (and thenewtxmath
package too!). That leaves the instruction\usepackage{lmodern}
in your preamble. This instruction loads theLatin Modern
text and math font family. Use it unless you really need to use some other font family. (If you were to omit the\usepackage{lmodern}
instruction as well, you'd get the default font family, which is Computer Modern. Unless a document contains a lot of accented characters, most people would be hard-pressed to tell the difference between Computer Modern and Latin Modern.)If you do need to use a Palatino clone, don't load the
lmodern
package. And, do yourself a favor and don't load the nearly-obsoletemathpazo
package. Instead, load thenewpxtext
andnewpxmath
packages.As I noted in my earlier comments, there are a whole host of other, nearly equally serious, deficiencies with the preamble of your document. Sooner or later -- probably sooner! -- these deficiencies are going to cause further problems. Do fix these deficiencies, and do take the time to learn the basics of LaTeX and to figure out what various packages actually do. Loading a jumble of packages (maybe in the vain hope of "covering all the bases"?) is not innocuous. Instead, it's asking for trouble and, at the very least, lots of wasted time while you track down the causes of various cryptic error messages.