Add \subfigbox
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user