Module: Texstyles

Defined in:
lib/texstyles.rb,
lib/texstyles/style.rb

Defined Under Namespace

Classes: Style

Constant Summary collapse

@@root =
File.expand_path('../..',  __FILE__)

Class Method Summary collapse

Class Method Details

.categoriesObject



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/texstyles.rb', line 14

def categories
 { 'generic' => "Default",
   'physics' => "Physics & Astronomy",
   'computers' => "CS/Engineering",
   'bio' => "Life Sciences",
   'geo' => "Earth Sciences",
   'other' => "Misc",
   'grants' => "Grant Proposals",
   'thesis' => "University Thesis"
 }
end

.listObject



10
11
12
# File 'lib/texstyles.rb', line 10

def list
  Dir.glob(File.join(@@root, 'styles', "*.tex.erb")).map{|path| File.basename(path,'.tex.erb')}.sort
end

.rootObject



6
7
8
# File 'lib/texstyles.rb', line 6

def root
  @@root
end