aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Portales-Oliva <f.portales.oliva@gmail.com>2019-11-11 12:18:26 -0300
committerFelipe Portales-Oliva <f.portales.oliva@gmail.com>2019-11-11 12:18:26 -0300
commitd147a0401e896dec5bae5c60d5c25c8bf8147938 (patch)
tree4feed1f997c7a81a7a717e8b24f27f71660751a0
parent7c36bf48a02ba35e226a081dac660fc8b31b87d3 (diff)
Added a line that ensures the title is at the top of the page
-rw-r--r--fphw.cls17
1 files changed, 9 insertions, 8 deletions
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 <https://unlicense.org>
@@ -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}