Added fancyhdr support in latex.