Sha256: 23de819850c4b537520ecf76d637b35dfeb992ee5c22051735d269a301931de5
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 Bytes
Contents
# DEFUNCT CODE? # # I think this is defunct code -- will investigate # # For trying things out # Call the input file foo.in # Then execute # # $ ruby preprocess foo # # Currently output is directed to the # console. Uncomment the last line # to direct output to foo.out require 'asciidoctor/latex/tex_block' base_name = ARGV[0] input_file = base_name + ".in" output_file = base_name + "out" input = File.open(input_file, 'r') { |f| f.read } puts "input:" puts "-----------------" puts input puts "-----------------\n\n" output = Asciidoctor::LaTeX::TeXBlock.process_environments input puts "output:" puts "-----------------" puts output puts "-----------------\n\n" # File.open(output_file, 'w') {|f| f.write(output) }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-latex-1.5.0.dev | lib/asciidoctor/latex/preprocess.rb |