diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-28 06:39:15 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-28 06:39:15 +0000 |
commit | 3c0738387843fc8ae2ecaab73b5874d0a7f3f6ba (patch) | |
tree | 798ee6dd17a811a2819ca4be117e899245f5e094 /sample/rdoc/markup/rdoc2latex.rb | |
parent | 3e356342bc34f57a1189d9d352df52dfd9ebbb8a (diff) | |
download | ruby-3c0738387843fc8ae2ecaab73b5874d0a7f3f6ba.tar.gz ruby-3c0738387843fc8ae2ecaab73b5874d0a7f3f6ba.tar.xz ruby-3c0738387843fc8ae2ecaab73b5874d0a7f3f6ba.zip |
Move RDoc markup samples to sample/rdoc/markup directory
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/rdoc/markup/rdoc2latex.rb')
-rw-r--r-- | sample/rdoc/markup/rdoc2latex.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sample/rdoc/markup/rdoc2latex.rb b/sample/rdoc/markup/rdoc2latex.rb new file mode 100644 index 000000000..26563b75d --- /dev/null +++ b/sample/rdoc/markup/rdoc2latex.rb @@ -0,0 +1,16 @@ +#!/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}" |