summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-11-12 23:00:42 +0000
committerKarl Berry <karl@freefriends.org>2021-11-12 23:00:42 +0000
commitcc9d3299d8b868e626ac76e042420bd6c5b3b68e (patch)
tree86954b7789e66af4137d68be63a4eaab2bc635ad /Master/texmf-dist
parent1f2260bd000ffb6bc0a515011bf83e88e27b9406 (diff)
luapstricks (13nov21)
git-svn-id: svn://tug.org/texlive/trunk@61036 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/tex/lualatex/luapstricks/luapstricks.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/lualatex/luapstricks/luapstricks.lua b/Master/texmf-dist/tex/lualatex/luapstricks/luapstricks.lua
index 8ae9eed76d1..7da1c9c1339 100644
--- a/Master/texmf-dist/tex/lualatex/luapstricks/luapstricks.lua
+++ b/Master/texmf-dist/tex/lualatex/luapstricks/luapstricks.lua
@@ -18,8 +18,8 @@
if luatexbase then
luatexbase.provides_module {
name = 'luapstricks',
- version = 'v0.2',
- date = '2021-09-30',
+ version = 'v0.3',
+ date = '2021-11-12',
description = 'PSTricks backend for LuaLaTeX',
}
end
@@ -3892,7 +3892,10 @@ local fid = font.define{
local tokens, direct = assert(ps_tokens), ps_direct
ps_tokens = nil
local x, y = pdf.getpos()
+ local TeXDict = userdict.value.TeXDict.value
+ local saved_ocount = TeXDict.ocount
local height = #operand_stack
+ TeXDict.ocount = height
operand_stack[height + 1], operand_stack[height + 2] = ps_pos_x/65781.76, ps_pos_y/65781.76
ps_pos_x, ps_pos_y = nil
if direct then
@@ -3914,11 +3917,13 @@ local fid = font.define{
flush_delayed()
if not direct then
systemdict.value.grestore()
+ height = TeXDict.ocount or height
local new_height = #operand_stack
assert(new_height >= height)
for k = height + 1, new_height do
operand_stack[k] = nil
end
+ TeXDict.ocount = saved_ocount
end
end}
}