Skip to content

Commit

Permalink
fix(packages): Assure PDF initialization first-output can be rotated
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jul 8, 2020
1 parent 5f2d2e3 commit 0613ab1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rotate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 45,7 @@ local outputRotatedHbox = function (self, typesetter, line)

local horigin = (typesetter.frame.state.cursorX origbox.width.length / 2):tonumber()
local vorigin = -(typesetter.frame.state.cursorY origbox.height / 2):tonumber()
SILE.outputters.libtexpdf._init()
pdf:gsave()
pdf.setmatrix(1, 0, 0, 1, horigin, vorigin)
pdf.setmatrix(math.cos(x), math.sin(x), -math.sin(x), math.cos(x), 0, 0)
Expand Down

0 comments on commit 0613ab1

Please sign in to comment.