Prefix figure numbers in Appendix in LaTex

The following code will use “Figure S[1, 2, ..]” for figures in appendix.

\makeatletter
\renewcommand{\thefigure}{S\@arabic\c@figure}
\makeatletter

If “Supplementary Figure” instead of “Figure” is preferred, one can use the following command:

\renewcommand{\figurename}{Supplementary Figure}

Similarly, to put “S” before equation numbers (e.g. [S1], [S2], instead of [1], [2]), one can use the following command:

\makeatletter

\renewcommand{\theequation}{S\@arabic\c@equation}

\makeatletter

Advertisements

One thought on “Prefix figure numbers in Appendix in LaTex

  1. Pingback: floats – Prefix figure number for a given section only – TeX | Asking

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s