aboutsummaryrefslogtreecommitdiff
path: root/fphw.cls
diff options
context:
space:
mode:
Diffstat (limited to 'fphw.cls')
-rw-r--r--fphw.cls30
1 files changed, 13 insertions, 17 deletions
diff --git a/fphw.cls b/fphw.cls
index 80bef44..09cdde9 100644
--- a/fphw.cls
+++ b/fphw.cls
@@ -20,13 +20,17 @@
% We define the macro for the name of the professor
\newcommand{\professor}[1]{ \renewcommand{\professor}{#1} }
-
-% We define the macro for the name of the class
+% We define the macro for the name of the course
\newcommand{\class}[1]{ \renewcommand{\class}{#1} }
-
% We define the macro for the name of the institution
\newcommand{\institute}[1]{ \renewcommand{\institute}{#1} }
+%these are auxiliary definitions used in the title section
+\newcommand{\CourseLang}{Course}
+\newcommand{\DateLang}{Due date}
+\newcommand{\StudentLang}{Student name}
+\newcommand{\ProfessorLang}{Professor}
+
% UTF-8 is best coding
\RequirePackage[utf8]{inputenc}
@@ -47,24 +51,16 @@
% Two sided paper are difficult to read and grade, we will not use them
\DeclareOption{twoside}{\OptionNotUsed}
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
-% we hardcode some language options
+ % we hardcode some language options
\DeclareOption{spanish}{
- \newcommand{\CourseLang}{Curso}
- \newcommand{\ProfessorLang}{Docente}
- \newcommand{\DateLang}{Fecha de entrega}
- \newcommand{\StudentLang}{Nombre estudiante}
+ \renewcommand{\CourseLang}{Curso}
+ \renewcommand{\ProfessorLang}{Docente}
+ \renewcommand{\DateLang}{Fecha de entrega}
+ \renewcommand{\StudentLang}{Nombre estudiante}
}
-\DeclareOption{english}{
- \newcommand{\CourseLang}{Course}
- \newcommand{\ProfessorLang}{Professor}
- \newcommand{\DateLang}{Due date}
- \newcommand{\StudentLang}{Student name}
-}
-
-% \ExecuteOptions{english}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%