% This is file mysectsty.sty
% Redefinition of several commands in book.cls related to chapter and
% section headings, as requested by user Arya in the LaTeX Community
% Forum. Code contributed by user Juanjo.
% See http://latex-community.org/forum/viewtopic.php?f=47&t=22734
\NeedsTeXFormat{LaTeX2e}[1998/06/01]
\ProvidesPackage{mysectsy}[2013/03/04, v 0.1]
\typeout{}
\typeout{Loading mysectsty...}
\typeout{}
\def\@makechapterhead#1{%
% \vspace*{50\p@}% <--- Original
\vspace*{\dimexpr 50\p@-0.5cm}% <--- New
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
% \huge\bfseries \@chapapp\space \thechapter %<--- Original
\centering\Large\scshape % <--- New
\@chapapp\space \thechapter % <--- New
\par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
% \Huge \bfseries #1\par\nobreak %<--- Original
\centering\Large\scshape #1\par\nobreak % <--- New
\vskip 40\p@
}}
\def\@makeschapterhead#1{%
% \vspace*{50\p@}% <--- Original
\vspace*{\dimexpr 50\p@-0.5cm}% <--- New
{\parindent \z@ \raggedright
\normalfont
\interlinepenalty\@M
% \Huge \bfseries #1\par\nobreak %<--- Original
\centering\Large\scshape #1\par\nobreak % <--- New
\vskip 40\p@
}}
% \newcommand\section{\@startsection {section}{1}{\z@}%<--- Original