Closed mvuorre closed 6 months ago
Whatever the problem was before, it seems to be gone. I have now enabled include-in-header
. Let me know if tinytable now works as you expect it to.
Yes, wonderful, works just fine now. 🎉
This
---
title: "My Title"
author:
- name: Jane Doe
format:
apaquarto-pdf:
documentmode: doc
---
```{r}
library(knitr)
library(tinytable)
tbl <- mtcars[1:4, 1:4]
knitr::kable works
kable(tbl)
tinytable::tt does too!
tt(tbl) |>
theme_tt("placement", latex_float = "H")
Correctly produces this
<img width="763" alt="image" src="https://github.com/wjschne/apaquarto/assets/7349270/8bd3470c-aef4-4966-b017-d7cf314d8bd2">
It would be great to be able to use the Quarto standard methods for including LaTeX stuff, such as the
include-in-header
metadata field. However currently one must use a apaquarto custom (?) commandheader-insert
to do so, which breaks interoperability and makes maintaining harder (?). See e.g. #40.As a salient example, I would like to use the excellent tinytable package, which automatically adds LaTeX requirements to the document (see 7.2 here). However it doesn't work with apaquarto since it cannot use the standard Quarto methods for doing so. So for example the following would not work without lines 8-13 (which then do not propagate to other PDF formats):
knitr::kable works
tinytable::tt doesnt