Ericka Huang
Ericka Huang

Reputation: 103

Change prefix Figure 1 to Fig. S1. in latex

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

Answers (2)

Mohammad Bashiri
Mohammad Bashiri

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

Ad Fortia
Ad Fortia

Reputation: 333

You have to redefine the \figurename. You can find usefull information here.

Upvotes: 1

Related Questions