mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
6d59907c0f
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
15 lines
378 B
Ruby
15 lines
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}"
|