diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/ruby/base/tex.rb | 11 | ||||
-rw-r--r-- | scripts/context/ruby/texexec.rb | 5 |
2 files changed, 14 insertions, 2 deletions
diff --git a/scripts/context/ruby/base/tex.rb b/scripts/context/ruby/base/tex.rb index 25e7ba5d7..ddf1706dc 100644 --- a/scripts/context/ruby/base/tex.rb +++ b/scripts/context/ruby/base/tex.rb @@ -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/scripts/context/ruby/texexec.rb b/scripts/context/ruby/texexec.rb index ea4c48d93..389a7a6ed 100644 --- a/scripts/context/ruby/texexec.rb +++ b/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" |