Add tab environment

This commit is contained in:
2024-08-22 18:37:04 +02:00
parent ebdfb9f450
commit b44ce56056

View File

@@ -82,3 +82,12 @@
\captionsetup{%
labelfont={sf,bf,up}, % sans-serif, bold, upright
}
\RenewDocumentEnvironment{tab}{O{htbp} m m o}{% #1 = position, #2 = label, #3 = title, #4 = additional caption
\begin{table}[#1]%
\centering%
\caption[#3]{#3#4}%
\label{tab:#2}%
}{%
\end{table}%
}