diff --git a/itmthesis.cls b/itmthesis.cls index 21042f5..e5781af 100644 --- a/itmthesis.cls +++ b/itmthesis.cls @@ -13,7 +13,7 @@ %2.2.1 Booleans \RequirePackage{ifthen} \newboolean{@drafting} % print version information on pages - \newboolean{@english} % activates the english version at babel otherwise english + \newboolean{@spanish} % activates the spanish version at babel otherwise english %2.2.2 Colors \RequirePackage{xcolor} \definecolor{c1}{rgb}{0,0,1} % blue @@ -42,14 +42,30 @@ %************************************ %3 Options: -\DeclareOption{drafting}{\setboolean{@drafting}{true}} +% 3.1 DeclareOptions +% Option sintax +% \DeclareOption{⟨option⟩}{⟨code⟩} +%Code option: +\DeclareOption{drafting}{ + %Code + \setboolean{@drafting}{true} + } \DeclareOption{spanish}{ - %Code option: - \setboolean{@spanish}{true} - \typeout{spanish to babel} - } -%end code option + %Code + \setboolean{@spanish}{true} + \typeout{spanish to babel} + }%end code option \ProcessOptions\relax +% 3.2 PassOptionsToPackage +%if sintax: \ifthenelse{⟨test⟩}{⟨then clause⟩}{⟨else clause⟩} +% 3.2.1 drafting +% 3.2.2 babel + \ifthenelse{\boolean{@spanish}}%test + { %then clause + \@ifpackageloaded{babel} + {\relax}{\RequirePackage[spanish]{babel}}% + } + {\relax}% else clause %************************************ % 4 Declarations: %------------------------------------- diff --git a/thesisStructure.pdf b/thesisStructure.pdf deleted file mode 100644 index 7fecbd0..0000000 Binary files a/thesisStructure.pdf and /dev/null differ diff --git a/thesisStructure.tex b/thesisStructure.tex index 5193c63..01e0766 100644 --- a/thesisStructure.tex +++ b/thesisStructure.tex @@ -2,9 +2,12 @@ \usepackage[spanish]{babel} \begin{document} \chapter{Title of the Chapter} - \blindtext + %\blindtext \section{Test section} - \blindtext + \begin{figure} + + \end{figure} + % \blindtext \section{Check it} Texto en español \end{document}