-
Notifications
You must be signed in to change notification settings - Fork 4
/
template.tex
114 lines (76 loc) · 2.05 KB
/
template.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
\documentclass[var{FONT_SIZE}pt,twoside,openright]{book}
\usepackage[var{PAGE_SIZE},hmarginratio={3:2},bottom=0.8in,top=0.8in]{geometry}
\usepackage{times}
\usepackage[Lenny]{fncychap}
\usepackage[spanish]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage{etoolbox}
\usepackage[titles]{tocloft}
\usepackage{pdfpages}
\usepackage{courier}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
% change the space before the titles
\makeatletter
\patchcmd{\@makechapterhead}{\vspace*{50\p@}}{\vspace*{0pt}}{}{}
\patchcmd{\@makeschapterhead}{\vspace*{50\p@}}{\vspace*{0pt}}{}{}
\makeatother
% change the space after the titles
\renewcommand{\DOTI}[1]{%
\raggedright
\CTV\FmTi{#1}\par\nobreak
\vskip 10pt}
\renewcommand{\DOTIS}[1]{%
\raggedright
\CTV\FmTi{#1}\par\nobreak
\vskip 10pt}
\title{var{TITLE}block{ if SUBTITLE }\bigbreak\large var{SUBTITLE}block{ endif }}
\author{block{ if SUBTITLE }\bigbreak block{ endif }var{AUTHOR}}
\date{}
var{HYPHENATION}
% Avoid widows and orphans
\widowpenalty=10000
\clubpenalty=10000
\begin{document}
\pagenumbering{gobble}
\pagestyle{plain}
% IF PRINT
%\includepdf{empty.pdf}
%\includepdf{empty.pdf}
\maketitle
\cleardoublepage
\thispagestyle{empty}
\noindent
Edición automágica, var{YEAR}.\\
\vspace{0.5cm}
\noindent
\emph{var{TITLE}} lleva la licencia
\emph{Creative Commons Attribution - NonCommercial - ShareAlike 4.0 Iternational}.
Esto significa que podés compartir esta obra y crear obras derivadas
mencionando al autor, pero no ha\-cer un uso comercial de ella.
\vfill
\noindent
%Más información sobre este libro:\\
var{URL}\\
\cleardoublepage
block{ if not exclude_index }
\renewcommand*\contentsname{var{INDEX_TITLE}}
\tableofcontents
\cleardoublepage
block{ endif }
\pagenumbering{arabic}
var{CONTENT}
\cleardoublepage
%IMPRENTA
%\includepdf{empty.pdf}
\hspace{0pt}
\vfill
\begin{center}
Maqueteado automáticamente utilizando \emph{Automágica}.
\bigbreak
http://www.juanjoconti.com/automagica/
\end{center}
\vfill
\hspace{0pt}
\end{document}