Jan Ulrich Hasecke
2022-04-05 6a420003897cb49b296e68d8a7145b6fffda4c28
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
\environment hs.env-fonts
\environment hs.env-colors
\setupexternalfigures[location={default,local},conversion=mp]
\environment hs.env-din-a4
\environment hs.env-makeups
\environment hs.env-paragraphs
\environment hs.env-tabellen
\environment hs.env-doubleside-formal-header-footer
\environment hs.env-headlines
\environment hs.env-chapter-section-toc
\environment hs.env-lists
%\usemodule[chart]
\setupdocument
  [
    $if(title)$
    metadata:title={$title$},
    $endif$
    $if(subtitle)$
    metadata:subtitle={$subtitle$},
    $endif$
    $if(author)$
    metadata:author={$for(author)$$author$$sep$; $endfor$},
    $endif$
    $if(keyword)$
    metadata:keyword={$for(keywords)$$keywords$$sep$; $endfor$}
    $endif$]
 
$if(csl-refs)$
\definemeasure[cslhangindent][1.5em]
\definenarrower[hangingreferences][left=\measure{cslhangindent}]
\definestartstop [cslreferences] [
$if(csl-hanging-indent)$
  before={%
%      \switchtobodyfont [condensedfont,10pt]
      \starthangingreferences[left]
      \setupindenting[-\leftskip,yes,first]
      \setupalign[verytolerant,morehyphenation,stretch]
      \doindentation
          },
          after=\stophangingreferences,
        $endif$
]
$endif$
 
%\showframe
 
\startuniqueMPgraphic{MPfa}{s::symbol}
  picture pic ;
  pic := textext.rt("\color[hs-orange]{\symbol[fontawesome][\MPvariable{symbol}]}") ;
  draw pic scaled 6; %for dramatic effects
\stopuniqueMPgraphic
 
 
\setuphead[subject]
  [incrementnumber=yes,  % keep track of the number
   number=no]            % but don't show it
\setupcombinedlist[content][list={chapter,subject,section}]
 
\startdocument
\starttext
\startfrontmatter
\setupbackgrounds[page][background=color,backgroundcolor=hs-dunkelblau]
 
\startdarkcoverpagemakeup
  \blank[10*big]
  $if(cover)$
  \externalfigure[$cover$][width=\makeupwidth]
  $endif$
  \blank[6*big]
  $if(title)$
  {\bfd \color[white]{\documentvariable{metadata:title}}}
  \blank[2*big]
  $endif$
  $if(subtitle)$
  {\tfc \color[white]{\documentvariable{metadata:subtitle}}}
  \blank[2*big]
  $endif$
  $if(author)$
  {\tfc \color[white]{\documentvariable{metadata:author}}}
  \blank[4*big]
  $endif$
  {\tfa \color[white]{Version $version$ vom \currentdate}}
\stopdarkcoverpagemakeup
 
\setupbackgrounds[page][background=,]
\starttitle[title=Inhalt]
\placecontent
 
\stopfrontmatter
 
\startbodymatter
 
$body$
  
\stopbodymatter
\startbackmatter
  \startcopyrightmakeup
   \component impressum
  \stopcopyrightmakeup
\stopbackmatter
\stoptext
\stopdocument