summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2006-12-07 16:27:00 +0100
committerHans Hagen <pragma@wxs.nl>2006-12-07 16:27:00 +0100
commitff3ef74e82bbbd4aa5c500d5c4b025376ec765a1 (patch)
treefaadc920132cb6266972fe2b814f8ef5f4e40e14 /scripts
parentb32f2af73a1d64743699617f5d4453615dc8755d (diff)
downloadcontext-ff3ef74e82bbbd4aa5c500d5c4b025376ec765a1.tar.gz
stable 2006.12.07 16:27
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/ruby/base/tex.rb11
-rw-r--r--scripts/context/ruby/texexec.rb5
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"