aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/texpdf.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-03-01 20:46:02 -0500
committerRalph Amissah <ralph@amissah.com>2011-03-01 20:46:02 -0500
commit5abc572129ac49178aa77ea59cb8e5d611e6374f (patch)
tree9c3402a3d8fa17d1a3c7a4c8bcc81230d12cc2be /lib/sisu/v3/texpdf.rb
parentv3: space between each and opening curly brace e.g. "x.each {|y| p y}" (diff)
v3: sysenv, separate out processing_path method plus consequences
Diffstat (limited to 'lib/sisu/v3/texpdf.rb')
-rw-r--r--lib/sisu/v3/texpdf.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/sisu/v3/texpdf.rb b/lib/sisu/v3/texpdf.rb
index 31300f8f..9497d51f 100644
--- a/lib/sisu/v3/texpdf.rb
+++ b/lib/sisu/v3/texpdf.rb
@@ -91,7 +91,7 @@ module SiSU_TeX
case @opt.fns
when /\.(?:-|ssm\.)?sst$/
SiSU_Env::SiSU_file.new(@md).mkdir
- Dir.mkdir(@env.path.processing_tex) unless FileTest.directory?(@env.path.processing_tex)
+ Dir.mkdir(@env.processing_path.tex) unless FileTest.directory?(@env.processing_path.tex)
end
rescue; SiSU_Errors::Info_error.new($!,$@,@opt.cmd,@opt.fns).error
ensure
@@ -123,7 +123,7 @@ module SiSU_TeX
rescue; SiSU_Errors::Info_error.new($!,$@,@opt.cmd,@opt.fns).error
ensure
unless @opt.cmd =~/[MV]/ #check maintenance flag
- texfiles=Dir["#{@env.path.processing_tex}/#{@opt.fns}*"]
+ texfiles=Dir["#{@env.processing_path.tex}/#{@opt.fns}*"]
texfiles.each do |f|
if FileTest.file?(f)
File.unlink(f)
@@ -206,8 +206,8 @@ module SiSU_TeX
if @md.fns =~/\.(?:-|ssm\.)?sst$/
case @md.fns
when /\.(?:-|ssm\.)?sst$/
- if FileTest.directory?(@env.path.processing_tex)==true
- Dir.chdir(@env.path.processing_tex)
+ if FileTest.directory?(@env.processing_path.tex)==true
+ Dir.chdir(@env.processing_path.tex)
texfile=@md.fns.gsub(/$/,".#{ps}.tex")
texfile=texfile.gsub(/~/,'-')
if File.exist?(texfile) \
@@ -216,7 +216,7 @@ module SiSU_TeX
#p "#{__FILE__}:#{__LINE__} texpdf generation disabled" if @md.cmd.inspect =~/M/ #%% disable temporarily, re-enable
latex_do(texfile,ps)
else
- puts "\tzero file size #{@env.path.processing_tex}/#{texfile}"
+ puts "\tzero file size #{@env.processing_path.tex}/#{texfile}"
end
end
end
@@ -780,8 +780,8 @@ WOK
fns_l=@md.fns.gsub(/~/,'-') #this is a sorry fix, but necessary as it appears latex programs like not ~
@md.papersize_array.each do |ps|
file={
- landscape: File.new("#{@env.path.processing_tex}/#{fns_l}.#{ps}.landscape.tex",'w+'),
- portrait: File.new("#{@env.path.processing_tex}/#{fns_l}.#{ps}.tex",'w+')
+ landscape: File.new("#{@env.processing_path.tex}/#{fns_l}.#{ps}.landscape.tex",'w+'),
+ portrait: File.new("#{@env.processing_path.tex}/#{fns_l}.#{ps}.tex",'w+')
}
file[:portrait] << @@tex_head[ps][:p]
file[:landscape] << @@tex_head[ps][:l]