# How to insert a JPEG image but have the label call it a 'scheme'?

I have a .jpg image in my LaTeX document I want to be labelled as "Scheme x" rather than "Fig. x". Is it possible to change the label?

With the package chemstyle you can get a "Scheme" instead of a "Figure". I think in the command \label{xxx:test} you can write for xxx what ever you want.

UPDATE: You could also use a .jpg instead of a .pdf in my example.

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{chemstyle}

\begin{document}

\begin{scheme}
\centering
\includegraphics[width=\textwidth]{test.pdf}
\caption{Test.}
\end{scheme}

\end{document}


Output of my example (pdflatex compiler):

• Thanks Vincent, unfortuantely when I do this I get the error message saying "environment scheme undefined" – rleve Nov 11 '16 at 11:35
• \renewcommand*{\schemename}{Scheme} – vincentm9 Nov 11 '16 at 11:36
• what about using that command? – vincentm9 Nov 11 '16 at 11:36
• Or you need to install the package first an your local computer? Sorry here ends my knowledge – vincentm9 Nov 11 '16 at 11:38
• @rleve Did you add \usepackage{chemstyle}? Vincent's code worked fine when I tested. – Torbjørn T. Nov 15 '16 at 4:20