From ade4c29f11f31d8172660ef680d201c9c1732148 Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Thu, 22 Aug 2024 18:36:02 +0200 Subject: [PATCH] Set fig additional caption really optional --- config/thesis_commands.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/thesis_commands.tex b/config/thesis_commands.tex index 79a8c8a..e6913c3 100644 --- a/config/thesis_commands.tex +++ b/config/thesis_commands.tex @@ -32,7 +32,7 @@ % Images % example: \fig[1]{universe}{The Universe}[Additional caption text, not shown in the list of figures] % reference later with: \figref{universe} -\RenewDocumentCommand{\fig}{O{1} O{htbp} m m o}{% #1 = width, #2 = position, #3 = label, #4 = caption, #5 = additional caption +\RenewDocumentCommand{\fig}{O{1} O{htbp} m m O{}}{% #1 = width, #2 = position, #3 = label, #4 = caption, #5 = additional caption \begin{figure}[#2] \centering% \includegraphics[width=#1\linewidth]{#3}%