I do not know why, but it seem that the tikz and pstriks packages are in conflict. Using both
\usepackage{tikz}
\uspepackage[usenames,dvipsnames]{pstricks}
When compiling, it returns me the following error:
!No room for a new \dimen
I list below the packages that I used:
\documentclass[a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{color}
\usepackage{epsfig}
\usepackage{booktabs}
\usepackage{MnSymbol}
\usepackage{array}
\usepackage{makeidx}
\usepackage[all,dvips,graph]{xy}
\usepackage{hyperref}
\usepackage{tikz}
\usepackage[usenames,dvipsnames]{pstricks}
Note that without one of tikz or pstricks, it will compile.
color(TiKZ loadsxcolor). Consider usingutf8and UTF8 encoding. – cfr Dec 19 '14 at 23:25