I type a series of mathematical equations in Latex, but output is wrongly displayed (They are highlighted in yellow), how could I fix this problem.
The packages used:
\documentclass[letter,dvips,11pt]{article}
\usepackage{mathrsfs}
\usepackage{oldlfont,epsfig,latexsym}
\usepackage{amsmath}
\usepackage{amsfonts,amssymb,amscd,color}
\usepackage{bm}
\usepackage[flushleft]{threeparttable}
\usepackage{array,booktabs,makecell}
\usepackage{standalone}
\usepackage{tikz}
\usepackage{verbatim}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage[justification=centering]{caption}
and the corresponding codes in yellow
\begin{aligned}
\Omega^{i}_{k\mid {k}} &= \Omega^{i}_{k\mid {k-1}}+ |\mathcal{N}|\sum_{j\in \mathcal{N}} \pi_{L,k}^{i,j} (H_k^j)^T (R_k^j)^{-1}H_k^j \notag\\
q_{k\mid {k}}^i &= q^{i}_{k\mid {k-1}}+ |\mathcal{N}|\sum_{j\in \mathcal{N}} \pi_{L,k}^{i,j} (H_k^j)^T (R_k^j)^{-1} z_k^j
\end{aligned}
oldlfont
package. It seems to turn\mathcal
into a switch like\small
and not into a macro like\emph{...}
. Why do you load that package? From what I could find on the internet, this package is for legacy documents for backward compatibility. – moewe Sep 27 '15 at 12:46oldlfont
which is the source of the problem, alsoepsfig
andlatexsym
are obsolete; the former should be replaced bygraphicx
, the latter removed altogether (amssymb
replaces it). – egreg Sep 27 '15 at 12:57amssymb
internally loadsamsfonts
(see What does each AMS package do?), so you can drop the call toamsfonts
. – moewe Sep 27 '15 at 13:05