0

I am trying to use \begin{figure} \end{figure} however I get the error that it is undefined. I am using \usepackage{float, graphicx} in the beginning in the doc.

It is important to mention that i am using a custom document class called moderncv.cls which I found online.

I already tried to use \RequirePackage{float,graphicx} in the moderncv.cls. However this is also not working.

Do you have any suggestion on how to approach this problem?

  • 7
    Most likely floating figures are useless in moderncv and as such not provided by the class. You don't need a figure environment, just use \includegraphics – user31729 Mar 27 '18 at 11:50
  • The same is true for table, but actually, I did not check that within moderncv – user31729 Mar 27 '18 at 12:01
  • en.m.wikibooks.org/wiki/LaTeX/Importing_Graphics See, no need for a figure environment. – Johannes_B Mar 27 '18 at 12:02
  • I want to place my image very specifically on the top right. On the same line as the chapter and i think I would need figure for that? – Roundtrip Mar 27 '18 at 12:04
  • 1
    @user3410232: No, figure is not necessary at all. If you want to have a caption (unlikely for a CV, I assume), you can use \includegraphics and \captionof{figure}{Foo caption} (with caption package, for example) – user31729 Mar 27 '18 at 12:06

Your Answer

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

Browse other questions tagged or ask your own question.