aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Portales-Oliva <f.portales.oliva@gmail.com>2019-03-28 19:35:51 -0300
committerFelipe Portales-Oliva <f.portales.oliva@gmail.com>2019-03-28 19:35:51 -0300
commitef05ce7e4939652f3cca968790dbd9dafd8fa4da (patch)
tree6cb211159e576c0868b5266de1390e85ed0660a6
parentf5f61a6518eaccd7d31eafff630f660b96a181be (diff)
workable version
-rw-r--r--fphw.cls30
-rw-r--r--test.tex30
2 files changed, 13 insertions, 47 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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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}
-