Method: TeXzip::Project#initialize
- Defined in:
- lib/texzip/Project.rb
#initialize(master_file) ⇒ Project
Returns a new instance of Project.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/texzip/Project.rb', line 65 def initialize(master_file) super() @tex_master_file = Pathname.new(master_file). # All possible include-paths for TeX @tex_dirs = [@tex_master_file.dirname] @tex_dirs.concat((ENV['TEXINPUTS'] || '').split(':').map {|d| Pathname.new(d)}) @tex_dirs.map!(&:expand_path) @tex_dirs.uniq! @overwrite_all = false parse_files end |