summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/third/letter/interface/default.nri
blob: c417951987ef6b827ecad10a3391a193e805cb00 (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
%D \module
%D   [       file=default,
%D        version=2009.02.14,
%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}
%
% \def\dostartresume[#1]%
%   {\iffirstargument
%      \getparameters[\????rd][#1]%
%    \fi
%    \def\stopresume{\directsetup{\v!resume:\v!place}\egroup\setupsubpagenumber[\c!state=\v!start]}%
%    \dostartbuffer[resumecontent][startresume][stopresume]}

\long\def\dosetbuffer[#1]#2\endbuffer % added \long
  {\begingroup
   \setcurrentbuffer{#1}%
   \mksetbuffer{#2}%
   \endgroup}

\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

\setupresumestyle
  [\v!option]
  [\c!color=blue]

\protect \endinput