Class: HTML2TeX::PreambleProcessor
- Inherits:
-
BasicProcessor
- Object
- BasicProcessor
- HTML2TeX::PreambleProcessor
- Defined in:
- lib/html2tex/preamble_processor.rb
Instance Attribute Summary
Attributes inherited from BasicProcessor
Instance Method Summary collapse
Methods inherited from BasicProcessor
Methods included from TeX
Constructor Details
This class inherits a constructor from HTML2TeX::BasicProcessor
Instance Method Details
#to_tex(buffer = "") ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/html2tex/preamble_processor.rb', line 6 def to_tex(buffer="") read_html_head [ tex(:documentclass, [:class]), tex(:title, title), tex(:author, ), tex(:begin, "document"), tex(:maketitle), "" ].each do |s| buffer << s << "\n" end buffer end |