Sha256: b66e3e8ac2f0319f1f0f5ab9d8b55bdddcc083a2de8c39b2cd8d86516c5876a0
Contents?: true
Size: 571 Bytes
Versions: 16
Compression:
Stored size: 571 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 } output = Asciidoctor::LaTeX::TeXBlock.process_environments input # File.open(output_file, 'w') {|f| f.write(output) }
Version data entries
16 entries across 16 versions & 1 rubygems