2003-12-01 02:12:49 -05:00
|
|
|
#!/usr/local/bin/ruby
|
2008-01-17 14:29:16 -05:00
|
|
|
# Illustration of a script to convert an RDoc-style file to a LaTeX document
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-01-17 14:29:16 -05:00
|
|
|
require 'rdoc/markup'
|
|
|
|
require 'rdoc/markup/to_latex'
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-01-17 14:29:16 -05:00
|
|
|
p = RDoc::Markup.new
|
|
|
|
h = RDoc::Markup::ToLaTeX.new
|
2003-12-01 02:12:49 -05:00
|
|
|
|
|
|
|
#puts "\\documentclass{report}"
|
|
|
|
#puts "\\usepackage{tabularx}"
|
|
|
|
#puts "\\usepackage{parskip}"
|
|
|
|
#puts "\\begin{document}"
|
|
|
|
puts p.convert(ARGF.read, h)
|
|
|
|
#puts "\\end{document}"
|