I want to personally congratulate Mr Andrew Parsloe for this piece of
art. It's outstanding and is what I'm looking for a few days ago, there
are off course some issues I want to discuss:
1. when you import from BibTeX the coding as \textsc{} or \'{} are
imported as text, I know this is a first approximation but it will be
desirable that all the coding are imported as their meaning (to
acomplish LyX phylosophy) and then exported again as coding. I mean when
you have an accronym ABCD then the exported line should be \textsc{ABCD}
and when you have accents like ó then the exported character should be
\'{o}, and so on.
2. It will be desirable to have the standard sections of a bibliography
in the definitions, so when you add a new reference you must just only
fill the sections such as author, journal, title, and so on.
my best regards
~-o--{____}--o-~
Alex Vergara Gil
MSc. Física Nuclear
Laboratorio Secundario de Calibración Dosimétrica
Centro de Protección e Higiene de las Radiaciones
Calle 20 No. 4113 e/ 18A y 47 Playa
La Habana, Cuba
A.P.6195 C.P.10600
Telf: (537)6824892, (537)6821803
Fax: (537)2030165
El 16/04/2012 04:19 a.m., Andrew Parsloe escribió:
A few months ago I finished working on a project involving a 289 item
bibliography. All the work on the bibliography was done in a text
editor. It irritated me that I couldn't use LyX -- or so I thought at
the time. Now, without the pressure of doing the work, I've had time to
think about it, and to tinker, and I find that LyX is an excellent tool
for creating, editing and organising bibliographies. You can do all
kinds of *cosmetic* things to the bibliography in LyX to make it more
readable and navigable, but these are stripped from the file on plain
text export, so that they don't interfere with the use of the *.bib file
by biblatex (or BibTeX).
I've attached 6 files: bibliography.layout, an explanatory document
EditingBibsInLyX.lyx, two Python scripts txt2bib.py and bib2lyx.py, a
pretty picture, BibRecords.png showing what it's all about, and a
module, bibliography.module, for viewing selected records in a biblatex
style. The layout file redefines some sectional styles (some in a major
way) to enable the initial lines or entry types of records (@book,
@report, @collection etc.) to show up in the Outline window, enabling
easy navigation throughout the bibliography. The up and down arrows at
the bottom of the Outline window allow the easy repositioning of
records. Part and Part* divide the bibliography into major divisions and
allow blocks of records to be moved up or down. The Labeling and
Description list environments are lightly redefined to style data types
(things like author = {foo}, title = {blah},) for easy readability, by
indentation (Labeling) or colour (Description). BibRecords.png shows the
results.
The Python script txt2bib.py does the plain text export, changes the
extension from .txt to .bib and does some tidying up. To work, this
script needs a new format to be defined, Plain text (bib) -- see
EditingBibsInLyX.lyx. In the other direction bib2lyx.py imports a bib
file into LyX 2.0.3 and formats it `prettily'. (These are the first two
Python scripts I've written; I welcome suggested improvements. I work in
Windows so there may be Linux or Mac things that need doing.)
Other advantages of editing bibliographies in LyX are yellow notes,
which allow annotations and reminders to be added exactly where required
without consequence for the exported bib file; branches, which allow the
*selective* export of records; and master and child documents which
allow the large-scale organising of bibliographies.
Whereas a pdf is `prettier' than the LyX file from which it is derived,
for a bib file it is the other way around, but otherwise the
relationship is much the same: you work on the LyX file and shouldn't
have to touch the bib file any more you do the pdf.
Andrew