workable version

This commit is contained in:
Felipe Portales-Oliva 2019-03-28 19:35:51 -03:00
parent f5f61a6518
commit ef05ce7e49
2 changed files with 13 additions and 47 deletions

View file

@ -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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

View file

@ -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}