# Problem with \maketitle in moderncv

I downloaded the moderncv template for LyX, I tried to compile it but this error appears:

\maketitle

Your command was ignored. Type I to replace it with another command, or to continue without it.

If I delete \maketitle it works, but the title, name and so don't appear! I am not able to use LaTeX, I only use Lyx. Please help me!

-
Where did you find the moderncv LyX template/layout file? – Werner Sep 9 '12 at 2:08
how can i change the picture from the example? i try for hours. thanks in advance! – user21061 Oct 18 '12 at 13:11
@hanswurst If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. – lockstep Oct 18 '12 at 13:14
Did you ever find a solution? I imported a moderncv lyx file to a new computer and "\maketitle" causes troubles. I've been using this lyx file for over 3 years. – ChrisR Mar 21 '13 at 7:46

I had same problem, but I found the solution.

In my case, I had \\ in some fields, for example :

\title{
Administrateur système GNU--Linux \\ Responsable technique.
}

When I deleted \\, the compilation ran correctly.

\title{
}

If there is a \\ string in the fields firstname, familyname, title, address, etc..., the problem appears.

-

There's probably a problem in Document->Settings->LaTex Preamble, maybe in the address field.

if you see this: \address{Teststreet 17}{03333 Nicecity \\ Switzerland}

try changing it to \address{Teststreet 17}{03333 Nicecity}{ Switzerland}

Goodluck!

-

For me the problem was the \email declaration. The document compiled after I removed it.

-

For me both \maketitle and \makecvtitle works fine. Have you set in the preamble something like this?:

\moderncvtheme[blue]{classic}
% possible themes are "classic" and "casual"
% optional argument are 'blue' (default), 'orange',
% 'red', 'green', 'grey' and 'roman' (for roman fonts,
% instead of sans serif fonts)
\firstname{Long John} % required
\familyname{\\Silver} % required
\title{Curriculum vitae} % optional