source:
extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/rdoc/markup/sample/rdoc2latex.rb@
18425
Last change on this file since 18425 was 18425, checked in by , 15 years ago | |
---|---|
File size: 402 bytes |
Line | |
---|---|
1 | #!/usr/local/bin/ruby |
2 | # Illustration of a script to convert an RDoc-style file to a LaTeX |
3 | # document |
4 | |
5 | require 'rdoc/markup/simple_markup' |
6 | require 'rdoc/markup/simple_markup/to_latex' |
7 | |
8 | p = SM::SimpleMarkup.new |
9 | h = SM::ToLaTeX.new |
10 | |
11 | #puts "\\documentclass{report}" |
12 | #puts "\\usepackage{tabularx}" |
13 | #puts "\\usepackage{parskip}" |
14 | #puts "\\begin{document}" |
15 | puts p.convert(ARGF.read, h) |
16 | #puts "\\end{document}" |
Note:
See TracBrowser
for help on using the repository browser.