Closed klh281 closed 11 months ago
When I tried it, the code inserted a figure inside a table, and latex became confused. Here is a workaround. After creating the table2.png in a plain R code chunk (i.e., no image caption and no apatb label prefix), create an asis code chunk like so:
```{asis}
#| label: apatb-mytable
#| apa-cap: My table caption
#| echo: true
![](table2.png){width=6.5in height=4in}
You may have to adjust the size of the image, the caption, the chunk label, and the folder location of the image.
Thank you for the fantastic extension!
I'd like to include tables made with gtsummary. They don't seem to work properly using the method described in the instructions (i.e., with flextable) -- however, I am trying a work around.
I created a table in another file, then used gtsave to save it as a .png file:
Then, when creating the manuscript using apaquarto -- I can include the table as follows:
This approach works well when rendered to .docx -- but will not render to a pdf. For the latter, I get the following error:
compilation failed- error LaTeX Error: Not in outer par mode.
Without the table, the pdf renders just fine.
Do you know of a solution?
Many thanks, Kimberly