Ruby SM::ToLaTeX Functions

EditRocket provides the following information on SM::ToLaTeX functions in the Ruby source code builder.

accept_blank_line(am, fragment) -

accept_heading(am, fragment) -

accept_list_end(am, fragment) -

accept_list_item(am, fragment) -

accept_list_start(am, fragment) -

accept_paragraph(am, fragment) -

accept_rule(am, fragment) -

accept_verbatim(am, fragment) -

add_tag(name, start, stop) - Add a new set of LaTeX tags for an attribute. We allow separate start and end tags for flexibility

end_accepting() -

escape(str) - Escape a LaTeX string

init_tags() - Set up the standard mapping of attributes to LaTeX

l(str) -

l(str) -

new() -

start_accepting() - Here's the client side of the visitor pattern

wrap(txt, line_len = 76) - This is a higher speed (if messier) version of wrap