aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v0/sysenv.rb18
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/sisu/v0/sysenv.rb b/lib/sisu/v0/sysenv.rb
index 22a0bc4a..5e8dbaba 100644
--- a/lib/sisu/v0/sysenv.rb
+++ b/lib/sisu/v0/sysenv.rb
@@ -675,9 +675,23 @@ module SiSU_Env
texpdf=tex2pdf_engine
if @pdfetex_flag;
texpdf_cmd=case texpdf
- when /xetex/; "#{texpdf} -interaction=#{mode} -fmt=xelatex #@input #{tell}\n"
+ when /xetex/
+ if @input =~/landscape/
+ #xetex -fmt=xelatex -papersize="a4 -l" icc.arbitration.rules.1998.sst.landscape.tex
+ #FIX get papersize
+ %{#{texpdf} -interaction=#{mode} -fmt=xelatex -papersize="a4 -l" #@input #{tell}\n}
+ else
+ "#{texpdf} -interaction=#{mode} -fmt=xelatex #@input #{tell}\n"
+ end
+ when /xelatex/
+ if @input =~/landscape/
+ #xelatex -output-driver=xdvipdfmx -papersize="a4 -l" #where landscape.tex
+ %{#{texpdf} -interaction=#{mode} -papersize="a4 -l" #@input #{tell}\n}
+ else
+ "#{texpdf} -interaction=#{mode} #@input #{tell}\n"
+ end
when /pdftex/; "#{texpdf} -interaction=#{mode} -fmt=pdflatex #@input #{tell}\n"
- when /xelatex|pdflatex/; "#{texpdf} -interaction=#{mode} #@input #{tell}\n"
+ when /pdflatex/; "#{texpdf} -interaction=#{mode} #@input #{tell}\n"
end
system(texpdf_cmd)
else puts "\tWARN: none of the following programs are installed: #{program[0]}, #{program[1]}, #{program[2]} is installed. #{program_ref}"