diff --git a/config/thesis_commands.tex b/config/thesis_commands.tex index 2f1e541..1d15d7f 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}{% +\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}% @@ -47,7 +47,7 @@ % \subfig[1][htbp]{subfig2}[caption]% % \end{subfigs} % reference later with: \figref{label} -\RenewDocumentEnvironment{subfigs}{O{htbp} m m o}{% +\RenewDocumentEnvironment{subfigs}{O{htbp} m m o}{% #1 = position, #2 = label, #3 = title, #4 = subfig titles \begin{figure}[#1]% \centering% }{% @@ -63,11 +63,11 @@ \end{figure}% } -\NewDocumentCommand{\subfigsheight}{m}{% +\NewDocumentCommand{\subfigsheight}{m}{% Set the height of the subfigures \setkeys{Gin}{height=#1}% } -\RenewDocumentCommand{\subfig}{o O{b} m O{}}{% +\RenewDocumentCommand{\subfig}{o O{b} m O{}}{% #1 = width, #2 = valign, #3 = filename, #4 = caption \hfill% \subfloat[#4\label{fig:#3}]{% \IfValueTF{#1}{% diff --git a/utils/commands.tex b/utils/commands.tex index f913714..3ac1638 100644 --- a/utils/commands.tex +++ b/utils/commands.tex @@ -19,7 +19,7 @@ %% Figures % example: \fig[1]{universe}{The Universe}[Short title for list of figures] % reference later with: \figref{universe} -\NewDocumentCommand{\fig}{O{0.8} O{htbp} m m O{#4}}{% +\NewDocumentCommand{\fig}{O{0.8} O{htbp} m m O{#4}}{% #1 = width, #2 = position, #3 = filename, #4 = caption, #5 = short caption \begin{figure}[#2] \centering% \includegraphics[width=#1\linewidth]{#3}% @@ -28,7 +28,7 @@ \end{figure}% } -\NewDocumentCommand{\figwide}{O{1} O{htbp} m m O{#4}}{% +\NewDocumentCommand{\figwide}{O{1} O{htbp} m m O{#4}}{% #1 = width, #2 = position, #3 = filename, #4 = caption, #5 = short caption \begin{figure*}[#2] \centering% \includegraphics[width=#1\linewidth]{#3}% @@ -44,7 +44,7 @@ % \subfig[1][htbp]{subfig2}[caption]% % \end{subfigs} % reference later with: \figref{label} -\NewDocumentEnvironment{subfigs}{O{htbp} m m O{#3}}{% +\NewDocumentEnvironment{subfigs}{O{htbp} m m O{#3}}{% #1 = position, #2 = label, #3 = title, #4 = short title \begin{figure}[#1]% \centering% }{% @@ -53,7 +53,7 @@ \end{figure}% } -\NewDocumentEnvironment{subfigswide}{O{htbp} m m O{#3}}{% +\NewDocumentEnvironment{subfigswide}{O{htbp} m m O{#3}}{% #1 = position, #2 = label, #3 = title, #4 = short title \begin{figure*}[#1]% \centering% }{% @@ -62,7 +62,7 @@ \end{figure*}% } -\NewDocumentCommand{\subfig}{O{0.2} O{b} m o}{% +\NewDocumentCommand{\subfig}{O{0.2} O{b} m o}{% #1 = width, #2 = valign, #3 = filename, #4 = caption \IfValueTF{#4}{% \subfloat[#4\label{fig:#3}]{\includegraphics[width=#1\linewidth,valign=#2]{#3}}% }{% @@ -187,7 +187,7 @@ % \end{tabular} % \end{tab} % reference later with: \tabref{label} -\NewDocumentEnvironment{tab}{m m}{% +\NewDocumentEnvironment{tab}{m m}{% #1 = label, #2 = title \begin{table}% \begin{center} \caption{#2}% @@ -197,7 +197,7 @@ \end{table}% } -\NewDocumentEnvironment{tabwide}{m m}{% +\NewDocumentEnvironment{tabwide}{m m}{% #1 = label, #2 = title \begin{table*}% \begin{center} \caption{#2}%