diff options
Diffstat (limited to 'Master/texmf-dist/scripts')
-rw-r--r-- | Master/texmf-dist/scripts/context/ruby/base/tex.rb | 13 | ||||
-rw-r--r-- | Master/texmf-dist/scripts/context/ruby/texexec.rb | 5 |
2 files changed, 15 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/context/ruby/base/tex.rb b/Master/texmf-dist/scripts/context/ruby/base/tex.rb index 25e7ba5d7f8..7b5bba55a25 100644 --- a/Master/texmf-dist/scripts/context/ruby/base/tex.rb +++ b/Master/texmf-dist/scripts/context/ruby/base/tex.rb @@ -180,7 +180,7 @@ class TEX 'nomapfiles', 'local', 'arrange', 'noarrange', 'forcexml', 'foxet', - 'alpha', 'beta', + 'alpha', 'beta', 'luatex', 'mpyforce', 'forcempy', 'forcetexutil', 'texutil', 'globalfile', 'autopath', @@ -595,6 +595,17 @@ class TEX report('updating file database') Kpse.update end + if getvariable('luatex') then + begin + luatools = `texmfstart luatools --format=texmfscripts luatools.lua`.chomp.strip + unless luatools.empty? then + runcommand(["luatex","--luaonly=#{luatools}","--generate","--verbose"]) + end + rescue + report("run 'luatex --luaonly=....../luatools.lua --generate' manually") + exit + end + end # goody if getvariable('texformats') == 'standard' then setvariable('texformats',[getvariable('interface')]) unless getvariable('interface').empty? diff --git a/Master/texmf-dist/scripts/context/ruby/texexec.rb b/Master/texmf-dist/scripts/context/ruby/texexec.rb index ea4c48d930d..389a7a6ed09 100644 --- a/Master/texmf-dist/scripts/context/ruby/texexec.rb +++ b/Master/texmf-dist/scripts/context/ruby/texexec.rb @@ -441,8 +441,9 @@ job.setvariable('result',result) report("copying file: #{filename}") f << "\\getfiguredimensions\n" f << " [#{filename}]\n" - f << " [page=1" - f << ",\n size=trimbox" if trim + f << " [scale=#{scale},\n" + f << " page=1,\n" + f << " size=trimbox\n" if trim f << "]\n" f << "\\definepapersize\n" f << " [copy]\n" |