-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
154 lines (142 loc) · 4.58 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
%%%%
% Get this template, and many others, online: https://github.com/gonzaleztroyano/urjc-latex-templates
%%%%
%Packages
\documentclass[10pt, a4paper]{article}
\usepackage[top=2.54cm, bottom=2.54cm, left=2.54cm, right=2.54cm]{geometry}
\usepackage{amsmath,amsthm,amsfonts,amssymb,amscd, fancyhdr, color, comment, graphicx, environ}
\usepackage{float}
\usepackage[math-style=ISO]{unicode-math}
\setmathfont{TeX Gyre Termes Math}
\usepackage{lastpage}
\usepackage[dvipsnames]{xcolor}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{enumerate}
\usepackage[shortlabels]{enumitem}
\usepackage{fancyhdr}
\usepackage{indentfirst}
\usepackage{listings}
\usepackage{sectsty}
\usepackage{thmtools}
\usepackage{shadethm}
\usepackage{setspace}
\usepackage{parskip}
\usepackage[spanish]{babel} % Ver https://www.overleaf.com/learn/latex/Spanish
\usepackage[pdftex]{hyperref} % https://stackoverflow.com/a/3430025
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{lipsum} % Se puede comentar, está para pruebas de formato.
\usepackage{csquotes} % https://www.overleaf.com/learn/latex/Typesetting_quotations#csquotes_package
%Bibliografía
\usepackage[style=apa,backend=biber,sortcites=true,sorting=nyt]{biblatex} % https://www.overleaf.com/learn/latex/Bibliography_management_in_LaTeX#The_bibliography_file
\let \cite \parencite
\addbibresource{bib.bib}
%Environment setup
\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
\mdfdefinestyle{theoremstyle}{%
linecolor=black,linewidth=1pt,%
frametitlerule=true,%
frametitlebackgroundcolor=gray!20,
innertopmargin=\topskip,
}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=mystyle}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\newcommand\asignatura{Asignatura}
\newcommand\DocumentTitle{Ejemplo de título de documento}
\newcommand\mesyanno{XXXXXXXXX Cuatrimestre - Curso 20XX-YY}
\newcommand\codigodoc{XXX.YYY.ZZZ.W.AAAAAAAAAA}
\newcommand\codigoasig{CGIS.XXX}
\newcommand\autor{Pablo González Troyano}
\newcommand\grado{Grado en Ciencia, Gestión e Ingeniería de Servicios}
%
\AtBeginDocument{
\hypersetup{
pdftitle = {\DocumentTitle},
pdfauthor = {\autor \ @URJC},
pdfsubject = {\asignatura \ en el \ \grado},
pdfkeywords = {\codigodoc ; \ \grado}
}
}
% Page setup
\fancypagestyle{plain}{
\headheight 25pt
\lhead{\codigoasig \ - \DocumentTitle}
\rhead{\mesyanno}
\lfoot{\autor}
\fancyfoot[C]{}
\rfoot{\small Página \thepage \ de \pageref{LastPage}}
\headsep 2em
}
\pagestyle{fancy}
\headheight 25pt
\lhead{\codigoasig \ - \DocumentTitle}
\rhead{\mesyanno}
\lfoot{\autor}
\fancyfoot[C]{}
\pagenumbering{arabic}
\rfoot{\small Página \thepage \ de \pageref{LastPage}}
\headsep 2em
\renewcommand{\baselinestretch}{1.25}
% Commands here
\newenvironment{itemizedot}{\begin{itemize} \renewcommand{\labelitemi}{$\bullet$}\renewcommand{\labelitemii}{$\bullet$}\renewcommand{\labelitemiii}{$\bullet$}\renewcommand{\labelitemiv}{$\bullet$}}{\end{itemize}}
\catcode`\<=\active \def<{
\fontencoding{T1}\selectfont\symbol{60}\fontencoding{\encodingdefault}}
\catcode`\>=\active \def>{
\fontencoding{T1}\selectfont\symbol{62}\fontencoding{\encodingdefault}}
\catcode`\<=\active \def<{
\fontencoding{T1}\selectfont\symbol{60}\fontencoding{\encodingdefault}}
% Begin now!
\begin{document}
\begin{titlepage}
\includegraphics[width=0.4\textwidth]{URJC_logo.png}
\begin{center}
\vspace*{7cm}
\Huge
\textbf{\DocumentTitle}
\vspace{1cm}
\huge{\asignatura}
\vspace{1.5cm}
\Large
\vfill
\vspace{1cm}
\Large
\end{center}
{\parindent0pt \autor \\ \grado }
\begin{flushright}
\mesyanno
\end{flushright}
\end{titlepage}
% ToC
\tableofcontents\newpage
\newpage
% ¡Comenzamos!
\section{Sección 1}
\lipsum[1-25]
Este párrafo finaliza con una referencia. \cite{rae1}
\newpage
\section{Bibliografía}
\printbibliography[heading=none]
% Fin!
\end{document}