1

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?

Thanks in advance for any advice.

1
3

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): Output of my example (pdflatex compiler)

5
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.