-
Notifications
You must be signed in to change notification settings - Fork 1
/
LANCER Pre-release - Community Edition.tex
205 lines (172 loc) · 4.49 KB
/
LANCER Pre-release - Community Edition.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
\documentclass[11pt, letterpaper, openany]{memoir}
\interfootnotelinepenalty=10000
% --------------------------
% Packages
% --------------------------
\usepackage{varwidth}
\usepackage{amsmath}
\usepackage{import}
\usepackage[svgnames]{xcolor} % https://www.w3.org/TR/SVG11/types.html#ColorKeywords
\usepackage{lancer}
\usepackage{parskip}
\usepackage{fontspec}
\usepackage{titlesec}
\usepackage{tabu}
\usepackage{url}
%\usepackage{geometry}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{etoolbox}
\usepackage{xstring}
\usepackage{catchfile}
\usepackage{titlesec}
\usepackage{float}
\usepackage{stringstrings}
\usepackage{enumitem}
%\usepackage{gitinfo2}
% --------------------------
% Templates and other
\import{./templates/}{mech-template.tex}
\import{./templates/}{gear-template.tex}
\import{./templates/}{npc-template.tex}
\import{./templates/}{background-template.tex}
\import{./templates/}{talent-template.tex}
% --- always last
\usepackage[hidelinks,bookmarks=true]{hyperref}
% hypersetup, below
% --------------------------
% Configuration
% --------------------------
\setlength{\parskip}{1.0\baselineskip plus2pt minus2pt}
\setlrmarginsandblock{25.4mm}{22.2mm}{*}
\setulmarginsandblock{1in}{1in}{1}
\checkandfixthelayout
\setlength{\oddsidemargin}{0pt}
\setlength{\evensidemargin}{0pt}
\interfootnotelinepenalty=10000
\raggedright
\raggedbottom
\setmainfont[Ligatures=TeX]{Arial}
\fontdimen2\font=3pt
\renewcommand{\baselinestretch}{1.1}
%\list[itemize,1]{=10pt}
\setlist{nolistsep}
\setlist{itemsep=1pt, topsep=5pt}
\hypersetup{colorlinks=true,
linkcolor=black, % color of internal links (change box color with linkbordercolor)
urlcolor=blue % color of external links
}
% Remove empty page after title
% toto use etoolbox
\makeatletter
\renewcommand\mainmatter{%
\clearpage
\@mainmattertrue
\pagenumbering{arabic}}
\makeatother
\makeatletter
\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}
\makeatother
% --------------------------
% Loading
% --------------------------
\graphicspath{ {./images/} }
% --------------------------
% Commands and Environments
% --------------------------
\providecommand{\fluff}[1]{{\itshape #1}}
\providecommand{\punch}[1]{\textbf{\Large #1}}
\titleformat
{\chapter} % command
[block] % shape
{\bfseries\Huge} % format
{} %label
{} %sep
{\centering} % before-code
[] % after-code
\titleformat
{\section} % command
[block] % shape
{\bfseries\LARGE} % format
{} %label
{} %sep
{\centering} % before-code
[] % after-code
\titleformat
{\subsection} % command
[block] % shape
{\bfseries\Large} % format
{} %label
{} %sep
{\centering} % before-code
[] % after-code
\titleformat
{\subsubsection} % command
[block] % shape
{\bfseries\large} % format
{} %label
{} %sep
{\centering} % before-code
[] % after-code
\begin{document}
\frontmatter
\pagestyle{empty}
\pagenumbering{gobble}
\begingroup
\patchcmd{\chapter}{plain}{empty}{}{}
% Get all subsub(etc) sections to show in toc
\setcounter{secnumdepth}{-2}
\setcounter{tocdepth}{7}
%\pagestyle{empty}
\begin{center}
\includegraphics{Cover}
\end{center}
%\newpage
%\pagestyle{plain}
%\begin{titlingpage}
\vspace*{\stretch{1.0}}
\begin{center}
%\par\noindent\rule[1cm]{0.78\textwidth}{3mm}
\rule[1cm]{0.78\textwidth}{3mm}
{\fontsize{96}{115}\selectfont LANCER}
\rule[-1cm]{0.78\textwidth}{3mm}
\vspace{2cm}
\huge\textbf{COMMUNITY EDITION RULEBOOK}
\vspace{4cm}
\normalsize\textbf{By} \\
% TODO: add hyperlinks
\textbf{Miguel Lopez and Tom Parkinson Morgan}\\
\textbf{and the Lancer community}\\
\vspace{2cm}
\date{} % quick hack to suppress date showing on wrong page
Document generated: \today \\
%Document version: \texttt{\gitshort} on branch \texttt{\branch}
%Document version: \gitAbbrevHash \ on branch \gitBranch, committed \gitAuthorDate
\vspace{1cm}
1.8.5 Beta - CE pre-release\\
Please do not reproduce without permission
\clearpage
\end{center}
\import{source/}{changelog}
\clearpage
\tableofcontents
\endgroup % end of empty grounp
\mainmatter
\pagestyle{plain}
% We set the page number to 2, so the PDF page number = the text page number
% TODO: this must be automatable.
\addtocounter{page}{12}
\import{source/}{intro}
\import{source/}{cavalry}
\import{source/}{basicRules.tex}
\import{source/}{licenseToKill.tex}
\import{source/}{pilot.tex}
\import{source/}{basicStructure.tex}
\import{source/}{theMech.tex}
\import{source/}{mechCombat.tex}
\import{source/}{compendium.tex}
\import{source/}{theGM.tex}
\import{source/}{gmToolkit.tex}
\import{source/}{npc.tex}
\import{source/}{lore.tex}
\end{document}