Browse Source

Solo capítulos y sec,sub, subsub

Contenido
parent
commit
d7bc095298
6 changed files with 115 additions and 23 deletions
  1. +3
    -0
      Chapters/Chapter01.tex
  2. +0
    -0
      FrontBackMatter/Contents.tex
  3. +33
    -0
      configuration.tex
  4. +69
    -13
      itmthesis.cls
  5. +0
    -0
      precontent.tex
  6. +10
    -10
      thesisStructure.tex

+ 3
- 0
Chapters/Chapter01.tex View File

@ -0,0 +1,3 @@
% Chapter 1
\chapter{Protocolo de Investigación}\label{ch:protocolo}
\section{Introducción}

+ 0
- 0
FrontBackMatter/Contents.tex View File


+ 33
- 0
configuration.tex View File

@ -0,0 +1,33 @@
%Add here the packages, variables, definitions, environments and specific elements created only for your thesis
% 1 Code listing setup
%------------------
\RequirePackage{listings}
\newcaptionname{spanish}{\lstlistlistingname}{Sección de Códigos}
\renewcommand{\lstlistingname}{Código}
\renewcommand{\lstlistlistingname}{Códigos}
\lstset{ frame=Ltb,
framerule=0pt,
aboveskip=0.2cm,
framextopmargin=3pt,
framexbottommargin=3pt,
framexleftmargin=0.4cm,
framesep=0pt,
rulesep=.4pt,
backgroundcolor=\color{gray97},
rulesepcolor=\color{black},
%
stringstyle=\ttfamily,
showstringspaces = false,
%basicstyle=\small\ttfamily,
%basicstyle=\small,
commentstyle=\color{gray45}\ttfamily,
keywordstyle=\bfseries,
%
numbers=left,
numbersep=15pt,
numberstyle=\tiny,
numberfirstline = false,
breaklines=true,
}

+ 69
- 13
itmthesis.cls View File

@ -14,6 +14,7 @@
\RequirePackage{ifthen}
\newboolean{@drafting} % print version information on pages
\newboolean{@spanish} % activates the spanish version at babel otherwise english
\newboolean{@listings} % loads the listings package
%2.2.2 Colors
\RequirePackage{xcolor}
\definecolor{c1}{rgb}{0,0,1} % blue
@ -31,6 +32,8 @@
%2.3 Page settings:
\RequirePackage[left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry}
%2.4 Macros and Commands:
%Commands
\newcommand{\myVersion}{version 1.0\xspace}
%2.4.1 Derivatives
\newcommandx{\pd}[3][1=]{%
\frac{\partial^{#1} #2}{\partial #3^{#1}}
@ -55,10 +58,36 @@
\setboolean{@spanish}{true}
\typeout{spanish to babel}
}%end code option
\DeclareOption{listings}{
\setboolean{@listings}{true}
\typeout{listings option activated}
}
\ProcessOptions\relax
% 3.2 PassOptionsToPackage
%if sintax: \ifthenelse{⟨test⟩}{⟨then clause⟩}{⟨else clause⟩}
% 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
\ifthenelse{\boolean{@spanish}}%test
{ %then clause
@ -66,34 +95,61 @@
{\relax}{\RequirePackage[spanish]{babel}}%
}
{\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.0 chapter
\renewcommand{\thechapter}{\Roman{chapter}} %Roman enumeration
%\renewcommand{\thechapter}{\Roman{chapter}} %Roman enumeration
\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
{4ex}%Separation between Label and Title
{}%Before code
[\vspace{2ex}
\titlerule]%After code
\color{gray}\titlerule]%After code
%
%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
\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}

+ 0
- 0
precontent.tex View File


+ 10
- 10
thesisStructure.tex View File

@ -1,13 +1,13 @@
\documentclass{itmthesis}
\usepackage[spanish]{babel}
\documentclass[listings,drafting,spanish]{itmthesis}
%\usepackage[spanish]{babel}
%Archivos de configuración y paquetes utilizados en tu tesis:
\input{configuration}
\begin{document}
\chapter{Title of the Chapter}
%\blindtext
\section{Test section}
\begin{figure}
\pagenumbering{roman} % Roman page numbering
\input{precontent}
\include{FrontBackMatter/Contents} % Contents, list of figures/tables/listings and acronyms
\pagenumbering{arabic} % Arabic page numbering
\include{Chapters/Chapter01} % Chapter 1
\end{figure}
% \blindtext
\section{Check it}
Texto en español
\end{document}