Reputation: 103
I want to ask, How can I change prefix in the caption from Figure 1 into Fig. S1. in latex?. Thank you
Upvotes: 8
Views: 22296
Reputation: 89
This might help:
\setcounter{figure}{0}
\renewcommand{\figurename}{Fig.}
\renewcommand{\thefigure}{S\arabic{figure}}
The first line resets the count and is not necessary if you want to do it for the whole document. But if you want to do it for a specific section (maybe supplementary section is at the end of your document) then put these three lines at the start of that section and the first line would reset figure counter.
Upvotes: 7