summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex/novel/extras/novel-example.tex
blob: 6e1a84d920f5dff1902f6832dfbb4048275c1096 (plain)
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
% !TeX TS-program = LuaLaTeX
% !TeX encoding = UTF-8
%
% EXAMPLE OF NOVEL DOCUMENT CLASS
% Uses mostly default layout.
% IF YOU COMPILE THIS DOCUMENT: Be sure that this file, and its generated PDF,
%   have read/write permissions for any user. If they don't, then
%   compile will fail at the point where files are written.
\documentclass{novel} % v. 1.42 or later
\SetTitle{Dark and Stormy}
\SetSubtitle{A Tale of Nights}
\SetAuthor{Dirk Hardcase}
\SetPDFX[CGATSTR001]{X-1a:2001}
% This example document picks a \titlepagefont for the book's title,
% depending on what you have installed. Not necessarily a good choice!
\begin{document}

\frontmatter

% i. Half-Title page:
\thispagestyle{empty}
\vspace*{6\nbs}
\hfill\charscale[1.8]{\textbf{Dark and}}\par
\vspace{\nbs}
\hfill\charscale[2.4]{\textbf{Stormy}}\par
\clearpage

% ii. Blank page:
\thispagestyle{empty}
\null
\clearpage

% iii. Full Title page:
\thispagestyle{empty}
\vspace*{5\nbs}
\begin{center}
\charscale[3.6]{\textbf{Dark and}}\par
\vspace{2\nbs}
\charscale[4.8]{\textbf{Stormy}}\par
\vspace{1.5\nbs}
\charscale[1.6]{A Tale of Nights}\par
\vspace{4\nbs}
\ChapterDeco[6]{\decoglyph{n9548}}
\vspace{4\nbs}
{\addfontfeature{Scale=3}\theAuthor}
\vfill
{\addfontfeature{Scale=1.25} Nonexistent Publications\\
Anytown • Anyplace • Anywhere}\par

\end{center}
\clearpage


% iv. Copyright page:
\thispagestyle{empty}
\begin{center}
\itshape{
\null
\vfill
\textsc{Dark and Stormy}\par
Copyright ©2017 Dirk Hardcase.\par % Whichever year, copyright holder.
All Rights Reserved.\par % Usually no need to be elaborate.
\null
This is a work of fiction.\\
All persons and events are\\
from the author's imagination.\\
Resemblance to any real person,\\
living or dead, is coincidental.\par % Or similar language.
\null
Printed on acid-free paper.\par % If true. Usually is true.
Printed in the United States of America.\par % Or whichever nation.
\null
ISBN 0-12345678-9\par % Whatever it is. No barcode, just number.
\null

Independently Published by Dirk Hardcase,\par % Publisher is you, not the print/distribution service.
Anytown, Anystate USA\par % Publisher's location.
www.example.com/dhardcase/publications/\par % Contact for publisher or author.
\null
Publisher's Cataloging-In-Publication Data\\
available upon request.\par
% Fiction often does not need catalog data.
} % end itshape
\end{center}
\clearpage

% v. Epigraph, Dedication, Table of Contents, or repeated Half-Title.
% In this case, an Epigraph:
\thispagestyle{empty}
\vspace*{7\nbs}
\begin{adjustwidth}{5em}{5em}
\noindent When the lone raccoon howls at dusk,\\
And white birds cease their twitter,\\
Then shall the rivers overflow with mead.\par
\hfill---\textit{Prophecy of Claudius}\par
\end{adjustwidth}
\cleartorecto % here, inserts blank, so mainmatter begins recto

% Now to begin your story:
\mainmatter

% Chapter One:
\begin{ChapterStart}
\vspace*{3\nbs}
\ChapterTitle{Chapter One}
\end{ChapterStart}

It was a dark and stormy night. Lord Withens rode his horse through the gloom, which was, as heretofore mentioned, dark. Most gloom is dark, eh wot?

Moving right along, his horse arrived at the back door of Lady Wishintale's quarters. Sadly, Lord Withens was not on it, having slipped off his saddle along the way. That was because the weather was stormy.

\lipsum

% Chapter Two:
\clearpage % next chapter may begin recto or verso
\begin{ChapterStart}
\vspace*{3\nbs}
\ChapterTitle{Chapter Two}
\end{ChapterStart}

The night was still dark and stormy. This should not be surprising, seeing as how only half an hour has elapsed since the first chapter. That information was necessary, in case you put the book down and haven't read any of it for the last two weeks.

Lord Withens, wet and bruised, finally arrived at his destination. The reason he was wet was because, as has been noted, the weather was stormy. It was dark, too.

\lipsum


\cleartoend % ensures final page is blank verso

\end{document}