diff --git a/fphw.cls b/fphw.cls index 88bf1b6..70f832b 100644 --- a/fphw.cls +++ b/fphw.cls @@ -1,8 +1,8 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Felipe Portales' HomeWorks % Maintainer: Felipe Portales-Oliva (f.portales.oliva@gmail.com) -% -% Document class to produce simple yet stylish homework submissions +% +% Document class to produce simple yet stylish homework submissions % % This package is public domain, according to : % The Unlicense @@ -11,7 +11,7 @@ %%% Identification \NeedsTeXFormat{LaTeX2e} % we need to have LaTeX2e for this to compile -\ProvidesClass{fphw}[2019/03/19] % fpshw is the name we need to provide to +\ProvidesClass{fphw}[2019/03/19] % fpshw is the name we need to provide to % the documentclass command on the .tex file %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -67,14 +67,14 @@ %%%% Here we do more declarations and call other files -% we need to load +% we need to load \LoadClass{article} % we will modify sections, subsections and sub subsections \RequirePackage{titlesec} -% Modification of section -\titleformat{\section}[block]{\normalsize\bfseries\filcenter}{\thesection.}{.3cm}{} +% Modification of section +\titleformat{\section}[block]{\normalsize\bfseries\filcenter}{\thesection.}{.3cm}{} % modification of subsection and sub sub section \titleformat{\subsection}[runin]{\bfseries}{ \thesubsection.} @@ -90,7 +90,7 @@ \fancyhead{} \fancyfoot{} \pagestyle{fancy} -\renewcommand{\headrulewidth}{0.4pt} % we want rules +\renewcommand{\headrulewidth}{0.4pt} % we want rules \renewcommand{\footrulewidth}{0.4pt} \fancyhead[RO] {\footnotesize\thepage} \fancyhead[LO] {\footnotesize{\ifx\classlocal\undefined{}\else\itshape\classlocal{} --{} \fi}\makeatletter\@title\makeatother } @@ -98,6 +98,7 @@ % New title style for the document \renewcommand{\maketitle}{% + \newpage % ensure this is in a new page \thispagestyle{plain} \begin{center} \ifx\instituteloc\undefined{}\else{\scshape \instituteloc} \\[10pt] \fi @@ -109,7 +110,7 @@ \hrule \vspace{10pt} \ifx\classlocal\undefined{}\else\CourseLang: {\itshape \classlocal{} \ifx\professorloc\undefined{}\else{-- }\fi }\fi - \ifx\professorloc\undefined{}\else{\ProfessorLang: {\itshape\professorloc}}\fi + \ifx\professorloc\undefined{}\else{\ProfessorLang: {\itshape\professorloc}}\fi \\ \DateLang: {\itshape\@date} \vspace{20pt}