blob: 0e294295bf67a0e7506369d79a57317252b9eefe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
Index: texconf.tlu
===================================================================
--- texconf.tlu (revision 9807)
+++ texconf.tlu (working copy)
@@ -41,7 +41,11 @@
package.path = texmfmain.."/scripts/texlive/lua/?.tlu"
require("texlive.getopt")
require("texlive.utils")
+require("texlive.tlpdb")
+-- set up master dir
+master=kpse.var_value('SELFAUTOPARENT')
+
-- do argument processing
options = getopt ( { sys = 0, prog = 1, noformat = 0 } )
if (options["sys"]) then
@@ -489,6 +493,17 @@
function set_context_papersize(papersize)
local current_setting
+
+ if not(tlpdb) then
+ io.stderr:write('reading tlpdb .. ')
+ tlpdb = read_tlpdb(master)
+ io.stderr:write('finished\n')
+ end
+ if not(tlpdb['bin-context']) then
+ io.stderr:write('bin-context not installed, skipping paper setting for it\n')
+ return
+ end
+
-- Read the file.
local filename
@@ -564,6 +579,7 @@
set_dvips_papersize(papersize)
set_pdftex_papersize(papersize)
set_xdvi_papersize(papersize)
+ set_context_papersize(papersize)
set_dvipdfm_papersize(papersize, 'dvipdfm')
set_dvipdfm_papersize(papersize, 'dvipdfmx')
end
|