Uwe Stöhr wrote:
> This cannot be fixed, because in trunk the new default theme is used. in
> branch I cannot use this  because the document will then become
> uncompilable. 

No it won't. Attached is a branch version that compiles with the casual theme. 
All I did here is changing the theme and removing the linebreak in the address 
(I also commented out the photo, since I don't attach the graphic).

> The linebreak is necessary to get the city in its own line.
> This is a requirement for some job applications. At least that was once
> reported to me.

Look, the problem is that some modernCV themes (casual, which has the address 
information in the footer) do not support linebreaks in the address field. The 
branch example fails if you switch to this theme, because you have linebreaks 
in the address. If you remove the linebreaks, the errors go away. The trunk 
example, on the other hand, works, since there is _no_ linebreak in the 
address. If you add a linebreak,the errors will be there.

So the problem is in modernCV. Actually, I think the real solution to this 
problem would be adding a \country macro in modernCV. After all, the theme 
determines where the country is placed -- on its own line or in the same line 
after an endash. The linebreak error should of course be fixed nevertheless by 
the modernCV author.

As for the examples, you should document in the preamble that \protect'ed 
linebreaks can be used in the classic layout to put the country on its own 
line, but that such linebreaks will produce errors in the casual layout -- and 
this holds for branch and trunk.

Jürgen

Attachment: modernCV-branch.lyx
Description: application/lyx

Reply via email to