$\\displaystyle{$1}$
"); st = st.replace(/\\begin{(theorem|lemma|proposition|corollary)}((.|\n)*?)\\end{\1}/g,function(r,s,t){tcnt++; return ""+s.charAt(0).toUpperCase()+s.slice(1)+" "+tcnt+". "+t.replace(/^\s*<\/?\w+\/?>|\s*<\/?\w+\/?>$/g,"")+""}); st = st.replace(/\\begin{(definition|example|remark|problem|exercise|conjecture|solution)}((.|\n)*?)\\end{\1}/g,function(r,s,t){dcnt++; return ""+s.charAt(0).toUpperCase()+s.slice(1)+" "+dcnt+". "+t.replace(/^\s*<\/?\w+\/?>|\s*<\/?\w+\/?>$/g,"")}); st = st.replace(/\\begin{proof}((.|\n)*?)\\end{proof}/g,function(s,t){return "Proof: "+t.replace(/^\s*<\/?\w+\/?>|\s*<\/?\w+\/?>$/g,"")+" □"}); st = st.replace(/\\emph{(.*?)}/g,"$1"); st = st.replace(/\\textbf{(.*?)}/g,"$1"); st = st.replace(/\\cite{(.*?)}/g,"[$1]"); st = st.replace(/\\chapter{(.*?)}/g,""); st = st.replace(/\\bigskip/g,"
"); st = st.replace(/\\medskip/g,"
"); st = st.replace(/\\smallskip/g,"
"); st = st.replace(/\\begin{center}((.|\n)*?)\\end{center}/g,"