blob: 51b18c83729e439b503b76f949d7f176bb0a33cc (
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
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
filename : context-debug.lmx
comment : companion to context.tex
author : Hans Hagen, PRAGMA-ADE, Hasselt NL
copyright: PRAGMA ADE / ConTeXt Development Team
license : see context related readme files
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<script type='text/javascript'>
<!--
window.focus();
-->
</script>
<title><?lua pv('title') ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
<!--
<?lmx-include context.css ?>
#type {
text-align: center ;
}
#variable {
width: 10em ;
text-align: right ;
margin-right: 1em ;
}
#value {
text-align: left ;
}
-->
</style>
</head>
<body>
<div id="top"><div id="top-one"><div id="top-two">
<?lua pv('title') ?>
</div></div></div>
<div id="left"><div id="left-one"><div id="left-two">
<!-- empty -->
</div></div></div>
<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">
<!-- empty -->
</div></div></div></div></div></div></div>
<div id="main"><div id='main-settings'>
<?lua if tracers.knownlist('scratch') then ?>
<h1>Scratch Variables</h1>
<table>
<tr>
<th align='middle'>index</th>
<th align='middle'> dimen</th>
<th align='middle'> count</th>
<th align='left' > toks</th>
</tr>
<?lua for k,v in pairs(tracers.list['scratch']) do ?>
<tr>
<th align='middle'><?lua t(v) ?></th>
<th align='middle'> <?lua t(tracers.dimen(v)) ?></th>
<th align='middle'> <?lua t(tracers.count(v)) ?></th>
<th align='left' > <?lua t(tracers.toks (v)) ?></th>
</tr>
<?lua end ?>
</table>
<br/>
<?lua end ?>
<?lmx-define-begin tvv-head ?>
<tr>
<th><div id="type" >type </div></th>
<th><div id="variable">variable</div></th>
<th><div id="value" >value </div></th>
</tr>
<?lmx-define-end ?>
<?lmx-define-begin tvv-body ?>
<tr>
<th><div id="type" ><?lua t(tracers.type(v)) ?></div></th>
<th><div id="variable"><?lua t(tracers.name(v)) ?></div></th>
<th><div id="value" ><?lua t(tracers.cs(v)) ?></div></th>
</tr>
<?lmx-define-end ?>
<?lua if tracers.knownlist('internals') then ?>
<h1>Internal Variables</h1>
<table>
<?lmx-resolve tvv-head ?>
<?lua for k,v in pairs(tracers.list['internals']) do ?>
<?lmx-resolve tvv-body ?>
<?lua end ?>
</table>
<br/>
<?lua end ?>
<?lua if tracers.knownlist('context') then ?>
<h1>ConTeXt Variables</h1>
<table>
<?lmx-resolve tvv-head ?>
<?lua for k,v in pairs(tracers.list['context']) do ?>
<?lmx-resolve tvv-body ?>
<?lua end ?>
</table>
<br/>
<?lua end ?>
</div></div>
<div id="bottom"><div id="bottom-one"><div id="bottom-two">
Job Name: <?lua p(environment.jobname) ?>
ConTeXt Version: <?lua p(environment.version) ?>
Real Page: <?lua p(tracers.cs('c:realpageno')) ?>
Page: <?lua p(tracers.cs('c:pageno')) ?>
</div></div></div>
</body>
</html>
|