Open tkerwin opened 1 year ago
Hi Thomas, I just merged the branch. Could you try installing from the main
branch and let me know if this fixes the problem for you?
This fixes a problem, but does not solve it completely for me. The fixes you merged in make the table work properly when using RMarkdown + Bookdown. However, it doesn't work for Quarto documents.
It looks like the problem is that Bookdown wants Table: (\#tab:table-name) Caption
, but Quarto wants : Caption {#tbl-table-name}
(or a table label and caption metadata in the block).
I've tried to find out how to detect if the block is being parsed with RMarkdown or Quarto but I'm not sure if there is an easy way. My suggestion would be to have a configuration flag somewhere in papaja to tell the library if you want Bookdown style output or Quarto style output.
In docx file output from quarto, tables created with
apa_table
are prefixed with-- where "8" is whatever the chunk number is.
Adding a caption field gets rid of the
**
but the erroneous table cross-reference code is still there.I see there is a pull request from the
word-fixes
branch that looks like it could fix the issue, but it is not in the released version. Right now the released version is unusable for professional document output without editing the document after generation.