Sha256: a55613866440f8556d1b9b41355a86057c5970eb24fc4d8182d4ee02f75af064

Contents?: true

Size: 582 Bytes

Versions: 1

Compression:

Stored size: 582 Bytes

Contents

require 'malt/formats/abstract'
require 'malt/formats/pdf'

module Malt::Formats

  #
  class Latex < Abstract

    register 'latex'

    #
    def latex
      text
    end

    #
    def to_latex
      self
    end

    # TODO
    def pdf
      raise "not implemented yet"
    end

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

    private

      #
      def render_engine
      end

      # Latext default output type is PDF.
      def default
        :pdf
      end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
malt-0.1.0 lib/malt/formats/latex.rb