I am building a PDF document using r markdown, tinytex and xelatex. I cannot maintain the order of the output chunks. The document has text chunks, table chunks, and plot chunks. I am especially having trouble with table chunks. I have tried to use the "\FloatBarrier" command to control some of the float issues, but I cannot fit a table and plot on a single page (event though there is room on the page) or maintain the output order.
Can someone point me to resources for controlling output order in r markdown documents that produce a PDF document?
Thanks
AB
Without a reproducible example, I'm going to take a shot in the dark. If you're using kableExtra, you should be able to specify options through the latex_options in kable_styling(). Looking at the documentation, you could try hold_position:
hold_position will "hold" the floating table to the exact position. It is useful when the LaTeX table is contained in a table environment after you specified captions in kable(). It will force the table to stay in the position where it was created in the document. A stronger version: HOLD_position requires the float package and specifies [H].