Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Seminář z TeXu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Seminář z TeXu
Commits
ece3769b
Commit
ece3769b
authored
2 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
debug.lua: Přechod na nový LuaTeX
parent
212bb4c1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
luatex/debug.lua
+9
-9
9 additions, 9 deletions
luatex/debug.lua
with
9 additions
and
9 deletions
luatex/debug.lua
+
9
−
9
View file @
ece3769b
...
...
@@ -102,14 +102,14 @@ function show_page_elements(parent)
parent
.
list
=
node
.
insert_before
(
parent
.
list
,
head
,
hyphen_marker
)
elseif
head
.
id
==
1
0
then
-- glue
local
wd
=
head
.
spec
.
width
elseif
head
.
id
==
1
2
then
-- glue
local
wd
=
head
.
width
local
color
=
"0.5 G"
if
parent
.
glue_sign
==
1
and
parent
.
glue_order
==
head
.
spec
.
stretch_order
then
wd
=
wd
+
parent
.
glue_set
*
head
.
spec
.
stretch
if
parent
.
glue_sign
==
1
and
parent
.
glue_order
==
head
.
stretch_order
then
wd
=
wd
+
parent
.
glue_set
*
head
.
stretch
color
=
"0 0 1 RG"
elseif
parent
.
glue_sign
==
2
and
parent
.
glue_order
==
head
.
spec
.
shrink_order
then
wd
=
wd
-
parent
.
glue_set
*
head
.
spec
.
shrink
elseif
parent
.
glue_sign
==
2
and
parent
.
glue_order
==
head
.
shrink_order
then
wd
=
wd
-
parent
.
glue_set
*
head
.
shrink
color
=
"1 0 1 RG"
end
local
pdfstring
=
node
.
new
(
"whatsit"
,
"pdf_literal"
)
...
...
@@ -122,7 +122,7 @@ function show_page_elements(parent)
parent
.
list
=
node
.
insert_before
(
parent
.
list
,
head
,
pdfstring
)
elseif
head
.
id
==
1
1
then
-- kern
elseif
head
.
id
==
1
3
then
-- kern
local
rectangle
=
node
.
new
(
"whatsit"
,
"pdf_literal"
)
local
color
=
"1 1 0 rg"
if
head
.
kern
<
0
then
color
=
"1 0 0 rg"
end
...
...
@@ -134,7 +134,7 @@ function show_page_elements(parent)
end
parent
.
list
=
node
.
insert_before
(
parent
.
list
,
head
,
rectangle
)
elseif
head
.
id
==
1
2
then
-- penalty
elseif
head
.
id
==
1
4
then
-- penalty
local
color
=
"1 g"
local
rectangle
=
node
.
new
(
"whatsit"
,
"pdf_literal"
)
if
head
.
penalty
<
10000
then
...
...
@@ -143,7 +143,7 @@ function show_page_elements(parent)
rectangle
.
data
=
string.format
(
"q %s 0 w 0 0 10 10 re B Q"
,
color
)
parent
.
list
=
node
.
insert_before
(
parent
.
list
,
head
,
rectangle
)
elseif
head
.
id
==
37
then
-- glyph
elseif
head
.
id
==
29
then
-- glyph
local
rule_width
=
0
.
8
local
wd
=
math
.
round
(
head
.
width
/
number_sp_in_a_pdf_point
-
rule_width
,
2
)
local
ht
=
math
.
round
((
head
.
height
+
head
.
depth
)
/
number_sp_in_a_pdf_point
-
rule_width
,
2
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment