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} -} -\DeclareOption{english}{ - \newcommand{\CourseLang}{Course} - \newcommand{\ProfessorLang}{Professor} - \newcommand{\DateLang}{Due date} - \newcommand{\StudentLang}{Student name} + \renewcommand{\CourseLang}{Curso} + \renewcommand{\ProfessorLang}{Docente} + \renewcommand{\DateLang}{Fecha de entrega} + \renewcommand{\StudentLang}{Nombre estudiante} } -% \ExecuteOptions{english} - +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} \ProcessOptions\relax %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/test.tex b/test.tex deleted file mode 100644 index b51e6f3..0000000 --- a/test.tex +++ /dev/null @@ -1,30 +0,0 @@ -% this is a test document for the class we defined in this project - -\documentclass[spanish,letterpaper,12pt]{fphw} - -\usepackage{lipsum,mathpazo} - - - -\title{Solución Tarea \#1} -\author{Felipe Ignacio Portales Oliva} - -\date{\today} -\professor{Dr. G. Rubilar} -\class{Teoría General de la Relatividad I} -\institute{Universidad de Concepción \\ Programa de Magíster en Ciencias con Mención en Física} - -\begin{document} -\maketitle - \section{Lorem} -\lipsum[1-3] -\[ E= mc^2 \] -\subsection{Ipsum} -\lipsum[4-5] -\subsubsection{Dolor} -\lipsum[6-10] - - - -\end{document} -