ruby/sample/rdoc/markup/rdoc2latex.rb

16 строки
378 B
Ruby
Исходник Обычный вид История

#!/usr/local/bin/ruby
# Illustration of a script to convert an RDoc-style file to a LaTeX document
require 'rdoc/markup'
require 'rdoc/markup/to_latex'
p = RDoc::Markup.new
h = RDoc::Markup::ToLaTeX.new
#puts "\\documentclass{report}"
#puts "\\usepackage{tabularx}"
#puts "\\usepackage{parskip}"
#puts "\\begin{document}"
puts p.convert(ARGF.read, h)
#puts "\\end{document}"