summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/about/about-titlepage.tex
blob: 392fdb1beb038bf9333bb20e444c2873cf1d7f37 (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
\startcomponent about-titlepage

\environment about-environment

\setvariables
  [document]
  [title=about,
   subtitle=luatex and context,
   author=hans hagen]

\startpagemakeup

    \startMPcode

        StartPage ;

            fill Page enlarged 5mm withcolor \MPcolor{maincolor} ;

            draw anchored.lrt(image(draw textext("\getvariable{document}{title}")    xsized(.750PaperWidth)            withcolor white),(lrcorner Page) shifted (-PaperWidth/20, PaperWidth/ 5)) ;
            draw anchored.lrt(image(draw textext("\getvariable{document}{subtitle}") xsized(.750PaperWidth)            withcolor white),(lrcorner Page) shifted (-PaperWidth/20, PaperWidth/10)) ;
            draw anchored.urt(image(draw textext("\getvariable{document}{author}")   xsized(.375PaperWidth) rotated 90 withcolor white),(urcorner Page) shifted (-PaperWidth/20,-PaperWidth/20)) ;

            setbounds currentpicture to Page ;

        StopPage ;

    \stopMPcode

\stoppagemakeup

\stopcomponent