G. Milde schrieb:
In v1.3, Elsevier articles could have their thanks references made through an
optional argument, as seen in this post:
http://article.gmane.org/gmane.editors.lyx.general/21473/match=OptArg
But when I copy that lyx code into a file and open it with lyx 1.5.4, the
optional argument shows up on the screen, but not in the tex code. Is it a
bug in lyx 1.5.4 that optional arguments are ignored?
You need to amend the Elsevier article's elsart.layout file so it recognizes
optional arguments for the Thanks style:
--- /usr/share/lyx/layouts/elsart.layout 2008-03-13 16:21:21.000000000
+0100
+++ /tmp/elsart.layout 2008-04-18 09:35:12.000000000 +0200
@@ -195,6 +195,7 @@
LatexType Command
LatexName thanks
InTitle 1
+ OptionalArgs 1
Font
Size Small
Family Typewriter
I fixed this for the next LyX version LyX 1.5.7.
Note that elsart.layout uses an Elsevier class that is obsolete since a month. I'll provide a new
layout file for the new class for the next LyX version.
regards Uwe