blob: e68bed79ba7318aa732bccf75132e4fb3a813fc3 (
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
|
%D \module
%D [ file=s-article-titletop,
%D version=2018.05.20,
%D title=\CONTEXT\ Style File,
%D subtitle=Article Top Title,
%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-titletop]
\unprotect
\defineframed
[titlepageframed]
[\c!frame=\v!off,
\c!align=\v!middle]
\startsetups document:titlepage
\setupheader[\c!state=\v!high]
\start
\forgetall
\startalignment[\v!middle]
\doifdocumentvariable {title} {
\dontleavehmode \titlepageframed
[\c!foregroundstyle=\bfd\setupinterlinespace]
{\documentvariable {title}}
\par
}
\doifdocumentvariable {subject} {
\dontleavehmode \titlepageframed
[\c!foregroundstyle=\bfb\setupinterlinespace]
{\documentvariable {subject}}
\par
}
\doifdocumentvariable {author} {
\dontleavehmode \titlepageframed
[\c!foregroundstyle=\bfa\setupinterlinespace]
{\documentvariable {author}}
\par
}
\doifdocumentvariable {affiliation} {
\dontleavehmode \titlepageframed
[\c!foregroundstyle=\bfa\setupinterlinespace]
{\documentvariable {affiliation}}
\par
}
\doifdocumentvariable {date} {
\dontleavehmode \titlepageframed
[\c!foregroundstyle=\bfa\setupinterlinespace]
{\documentvariable {date}}
\par
}
\blank[3*\v!big]
\stopalignment
\stop
\stopsetups
\setupdocument
[\c!before=\directsetup{document:titlepage}]
\protect
\stopmodule
|