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?
figures are useless inmoderncvand as such not provided by the class. You don't need afigureenvironment, just use\includegraphics– Mar 27 '18 at 11:50table, but actually, I did not check that withinmoderncv– Mar 27 '18 at 12:01figureis not necessary at all. If you want to have a caption (unlikely for a CV, I assume), you can use\includegraphicsand\captionof{figure}{Foo caption}(withcaptionpackage, for example) – Mar 27 '18 at 12:06