Figure in moderncv

Asked by Flo__


I would like to add a Figure in my moderncv document. It appears that it's not possible, probably due to the definition of the moderncv class. However, I noticed that there is some packages to add caption in non-floating environment, like "caption" or "capt-of". Unfortunately, these packages seems to not work in the moderncv class (error "Package caption Error: No float type 'figure' defined \captionof{figure}{". The same code work if the classical article class is loaded.


Question information

English Edit question
moderncv Edit question
Xavier Danaux Edit question
Last query:
Last reply:
Revision history for this message
Xavier Danaux (xdanaux) said :

Hi Flo,

The figure environment is simply not defined in moderncv. You can define it your self if you need it (\newenvironment).

FYI, the figure definition in the article class is roughly the following:
\renewcommand \thefigure {\@arabic\c@figure}

Kind regards,

Can you help with this problem?

Provide an answer of your own, or ask Flo__ for more information if necessary.

To post a message you must log in.