context-debug.lmx /size: 4428 b    last modification: 2020-07-01 14:35
1
<?xml
version
=
"
1.0
"
encoding
=
"
UTF-8
"
?>
2 3
<!DOCTYPE
html
PUBLIC
"
-//W3C//DTD XHTML 1.0 Strict//EN
"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
"
>
4 5
<!--
6
filename
:
context-debug.lmx
7
comment
:
companion
to
context.tex
8
author
:
Hans
Hagen,
PRAGMA-ADE,
Hasselt
NL
9
copyright:
PRAGMA
ADE
/
ConTeXt
Development
Team
10
license
:
see
context
related
readme
files
11
-->
12 13
<
html
xmlns
=
"
http://www.w3.org/1999/xhtml
"
lang
=
"
en
"
xml:
lang
=
"
en
"
>
14
<
head
>
15
<script type='text/javascript'>
16
<!--
17
window.focus();
18
-->
19
</script>
20
<
title
>
<?lua
pv
(
'
title
'
)
?>
</
title
>
21
<
meta
http-equiv
=
"
Content-Type
"
content
=
"
text/html; charset=UTF-8
"
/>
22
<
style
type
=
"
text/css
"
>
23
<!--
24
<?lmx-include
context.css
?>
25
#type
{
26
text-align:
center
;
27
}
28
#variable
{
29
width:
10em
;
30
text-align:
right
;
31
margin-right:
1em
;
32
}
33
#value
{
34
text-align:
left
;
35
}
36
-->
37
</
style
>
38
</
head
>
39
<
body
>
40
<
div
id
=
"
top
"
>
<
div
id
=
"
top-one
"
>
<
div
id
=
"
top-two
"
>
41
<?lua
pv
(
'
title
'
)
?>
42
</
div
>
</
div
>
</
div
>
43
<
div
id
=
"
left
"
>
<
div
id
=
"
left-one
"
>
<
div
id
=
"
left-two
"
>
44
<!--
empty
-->
45
</
div
>
</
div
>
</
div
>
46
<
div
id
=
"
right
"
>
<
div
id
=
"
right-safari
"
>
<
div
id
=
"
right-one
"
>
<
div
id
=
"
right-two
"
>
<
div
id
=
"
right-three
"
>
<
div
id
=
"
right-four
"
>
<
div
id
=
"
right-five
"
>
47
<!--
empty
-->
48
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
49
<
div
id
=
"
main
"
>
<
div
id
=
'
main-settings
'
>
50
<?lua
if
tracers
.
knownlist
(
'
scratch
'
)
then
?>
51
<
h1
>
Scratch
Variables
</
h1
>
52
<
table
>
53
<
tr
>
54
<
th
align
=
'
middle
'
>
index
</
th
>
55
<
th
align
=
'
middle
'
>
&nbsp;
&nbsp;
&nbsp;
dimen
</
th
>
56
<
th
align
=
'
middle
'
>
&nbsp;
&nbsp;
&nbsp;
count
</
th
>
57
<
th
align
=
'
left
'
>
&nbsp;
&nbsp;
&nbsp;
toks
</
th
>
58
</
tr
>
59
<?lua
for
k
,
v
in
pairs
(
tracers
.
list
[
'
scratch
'
]
)
do
?>
60
<
tr
>
61
<
th
align
=
'
middle
'
>
<?lua
t
(
v
)
?>
</
th
>
62
<
th
align
=
'
middle
'
>
&nbsp;
&nbsp;
&nbsp;
<?lua
t
(
tracers
.
dimen
(
v
)
)
?>
</
th
>
63
<
th
align
=
'
middle
'
>
&nbsp;
&nbsp;
&nbsp;
<?lua
t
(
tracers
.
count
(
v
)
)
?>
</
th
>
64
<
th
align
=
'
left
'
>
&nbsp;
&nbsp;
&nbsp;
<?lua
t
(
tracers
.
toks
(
v
)
)
?>
</
th
>
65
</
tr
>
66
<?lua
end
?>
67
</
table
>
68
<
br
/>
69
<?lua
end
?>
70
<?lmx-define-begin
tvv-head
?>
71
<
tr
>
72
<
th
>
<
div
id
=
"
type
"
>
type
</
div
>
</
th
>
73
<
th
>
<
div
id
=
"
variable
"
>
variable
</
div
>
</
th
>
74
<
th
>
<
div
id
=
"
value
"
>
value
</
div
>
</
th
>
75
</
tr
>
76
<?lmx-define-end
?>
77
<?lmx-define-begin
tvv-body
?>
78
<
tr
>
79
<
th
>
<
div
id
=
"
type
"
>
<?lua
t
(
tracers
.
type
(
v
)
)
?>
</
div
>
</
th
>
80
<
th
>
<
div
id
=
"
variable
"
>
<?lua
t
(
tracers
.
name
(
v
)
)
?>
</
div
>
</
th
>
81
<
th
>
<
div
id
=
"
value
"
>
<?lua
t
(
tracers
.
cs
(
v
)
)
?>
</
div
>
</
th
>
82
</
tr
>
83
<?lmx-define-end
?>
84
<?lua
if
tracers
.
knownlist
(
'
internals
'
)
then
?>
85
<
h1
>
Internal
Variables
</
h1
>
86
<
table
>
87
<?lmx-resolve
tvv-head
?>
88
<?lua
for
k
,
v
in
pairs
(
tracers
.
list
[
'
internals
'
]
)
do
?>
89
<?lmx-resolve
tvv-body
?>
90
<?lua
end
?>
91
</
table
>
92
<
br
/>
93
<?lua
end
?>
94
<?lua
if
tracers
.
knownlist
(
'
context
'
)
then
?>
95
<
h1
>
ConTeXt
Variables
</
h1
>
96
<
table
>
97
<?lmx-resolve
tvv-head
?>
98
<?lua
for
k
,
v
in
pairs
(
tracers
.
list
[
'
context
'
]
)
do
?>
99
<?lmx-resolve
tvv-body
?>
100
<?lua
end
?>
101
</
table
>
102
<
br
/>
103
<?lua
end
?>
104
</
div
>
</
div
>
105
<
div
id
=
"
bottom
"
>
<
div
id
=
"
bottom-one
"
>
<
div
id
=
"
bottom-two
"
>
106
Job
Name
:
<?lua
p
(
environment
.
jobname
)
?>
&nbsp;
&nbsp;
&nbsp;
107
ConTeXt
Version
:
<?lua
p
(
environment
.
version
)
?>
&nbsp;
&nbsp;
&nbsp;
108
Real
Page
:
<?lua
p
(
tracers
.
cs
(
'
c:realpageno
'
)
)
?>
&nbsp;
&nbsp;
&nbsp;
109
Page
:
<?lua
p
(
tracers
.
cs
(
'
c:pageno
'
)
)
?>
&nbsp;
&nbsp;
&nbsp;
110
</
div
>
</
div
>
</
div
>
111
</
body
>
112
</
html
>
113