summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-23 20:59:51 +0000
committerKarl Berry <karl@freefriends.org>2019-05-23 20:59:51 +0000
commitc1490de9012046f9684c07ff466a41c46192de77 (patch)
tree08e3afc04eba48a1fabfb1c4b397c64a4ab44b07 /Master
parentb096ec118c77e9fb53cdce3f5675580a2d63a4cf (diff)
unam-thesis (23may19)
git-svn-id: svn://tug.org/texlive/trunk@51207 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/unam-thesis/README.md132
-rw-r--r--Master/texmf-dist/tex/latex/unam-thesis/unam-thesis.cls325
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-publishers.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/unam-thesis.tlpsrc0
5 files changed, 459 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/unam-thesis/README.md b/Master/texmf-dist/doc/latex/unam-thesis/README.md
new file mode 100644
index 00000000000..44ce0c4d66b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/unam-thesis/README.md
@@ -0,0 +1,132 @@
+UNAM Class
+====================
+
+Class for creating dissertation documents according to the National Autonomous University of
+Mexico (UNAM) guidelines.
+
+This class inherits the book class, so, in escence one should create
+volumes, chapters, front chapters, appendixes, and so on. Before using
+this class the user must create the following document structure:
+
++ /working_directory/
+ + thesis.tex
+ + bibliography.bib
++ /tex/
+ + frontMatter.tex
+ + foreword.tex
+ + chapter1.tex
+ + chapterN.tex
+ + appendix1.tex
+ + appendixN.tex
++ /img/
+ + pictures{.png, .jpg, .pdf}
+
+Commands
+---------------------
+
+This class creates a cover page and title page from information
+provided by the user, by default the user should insert comands to
+indicate the information that will be displayed on the cover (which is
+replicated in the second page). To specify the author you must insert
+the command `\author{}`, to specify the title of the work the command
+`\title{}` is needed, for creating the cover page the following
+commands are defined:
+
++ `\tipotrabajo{tipo}`
+Defines the type of document: (thesis, report, etc).
++ `\grado{grado}`
+Defines the grade to obtain: (Bachelor, Master, PhD).
++ `\fechaexamen{fecha}`
+Defines the date of your examination: (April 30th, 2019).
++ `\asesor{asesor}`
+Defines your advisor's name.
++ `\programaestudio{programa}`
++ `\campoconocimiento{conocimiento}`
++ `\campodisciplinario{disciplinario}`
++ `\instituto{instituto}`
++ `\facultad{facultad}`
++ `\universidad{universidad}`
++ `\escudouniversidad{escudoU}`
+Points to the path (relative to the /img/ directory) of your university coat-of-arms.
++ `\escudofacultad{escudoF}`
+Points to the path (relative to the /img/ directory) of your school coat-of-arms.
++ `\lugar{lugar}`
+Defines the place where your exam will be applied.
++ `\tema{tema}`
+Defines the topic of your work.
++ `\presidente{presidente}`
++ `\secretario{secretario}`
++ `\vocal{vocal}`
++ `\primersuplente{suplente1}`
++ `\segundosuplente{suplente2}`
+
+Example
+---------------------
+
+A minimal working example should have this structure:
+
+```
+\documentclass[12pt]{unam-thesis}
+
+%% Selección de la fuente a utilizar (modo texto y matemático)
+%\usepackage[cmintegrals, cmbraces]{newtxmath}
+%\usepackage{garamondx, ebgaramond-maths}
+%\usepackage{garamondx, mathdesign}
+\usepackage{garamondx} %% Fuente preferida (opcional)
+\usepackage[garamondx, cmintegrals, cmbraces]{newtxmath} %% Fuente preferida (opcional)
+%% Fin selección de la fuente
+
+\author{Nombre Apellidos}
+\title{Caracterización y mejora aerodinámica de un vehículo tipo ATV}
+\grado{Maestro en Ingeniería}
+\fechaexamen{2 de Mayo 2019}
+\tipotrabajo{Tesis}
+\asesor{Dr. Nombre Apellidos}
+\instituto{Instituto Donde Estudio}
+\facultad{Facultad de Ingeniería}
+\universidad{Universidad Nacional Autónoma de México}
+\lugar{Juriquilla, Querétaro}
+\programaestudio{Programa de Maestría y Doctorado en Ingeniería Mecánica}
+\campoconocimiento{Ingeniería automotriz}
+\campodisciplinario{Mecánica}
+
+\begin{document}
+\frontmatter
+\maketitle
+\tableofcontents
+\listoffigures
+
+\input{tex/prefacio}
+
+\mainmatter
+\input{tex/introduccion}
+\input{tex/marcoteorico}
+\input{tex/desarrollo}
+\input{tex/pruebas}
+\input{tex/resultados}
+\input{tex/conclusiones}
+
+\appendix
+\input{tex/programas}
+\input{tex/planos}
+\backmatter
+\printbibliography[heading=bibintoc]
+
+\end{document}
+```
+
+License
+---------------------
+
+unam-thesis is free software: you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+unam-thesis is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with unam-thesis. If not, see <https://www.gnu.org/licenses/>. \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/unam-thesis/unam-thesis.cls b/Master/texmf-dist/tex/latex/unam-thesis/unam-thesis.cls
new file mode 100644
index 00000000000..87fbf05bdc3
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/unam-thesis/unam-thesis.cls
@@ -0,0 +1,325 @@
+\ProvidesClass{unam}[2019/05/20 v0.5 Juan Camacho]
+
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
+\ProcessOptions\relax
+\ifx\pdfoutput\undefined
+ \LoadClass[dvips, letterpaper]{book}
+\else
+ \LoadClass[letterpaper]{book}
+\fi
+
+\usepackage[spanish,mexico]{babel}
+\usepackage{pslatex}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[margin=2.5cm]{geometry}
+\usepackage{graphicx, amsmath, physics, subcaption, caption}
+\usepackage{multirow, booktabs, xcolor, longtable, pdfpages}
+\usepackage{setspace}
+\renewcommand{\baselinestretch}{1.3}
+\renewcommand{\arraystretch}{1.3}
+\graphicspath{{./img/}}
+\usepackage[tracking=true]{microtype}
+\usepackage[backend=biber,style=phys,citestyle=numeric]{biblatex}
+\DeclareLanguageMapping{spanish}{spanish-apa}
+\usepackage{csquotes}
+\addbibresource{bibliografia.bib}
+\usepackage{listingsutf8}
+\usepackage{inconsolata}
+
+%% Derivada material
+\newcommand{\mdv}[2]{\frac{\mathrm{\textbf{D}{#1}}}{\mathrm{\textbf{D}{#2}}}}
+
+%% Selección de fuente para fragmentos de código
+\everymath{\displaystyle}
+\lstset{
+ language=Java,
+ frameround=fttt,
+ backgroundcolor=\color{gray!5},
+ numbers=left,
+ breaklines=true,
+ keywordstyle=\color{blue}\bfseries,
+ basicstyle=\ttfamily\color{red},
+ numberstyle=\color{black},
+ tabsize=2,
+ rulecolor=\color{black!20},
+ title=\lstname,
+ escapeinside={\'*}{*)},
+ breakatwhitespace=true,
+ framextopmargin=2pt,
+ framexbottommargin=2pt,
+ extendedchars=false,
+}
+\lstMakeShortInline[columns=fixed]|
+
+%% Definición de las cabeceras del documento
+\usepackage{fancyhdr}
+\fancypagestyle{unam}{
+ \fancyhead{}
+ \fancyhead[RO]{\if@mainmatter \rightmark\fi}
+ \fancyhead[LE]{\if@mainmatter \rightmark\fi}
+ \fancyhead[C]{\if@mainmatter \leftmark\fi}
+ \fancyfoot{}
+ \fancyfoot[C]{\thepage}
+}
+
+\pagestyle{unam}
+\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
+\renewcommand{\headrulewidth}{1pt}
+\setlength{\headheight}{16pt}
+
+%% Modificación del título de los capítulos
+\usepackage{titlesec}
+%\usepackage{lettrine}
+\def\thickhrulefill{\leavevmode \leaders \hrule height 0.3ex \hfill \kern \z@}
+
+\titleformat{\chapter}[display]
+{\if@mainmatter
+ \bfseries\LARGE
+\else
+ \bfseries\Huge
+\fi}
+{\if@mainmatter
+ \filright\MakeUppercase{\large\chaptertitlename}
+ \quad\Huge\thechapter\;\thickhrulefill
+\fi}
+{0ex}
+{\if@mainmatter
+ \filleft
+\fi}
+[\if@mainmatter
+\vspace{1ex}\titlerule\vspace{0.5ex}\titlerule
+\fi]
+
+\renewcommand*{\lstlistingname}{Código}
+\renewcommand*{\lstlistlistingname}{Índice de códigos}
+%\usepackage[colorlinks=true,pdfusetitle]{hyperref}
+\usepackage[pdfusetitle,hidelinks]{hyperref}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Definición de la portada %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\renewcommand{\thepage}{\roman{page}}
+
+% Establece las variables que serán utilizadas en la portada
+\newcommand{\@tipotrabajo}{}
+\newcommand{\tipotrabajo}[1]{\renewcommand{\@tipotrabajo}{#1}}
+
+\newcommand{\@grado}{}
+\newcommand{\grado}[1]{\renewcommand{\@grado}{#1}}
+
+\newcommand{\@fechaexamen}{}
+\newcommand{\fechaexamen}[1]{\renewcommand{\@fechaexamen}{#1}}
+
+\newcommand{\@asesor}{}
+\newcommand{\asesor}[1]{\renewcommand{\@asesor}{#1}}
+
+\newcommand{\@programaestudio}{}
+\newcommand{\programaestudio}[1]{\renewcommand{\@programaestudio}{#1}}
+
+\newcommand{\@campoconocimiento}{}
+\newcommand{\campoconocimiento}[1]{\renewcommand{\@campoconocimiento}{#1}}
+
+\newcommand{\@campodisciplinario}{}
+\newcommand{\campodisciplinario}[1]{\renewcommand{\@campodisciplinario}{#1}}
+
+\newcommand{\@instituto}{}
+\newcommand{\instituto}[1]{\renewcommand{\@instituto}{#1}}
+
+\newcommand{\@facultad}{}
+\newcommand{\facultad}[1]{\renewcommand{\@facultad}{#1}}
+
+\newcommand{\@universidad}{}
+\newcommand{\universidad}[1]{\renewcommand{\@universidad}{#1}}
+
+\newcommand{\@escudouniversidad}{}
+\newcommand{\escudouniversidad}[1]{\renewcommand{\@escudouniversidad}{#1}}
+
+\newcommand{\@escudofacultad}{}
+\newcommand{\escudofacultad}[1]{\renewcommand{\@escudofacultad}{#1}}
+
+\newcommand{\@lugar}{}
+\newcommand{\lugar}[1]{\renewcommand{\@lugar}{#1}}
+
+\newcommand{\@tema}{}
+\newcommand{\tema}[1]{\renewcommand{\@tema}{#1}}
+
+\newcommand{\@presidente}{}
+\newcommand{\presidente}[1]{\renewcommand{\@presidente}{#1}}
+
+\newcommand{\@secretario}{}
+\newcommand{\secretario}[1]{\renewcommand{\@secretario}{#1}}
+
+\newcommand{\@vocal}{}
+\newcommand{\vocal}[1]{\renewcommand{\@vocal}{#1}}
+
+\newcommand{\@primersuplente}{}
+\newcommand{\primersuplente}[1]{\renewcommand{\@primersuplente}{#1}}
+
+\newcommand{\@segundosuplente}{}
+\newcommand{\segundosuplente}[1]{\renewcommand{\@segundosuplente}{#1}}
+
+% Insertamos metadatos en el PDF
+\hypersetup{
+ pdfinfo={
+ Producer={LaTeX with 'unam' class by Juan Camacho}
+ }
+}
+
+% Las páginas iniciales del libro estarán a una sola columna.
+\newenvironment{unacolumna}{%
+ \@restonecolfalse
+ \if@twocolumn
+ \@restonecoltrue\onecolumn
+ \else
+ \newpage
+ \fi
+}{%
+ \if@restonecol
+ \twocolumn
+ \else
+ \newpage
+ \fi
+}
+
+\renewcommand{\maketitle}{%
+ \begin{unacolumna}
+ \thispagestyle{empty}
+ \begin{minipage}[c][\textheight][c]{.2\textwidth}
+ \centering
+ \includegraphics[width=.8\linewidth]{unam}
+
+ \vspace{5pt}
+
+ \rule{3pt}{.75\textheight}
+ \hspace{1pt} \rule{1pt}{.75\textheight}
+ \hspace{1pt} \rule{3pt}{.75\textheight}
+
+ \vfill
+
+ \includegraphics[width=.8\linewidth]{ingenieria}
+ \end{minipage}
+ \begin{minipage}[c][\textheight][c]{.8\textwidth}
+ \centering
+ {\Large \expandafter\MakeUppercase\expandafter{\@universidad}}\\
+
+ \rule{\textwidth}{3pt}
+ \vspace{2pt}
+ \rule{\textwidth}{1pt}
+
+ \vspace{5pt}
+
+ {\large \expandafter\MakeUppercase\expandafter{\@instituto}}\\
+ {\large \expandafter\MakeUppercase\expandafter{\@facultad}}
+
+ \vfill
+
+ {\Large \expandafter\MakeUppercase\expandafter{\@title}}
+
+ \vfill
+
+ \textls[1000]{\huge
+ \expandafter\MakeUppercase\expandafter{\@tipotrabajo}}\\
+ {QUE PARA OBTENER EL GRADO DE}\\
+ {\expandafter\MakeUppercase\expandafter{{\@grado}}}
+
+ \vfill
+
+ PRESENTA:\\
+ \textbf{\expandafter\MakeUppercase\expandafter{\@author}}
+
+ \vfill
+
+ {\small DIRECTOR DE
+ \expandafter\MakeUppercase\expandafter{\@tipotrabajo}}\\
+ \expandafter\MakeUppercase\expandafter{\@asesor}
+
+ \vfill
+
+ \flushright
+ \expandafter\MakeUppercase\expandafter{\@lugar}
+ {. }\expandafter\MakeUppercase\expandafter{\@fechaexamen}
+ \end{minipage}
+
+ \newpage
+ \thispagestyle{empty}
+ \begin{center}
+ \includegraphics[width=0.2\linewidth]{unam}
+
+ \textbf{\large \expandafter\MakeUppercase\expandafter{\@universidad}}
+
+ \expandafter\MakeUppercase\expandafter{\@programaestudio}
+
+ \expandafter\MakeUppercase\expandafter{\@campoconocimiento}
+ { - }\expandafter\MakeUppercase\expandafter{\@campodisciplinario}
+
+ \vfill
+
+ \expandafter\MakeUppercase\expandafter{\@title}
+
+ \vfill
+
+ \expandafter\MakeUppercase\expandafter{\@tipotrabajo}\\
+ {QUE PARA OPTAR POR EL GRADO DE:}\\
+ \expandafter\MakeUppercase\expandafter{\@grado}
+
+ \vfill
+
+ {PRESENTA:}\\
+ \expandafter\MakeUppercase\expandafter{\@author}
+
+
+ \vfill
+
+ {TUTOR PRINCIPAL:}\\
+ \expandafter\MakeUppercase\expandafter{\@asesor}
+
+ \vfill
+
+ \expandafter\MakeUppercase\expandafter{\@lugar}{. }
+ \expandafter\MakeUppercase\expandafter{\@fechaexamen}
+
+ \newpage
+
+ \flushleft\large
+
+ \vspace{10pt}
+
+ \textbf{\Large JURADO ASIGNADO:}
+
+ \vfill
+
+ PRESIDENTE: \expandafter\MakeUppercase\expandafter{\@presidente}
+
+ SECRETARIO: \expandafter\MakeUppercase\expandafter{\@secretario}
+
+ VOCAL: \expandafter\MakeUppercase\expandafter{\@vocal}
+
+ 1$^{er.}$ SUPLENTE: \expandafter\MakeUppercase\expandafter{\@primersuplente}
+
+ 2$^{do.}$ SUPLENTE: \expandafter\MakeUppercase\expandafter{\@segundosuplente}
+
+ \vfill
+
+
+ LUGAR O LUGARES DONDE SE REALIZÓ LA TESIS:
+ \expandafter\MakeUppercase\expandafter{\@lugar}{. }
+
+
+ \vfill
+
+ \centering
+
+ \textbf{TUTOR DE TESIS:}
+
+ \expandafter\MakeUppercase\expandafter{\@asesor}
+
+ \vfill
+
+ \rule{.3\textwidth}{2pt}
+
+ FIRMA
+
+ \end{center}
+ \end{unacolumna}
+} \ No newline at end of file
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index d1d133e4acd..12250cde32a 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -710,7 +710,7 @@ my @TLP_working = qw(
ukrhyph ulem ulqda ulthese
umbclegislation umich-thesis uml umlaute umoline
umthesis umtypewriter
- unamth-template unamthesis
+ unam-thesis unamth-template unamthesis
undergradmath underlin underoverlap underscore undolabl
unfonts-core unfonts-extra
uni-wtal-ger uni-wtal-lin unicode-data unicode-bidi unicode-math unisugar
diff --git a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
index 905da6b9d15..f89c2f1e3f0 100644
--- a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
@@ -199,6 +199,7 @@ depend ulthese
depend umbclegislation
depend umthesis
depend umich-thesis
+depend unam-thesis
depend unamth-template
depend unamthesis
depend unitn-bimrep
diff --git a/Master/tlpkg/tlpsrc/unam-thesis.tlpsrc b/Master/tlpkg/tlpsrc/unam-thesis.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/unam-thesis.tlpsrc