| 
																	
																	
																		
																			
																		
																	
																	
																 | 
																@ -14,6 +14,7 @@ | 
															
														
														
													
														
															
																 | 
																 | 
																\RequirePackage{ifthen} | 
																 | 
																 | 
																\RequirePackage{ifthen} | 
															
														
														
													
														
															
																 | 
																 | 
																  \newboolean{@drafting} % print version information on pages | 
																 | 
																 | 
																  \newboolean{@drafting} % print version information on pages | 
															
														
														
													
														
															
																 | 
																 | 
																  \newboolean{@spanish}  % activates the spanish version at babel otherwise english | 
																 | 
																 | 
																  \newboolean{@spanish}  % activates the spanish version at babel otherwise english | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  \newboolean{@listings} % loads the listings package | 
															
														
														
													
														
															
																 | 
																 | 
																%2.2.2 Colors | 
																 | 
																 | 
																%2.2.2 Colors | 
															
														
														
													
														
															
																 | 
																 | 
																\RequirePackage{xcolor} | 
																 | 
																 | 
																\RequirePackage{xcolor} | 
															
														
														
													
														
															
																 | 
																 | 
																  \definecolor{c1}{rgb}{0,0,1} % blue | 
																 | 
																 | 
																  \definecolor{c1}{rgb}{0,0,1} % blue | 
															
														
														
													
												
													
														
															
																| 
																	
																	
																	
																		
																			
																		
																	
																 | 
																@ -31,6 +32,8 @@ | 
															
														
														
													
														
															
																 | 
																 | 
																%2.3  Page settings: | 
																 | 
																 | 
																%2.3  Page settings: | 
															
														
														
													
														
															
																 | 
																 | 
																\RequirePackage[left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry} | 
																 | 
																 | 
																\RequirePackage[left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry} | 
															
														
														
													
														
															
																 | 
																 | 
																%2.4    Macros and Commands: | 
																 | 
																 | 
																%2.4    Macros and Commands: | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%Commands | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\newcommand{\myVersion}{version 1.0\xspace} | 
															
														
														
													
														
															
																 | 
																 | 
																%2.4.1    Derivatives | 
																 | 
																 | 
																%2.4.1    Derivatives | 
															
														
														
													
														
															
																 | 
																 | 
																\newcommandx{\pd}[3][1=]{% | 
																 | 
																 | 
																\newcommandx{\pd}[3][1=]{% | 
															
														
														
													
														
															
																 | 
																 | 
																  \frac{\partial^{#1} #2}{\partial #3^{#1}} | 
																 | 
																 | 
																  \frac{\partial^{#1} #2}{\partial #3^{#1}} | 
															
														
														
													
												
													
														
															
																| 
																	
																	
																	
																		
																			
																		
																	
																 | 
																@ -55,10 +58,36 @@ | 
															
														
														
													
														
															
																 | 
																 | 
																  	\setboolean{@spanish}{true} | 
																 | 
																 | 
																  	\setboolean{@spanish}{true} | 
															
														
														
													
														
															
																 | 
																 | 
																  	\typeout{spanish to babel} | 
																 | 
																 | 
																  	\typeout{spanish to babel} | 
															
														
														
													
														
															
																 | 
																 | 
																  	}%end code option | 
																 | 
																 | 
																  	}%end code option | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\DeclareOption{listings}{ | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  \setboolean{@listings}{true} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  \typeout{listings option activated} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																\ProcessOptions\relax | 
																 | 
																 | 
																\ProcessOptions\relax | 
															
														
														
													
														
															
																 | 
																 | 
																%	3.2 PassOptionsToPackage | 
																 | 
																 | 
																%	3.2 PassOptionsToPackage | 
															
														
														
													
														
															
																 | 
																 | 
																%if sintax: \ifthenelse{⟨test⟩}{⟨then clause⟩}{⟨else clause⟩} | 
																 | 
																 | 
																%if sintax: \ifthenelse{⟨test⟩}{⟨then clause⟩}{⟨else clause⟩} | 
															
														
														
													
														
															
																 | 
																 | 
																%	3.2.1 drafting | 
																 | 
																 | 
																%	3.2.1 drafting | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%+++++++++++++++++++++++++++++++++++++++++++++ | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\RequirePackage{scrtime} %time access | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%Sintax: \newcommand{name}[num]{definition} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\newcommand{\finalVersionString}{Revised}%Final version text | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\ifthenelse{\boolean{@drafting}}{% | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%  Then clause  | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%    \RequirePackage{draftwatermark}% | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%     \SetWatermarkLightness{0.9} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%     \SetWatermarkScale{.5} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%     \SetWatermarkText{\today\ at \thistime} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    \RequirePackage{prelim2e} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    \PassOptionsToPackage{draft}{prelim2e} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        \renewcommand{\PrelimWords}{\relax} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        \renewcommand{\PrelimText}{\footnotesize[\,\today\ at \thistime\ -- \texttt{itmorelia} \myVersion\,]} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    } | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    %else clause | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    {\renewcommand{\finalVersionString}{\emph{Final Version} as of \today\ (\texttt{itmorelia} \myVersion).}} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%+++++++++++++++++++++++++++++++++++++++++++++ | 
															
														
														
													
														
															
																 | 
																 | 
																%	3.2.2 babel | 
																 | 
																 | 
																%	3.2.2 babel | 
															
														
														
													
														
															
																 | 
																 | 
																	\ifthenelse{\boolean{@spanish}}%test | 
																 | 
																 | 
																	\ifthenelse{\boolean{@spanish}}%test | 
															
														
														
													
														
															
																 | 
																 | 
																	    {	%then clause | 
																 | 
																 | 
																	    {	%then clause | 
															
														
														
													
												
													
														
															
																| 
																	
																	
																	
																		
																			
																		
																	
																 | 
																@ -66,34 +95,61 @@ | 
															
														
														
													
														
															
																 | 
																 | 
																	    	{\relax}{\RequirePackage[spanish]{babel}}% | 
																 | 
																 | 
																	    	{\relax}{\RequirePackage[spanish]{babel}}% | 
															
														
														
													
														
															
																 | 
																 | 
																	    } | 
																 | 
																 | 
																	    } | 
															
														
														
													
														
															
																 | 
																 | 
																	    {\relax}% else clause | 
																 | 
																 | 
																	    {\relax}% else clause | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%3.2.3 Listing related stuff | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\ifthenelse{\boolean{@listings}}% | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    {%then clause | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																      \@ifpackageloaded{listings}% | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																      {\relax}{\RequirePackage{listings}}% | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    } | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    %else clause | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    {\relax}%       | 
															
														
														
													
														
															
																 | 
																 | 
																%************************************ | 
																 | 
																 | 
																%************************************ | 
															
														
														
													
														
															
																 | 
																 | 
																% 4 Declarations: | 
																 | 
																 | 
																% 4 Declarations: | 
															
														
														
													
														
															
																 | 
																 | 
																%------------------------------------- | 
																 | 
																 | 
																%------------------------------------- | 
															
														
														
													
														
															
																 | 
																 | 
																
 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																
 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																%4.0 chapter | 
																 | 
																 | 
																%4.0 chapter | 
															
														
														
													
														
															
																 | 
																 | 
																\renewcommand{\thechapter}{\Roman{chapter}} %Roman enumeration | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%\renewcommand{\thechapter}{\Roman{chapter}} %Roman enumeration | 
															
														
														
													
														
															
																 | 
																 | 
																\titleformat{\chapter}[display]%shape | 
																 | 
																 | 
																\titleformat{\chapter}[display]%shape | 
															
														
														
													
														
															
																 | 
																 | 
																  %{\bfseries\Huge\scshape}%Format applyed to the title | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																  {\Huge\filleft\sc}%Format applyed to the title | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  {\Huge\filleft\sc}%Format applied to the title | 
															
														
														
													
														
															
																 | 
																 | 
																  {\filleft\sc{\chaptertitlename} \thechapter}%Label text and format | 
																 | 
																 | 
																  {\filleft\sc{\chaptertitlename} \thechapter}%Label text and format | 
															
														
														
													
														
															
																 | 
																 | 
																  {4ex}%Separation between Label and Title | 
																 | 
																 | 
																  {4ex}%Separation between Label and Title | 
															
														
														
													
														
															
																 | 
																 | 
																  {}%Before code  | 
																 | 
																 | 
																  {}%Before code  | 
															
														
														
													
														
															
																 | 
																 | 
																  [\vspace{2ex} | 
																 | 
																 | 
																  [\vspace{2ex} | 
															
														
														
													
														
															
																 | 
																 | 
																\titlerule]%After code | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\color{gray}\titlerule]%After code | 
															
														
														
													
														
															
																 | 
																 | 
																 % | 
																 | 
																 | 
																 % | 
															
														
														
													
														
															
																 | 
																 | 
																
 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																%4.1 section | 
																 | 
																 | 
																%4.1 section | 
															
														
														
													
														
															
																 | 
																 | 
																\titleformat{\section}         % Customise the \section command  | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																  {\Large\scshape\raggedright} % Make the \section headers large (\Large), | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																                               % small capitals (\scshape) and left aligned (\raggedright) | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																  {}{0em}                      % Can be used to give a prefix to all sections, like 'Section ...' | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																  {}                           % Can be used to insert code before the heading | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																  [\titlerule]                 % Inserts a horizontal line after the heading   | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%\titleformat{\section}%shape | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%  {\large \scshape}%Format applied to the title | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%  {\large\scshape \thesection}%Label text and format | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%  {2ex}%Separation between Label and Title | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%  {}%Before code  | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%  []%After code | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\titleformat{\section} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  {\normalfont\Large\bfseries}{\thesection}{1em}{} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%4.2 subsection | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\titleformat{\subsection} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  {\normalfont\large\bfseries}{\thesubsection}{1em}{} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%4.3 subsubsection   | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\titleformat{\subsubsection} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  {\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%4.4 Paragraph   | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\titleformat{\paragraph}[runin] | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  {\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%4.5 subparagraph   | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\titleformat{\subparagraph}[runin] | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  {\normalfont\normalsize\bfseries}{\thesubparagraph}{1em}{} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  | 
															
														
														
													
														
															
																 | 
																 | 
																%4.2 subsection   | 
																 | 
																 | 
																%4.2 subsection   | 
															
														
														
													
														
															
																 | 
																 | 
																\titleformat{\subsection} | 
																 | 
																 | 
																\titleformat{\subsection} | 
															
														
														
													
														
															
																 | 
																 | 
																  {\large\scshape\raggedright} | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																  {}{0em} | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																  {} | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  {\normalfont\Large\bfseries}{\thesubsection}{1em}{} | 
															
														
														
													
														
															
																 | 
																 | 
																
 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																
 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																%4.x Spacing | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\titlespacing*{\chapter}	 {0pt}{50pt}{40pt} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\titlespacing*{\section}	{0pt}{3.25ex plus 1ex minus .2ex}{2.3ex plus .2ex} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\titlespacing*{\subsection}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\titlespacing*{\subsubsection}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus .2ex}{1em} | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																\titlespacing*{\subparagraph}{\parindent}{3.25ex plus 1ex minus .2ex}{1em} |