-
Notifications
You must be signed in to change notification settings - Fork 2
/
t-title.tex
71 lines (57 loc) · 1.11 KB
/
t-title.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
\defineblock[imprint]
\hideblocks[imprint]
\defineblock[copyright]
\hideblocks[copyright]
\unprotect
\def\doctitle#1{\gdef\@title{#1}}
\def\docsubtitle#1{\gdef\@subtitle{#1}}
\def\author#1{\gdef\@author{#1}}
\def\date#1{\gdef\@date{#1}}
\date{\currentdate} % Default to today unless specified otherwise.
\def\Author
{
\@author
}
% Typeset the title page, including the backpage
\def\TitlePage
{
\setuppagenumbering[location=]
\setuplayout[titles]
\null
\vskip5cm
\startalignment[center]
{\tfd {\cap{\@title}}}
\blank[5*medium]
{\tfc \it \@subtitle}
\blank[8*medium]
{\tfb \@author}
\blank[2*medium]
{\tfa \@date}
\stopalignment
\page
{
\tfx
\useblocks[imprint][contact]
\blank[3cm]
\useblocks[imprint][colophon]
}
{\vfill \tfxx \useblocks[copyright]}
\page
}
\def\PreTitlePage
{
\setuppagenumbering[location=]
\setuplayout[titles]
\null
\vskip5cm
{\tfc \sc \@title}
\page
\null
\page
\setuplayout[reset]
}
% Typeset the cover
\def\CoverFront{{\bf Test}}
\def\CoverSpine{{\bf Test}}
\def\CoverBack{{\bf Test}}
\protect