A LaTeX class to write your proposal. The class is developed for the "Instituto Tecnológico de Morelia" and the course of "Seminario de Investigación 1"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

279 lines
10 KiB

3 years ago
6 years ago
3 years ago
3 years ago
  1. # The ITMorelia Protocol Class
  2. The present Redme file shows how to work with and compile the `Protocol-Class` in LaTeX. This class is mainly base in the `Thesis-Class`![](). If you want know what sections should be included and its content visit the **Wiki** of this repository.
  3. # Repository structure
  4. Below you can see the repository's contents. The repository is made of 27 files and 2 folders. The folder `Chapters` includes each `.tex` file that will be included on your portocol; later you will learn how to included. On the other hand, the folder `FrontBackMatter` folder includes `.tex` files related with common chapters/section required on protocols guides like: *Titlepage, Abstract, Colophon, Dedication, Glossary, and others*; you can include as much as you need.
  5. In the `root` are files related with the organization and the structure of the **Protocol** (the `thesisStructure.tex` and `precontent.tex` files). Also, in `root` is included the main file that gives the special format to the document (`itmthesis.cls`), and finally the `Reference.bib` file to include a bibliography on your work.
  6. ```bash
  7. .
  8. ├── Chapters
  9. │   ├── A01.tex
  10. │   ├── Chapter01.tex
  11. │   ├── Chapter02.tex
  12. │   └── Chapter0A.tex
  13. ├── configuration.tex
  14. ├── FrontBackMatter
  15. │   ├── Abstract.tex
  16. │   ├── Bibliography.tex
  17. │   ├── Colophon.tex
  18. │   ├── Contents.tex
  19. │   ├── Declaration.tex
  20. │   ├── Dedication.tex
  21. │   ├── Foreword.tex
  22. │   ├── glossary-entries.tex
  23. │   ├── Glossary.tex
  24. │   ├── Resumen.tex
  25. │   ├── Titleback.tex
  26. │   ├── TitlepageIng.tex
  27. │   └── TitlepageMC.tex
  28. ├── itm.jpg
  29. ├── itmthesis.cls
  30. ├── precontent.tex
  31. ├── README.md
  32. ├── Reference.bib
  33. ├── sepLogo.jpg
  34. ├── tecnmBW.png
  35. ├── thesisStructure.pdf
  36. └── thesisStructure.tex
  37. ```
  38. # The `thesisStructure` file
  39. The main file in the project is the `thesisStructure.tex` file. The file is mainly divided on four parts: 1)Configuration, 2)Front Matter, 3) Main contents, and 4) References and 5)Back Matter.
  40. The file contents is show below and detailed explained on next sections.
  41. ``` tex
  42. % Engineering, master and phd degree
  43. %PROPOSAL(PROTOCOL) format, April 2021, for the
  44. %**Instituto Tecnológico de Morelia**
  45. %-=-=-=-=-=-=-=-=-=-=-=-=-
  46. % 1)Configuration:
  47. \documentclass[listings,drafting,spanish]{itmthesis} %itm thesis class
  48. \input{configuration}% configuration and packages
  49. \input{FrontBackMatter/glossary-entries}
  50. \begin{document}
  51. % -=-=-=-=-=-=-=-=-=-=-=-=-
  52. % 2)Front Matter:
  53. \pagenumbering{roman} % Roman page numbering
  54. \input{precontent} %Includes titlepage, dedication, Foreword, abstract, publication, acknowledgement
  55. \include{FrontBackMatter/Contents} % Contents, list of figures/tables/listings and acronyms
  56. \pagenumbering{arabic} % Arabic page numbering
  57. %-=-=-=-=-=-=-=-=-=-=-=-=-
  58. % 3) Thesis Main Contents
  59. \include{Chapters/Chapter01} %Introduction
  60. \cleardoublepage
  61. \include{Chapters/Chapter02} %Results
  62. %-=-=-=-=-=-=-=-=-=-=-=-=-
  63. % Apendix
  64. \appendix
  65. \include{Chapters/Chapter0A} % Appendix A
  66. %-=-=-=-=-=-=-=-=-=-=-=-=-
  67. % 4) References
  68. \cleardoublepage
  69. \include{FrontBackMatter/Bibliography}
  70. %-=-=-=-=-=-=-=-=-=-=-=-=-
  71. % 5) Back Matter
  72. \cleardoublepage
  73. \include{FrontBackMatter/Colophon}
  74. %-=-=-=-=-=-=-=-=-=-=-=-=-
  75. \end{document}
  76. %%% Local Variables:
  77. %%% mode: latex
  78. %%% TeX-master: t
  79. %%% End:
  80. ```
  81. ## 1) Configuration section ##
  82. ### Class' options ###
  83. The code next only refers to the configuration of the `itmthesis` class:
  84. ``` tex
  85. % 1)Configuration:
  86. \documentclass[listings,drafting,spanish]{itmthesis} %itm thesis class
  87. \input{configuration}% configuration and packages
  88. \input{FrontBackMatter/glossary-entries}
  89. ```
  90. From here the document class, for the Protocol, is defined with `\documentclass[<options>]{itmthesis}`, and this file determine the way the PDF file is generated by the options. The options defined are:
  91. - `drafting`: The options prints the date of compilation at the end of each page. Suitable opton to know that the latest version is on review or writing process.
  92. - `listing`: The option loads the `listings` package and configures the compilation to generates a gray scale listings outputs.
  93. - `spanish`: The option enables the babel package to print-out the sectional units on spanish language; otherwise, english will be used.
  94. ### `configuration.tex` file ###
  95. Then, `\input` command is used to include files with `LaTeX` commands. Specifically, the `configuration` file includes all the required packages and its configuration, variable(title, author, university, and so on), and command definitions. The complete code is shown next and sectioned on: 1)Listing configuration, 2)Command and Variable definitions, 3)Short descriptions on Math, 4)Packages, and 5)Text space configuration(indent, interline space, and paragraph space); however, the sections that user should modify are only 2), 4) and 5).
  96. ``` tex
  97. %!TeX root=./thesisStructure.tex
  98. %Add here the packages, variables, definitions, environments and specific elements created only for your thesis
  99. % 1 Code listing setup
  100. %------------------
  101. \RequirePackage{listings}
  102. \RequirePackage{xcolor}
  103. \definecolor{gray97}{gray}{0.97}
  104. \definecolor{gray45}{gray}{0.45}
  105. \newcaptionname{spanish}{\lstlistlistingname}{Sección de Códigos}
  106. \renewcommand{\lstlistingname}{Código}
  107. \renewcommand{\lstlistlistingname}{Códigos}
  108. \lstset{ frame=Ltb,
  109. framerule=0pt,
  110. aboveskip=0.2cm,
  111. framextopmargin=3pt,
  112. framexbottommargin=3pt,
  113. framexleftmargin=0.4cm,
  114. framesep=0pt,
  115. rulesep=.4pt,
  116. backgroundcolor=\color{gray97},
  117. rulesepcolor=\color{black},
  118. %
  119. stringstyle=\ttfamily,
  120. showstringspaces = false,
  121. %basicstyle=\small\ttfamily,
  122. %basicstyle=\small,
  123. commentstyle=\color{gray45}\ttfamily,
  124. keywordstyle=\bfseries,
  125. %
  126. numbers=left,
  127. numbersep=15pt,
  128. numberstyle=\tiny,
  129. numberfirstline = false,
  130. breaklines=true,
  131. }
  132. % 2 Commands and variables
  133. % 2.1 Thesis's title page config
  134. %------------------
  135. \newcommand{\myTitle}{Un Título de la Tesis no Muy Complicado y Largo Pero Capaz de Definir Concretamente}
  136. \newcommand{\mySubtitle}{Caso de Estudio a Nivel Maestría}
  137. \newcommand{\myDegree}{Maestría en Ciencias en Ingeniería Electrónica}
  138. % 2.2 Autores:
  139. \newcommand{\myName}{Gerardo Marx Chávez-Campos}
  140. \newcommand{\myNumber}{D01120294}
  141. %\newcommand{\myPartner}{Otro autor}
  142. %----------------
  143. % 2.3 Mesa de revisión
  144. %Director:
  145. \newcommand{\myProf}{Homer Simpson}
  146. %Codirector:
  147. \newcommand{\myOtherProf}{James Clerk Maxwell \xspace}
  148. %Revisor 1:
  149. \newcommand{\mySupervisor}{Piere Simon Laplace\xspace}
  150. %Revisor 2:
  151. \newcommand{\myOtherSupervisor}{Jean-Baptiste Joseph Fourier\xspace}
  152. %--------------
  153. % 2.4 Datos del instituto:
  154. \newcommand{\myFaculty}{Maestría en Ingeniería Electrónica}
  155. \newcommand{\myDepartment}{División de Estudios de Posgrado e Investigación}
  156. \newcommand{\myUni}{Instituto Tecnológico de Morelia}
  157. \newcommand{\myLocation}{Morelia, Michoacán, México}
  158. \newcommand{\myTime}{Abril 2021}
  159. \newcommand{\myThesisVersion}{Rev 2.0}
  160. %---------------------
  161. % 3 USEFUL COMMANDS
  162. %---------------------
  163. \newcommand{\ie}{i.\,e.}
  164. \newcommand{\Ie}{I.\,e.}
  165. \newcommand{\eg}{e.\,g.}
  166. \newcommand{\Eg}{E.\,g.}
  167. %-------------------------
  168. % 4. Required packages for
  169. % figures, plots, subfigures
  170. %-------------------------
  171. \usepackage{float}
  172. \usepackage{subfigure}
  173. \usepackage{tikz}
  174. \usepackage{booktabs} %Beautiful tables
  175. \usepackage{todonotes} %Todo list for comments
  176. \usepackage[version-1-compatibility]{siunitx} %easy writting of SI units
  177. \usepackage{pgfplots}
  178. \pgfplotsset{compat=1.10}
  179. \decimalpoint %Decimal point enable
  180. \usepackage[acronym]{glossaries}
  181. %-------------------------
  182. % 5. setting space for indentation
  183. % space between paragraphs and
  184. % baseline.
  185. % Uncomment to set parameters
  186. %-------------------------
  187. % \setlength{\parindent}{4em}
  188. \setlength{\parskip}{1em}
  189. %\renewcommand{\baselinestretch}{2.0} % Interlineado
  190. ```
  191. Thus, if you require to change the thesis' title modify `\myTitle` definition on section *2.1*. If you need to change your data as an author modify `\myname` on section *2.2*, and the same foe the other options as the reviewing group (*2.3*), and institution (*2.4*).
  192. On the other hand, if you want to add new packages to your Protocol, you can added on the main file; the `thesisStructure.tex` file. However, to maintain a clean code you should add on the `configuration` file, specifically on section *4*.
  193. Finally to set specific values of separation for tabulation, paragraphs or text separation between text(interline), please modify section *5*. Here you can use several measurement units as `em`, `cm` , `in` or lines `2`(just a number). E.g:
  194. ``` tex
  195. \setlength{\parindent}{4em}
  196. \setlength{\parskip}{1cm}
  197. \renewcommand{\baselinestretch}{2.0} % Interlineado
  198. ```
  199. ### `glossary-entries.tex` file ###
  200. This file includes each entry for acronyms and glossary entries, the syntax of each entry is shown below:
  201. ``` tex
  202. \makeglossaries
  203. \newglossaryentry{latex}
  204. {
  205. name=latex,
  206. description={Es un lenguaje de marcado o sintaxis especialmente diseñado para documentos científicos}
  207. }
  208. \newglossaryentry{maths}{
  209. name=matemáticas,
  210. description={Las matemáticas son sólo una aproximación a la realidad de la vida}}
  211. \newglossaryentry{formula}{
  212. name=formula,
  213. description={A mathematical expression}}
  214. \newacronym{ecm}{ECM}{Error Cuadrático Medio}
  215. \newacronym{ls}{LS}{Mínimos Cuadrados, \textit{Least Squares}}
  216. ```
  217. To learn how to call an entry on the code, see the code on `Cahpter02.tex`.
  218. ## 2) Front Matter ##
  219. Explain this:
  220. ``` tex
  221. % 2)Front Matter:
  222. \pagenumbering{roman} % Roman page numbering
  223. \input{precontent} %Includes titlepage, dedication, Foreword, abstract, publication, acknowledgement
  224. \include{FrontBackMatter/Contents} % Contents, list of figures/tables/listings and acronyms
  225. \pagenumbering{arabic} % Arabic page numbering
  226. ```
  227. ## Chapters
  228. ## Apendix
  229. ## including images
  230. # The `configuration` file
  231. # Defined variables
  232. # Titlepage
  233. # Glossary
  234. # References