Am Donnerstag, 9. März 2006 14:13 schrieb William O. Bray:
> Using version 1.4 on Ubuntu. Setting up an article with document class 
> article (AMS). In the environment drop down list, we have a choice 
> current address, which in LaTex is typeset at the end of the article. In 
> using this, and running pdflatex, I get an error which says "lyxaddress 
> is already defined".
> Similar things for email, URL. In the amsdefs.inc (located in my case in 
> /usr/local/share/lyx-14/layouts), the styles for current address, email, 
> url use the command CopyStyle Address. In Lyx 1.3.7, I did not have this 
> problem. Further, in the 1.3.7 amsdefs.inc, the current address, email, 
> url were all given defined Style without the copystyle command. So I 
> copied the amsdefs.inc from the 1.3.7 setup to the 1.4 directory; 
> problem seems to have solved itself.
> Is this a solution to the problem, or am I missing something?

This is certainly a workaround, but it may have side effects. Please file 
this at http://bugzilla.lyx.org, you have found a bug in 1.4.0. The 
problem is that the Address style in amsdefs.inc does not overwrite the 
one in lyxmacros.inc, but gets merged with it. The other styles with 
copystyle commands then produce the multiple definition of the 
\lyxaddress macro.


Georg

Reply via email to