diff --git a/config/thesis_commands.tex b/config/thesis_commands.tex index e7aa51c..8680942 100644 --- a/config/thesis_commands.tex +++ b/config/thesis_commands.tex @@ -84,6 +84,18 @@ \hfill% } +\NewDocumentCommand{\subfigbox}{o O{b} m}{% #1 = width, #2 = valign, #3 = filename + \hfill% + \subfloat[\label{fig:#3}]{% + \IfValueTF{#1}{% + \includegraphics[width=#1\linewidth, valign=#2, keepaspectratio, frame]{#3}% + }{% + \includegraphics[valign=#2, keepaspectratio, frame]{#3}% + }% + }% + \hfill% +} + \captionsetup{% labelfont={sf,bf,up}, % sans-serif, bold, upright }