-
Notifications
You must be signed in to change notification settings - Fork 0
/
Relatos.tex
232 lines (205 loc) · 6.88 KB
/
Relatos.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
% universal settings
\documentclass[a5paper,10pt,twoside,onecolumn,openright,extrafontsizes]{memoir}
\usepackage[utf8x]{inputenc} % Required for inputting international characters
%\usepackage[latin1]{inputenc}
\usepackage[spanish]{babel}
%\usepackage{amsfonts}
\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage[osf]{Alegreya,AlegreyaSans}
% PACKAGE DEFINITION
% typographical packages
\usepackage{microtype} % for micro-typographical adjustments
\usepackage{setspace} % for line spacing
\usepackage{lettrine} % for drop caps and awesome chapter beginnings
\usepackage{titlesec} % for manipulation of chapter titles
\usepackage[pass]{geometry}
\usepackage{caption}
% for placeholder text
\usepackage{lipsum} % to generate Lorem Ipsum
% other
\usepackage{calc}
\usepackage{hologo}
\usepackage[hidelinks]{hyperref}
%\usepackage{showframe}
\usepackage{graphicx}
\usepackage{pict2e}
\DeclareGraphicsExtensions{.tif}
% useful packages for making front cover
\usepackage{tikz} % Required for drawing custom shapes
\definecolor[named]{color01}{rgb}{.2,.4,.6} % Color used in the title page
\usepackage{wallpaper} % Required for setting background images (title page)
% PHYSICAL DOCUMENT SETUP
% media settings
%\setstocksize{8.5in}{5.675in}
%\settrimmedsize{8.5in}{5.5in}{*}
%\setbinding{0.175in}
\setlrmarginsandblock{1.75cm}{2.25cm}{*}
\setulmarginsandblock{2.55cm}{2.55cm}{*}
\newcommand{\figw}{95mm}
\newcommand{\figh}{105mm}
\captionsetup{justification=centering}
% defining the title and the author
%\title{\LaTeX{} ePub Template}
%\title{\textsc{How I Started to Love {\fontfamily{cmr}\selectfont\LaTeX{}}}}
\title{T\'itulo de Antolog\'ia}
\author{<Autores>}
\newcommand{\ISBN}{0-000-00000-2}
\newcommand{\press}{<Editor>}
% custom second title page
\makeatletter
\newcommand*\halftitlepage{\begingroup % Misericords, T&H p 153
\setlength\drop{0.1\textheight}
\begin{center}
\vspace*{\drop}
\rule{\textwidth}{0in}\par
{\Large\textsc\thetitle\par}
\rule{\textwidth}{0in}\par
\vfill
\end{center}
\endgroup}
\makeatother
% supress Underfull \vbox (badness 10000) has occurred while \output is active [] warning
\makeatletter
\def\@textbottom{\vskip \z@ \@plus 11.8pt}
\let\@texttop\relax
\makeatother
% supress Overfull \hbox (1.80637pt too wide) in paragraph at lines 181--181
\setlength{\emergencystretch}{0.0pt}
% custom title page
\thispagestyle{empty}
\makeatletter
\newlength\drop
\newcommand*\titleM{\begingroup % Misericords, T&H p 153
\setlength\drop{0.15\textheight}
\begin{center}
\vspace*{\drop}
\rule{\textwidth}{0in}\par
{\HUGE\textsc\thetitle\par}
\rule{\textwidth}{0in}\par
{\Large\textit\theauthor\par}
\vfill
{\Large\scshape\press}
\end{center}
\endgroup}
\makeatother
% chapter title manipulation
% padding with zero
%\renewcommand*\thechapter{\ifnum\value{chapter}<10 0\fi\arabic{chapter}}
% chapter title display
\titleformat
{\chapter}
[display]
{\normalfont\scshape\huge}
{\HUGE\thechapter\centering}
{0pt}
{\vspace{18pt}\centering}[\vspace{42pt}]
% typographical settings for the body text
\setlength{\parskip}{0em}
\linespread{1.09}
%\addto\captionsspanish{%
%\def\figurename{\footnotesize Figura}%
%}
% HEADER AND FOOTER MANIPULATION
% for normal pages
\nouppercaseheads
\headsep = 0.16in
\makepagestyle{mystyle}
\setlength{\headwidth}{\dimexpr\textwidth+\marginparsep+\marginparwidth\relax}
\makerunningwidth{mystyle}{\headwidth}
\makeevenhead{mystyle}{}{\textsf{\scriptsize\scshape\thetitle}}{}
\makeoddhead{mystyle}{}{\textsf{\scriptsize\scshape\leftmark}}{}
\makeevenfoot{mystyle}{}{\textsf{\scriptsize\thepage}}{}
\makeoddfoot{mystyle}{}{\textsf{\scriptsize\thepage}}{}
\makeatletter
\makepsmarks{mystyle}{%
\createmark{chapter}{left}{nonumber}{\@chapapp\ }{.\ }}
\makeatother
% for pages where chapters begin
\makepagestyle{plain}
\makerunningwidth{plain}{\headwidth}
\makeevenfoot{plain}{}{}{}
\makeoddfoot{plain}{}{}{}
\pagestyle{mystyle}
% END HEADER AND FOOTER MANIPULATION
% table of contents customisation
\usepackage{tocloft}
%\setcounter{secnumdepth}{-1}
\renewcommand\contentsname{\normalfont\scshape Índice de Relatos}
\renewcommand\cftchapterfont{\normalfont}
\renewcommand{\cftchapterpagefont}{\normalfont}
\renewcommand{\printtoctitle}{\centering\Huge}
\renewcommand{\cftdot}{}
\renewcommand\listfigurename{\normalfont\scshape Índice de Ilustraciones\vspace{10pt}}
\addto\captionsspanish{% Replace "spanish" with the language you use
\renewcommand{\contentsname}%
{\normalfont\scshape Índice de Relatos}%
}
\addto\captionsspanish{% Replace "spanish" with the language you use
\renewcommand{\listfigurename}%
{\centering\normalfont\scshape Índice de Ilustraciones\vspace{10pt}}%
}
% dialogue dashes
\def\reply{\par---}
\def\pause{ ---}
\def\pauseend{---}
%\usepackage{hyphenat}
% define author names
\newcommand{\manuel}{Manuel María López}
\newcommand{\ruyman}{Ruymán Joaquín Pérez Guijo}
\newcommand{\ariadna}{Ariadna Roca Fernández}
\newcommand{\daniel}{Daniel Pereira}
\newcommand{\fernando}{Fernando Llor}
\newcommand{\adrian}{Adrián Benatar Sanjuán}
\newcommand{\samuel}{Samuel Hernández (El asfalto es blando)}
\newcommand{\rlopez}{Román López Cabrera}
\newcommand{\rosana}{Rosana González}
% layout check and fix
\checkandfixthelayout
\fixpdflayout
% BEGIN THE DOCUMENT
\begin{document}
\input{cover}
\pagestyle{empty}
% the half title page
\halftitlepage
\cleardoublepage
% the title page
\titleM
\clearpage
% copyright page
\noindent{\small{This novel is entirely a work of fiction. The names, characters and incidents portrayed in it are the product of the author's imagination. Any resemblance to actual persons, living or dead, or events or localities is entirely coincidental.\par\vfill\noindent Paperback Edition\space\today\\ISBN\space\ISBN\\\copyright\space\theauthor. All rights reserved.\par\vfill\noindent\theauthor\space asserts the moral right to be identified as the author of this work. All rights reserved in all media. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, electronic, mechanical, photocopying, recording or otherwise, without the prior written permission of the author and/or the publisher.\par}}
\clearpage
% dedication
\begin{center}
\itshape{\noindent{¿Hay dedicatorias?}}
\end{center}
\input{explain}
% begin front matter
\frontmatter
\pagestyle{mystyle}
% preface
\chapter*{Prefacio}
\input{prefacio}
% acknowledgements
\chapter*{Agradecimientos}
\input{agradecimientos}
% table of contents
\cleardoublepage
\tableofcontents*
\cleardoublepage
\listoffigures*
\cleardoublepage
% begin main matter
\mainmatter
\input{relato-lander}
\input{relato-metastasis}
\input{relato-scopa}
\input{relato-joven}
\input{relato-arenas}
\input{relato-heos}
% begin back matter
\newpage % Make sure the following content is on a new page
\thispagestyle{empty} % Suppress page numbering
\mbox{ }
\end{document}
% END THE DOCUMENT