Sorry if I'm not posting in the right place

I'm trying to use "definitions" in my maths Latex file, but it's not working.
Here is the code I'm putting in the beginning of the Tex file:
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath,amssymb,graphicx}
\usepackage{psfrag}
\usepackage{color}
\usepackage[mathscr]{eucal}
\newcommand\sectionbreak{\clearpage}
\numberwithin{equation}{section}
\usepackage{fullpage}
% Caligraphic letters
\newcommand{\cA}{{\cal A}}
\newcommand{\cB}{{\cal B}}
\newcommand{\cC}{{\cal C}}
\newcommand{\cE}{{\cal E}}
\newcommand{\cF}{{\cal F}}
\newcommand{\cH}{{\cal H}}
\newcommand{\cI}{{\cal I}}
\newcommand{\cP}{{\cal P}}
\newcommand{\cR}{{\cal R}}
\newcommand{\cS}{{\cal S}}
\newcommand{\cT}{{\cal T}}
\newcommand{\cK}{{\cal K}}
\newcommand{\cN}{{\cal N}}
\newcommand{\cD}{{\cal D}}
\newcommand{\cV}{{\cal V}}
\newcommand{\cW}{{\cal W}}
\newcommand{\cX}{{\cal X}}
\newcommand{\cU}{{\cal U}}
% Bold letters
\newcommand{\bi}{{\mbox{\boldmath$i$}}}
\newcommand{\bj}{{\mbox{\boldmath$j$}}}
\newcommand{\bk}{{\mbox{\boldmath$k$}}}
\newcommand{\bK}{{\mbox{\boldmath$K$}}}
\newcommand{\bl}{{\mbox{\boldmath$l$}}}
\newcommand{\bm}{{\mbox{\boldmath$m$}}}
\newcommand{\bB}{{\mbox{\boldmath$B$}}}
\newcommand{\bE}{{\mbox{\boldmath$E$}}}
\newcommand{\bF}{{\mbox{\boldmath$F$}}}
\newcommand{\bG}{{\mbox{\boldmath$G$}}}
\newcommand{\bR}{{\mbox{\boldmath$R$}}}
\newcommand{\bV}{{\mbox{\boldmath$V$}}}
\newcommand{\bU}{{\mbox{\boldmath$U$}}}
\newcommand{\bp}{{\mbox{\boldmath $p$}}}
\newcommand{\bq}{{\mbox{\boldmath $q$}}}
\newcommand{\bT}{{\mbox{\boldmath $T$}}}
\newcommand{\bu}{{\mbox{\boldmath $u$}}}
\newcommand{\bw}{{\mbox{\boldmath $w$}}}
\newcommand{\bx}{{\mbox{\boldmath $x$}}}
\newcommand{\bd}{{\mbox{\boldmath $d$}}}
\newcommand{\br}{{\mbox{\boldmath $r$}}}
\newcommand{\bg}{{\mbox{\boldmath $g$}}}
\newcommand{\bz}{{\mbox{\boldmath $z$}}}
\newcommand{\bc}{{\mbox{\boldmath $c$}}}
\newcommand{\bb}{{\mbox{\boldmath $b$}}}
\newcommand{\ba}{{\mbox{\boldmath $a$}}}
\newcommand{\bh}{{\mbox{\boldmath $h$}}}
\newcommand{\be}{{\mbox{\boldmath $e$}}}
\newcommand{\bff}{{\mbox{\boldmath $f$}}}
\newcommand{\bv}{{\mbox{\boldmath $v$}}}
\newcommand{\by}{{\mbox{\boldmath $y$}}}
\newcommand{\byy}{{\mbox{\boldmath $\widetilde{\by}$}}}
\newcommand{\bn}{{\mbox{\boldmath $n$}}}
\newcommand{\bzero}{{\mbox{\boldmath $0$}}}
\newcommand{\bone}{{\mbox{\boldmath $1$}}}
\newcommand{\bdS}{{\mbox{\boldmath $dS$}}}
\newcommand{\bPhi}{\boldsymbol{\Phi}}
\newcommand{\sN}{\mathscr{N}}
\newcommand{\sT}{\mathscr{T}}
\newcommand{\grad}{\mathrm{grad}}
\newcommand{\Div}{\mathrm{div}}
\newcommand{\curl}{\mathrm{curl}}
\newcommand{\DIY}{\fbox{\bf DIY}\ \ }
\newcommand{\noi}{\noindent}
\newcommand{\dint}{\int \!\!\! \int}
\newcommand{\trint}{\int \!\!\! \int \!\!\! \int}
\newcommand{\cL}{{\cal L}}
\newcommand*{\R}{\mathbb{R}}
\newcommand*{\C}{\mathbb{C}}
\newcommand*{\Z}{\mathbb{Z}}
\newcommand*{\N}{\mathbb{N}}
\newcommand*{\Q}{\mathbb{Q}}
\newcommand\relphantom[2]{\mathrel{\phantom{#1}}}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newenvironment{proof}[1][Proof]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{definition}[1][Definition]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{example}[1][Example]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{remark}[1][Remark]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newcommand{\qed}{\nobreak \ifvmode \relax \else
\ifdim\lastskip<1.5em \hskip-\lastskip
\hskip1.5em plus0em minus0.5em \fi \nobreak
\vrule height0.75em width0.5em depth0.25em\fi}
\usepackage{mathrsfs}
\usepackage{xkeyval}
Thanks!
