diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-12-03 20:01:53 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-12-03 20:01:53 +0100 |
commit | 61848324b49c6fe34f9c5dd62a34d2fbfbbb16b8 (patch) | |
tree | 2bd5b88839e392589d77e586e62be2d647929e2c /tex/context/base/mkiv/back-ini.lua | |
parent | 9273441a6cb7b02b3336e0a862ee311dbd3653e9 (diff) | |
download | context-61848324b49c6fe34f9c5dd62a34d2fbfbbb16b8.tar.gz |
2020-12-03 18:59:00
Diffstat (limited to 'tex/context/base/mkiv/back-ini.lua')
-rw-r--r-- | tex/context/base/mkiv/back-ini.lua | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/tex/context/base/mkiv/back-ini.lua b/tex/context/base/mkiv/back-ini.lua index ca6f6c1e5..d01be4a73 100644 --- a/tex/context/base/mkiv/back-ini.lua +++ b/tex/context/base/mkiv/back-ini.lua @@ -62,17 +62,6 @@ backends.tables = { } setmetatableindex(backends.tables, tables backends.current = "unknown" -local lmtx_mode = nil - -local function lmtxmode() - if lmtx_mode == nil then - lmtx_mode = CONTEXTLMTXMODE > 0 and drivers and drivers.lmtxversion - end - return lmtx_mode -end - -codeinjections.lmtxmode = lmtxmode - function backends.install(what) if type(what) == "string" then local backend = backends[what] @@ -100,13 +89,7 @@ end statistics.register("used backend", function() local bc = backends.current if bc ~= "unknown" then - local lmtx = lmtxmode() - local cmnt = backends[bc].comment or "no comment" - if lmtx then - return format("lmtx version %0.2f, %s (%s)",lmtx,bc,cmnt) - else - return format("%s (%s)",bc,cmnt) - end + return format("%s (%s)",bc,backends[bc].comment or "no comment") else return nil end @@ -164,10 +147,8 @@ function codeinjections.setpagedimensions(paperwidth,paperheight) if paperheight then paper_height = paperheight end - if not lmtxmode() then - texset("global","pageheight",paper_height) - texset("global","pagewidth", paper_width) - end + texset("global","pageheight",paper_height) + texset("global","pagewidth", paper_width) return paper_width, paper_height end @@ -178,11 +159,10 @@ end implement { name = "shipoutoffset", actions = function() - context(lmtxmode() and "0pt" or "-1in") -- the old tex offset + context("-1in") -- the old tex offset end } - local page_x_origin = 0 local page_y_origin = 0 |