I am writing an article and I need to write the fundamental group. For that we use $\pi_1\left(X,x_0\right)$.
However I am arriving at the following error:
Use of \pi doesn't match its definition.
l.113 This shall be denoted by $ \pi_
{1}(X,x_0)$ or simply $ \pi_1\left(X\right)$.
My Code is given below.
\documentclass[psamsfonts]{amsart}
%-------Packages---------
\usepackage{amssymb,amsfonts}
\usepackage[all,arc]{xy}
\usepackage{enumerate}
\usepackage{mathrsfs}
\usepackage{amsmath}
%\usepackage{mathtools}
%\usepackage[mtpscr]{mtpro2}
\makeatletter
\let\c@equation\c@thm
\makeatother
\DeclareMathOperator\pione{\pi_1}
\DeclareMathOperator{\pi1et}{\pi^{\'et}_1}
\newcommand {\sub}{\mbox{SB}}
\begin{document}
Given a "nice" topological space $\left(X, x_0\right)$, we define the fundamental group to be $\left[S^1, (X, x_0)\right]_{\star}$.
This shall be denoted by $ \pi_{1}(X,x_0)$ or simply $ \left(X\right)$.
\end{document}
\leftand\rightaren't needed, the math expression looks to be input correctly. all i can think of is that somehow,\pihas been redefined from its basic meaning. please provide a small compilable example (beginning with\documentclassand ending with\end{document}) that results in the error you have quoted. then people here will have the information they need to experiment. – barbara beeton Jul 28 '17 at 20:07