s-article-titlepage.mkiv /size: 1931 b    last modification: 2020-07-01 14:35
1
%D \module
2
%D [ file=s-article-titlepage,
3
%D version=2018.05.20,
4
%D title=\CONTEXT\ Style File,
5
%D subtitle=Article Title Page,
6
%D author=Hans Hagen,
7
%D date=\currentdate,
8
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9
%C
10
%C This module is part of the \CONTEXT\ macro||package and is
11
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12
%C details.
13 14
\startmodule
[
article
-
titlepage
]
15 16
\unprotect
17 18
% \startalignment[middle]
19
% \let\\=\par
20
% \bfb
21
% \setupinterlinespace
22
% \documentvariable {subject}
23
% \par
24
% \stopalignment
25 26
\defineframed
27
[
titlepageframed
]
28
[
\c!frame
=
\v!off
,
29
\c!align
=
\v!middle
]
30 31
\startsetups
document
:
titlepage
32
\startstandardmakeup
[
\c!align
=
\v!middle
]
33
\doifdocumentvariable
{
title
}
{
34
\dontleavehmode
\titlepageframed
35
[
\c!foregroundstyle
=
\bfd
\setupinterlinespace
]
36
{
\documentvariable
{
title
}}
37
}
38
\doifdocumentvariable
{
subject
}
{
39
\blank
[
2
*
\v!big
]
40
\dontleavehmode
\titlepageframed
41
[
\c!foregroundstyle
=
\bfb
\setupinterlinespace
]
42
{
\documentvariable
{
subject
}}
43
}
44
\doifdocumentvariable
{
author
}
{
45
\blank
[
4
*
\v!big
]
46
\dontleavehmode
\titlepageframed
47
[
\c!foregroundstyle
=
\bfa
\setupinterlinespace
]
48
{
\documentvariable
{
author
}}
49
}
50
\vfill
51
\doifdocumentvariable
{
affiliation
}
{
52
\dontleavehmode
\titlepageframed
53
[
\c!foregroundstyle
=
\bfa
\setupinterlinespace
]
54
{
\documentvariable
{
affiliation
}}
55
}
56
\doifdocumentvariable
{
date
}
{
57
\blank
[
\v!big
]
58
\dontleavehmode
\titlepageframed
59
[
\c!foregroundstyle
=
\bfa
\setupinterlinespace
]
60
{
\documentvariable
{
date
}}
61
}
62
\stopstandardmakeup
63
\stopsetups
64 65
\stopmodule
66