Class: Malt::Format::Latex

Inherits:
Abstract show all
Defined in:
lib/malt/formats/latex.rb

Instance Attribute Summary

Attributes inherited from Abstract

#options

Instance Method Summary collapse

Methods inherited from Abstract

#engine, engine, extensions, #extensions, #file, file_extension, #file_read, #file_type, #parse_type_from_data, #refile, register, #render, #render_into, #rendering_parameters, #scope_vs_data, #subtype, #text, #to, #to_default, #to_s, #type, #with, #with!

Instance Method Details

#latexObject



12
13
14
# File 'lib/malt/formats/latex.rb', line 12

def latex(*)
  text
end

#pdfObject

TODO



22
23
24
# File 'lib/malt/formats/latex.rb', line 22

def pdf(*)
  raise "not implemented yet"
end

#to_latexObject



17
18
19
# File 'lib/malt/formats/latex.rb', line 17

def to_latex(*)
  self
end

#to_pdfObject

TODO



27
28
29
30
31
# File 'lib/malt/formats/latex.rb', line 27

def to_pdf(*)
  text = pdf
  opts = options.merge(:text=>text, :file=>refile(:pdf), :type=>:pdf)
  PDF.new(opts)
end