public
Description: Ruby LaTeX to PDF preprocessor (and Rails plugin)
Homepage: http://rtex.rubyforge.org
Clone URL: git://github.com/bruce/rtex.git
Click here to lend your support to: rtex and make a donation at www.pledgie.com !
Tweak installation
bruce (author)
Sat Apr 19 21:09:37 -0700 2008
commit  02b60d371fd27e812c89af66839bf2ee77afc55a
tree    455995beef1299a831c07eec46753d3b065ffdca
parent  5746bdd00e7481a0f90e1aa817699a0733212c12
...
32
33
34
35
 
 
36
37
38
...
47
48
49
 
50
51
52
...
32
33
34
 
35
36
37
38
39
...
48
49
50
51
52
53
54
0
@@ -32,7 +32,8 @@ opts = OptionParser.new do |opts|
0
     options[:outfile] = path
0
   end
0
   
0
- opts.on('-f FILTER', '--filter FILTER', "Filter input (supported: textile)", "(Wraps in a basic `article' document; use --layout to customize)") do |filter|
0
+ filters = RTex.filters.keys.map { |k| k.to_s }.sort.join(', ')
0
+ opts.on('-f FILTER', '--filter FILTER', "Filter input (supported: #{filters})", "(Wraps in a basic `article' document; use --layout to customize)") do |filter|
0
     options[:filter] = filter
0
   end
0
   
0
@@ -47,6 +48,7 @@ opts = OptionParser.new do |opts|
0
     end
0
     plugin_path = File.join(plugins, 'rtex')
0
     FileUtils.cp_r(File.dirname(__FILE__) << '/..', plugin_path)
0
+ FileUtils.rm_rf(File.join(plugin_path, 'bin'))
0
     STDERR.puts "Installed at #{plugin_path}"
0
     exit
0
   end
...
29
30
31
32
 
33
34
35
...
29
30
31
 
32
33
34
35
0
@@ -29,7 +29,7 @@ module RTex
0
               serve_file = Tempfile.new('rtex-pdf')
0
               FileUtils.mv filename, serve_file.path
0
               send_file serve_file.path,
0
- :disposition => "inline",
0
+ :disposition => (options[:disposition] rescue nil) || 'inline',
0
                 :url_based_filename => true,
0
                 :filename => (options[:filename] rescue nil),
0
                 :type => "application/pdf",

Comments

    No one has commented yet.