Hello together,
I hope someone is smarter than me and can help me out on this one. I have a table, containing two sub tables. I created them using Markdown Language in Quarto. Now I am trying to find out, why the heck those tables are always placed at the top of the page.
Creating tables within an R
chunk using kableExtra
can handle the placement of such "simple" tables by using kableExtra::kable_styling(latex_options = 'HOLD_position')
. But with plain Markdown (and I used it since I have no clue how to rewrite it in kableExtra
) I cannot find any options that force the table placement where it should come (instead of the top of the page).
Here is the code producing a reprex .pdf document.
---
title: "Reprex"
format:
pdf:
documentclass: article
classoption: a4paper
number-sections: true
tbl-cap-location: top
mainfont: Arial
sansfont: Arial
lang: de
include-in-header:
text: |
\usepackage{lipsum}
---
\cleardoublepage
\tableofcontents
\cleardoublepage
\pagenumbering{arabic}
\section{Reprex}
This is a short introductional sentence which is definitely not long enough to force a placement of the table at the top of the page.
::: {#tbl-Tabelle1 layout-ncol=2}
| ID | Start | Ende | Zustand |
|------|-------|------|---------|
| 1 | 1 | 2 | Ausb |
| 1 | 3 | 5 | svB |
| 1 | 6 | 7 | gB |
| 1 | 8 | 10 | svB |
| 2 | 1 | 3 | Ausb |
| 2 | 4 | 5 | kE |
| 2 | 6 | 10 | ALO |
: SPELL Format {#tbl-SPELL}
| ID | Monat1 | Monat2 | Monat3 | ... | Monat10 |
|------|--------|--------|--------|-----|---------|
| 1 | Ausb | Ausb | svB | ... | svB |
| 2 | Ausb | Ausb | Ausb | ... | ALO |
: STS Format {#tbl-STS}
Übergang von SPELL in STS Format
:::
\lipsum[1]
And here are the tlmgr informations:
tlmgr revision 63068 (2022-04-18 07:58:07 +0200)
TeX Live (https://tug.org/texlive) version 2022
The goal would be to place the table below the first sentence, instead of above the header.
Kind regards