Module: Polytexnic
- Defined in:
- lib/polytexnic.rb,
lib/polytexnic/utils.rb,
lib/polytexnic/literal.rb,
lib/polytexnic/version.rb,
lib/polytexnic/preprocessor.rb,
lib/polytexnic/postprocessor.rb,
lib/polytexnic/preprocessors/html.rb,
lib/polytexnic/postprocessors/html.rb,
lib/polytexnic/preprocessors/latex.rb,
lib/polytexnic/postprocessors/latex.rb,
lib/polytexnic/preprocessors/polytex.rb,
lib/polytexnic/postprocessors/polytex.rb
Defined Under Namespace
Modules: Literal, Postprocessor, Preprocessor, Utils Classes: Pipeline
Constant Summary collapse
- VERSION =
"0.9.0"
Class Method Summary collapse
-
.core_style_file ⇒ Object
Returns style file (including absolute path) within the gem.
- .style_file ⇒ Object
-
.write_polytexnic_style_file(dir) ⇒ Object
Writes the contents of the custom polytexnic style file.
Class Method Details
.core_style_file ⇒ Object
Returns style file (including absolute path) within the gem.
18 19 20 |
# File 'lib/polytexnic.rb', line 18 def self.core_style_file File.join(File.dirname(__FILE__), '..', style_file) end |
.style_file ⇒ Object
13 14 15 |
# File 'lib/polytexnic.rb', line 13 def self.style_file 'polytexnic_commands.sty' end |
.write_polytexnic_style_file(dir) ⇒ Object
Writes the contents of the custom polytexnic style file. This is used by the ‘generate` method in the `softcover` gem. We put it here because `polytexnic_commands.sty` lives inside `polytexnic` so that core can support, e.g., ’PolyTeXnic’.
26 27 28 |
# File 'lib/polytexnic.rb', line 26 def self.write_polytexnic_style_file(dir) File.write(File.join(dir, style_file), File.read(self.core_style_file)) end |