summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/third/letter/interface/default.nri
blob: 7ccb61be58b44c551fed55bdd4e5e676f87ff0a1 (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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
%D \module
%D   [       file=default,
%D        version=2009.06.30,
%D          title=\CONTEXT\ Resume Interface,
%D       subtitle=Default Interface,
%D         author=Wolfgang Schuster,
%D           date=\currentdate,
%D      copyright=Wolfgang Schuster,
%D          email=schuster.wolfgang@googlemail.com,
%D        license=Public Domain]

\unprotect

%D The resume provides no own commands to write the information
%D for your curriculum vitae but you can use \CONTEXT's own
%D description, paragraph or table commands.
%D
%D I hope I can change this in the future and give the users one
%D commands which can be used to arrange the information either
%D in rows or in columns.
%D
%D \starttyping
%D \def\????sp{@@@@sp}
%D
%D \def\startcontent
%D   {\dosingleempty\dostartcontent}
%D
%D \def\dostartcontent[#1]%
%D   {\getparameters[\????sp][\c!alternative=\v!row,#1]%
%D    \doifelse\@@@@spalternative\v!row\valign\halign\bgroup&##\cr}
%D
%D \def\stopcontent
%D   {\crcr\egroup}
%D \stoptyping
%D
%D This command could be used to write the content in columns or rows,
%D the behaviour can be changed with the \type {alternative} key.
%D
%D \starttyping
%D \startcontent
%D \hsize=3cm
%D \dorecurse{10}{text } \cr
%D \hsize=3cm
%D text \cr
%D text \cr
%D \stopcontent
%D
%D \startcontent[alternative=column]
%D \vbox{\dorecurse{40}{text }} \cr
%D text \cr
%D text \cr
%D \stopcontent
%D \stoptyping

\def\startresume
  {\bgroup\dosingleempty\dostartresume}

\long\def\dostartresume[#1]#2\stopresume
  {\iffirstargument
     \getparameters[\????rd][#1]%
   \fi
   \setbuffer[resumecontent]#2\endbuffer
   \directsetup{\v!resume:\v!place}\egroup}

\def\startresumecontent
  {\dostartbuffer[resumecontent][startresumecontent][stopresumecontent]}

\setupresume
  [\c!content={\getbuffer[resumecontent]}]

\startsetups[\v!resume:\v!content]
\resumevalue\c!content
\stopsetups

\startsetups[\v!resume:\v!head]
\executeifdefined{\v!resume:\v!head:\@@@@rsheadalternative}\donothing
\stopsetups

\startsetups[\v!resume:\v!foot]
\executeifdefined{\v!resume:\v!foot:\@@@@rsfootalternative}\donothing
\stopsetups

\startsetups[\v!resume:\v!nexthead]
\executeifdefined{\v!resume:\v!nexthead:\@@@@rsnextheadalternative}\donothing
\stopsetups

\startsetups[\v!resume:\v!nextfoot]
\executeifdefined{\v!resume:\v!nextfoot:\@@@@rsnextfootalternative}\donothing
\stopsetups

\defineresumeelement[\v!head][\v!a]
  {}

\startsetups[\v!resume:\v!head:\v!a]

  \definelayer[resume:head:background]

  \setlayer
    [resume:head:background]
    [\c!preset=\v!right\v!bottom,
     \c!hoffset=1cm,
     \c!voffset=5mm]
    {\color[white]{Resume}} % variable

  \setupresumestyle
    [\v!head]
    [\c!hoffset=\zeropoint,
     \c!voffset=\zeropoint,
     \c!width=\paperwidth,
     \c!background={color,resume:head:background},
     \c!backgroundcolor=gray]

\stopsetups

\defineresumeelement[\v!head][\v!b]
  {}

\startsetups[\v!resume:\v!head:\v!b]

  \setupresumestyle
    [\v!head]
    [\c!hoffset=\zeropoint,
     \c!voffset=\zeropoint,
     \c!width=\paperwidth,
     \c!background={color,resume:head:background},
     \c!backgroundcolor=gray]

\stopsetups

\startsetups[\v!resume:\v!optimize]

  \directsetup{\v!resume:\v!head:\@@@@rsheadalternative}

\stopsetups

\protect \endinput