TransWikia.com

LaTex: How to remove round brackets in the caption of subfigures using subfloat

TeX - LaTeX Asked on December 10, 2021

I have the following LaTex code using subfloat to create subfigures:

usepackage{subfig}
usepackage{graphicx}

begin{figure}[H]
centering
subfloat[]{includegraphics[width=0.5textwidth]{Sub-Figure-1.png}label{Sub-Figure-1}} quad
subfloat[]{includegraphics[width=0.3textwidth]{Sub-Figure-2.png}label{Sub-Figure-2}}
caption{textbf{Figure Title}}
label{Scheme}
end{figure}

The output captions for the subfigures look like this:
Sub-figure captions

How do I remove the round brackets? Ie. I just want a and b rather than (a) and (b).

Many thanks in advance.

One Answer

documentclass{article}

usepackage[caption=false]{subfig}
usepackage{graphicx,float}


captionsetup[subfloat]{labelformat=simple}

begin{document}

begin{figure}[H]
centering
subfloat[]{includegraphics[width=0.5textwidth]{example-image-duck}label{Sub-Figure-1}} quad
subfloat[]{includegraphics[width=0.3textwidth]{example-image-duck}label{Sub-Figure-2}}
caption{textbf{Figure Title}}
label{Scheme}
end{figure}

end{document}

enter image description here

Answered by samcarter_is_at_topanswers.xyz on December 10, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP