diff options
author | Ralph Amissah <ralph@amissah.com> | 2008-07-02 13:14:39 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2008-07-02 13:14:39 -0400 |
commit | 36bead6db98f08173336d5ba362c08e60c22889c (patch) | |
tree | 88a1f87628693db29f89166b0dd0e94443990b11 | |
parent | changelog and version updated (diff) |
sysenv/texpdf, fix required for xetex landscape pdfs
-rw-r--r-- | CHANGELOG | 8 | ||||
-rw-r--r-- | conf/sisu/version.yml | 6 | ||||
-rw-r--r-- | lib/sisu/v0/sysenv.rb | 18 |
3 files changed, 27 insertions, 5 deletions
@@ -9,6 +9,14 @@ Reverse Chronological: %% STABLE MANIFEST +%% sisu_0.67.2.orig.tar.gz (2008-07-02:26/3) +http://www.jus.uio.no/sisu/pkg/src/sisu_0.67.2.orig.tar.gz + sisu_0.67.2.orig.tar.gz + sisu_0.67.2-1.dsc + sisu_0.67.2-1.diff.gz + + * texpdf (sysenv), fix required for xetex landscape pdfs + %% sisu_0.67.1.orig.tar.gz (2008-05-27:21/2) http://www.jus.uio.no/sisu/pkg/src/sisu_0.67.1.orig.tar.gz d05698e4e9421e15f9924ea5c019696996fc10ec396c245ea9dfc375a539868a 1498489 sisu_0.67.1.orig.tar.gz diff --git a/conf/sisu/version.yml b/conf/sisu/version.yml index 9553be6f..ee401b42 100644 --- a/conf/sisu/version.yml +++ b/conf/sisu/version.yml @@ -1,5 +1,5 @@ --- -:version: 0.67.1 -:date_stamp: 2008w24/0 -:date: "2008-06-22" +:version: 0.67.2 +:date_stamp: 2008w26/3 +:date: "2008-07-02" :project: SiSU 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}" |