From 0613ab16c14faf046c164d09e89e987df28c5371 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Wed, 8 Jul 2020 10:12:23 +0300 Subject: [PATCH] fix(packages): Assure PDF initialization first-output can be rotated --- packages/rotate.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/rotate.lua b/packages/rotate.lua index 4ddb8fc07..d0050c93f 100644 --- a/packages/rotate.lua +++ b/packages/rotate.lua @@ -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)