I suspect this is related to the use of knitr::asis_output to print the LaTeX code.
A possible work around would be to add a print method for "sweave". When the print method is "sweave", use print_dust_latex but with an additional argument for sweave = TRUE that prevents the use of knitr::asis_output. This will require that the user specify results = tex in the chunk options.
I suspect this is related to the use of
knitr::asis_output
to print the LaTeX code.A possible work around would be to add a print method for
"sweave"
. When the print method is"sweave"
, useprint_dust_latex
but with an additional argument forsweave = TRUE
that prevents the use ofknitr::asis_output
. This will require that the user specifyresults = tex
in the chunk options.