let brtx_to_latex ~writer ?(doc=false) ?title ?use_package ?(deny_bypass=false)
?(print_comments=false) ?(href_is_footnote=false) ?img_hook ?url_hook
?separate_header ?table_caption_after
?(filename="<IN>") ~input_char () =
if doc then (
writer.w_write (Bracetax_latex_printer.header
~comment:"Generated with BraceTax" ?title
?stylesheet_link:use_package ());
);
let printer =
Bracetax_latex_printer.build ~writer ~print_comments ~href_is_footnote
?table_caption_after ?separate_header ?img_hook ?url_hook () in
Parser.do_transformation ~deny_bypass printer input_char filename;
if doc then (writer.w_write (Bracetax_latex_printer.footer ()));
()