You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for posting this issue and that skipping subtitle is the problem. I had the same issue.
A workaround for me was to set subtitle to an empty space: tab_header(title = md("Data listing from **gtcars**"), subtitle = md(" "))
Then there is a little space between the title and the table. For me that was OK.
I found this code the LaTeX generated by gt & knitr.
The \small \\ is there even when no subtitle is defined in tab_header.
If I remove it in the LaTeX, then it compiles well.
When trying to include a
gt
inside of an Rmarkdown document being knit to pdf, the knitting fails iftab_header
is specified without a subtitle..Rmd
fileError
If you include the subtitle, the pdf knits correctly.
The text was updated successfully, but these errors were encountered: