Move table captions above tables

This commit is contained in:
Florian 2025-11-17 16:10:54 +01:00
parent 39ce749036
commit b4ab0f38d4
2 changed files with 8 additions and 8 deletions

View File

@ -21,10 +21,10 @@ Für typografisch schöne Tabellen nutzen wir das Paket `booktabs`.
``` {.hljs .lang-tex}
\begin{table}[<position>]
\caption{<tabellenüberschrift>}
\begin{tabular}{<spaltendefinition>}
% Tabelleninhalt
\end{tabular}
\caption{<tabellenunterschrift>}
\end{table}
```
@ -160,9 +160,9 @@ Tabellen, die über eine Seite hinaus gehen, werden von `tabular` einfach abgesc
``` {.hljs .lang-tex}
\begin{longtable}{<spaltendefinition>}
% Tabelleninhalt
\caption{<tabellenunterschrift>}
\caption{<tabellenüberschrift>}
\label{<label>}
% Tabelleninhalt
\end{longtable}
```
@ -175,9 +175,9 @@ Hinweise zu `longtable`
@content
``` {.hljs .lang-tex}
\begin{longtable}{<spaltendefinition>}
% Tabelleninhalt
\caption{<tabellenunterschrift>}
\caption{<tabellenüberschrift>}
\label{<label>}
% Tabelleninhalt
\end{longtable}
```
* Die `longtable`-Umgebung vereint die `tabular`-Umgebung und die `table`-Umgebung.

View File

@ -21,10 +21,10 @@ For typographically pleasing tables, we use the `booktabs` package.
``` {.hljs .lang-tex}
\begin{table}[<position>]
\caption{<caption>}
\begin{tabular}{<column definition>}
% table content
\end{tabular}
\caption{<caption>}
\end{table}
```
@ -161,9 +161,9 @@ Tables that exceed one page are simply cut off by `tabular`. A solution is offer
``` {.hljs .lang-tex}
\begin{longtable}{<column definition>}
% table content
\caption{<caption>}
\label{<label>}
% table content
\end{longtable}
```
@ -176,9 +176,9 @@ Notes on `longtable`
@content
``` {.hljs .lang-tex}
\begin{longtable}{<column definition>}
% table content
\caption{<caption>}
\label{<label>}
% table content
\end{longtable}
```
* The `longtable` environment merges the `tabular` and `table` environments.