We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d69acc commit ce30d83Copy full SHA for ce30d83
packages/pdf.lua
@@ -6,10 +6,10 @@ local pdf = require("justenoughlibtexpdf")
6
SILE.registerCommand("pdf:destination", function (options, _)
7
local name = SU.required(options, "name", "pdf:bookmark")
8
SILE.typesetter:pushHbox({
9
- outputYourself = function (_, typesetter, _)
+ outputYourself = function (_, typesetter, line)
10
SILE.outputters.libtexpdf._init()
11
local state = typesetter.frame.state
12
- local y = SILE.documentState.paperSize[2] - state.cursorY
+ local y = SILE.documentState.paperSize[2] - state.cursorY + line.height
13
pdf.destination(name, state.cursorX:tonumber(), y:tonumber())
14
end
15
})
0 commit comments