On Tuesday 26 January 2016 08:05:01 Wolfgang Engelmann wrote:
> Am 26.01.2016 um 00:51 schrieb Rich Shepard:
> > I normally compile my documents using pdflatex. For an article I'm
> >
> > submitting to a journal I want to provide the .tex (produced using LaTeX
> > (pdflatex) and .bib files but I've run into a problem with the latter.
> > Perhaps the solution needs to come from the JabRef mail list.
> >
> > My scientific references are maintained in a JabRef database. There
> >
> > are a
> > number of these that are used in the article, and I've no idea how to
> > extract only the cited references into a separate .bib file to send along
> > with the .tex file.
> >
> > A pointer to what I should read to learn how to do this will be much
> >
> > appreciated.
> >
> > TIA,
> >
> > Rich
>
> Hi, Rich,
> in LyX:
> File > export > Latex (plain)
>
> in a terminal:
> latex yourfile
> latex yourfile
> latex yourfile
> bibtex yourfile
> which produces an yourfile.aux
>
> in Jabref:
> Tools > new subdata based on AUX file
> in the window which opens:
> Reference data base: yourbibfile
> Latex AUX file browse, is in same directory as your lyx file and .tex file.
>
> This produces a bib file containing ONLY the used references (and tells
> you, if some are missing).
>
> I am on Linux Debian
>
> Hope it works for you
> Wolfgang
I've been doing exactly the same thing, but a tad differently.
After the .aux file is generated, I run it through the bibtool app:
$> bibtool -x yourfile.aux -o yourfile.bib
that should generate your tailored bibtex database.
After that, you'll only have to change the \bibliography{...} command inside
yourfile.tex to
\bibliography{yourfile}
That's been working for me.
--
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered Linux user # 153741