I used the moderncv class in Lyx to make my CV 2 years ago, but now with newer versions of lyx and moderncv, I can't get it to work anymore. The problem seems to be with the preamble line: \AtBeginDocument{\maketitle}
When I remove that, I get a pdf, but it doesn't have the title stuff. I tried the example file and get the same error. I am using Lyx 1.6.6.1, moderncv 0.8, windows XP. thanks for any help, Nathan