Preserve caption
of <gt_tbl> object when generating LaTeX code with gt::as_latex()
#1610
Open
2 tasks done
Labels
Prework
Proposal
gt::as_latex()
drops the caption in thegt_tbl
object:As can be seen in the output, there is no
\caption{}
command in the LaTeX code that is generated. This is an issue because my workflow is saving the generated LaTeX code string to a file and then calling\input{}
on that file in LaTeX, and then I end up getting a table with no captions. This also prevents cross-referencing tables in PDF documents generated using Rmarkdown or Quarto.Interestingly enough, when the
title
andsubtitle
ingt::tab_header()
are retained, but through an un-numbered\caption*{}
in the LaTeX code:I understand that this a possible duplicate of #818. But, I am opening this one seeing that #818 is almost 3 years old.
Created on 2024-03-20 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: