Sha256: d897fd8649f10df9960fed704ca5ff7b721a63b992cff1e044f1f487a6888f8f

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

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

module Malt::Format

  #
  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.1 lib/malt/formats/latex.rb