mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
17 lines
402 B
Ruby
17 lines
402 B
Ruby
|
#!/usr/local/bin/ruby
|
||
|
# Illustration of a script to convert an RDoc-style file to a LaTeX
|
||
|
# document
|
||
|
|
||
|
require 'rdoc/markup/simple_markup'
|
||
|
require 'rdoc/markup/simple_markup/to_latex'
|
||
|
|
||
|
p = SM::SimpleMarkup.new
|
||
|
h = SM::ToLaTeX.new
|
||
|
|
||
|
#puts "\\documentclass{report}"
|
||
|
#puts "\\usepackage{tabularx}"
|
||
|
#puts "\\usepackage{parskip}"
|
||
|
#puts "\\begin{document}"
|
||
|
puts p.convert(ARGF.read, h)
|
||
|
#puts "\\end{document}"
|