The `gt::as_latex` function does not (yet) produce compilable LaTeX code.
This function used to clean up LaTeX output to allow compilation to PDF.
This function is now deprecated since `modelsummary` currently supports
`kableExtra`, which has a mature LaTeX rendering engine.