2

I'm creating a pdf document with papaja and r markdown. when i render my document (apa6_pdf) it puts the table at the very end of the document. My chunk is in the middle of the document? I read that tables need to go even behind references and before figures, but if i don't want that, can i still change that?

```{r creating table 1, echo=FALSE, results='asis'}

papaja::apa_table(mytable)

```
neilfws
  • 32,751
  • 5
  • 50
  • 63
Benjamin Telkamp
  • 1,451
  • 2
  • 17
  • 31

1 Answers1

2

When working with papaja in R Markdown and you want to have your tables displayed within text and not after, you can put floatsintext: yes in the YAML front matter. (see the manual for details).

Marius Barth
  • 596
  • 2
  • 9
Benjamin Telkamp
  • 1,451
  • 2
  • 17
  • 31
  • As a side note, with the latest version of `papaja` the option has been renamed to `floatsintext` to match the option name used in the `apa6` LaTeX class (`figsintext` still works to ensure backward compatibility, though). – crsh Jun 01 '18 at 14:32