Class RDoc::Markup::ToLaTeX
In: lib/rdoc/markup/to_latex.rb
Parent: RDoc::Markup::Formatter

Convert SimpleMarkup to basic LaTeX report format.

Methods

Constants

BS = "\020"
CB = "\022"
DL = "\023"
BACKSLASH = "#{BS}symbol#{OB}92#{CB}"
HAT = "#{BS}symbol#{OB}94#{CB}"
BACKQUOTE = "#{BS}symbol#{OB}0#{CB}"
TILDE = "#{DL}#{BS}sim#{DL}"
LESSTHAN = "#{DL}<#{DL}"
GREATERTHAN = "#{DL}>#{DL}"
LIST_TYPE_TO_LATEX = { :BULLET => [ l("\\begin{itemize}"), l("\\end{itemize}") ], :NUMBER => [ l("\\begin{enumerate}"), l("\\end{enumerate}"), "\\arabic" ], :UPPERALPHA => [ l("\\begin{enumerate}"), l("\\end{enumerate}"), "\\Alph" ], :LOWERALPHA => [ l("\\begin{enumerate}"), l("\\end{enumerate}"), "\\alph" ], :LABELED => [ l("\\begin{description}"), l("\\end{description}") ], :NOTE => [ l("\\begin{tabularx}{\\linewidth}{@{} l X @{}}"), l("\\end{tabularx}") ], }
InlineTag = Struct.new(:bit, :on, :off)

Public Class methods

Public Instance methods

Add a new set of LaTeX tags for an attribute. We allow separate start and end tags for flexibility

Escape a LaTeX string

Set up the standard mapping of attributes to LaTeX

Here‘s the client side of the visitor pattern

This is a higher speed (if messier) version of wrap

[Validate]

ruby-doc.org is hosted and maintained by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. The site was created in 2002 as part of the Ruby Documentation Project to promote the Ruby language and to help other Ruby hackers.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.