[Tex/LaTex] Add bst file with LaTeX / MiKTeX

bibtexlyxmiktex

I'm trying to use elsarticle-num-ident.bst, an exact copy of

C:\Program Files (x86)\MiKTeX 2.9\bibtex\bst\elsarticle\elsarticle-num.bst 

but every time I run LyX, I get the bibtex error

I couldn't open style file elsarticle-num-ident.bst

This is despite reconfiguring LyX and restarting, and despite running MixTex's Settings/Options' "Refresh FNDB" as Administrator. It also doesn't work if I put the .bst file in the same folder as the .lyx file.

How should I help lyx/bibtex/Mixtex find the .bst file?

Once I get the identical copy to work, I plan to edit it to not print URLs, as suggested by mico.

Related questions:

Best Answer

You should create a LocalTeXMF root directory, say in your personal directory. Whatever the exact name you give it, you have to declare it via MiKTeX Options, Roots tab, Add button. Everything you'll put in this directory must respect the TeX Directory Structure (TDS).

In this root, copy the .bst file as \LocalTeXMF\bibtex\bst\elsarticle\elsarticle-num-ident.bst, then refresh the FNDB. That's all.