Advertisement
Guest User

Settings

a guest
Jul 29th, 2015
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 4.32 KB | None | 0 0
  1. \documentclass[12pt,a4paper,oneside,openright]{book}
  2.  
  3. % Margins
  4. % Defined margins by EPN: top=3.5cm, bottom=4.5cm,left=3.5cm and right=2.5cm
  5. \usepackage[top=2.7cm, bottom=2cm, left=2.3cm, right=1.7cm]{geometry}
  6.  
  7. % Indentation
  8. \setlength{\parindent}{0cm} %It is possible to eliminate indentation.
  9.  
  10. % Appendix
  11. \usepackage[titletoc,toc,page]{appendix}
  12.  
  13. % Other required packages
  14. \usepackage{latexsym,amsmath,amssymb,amsfonts,cancel}
  15.  
  16. % Language packages
  17. \usepackage[latin1]{inputenc}
  18. \usepackage{lmodern}
  19. \usepackage[T1]{fontenc}
  20.  
  21. % Defined commands for tables
  22. \usepackage{booktabs} % http://ctan.org/pkg/booktabs, needed to define M column type
  23. \usepackage{array} % http://ctan.org/pkg/array, needed to define M column type
  24. \newcolumntype{M}{>{\centering\arraybackslash}m{\dimexpr.156\linewidth-2\tabcolsep}}
  25. \newcolumntype{L}{>{\arraybackslash}m{\dimexpr.22\linewidth-2\tabcolsep}}
  26.  
  27. % Graphic Packages
  28. \usepackage{graphicx}
  29. \usepackage{caption}
  30. \usepackage{subcaption}
  31. \graphicspath{{images/}}
  32. \usepackage{gensymb}
  33.  
  34. % Font Packages
  35. \usepackage{anyfontsize}
  36. \usepackage[usenames,dvipsnames]{xcolor}
  37.  
  38. % Table packages
  39. \usepackage{tabularx}
  40. \usepackage{lipsum}
  41.  
  42. % Enumeration packages
  43. \usepackage{enumitem}
  44. \setcounter{tocdepth}{3}
  45. \setcounter{secnumdepth}{3}
  46.  
  47. % Space definition
  48. % "Space between lines 1.5"
  49. \renewcommand{\baselinestretch}{1.5}
  50.  
  51. % Code packages
  52. \usepackage[]{mcode}
  53.  
  54. % Page numbering
  55. \pagenumbering{gobble}
  56. \usepackage{emptypage}
  57.  
  58. % Centering Chapter and its title
  59. \usepackage{titlesec}
  60. \titleformat{\chapter}[display]
  61. {\fontfamily{ptm}\fontseries{b}\fontsize{16}{10}\selectfont\centering}{\chaptertitlename\ \thechapter}{-15pt}{\Huge}
  62. % Spacing between title and margins
  63. \titlespacing{\chapter}{0pt}{0pt}{20pt}
  64.  
  65. % Number Font for section, subsection and subsubsection
  66. \titleformat{\section}
  67. {\fontfamily{ptm}\fontseries{b}\fontsize{14}{10}\selectfont}{\thesection}{1em}{}
  68. \titleformat{\subsection}
  69. {\fontfamily{ptm}\fontseries{b}\fontsize{12}{10}\selectfont}{\thesubsection}{1em}{}
  70. \titleformat{\subsubsection}
  71. {\fontfamily{ptm}\fontseries{b}\fontsize{12}{10}\selectfont}{\thesubsubsection}{1em}{}
  72.  
  73. % General font definition
  74. % "Text font and size"
  75. \usepackage{helvet}
  76. \renewcommand{\familydefault}{\sfdefault}
  77.  
  78. % Names redefined according to EPN styles
  79. \renewcommand{\contentsname}{Contenido}
  80. \renewcommand{\listfigurename}{Lista de Figuras}
  81. \renewcommand{\listtablename}{Lista de Tablas}
  82. \renewcommand{\chaptername}{\fontfamily{ptm}\fontseries{b}\fontsize{16}{1}\selectfont{CAPÍTULO}}
  83. \renewcommand{\bibname}{\fontfamily{ptm}\fontseries{b}\fontsize{16}{1}\selectfont{REFERENCIAS BIBLIOGRÁFICAS}}
  84. \renewcommand{\figurename}{\bf Figura}
  85. \renewcommand{\tablename}{\bf Tabla}
  86. \renewcommand\appendixname{Anexo}
  87. \renewcommand{\appendixpagename}{Anexos}
  88.  
  89. % Required fonts by EPN style
  90. % "Titles format"
  91. % ESCUELA POLITÉCNICA NACIONAL - Arial negrilla, 24
  92. \newcommand{\epnTitle}{\fontfamily{phv}\fontseries{b}\fontshape{n}\fontsize{24}{10}\selectfont}
  93. % FACULTAD ... - Arial negrilla 16
  94. \newcommand{\facultyTitle}{\fontfamily{phv}\fontseries{b}\fontshape{n}\fontsize{16}{1}\selectfont}
  95. % TÍTULO - Arial negrilla 14
  96. \newcommand{\thesisTitle}{\fontfamily{phv}\fontseries{b}\fontshape{n}\fontsize{14}{15}\selectfont}
  97. % NOMBRE, DIRECTOR - Arial negrilla 12
  98. \newcommand{\nameTitle}{\fontfamily{phv}\fontseries{b}\fontshape{n}\fontsize{12}{10}\selectfont}
  99. % "Titles Format" -- Arial Mayúscula negrilla, tamaño 14
  100. \newcommand{\nonNumberedPageTitle}{\fontfamily{phv}\fontseries{b}\fontshape{n}\fontsize{14}{1}\selectfont}
  101. % Chapter: Mayúsculas, Times New Roman negrilla, tamaño 16 (Estilo Esquema Numerado Titulo 1), as the given format.
  102. \newcommand{\capi}{\fontfamily{ptm}\fontseries{b}\fontsize{16}{10}\selectfont}
  103. % Section: Mayúsculas, Times New Roman negrilla, tamaño 14 (Estilo Esquema Numerado Titulo 2), as the given format.
  104. \newcommand{\subc}{\fontfamily{ptm}\fontseries{b}\fontsize{14}{10}\selectfont}
  105. % Subsection: Mayúsculas, Times New Roman negrilla, tamaño 12 (Estilo Esquema Numerado Titulo 3), as the given format.
  106. \newcommand{\ssubc}{\fontfamily{ptm}\fontseries{b}\fontsize{12}{10}\selectfont}
  107. % Subsubsection: Minúsculas, Times New Roman negrilla, tamaño 12 (Estilo Esquema Numerado Titulo 4), as given.
  108. \newcommand{\sssubc}{\fontfamily{ptm}\fontseries{b}\fontsize{12}{10}\selectfont}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement