4

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?

  • 8
    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 –  Mar 27 '18 at 11:50
  • The same is true for table, but actually, I did not check that within moderncv –  Mar 27 '18 at 12:01
  • https://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
  • 2
    @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) –  Mar 27 '18 at 12:06
  • I do not want a caption that is right. Is there any possibility to place the image with coordinates in an "absolute" style? – Roundtrip Mar 27 '18 at 12:30

0 Answers0