On 2012-06-13, Rainer M Krug wrote:
> On 13/06/12 13:24, Jürgen Spitzmüller wrote:
>> 2012/6/13 Benjamin Piwowarski <benjamin.piwowar...@lip6.fr>:

>>> I agree to some extent: citation managers would still be in charge of
>>> the edition of the BibTeX entries, but these functions would allow
>>> them to communicate directly with LyX in order to easily add new
>>> entries to a paper. For example, in Jabref or Bibdesk, you would push
>>> the "Send to LyX" button that would not only insert the citation but
>>> also add the BibTeX entry if not present. 

In my nomenclature, a "BibTeX entry" is a record in the *.bib BibTeX
database file. However, the context suggests that it refers to
Insert>List/TOC>BibTeX Bibliography instead. Is this assumption right? A
function that ensures that the required database is referenced in the
document seems resonable. A problem might be the placement of the inset when
it is new.

>>> I agree this is already doable (with the functions of the patch), but
>>> this would simplify the work of developers of bibliography managers
>>> and hence allow a better LyX support.

>> What I personally miss is the possibility to add a citation in a
>> specific (e.g. natbib) style, maybe even with pre and post field. I
>> find myself often inserting a citation via an external manager and
>> then have to use LyX's dialog anyway to set the style and add the page
>> numbers. The citation-insert function would need to be enhanced to
>> provide this. And maybe we would need a similar function as yours that
>> passes the current style choices to the manager.

> While we are at that subject what is missing in the citation
> management, I would like to see two things:

> 1) the possibility to create a local .bib file (in the directory of the
> .lyx file) which contains only the references used. This would make
> co-operation between authors much easier. If this file could be
> embedded in the .lyx file, this would be brilliant, although this is
> not necessary, as other external files also exist.

I'd not embed the file into the lyx file (but of course in the lyx-archive
file).


> 2) the possibility to include the .bbl file, generated when compiling
> the LaTeX, in the export to LaTeX. This is required when submitting
> articles to journals and this feature would make life much easier and
> reduce the manual editing necessary after export to LaTeX.

I would like to see this as an option of the "LaTeX archive" export:

  Include Bibliography: [drop down list]
                        - copy BibTex database(s)
                        - create local BibTeX database with required entries
                        - run BibTex and include *.bbl file
                        - run BibTex and embedd *.bbl file
                        - no

> I agree that the management of the bib file itself should be left to
> JabRef et al.

Seconded. Like the "BibTeX Generated Bibliography" inset, the context
menu of citation insets could/should offer the option to "edit database
externally". If supported by the citation manager, the current entry should
be pre-selected.

Günter

Reply via email to