-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.tex
162 lines (130 loc) · 4.63 KB
/
setup.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
\newlength{\pagewidthA}
\newlength{\pageheightA}
\setlength{\pagewidthA}{8.5in}
\setlength{\pageheightA}{11in}
\newlength{\pagewidthB}
\newlength{\pageheightB}
\setlength{\pagewidthB}{11in}
\setlength{\pageheightB}{8.5in}
\newlength{\stockwidth}
\newlength{\stockheight}
\usepackage{geometry}
% these seem to have NO effect in preamble!
% geometry first has effect after begin{document}!
\pdfpagewidth=\pagewidthA \pdfpageheight=\pageheightA % to enforce?
\paperwidth=\pagewidthA \paperheight=\pageheightA % for TikZ
\stockwidth=\pagewidthA \stockheight=\pageheightA % hyperref (memoir)?!
\geometry{inner=1cm,outer=1cm,top=1cm,bottom=1cm}
\makeatletter
\newcommand{\printpagevalues}{%
% from geometry.sty:
* paper: \ifx\Gm@paper\@undefined<default>\else\Gm@paper\fi \\%
* layout: \ifGm@layout<custom>\else<same size as paper>\fi \\%
\@ifundefined{ifGm@layout}{}{%
\ifGm@layout
* layout(width,height): (\the\Gm@layoutwidth,\the\Gm@layoutheight) \\%
\fi
* layoutoffset:(h,v)=(\the\Gm@layouthoffset,\the\Gm@layoutvoffset) \\%
}%
\pagevalues % from package layouts
}
\makeatother
\newcommand{\generatePageLayouts}{%
% this command must be called after \begin{document}!
% geometry needs layoutwidth - cause it ignores the above paper sizes!
% layoutwidth=148mm ok, layoutwidth=\paperwidth NOT ok
% paperwidth gets reset again internally in newgeometry: in log: *geometry* verbose mode: * layout(width,height): (614.295pt,794.96999pt)
% but by using \stockwidth, which here is just a custom length: * layout(width,height): (421.10078pt,597.50787pt)
\newgeometry{layoutwidth=\pagewidthA,layoutheight=\pageheightA,left=2cm,right=2cm,bottom=2cm,top=2cm}
\savegeometry{LayoutPageA}
\newgeometry{layoutwidth=\pagewidthB,layoutheight=\pageheightB,inner=1cm,outer=1cm,top=1cm,bottom=1cm}
\savegeometry{LayoutPageB}
}
\newcommand{\switchToLayoutPageA}{%
% doesn't include page sizes; so page size too:
\pdfpagewidth=\pagewidthA \pdfpageheight=\pageheightA % for PDF output
\paperwidth=\pagewidthA \paperheight=\pageheightA % for TikZ
\stockwidth=\pagewidthA \stockheight=\pageheightA % hyperref (memoir)?!
\loadgeometry{LayoutPageA} % note; \loadgeometry may reset paperwidth/h!
}
\newcommand{\switchToLayoutPageB}{%
% doesn't include page sizes; so page size too:
\pdfpagewidth=\pagewidthB \pdfpageheight=\pageheightB % for PDF output
\paperwidth=\pagewidthB \paperheight=\pageheightB % for TikZ
\stockwidth=\pagewidthB \stockheight=\pageheightB % hyperref (memoir)?!
\loadgeometry{LayoutPageB} % note; \loadgeometry may reset paperwidth/h!
}
\usepackage{sectsty}
\usepackage[explicit]{titlesec}
\usepackage{fancyhdr}
\usepackage[absolute]{textpos}
\usepackage{xltxtra,fontspec,xunicode}
\defaultfontfeatures{Scale=MatchLowercase}
\setmainfont[BoldFont=Shadowrun Bold,ItalicFont=Shadowrun Italic]{Shadowrun}
\newfontfamily\fatefont{Fate Core Glyphs}
\newfontfamily\orbitronfont{Orbitron}
\newfontfamily\oswaldfont{Oswald}
\newfontfamily\shadowrunfont{Shadowrun}
\newfontfamily\shadowrunbfont{Shadowrun Bold}
\setlength{\parindent}{0cm}
\setlength{\parskip}{.2cm}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{0}
\usepackage{pdflscape}
\usepackage{atbegshi}
\usepackage[svgnames,table]{xcolor}
\usepackage{lipsum}
\usepackage{tabu}
\usepackage{multicol}
\usepackage{changepage}
\usepackage{parcolumns}
\usepackage{array}
\usepackage{comment}
\usepackage{picture}
\usepackage[hidelinks]{hyperref}
\usepackage{float}
\usepackage{layouts}
%\usepackage{showframe}
\usepackage{ifthen}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{tcolorbox}
\usepackage{tikz}
\definecolor{lightgray}{gray}{0.90}
\input{dossierhelpers}
\def\SW/{\textit{Sixth World}}
\def\DW/{\textit{Dungeon World}}
\def\SR/{\textit{Shadowrun}}
\newcommand{\tcirc}{\protect{$\bigcirc$}}
\def\oomph/{\textbf{Oomph}}
\def\twitch/{\textbf{Twitch}}
\def\mastery/{\textbf{Mastery}}
\def\flair/{\textbf{Flair}}
\def\essence/{\textbf{Essence}}
\newenvironment{gmtip}%
{\begin{tcolorbox}[title=GM Tips,sharp corners,rounded
corners=downhill,parbox=false]
\setlength{\parindent}{0cm}
\setlength{\parskip}{.2cm}
\noindent
}%
{\end{tcolorbox}}
\newenvironment{dent}%
{\begin{adjustwidth*}{.5cm}{.5cm}}%
{\end{adjustwidth*}}
\newcommand*\parttitle{}
\newcommand\invisiblepart[1]{%
\refstepcounter{part}%
\renewcommand*\parttitle{#1}%
}
\newcommand{\movename}[1]{\textbf{\MakeUppercase{#1}}}
\newcommand{\fluff}[1]{\texttt{\textgreater \textgreater \textgreater #1\textless \textless \textless}}
\title{Your Title}
\author{Your Name}
\date{}
\setlength{\TPHorizModule}{1cm}
\setlength{\TPVertModule}{1cm}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "sixth_world"
%%% End: