aboutsummaryrefslogtreecommitdiff
path: root/fphw.cls
diff options
context:
space:
mode:
Diffstat (limited to 'fphw.cls')
-rw-r--r--fphw.cls13
1 files changed, 7 insertions, 6 deletions
diff --git a/fphw.cls b/fphw.cls
index 1eb18e9..ad2feb1 100644
--- a/fphw.cls
+++ b/fphw.cls
@@ -17,11 +17,11 @@
%%%% These are some commands where we declare new commands for the class
% We define the macro for the name of the professor
-\newcommand{\professor}[1]{ \renewcommand{\professor}{#1} }
+\newcommand{\professor}[1]{ \newcommand{\professorloc}{#1} }
% We define the macro for the name of the course
-\newcommand{\class}[1]{ \renewcommand{\class}{#1} }
+\newcommand{\class}[1]{ \newcommand{\classlocal}{#1} }
% We define the macro for the name of the institution
-\newcommand{\institute}[1]{ \renewcommand{\institute}{#1} }
+\newcommand{\institute}[1]{ \newcommand{\instituteloc}{#1} }
%these are auxiliary definitions used in the title section
\newcommand{\CourseLang}{Course}
@@ -90,14 +90,14 @@
\renewcommand{\headrulewidth}{0.4pt} % we want rules
\renewcommand{\footrulewidth}{0.4pt}
\fancyhead[RO] {\footnotesize\thepage}
-\fancyhead[LO] {\footnotesize\itshape\class{} -- \makeatletter\@title\makeatother }
+\fancyhead[LO] {\footnotesize{\ifx\classlocal\undefined{}\else\itshape\classlocal{} --{} \fi}\makeatletter\@title\makeatother }
\fancyfoot[RO] {\footnotesize\itshape\makeatletter\@author\makeatother}
% New title style for the document
\renewcommand{\maketitle}{%
\thispagestyle{plain}
\begin{center}
- {\scshape \institute} \\[10pt]
+ \ifx\instituteloc\undefined{}\else{\scshape \instituteloc} \\[10pt] \fi
\hrule
\vspace{10pt}
{\LARGE \bfseries \@title} \\[5pt]
@@ -105,7 +105,8 @@
\vspace{8pt}
\hrule
\vspace{10pt}
- \CourseLang: {\itshape\class} -- \ProfessorLang: {\itshape\professor}
+ \ifx\classlocal\undefined{}\else\CourseLang: {\itshape \classlocal{ } \ifx\professorloc\undefined{}\else{-- }\fi }\fi
+ \ifx\professorloc\undefined{}\else{\ProfessorLang: {\itshape\professorloc}}\fi
\\
\DateLang: {\itshape\@date}
\vspace{20pt}