зеркало из https://github.com/github/ruby.git
16 строки
378 B
Ruby
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}"
|