From d7bc095298a54fc36f7c9d87e04e6a8dd175acf6 Mon Sep 17 00:00:00 2001 From: MacAir Marx Date: Mon, 28 May 2018 19:06:19 -0500 Subject: [PATCH] =?UTF-8?q?Solo=20cap=C3=ADtulos=20y=20sec,sub,=20subsub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Chapters/Chapter01.tex | 3 ++ FrontBackMatter/Contents.tex | 0 configuration.tex | 33 +++++++++++++++ itmthesis.cls | 82 ++++++++++++++++++++++++++++++------ precontent.tex | 0 thesisStructure.tex | 20 ++++----- 6 files changed, 115 insertions(+), 23 deletions(-) create mode 100644 Chapters/Chapter01.tex create mode 100644 FrontBackMatter/Contents.tex create mode 100644 configuration.tex create mode 100644 precontent.tex diff --git a/Chapters/Chapter01.tex b/Chapters/Chapter01.tex new file mode 100644 index 0000000..79fd93e --- /dev/null +++ b/Chapters/Chapter01.tex @@ -0,0 +1,3 @@ +% Chapter 1 +\chapter{Protocolo de Investigación}\label{ch:protocolo} +\section{Introducción} \ No newline at end of file diff --git a/FrontBackMatter/Contents.tex b/FrontBackMatter/Contents.tex new file mode 100644 index 0000000..e69de29 diff --git a/configuration.tex b/configuration.tex new file mode 100644 index 0000000..681b55a --- /dev/null +++ b/configuration.tex @@ -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, + } + diff --git a/itmthesis.cls b/itmthesis.cls index e5781af..1bc2be3 100644 --- a/itmthesis.cls +++ b/itmthesis.cls @@ -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} \ No newline at end of file diff --git a/precontent.tex b/precontent.tex new file mode 100644 index 0000000..e69de29 diff --git a/thesisStructure.tex b/thesisStructure.tex index 01e0766..392a95c 100644 --- a/thesisStructure.tex +++ b/thesisStructure.tex @@ -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} +