Jabref supports exporting the selected entries in different formats, but I wonder if it can actually export to BibTeX format. It is useful to select some of the references to create a smaller database that contains, for instance, only the references of some topic or the ones you are citing in a specific paper. Is there any option to automatically do that?
[Tex/LaTex] Jabref: can it export a subset of the bibliography in BibTeX format
bibtexjabref
Related Solutions
(Converting my and Ulrike's comments into some form of answer.)
I'm not quite sure what you are expecting to happen here. I suspect that by 'LaTeX encodings' you mean items which are included as control sequences (for example \rightarrow
). A lot of these are math symbols, and comprehensive coverage in this area is hard to find at the font level. So even with UTF-8, LaTeX users will tend to stick to the symbolic names here. Moreover, the title don't need to contain only characters. It is quite possible to insert a graphic:
title = {Tiger: {\includegraphics[width=1cm]{tiger}}}
or a chessboard or an exotic symbol. So if you want to build a database which use only UTF-8 chars a human will have to go over such special titles and decide what should be used as replacement.
Thus your best approach is going to be some custom scripting, taking items you do know how to convert and changing them. At the same time, anything else can be flagged for human intervention, which will be the only way in many cases.
The style of the references is not much depending on the data in the .bib
file (or a program like JabRef). The main factor is the chosen bibliography style of your document. It determines which fields are shown.
Suggestions to improve the looks:
If URLs occur in your document (e.g. in the references) you can add
\usepackage{url}
to the preamble (in LyX
Document > Settings... > LaTeX Preamble
). Then long URLs like in your second reference will have a proper line break. Not necessary if package "hyperref" is used, see Forcing linebreaks in \url.If "extra spaces that look unprofessional" refer to the line breaks after every field in the references then removing the document option
openbib
helps (in LyXDocument > Settings... > Document Class
); see Natbib puts reference data one line per item or Custom references page with additional line breaks.Of course, a bibliography style different from "plainnat" can be choosen in LyX by a right click on "BibTeX Generated Bibliography" and then "Settings...".
Nevertheless, a little edit of your
.bib
file (with JabRef) could be done:The URL of "ADRIAN2008" should be cleared since it replicates the DOI entry. (In JabRef, an clickable icon with hyperlink is shown for a non-empty URL field. If the URL field is empty but not the DOI field then still a clickable icon is shown. It provides the hyperlink
http://dx.doi.org/<DOI field value>
automatically.)Dashes: - vs. – vs. —:
pages = {1191-1239}
should bepages = {1191--1239}
for the right length of the dash.doi = {doi:10.1093/rfs/hhj035}
should bedoi = {10.1093/rfs/hhj035}
.
Best Answer
The format of JabRef is BibTeX! So of course you can export a subset of a database in that format.
Open a database and select the entries you want
Select "Save Selected as…" from the "File" menu
Give a name to the extracted file
Use the resulting
.bib
fileThe database I used is available in TeX Live as