diff options
Diffstat (limited to 'lib/sisu/v0/texpdf.rb')
-rw-r--r-- | lib/sisu/v0/texpdf.rb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/sisu/v0/texpdf.rb b/lib/sisu/v0/texpdf.rb index 31447aae..c2a6b14f 100644 --- a/lib/sisu/v0/texpdf.rb +++ b/lib/sisu/v0/texpdf.rb @@ -197,11 +197,11 @@ module SiSU_TeX end def latexrun_selective begin - ep_dir=Dir.pwd - Dir.chdir(ep_dir) + pwd=Dir.pwd + Dir.chdir(pwd) #watch @tex_f_no=0 info={} - if FileTest.file?("#{ep_dir}/#{@md.fns}") + if FileTest.file?(@env.source_file_with_path) if @md.fns =~/\.[_-]?sst$/ @dirout=SiSU_Env::Info_env.new(@md.fns) case @md.fns @@ -221,7 +221,8 @@ module SiSU_TeX end end else - puts "\n#{@cX.fuschia}FILE NOT FOUND:#{@cX.off} << #{file} >> - requested latex system processing skipped\n" + tell=SiSU_Screen::Ansi.new(@md.cmd,"FILE NOT FOUND: << #{@md.fns} >> - requested latex system processing skipped") + tell.warn end lst=Dir["*.{aux,log,out}"] lst.each {|file| File.unlink(file)} if lst @@ -337,7 +338,6 @@ module SiSU_TeX def enclose(para,type='') para.strip! if type =~/code/; para - #para = '\begin{footnotesize} \begin{ttfamily} ' + para + ' \end{ttfamily} \end{footnotesize}' elsif para !~/(\\begin\{tabular\}.*|\\end\{tabular\}|&|#{@@tex_backslash*2})\s*$/ #check para.gsub!(/(.+)/m,"\n#{@tex.skip_small} \\1 #{@tex.skip_small}\n") else para @@ -433,9 +433,6 @@ WOK @lineone=case para when /<:(alt|verse|group)>/; para when /<:code>/; "#{@tex.paraskip_small} \\begin{scriptsize} " + para - #when /<:code>/; "#{@tex.paraskip_small} \\begin{footnotesize} " + para - ##when /<:code>/; "#{@tex.paraskip_small} \\begin{texttt} " + para - #when /<:code>/; "#{@tex.paraskip_small} \\begin{small} \\begin{ttfamily} " + para else 'error' #should never occur end end |