LaTeX error: Command \headrule already defined.
LaTeX error: Command \footrule already defined
This is the error description:
\newcommand\headrule{\setheadrule{.4\p@}}
This is the preamble:
Code: Select all
\date{}
\usepackage{fancyhdr}
\usepackage{ifthen}
\usepackage{graphicx}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{ccaption}
\usepackage[labelsep=endash,font={small,it},labelformat=simple,labelfont=bf,figurewithin=none,justification=centering]{caption}
\usepackage{textcomp}
\usepackage{nccparskip}
\usepackage{titlesec,titletoc,titleps}
\titleformat{\chapter}[display]
{\Large\bfseries\fillast\vspace{-25pt}}
{\normalfont\bfseries\chaptername\hspace{5pt}\thechapter}
{.5ex minus .1ex}
{\Large}[\vspace{-15pt}]
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\vspace*{\fill}
\thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother