summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/luametatex/luametatex-titlepage.tex
blob: 6f7a6f9a5a59a6d46fc4b60c2ad114d7adb5fb62 (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
\environment luametatex-style

\startcomponent luametatex-titlepage

\startstandardmakeup

    \switchtobodyfont
      [mainfacemedium]

    \definedfont[Bold*default at \the\dimexpr.06\paperheight\relax] \setupinterlinespace

    \setlayer
      [page]
      {\useMPgraphic{luapage}}

    \setlayerframed
      [page]
      [preset=righttop,
       location=middletop,
       hoffset=.500\measured{paperwidth},
       voffset=.175\measured{paperheight}]
      [align=middle,
       foregroundcolor=white,
       frame=off]
      {\documentvariable{manual}\crlf Reference\crlf Manual}

    \definedfont[Bold*default at 14pt] \setupinterlinespace

    \setlayerframed
      [page]
      [preset=rightbottom,
       offset=.025\measured{paperheight}]
      [align=flushright,
       foregroundcolor=white,
       frame=off]
      {\doifsomething{\documentvariable{status}}{\documentvariable{status}\par}
       \currentdate[month,space,year]\par
       Version \documentvariable{version}}

    \setlayerframed
      [page]
      [preset=middle,
       hoffset=-.5\dimexpr\measured{paperwidth}-\measured{spinewidth}\relax]
      [width=.7\measured{paperwidth},
       align=normal,
       foregroundstyle=\bf,
       foregroundcolor=white,
       frame=off]
      {\getbuffer[backpage]}

\stopstandardmakeup

\stopcomponent