As I have messed with the layout files,
I feel responsible to answer.
After installing the files to /usr/share/texmf/bibtex/bst/natbib
Try the following
export as Latex
run
latex filename
bibtex filename
latex filename
latex filename
xdvi filename.dvi
if the questionmarks still appear check the following.
1. Did you checkt the read permissions of the bibtex files?
2. Did you run texhash as root after the installation?
( For me elsart-harv.bst stylefile works just fine)
The main problem with the elsart layout file(s) are
connected with the frontmatter environment.
The frontmatter environment differs
markedy from standard title page layouts (it is genuinely more rich).
Therefore, it might be easiest to write the entire frontpage "as red code",
just in case you encounter problems.
Hope this helps.
Staffan
Oscar wrote:
> Hi lyxers
>
> I am writting an article using the elsart.layout submitted to this list
> a few months ago. I need to use the bibtex style elsart-harv.bst or
> elsart-num.bst. So I put them in the directory
> /usr/share/texmf/bibtex/bst/natbib and I inserted the corresponding
> bibtex reference in lyx specifying in the style field elsart-num, for
> instance. The layout is working perfectly but the references doesn't
> appear, and the usual question mark is showed. If I change the bibtex
> style the references appear without any problem.
>
> I know that Herbert pointed out a problem with natbib and the bst files
> (http://www.mail-archive.com/lyx-users@lists.lyx.org/msg06204.html)
> but I followed the discussion in the mailing list archive and I tried
> the lyx layout that Herbert posted in the above message and it doesn't
> work for me.
>
> Should I add some special command from the elsart class? Have I missed
> something important ? What am i doing wrong ?
>
> Thanks in advance for your help
>
> Oscar