blob: abfb957c2fab304972554411378fc7c622bfc085 (
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
|
%D \module
%D [ file=s-article-titlepage,
%D version=2018.05.20,
%D title=\CONTEXT\ Style File,
%D subtitle=Article Title Page,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
\startmodule[article-titlepage]
\unprotect
% \startalignment[middle]
% \let\\=\par
% \bfb
% \setupinterlinespace
% \documentvariable {subject}
% \par
% \stopalignment
\defineframed
[titlepageframed]
[\c!frame=\v!off,
\c!align=\v!middle]
\startsetups document:titlepage
\startstandardmakeup[\c!align=\v!middle]
\doifdocumentvariable {title} {
\dontleavehmode \titlepageframed
[\c!foregroundstyle=\bfd\setupinterlinespace]
{\documentvariable {title}}
}
\doifdocumentvariable {subject} {
\blank[2*\v!big]
\dontleavehmode \titlepageframed
[\c!foregroundstyle=\bfb\setupinterlinespace]
{\documentvariable {subject}}
}
\doifdocumentvariable {author} {
\blank[4*\v!big]
\dontleavehmode \titlepageframed
[\c!foregroundstyle=\bfa\setupinterlinespace]
{\documentvariable {author}}
}
\vfill
\doifdocumentvariable {affiliation} {
\dontleavehmode \titlepageframed
[\c!foregroundstyle=\bfa\setupinterlinespace]
{\documentvariable {affiliation}}
}
\doifdocumentvariable {date} {
\blank[\v!big]
\dontleavehmode \titlepageframed
[\c!foregroundstyle=\bfa\setupinterlinespace]
{\documentvariable {date}}
}
\stopstandardmakeup
\stopsetups
\stopmodule
|