# S3 method for huxtable
to_latex(ht, tabular_only = FALSE, ...)
Arguments
ht
A huxtable.
...
Arguments to pass to methods.
tabular_only
Return only the LaTeX tabular, not the surrounding float.
Value
to_latex returns a string. print_latex prints the string and returns NULL.
Details
If we appear to be in a rmarkdown document with the markdown "+raw_attribute" extension set,
to_latex will return LaTeX surrounded by a
"raw attribute code block" (see https://pandoc.org/MANUAL.html#extension-raw_attribute).
This helps protect against pandoc accidentally escaping the TeX code.