From b44ce56056dc546af265617e4ded64365ed2f884 Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Thu, 22 Aug 2024 18:37:04 +0200 Subject: [PATCH] Add tab environment --- config/thesis_commands.tex | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config/thesis_commands.tex b/config/thesis_commands.tex index 42bbc43..db6becd 100644 --- a/config/thesis_commands.tex +++ b/config/thesis_commands.tex @@ -81,4 +81,13 @@ \captionsetup{% labelfont={sf,bf,up}, % sans-serif, bold, upright -} \ No newline at end of file +} + +\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}% +}