lyx-users  

Re: Elsarticle.cls

Uwe Stöhr
Wed, 03 Feb 2010 10:13:04 -0800

Craig Baudendistel schrieb:

I have a question regarding the elsarticle document class. Elsevier's website provides a pdf document that explains the newest elsarticle and its options. That website is:

http://www.elsevier.com/framework_authors/misc/elsdoc.pdf

In this document, item number 4 outlines some options for the documentclass elsarticle (preprint, review, 1p, 3p, and 5p). I know that the journal I am submitting to is of the "5p" format. How do I add this option to the elsarticle template provided in lyx?

I have tried to place "5p" in the custom class options in the document settings

This is the correct place.

but end up with an error. "Option clash for package geometry".

This is because elsarticle loads the LaTeX-package "geometry" by itself when you are using the "5p" option. LyX always loads the package geometry. The problem is that elsarticle loads it with no options while LyX loads it with the option corresponding to the document page dimensions. Neither elsarticle's nor LyX's loading of geometry can be suppressed.

I therefore propose not to use the "5p" document class option until your paper is ready to be submitted. Just before committing

1. add the "5p" option
2. export your document as LaTeX
3. open the exported .tex file with a text editor and delete the line
   \usepackage[xxx]{geometry}
  (xxx is an option depending on the LyX document page dimensions settings)
4. Submit the changed .tex file

I'm forwarding your mail to the lyx-users mailing list in case somebody else has a better solution than me.

regards Uwe