%%myWEPSchapsec.tex

\usepackage[explicit,compact]{titlesec}
\titleformat{\chapter}[block] % Change to "X. Chapter name" format
    {\bfseries\huge}{\filright\huge\thechapter.}{1ex}{\huge\filright #1}

% Defines \chaptermark to include the chapter number in the heading
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}