Re: LyX functions for bibliography managers

2013-02-18 Thread Benjamin Piwowarski
Hi, I am trying to push a bit this enhancement ticket http://www.lyx.org/trac/ticket/8368 about Lyx managed bibtex files. I separated the patch in two main parts now, one that is fully functional (and broken itself into 4 sub-patches) and refactors bibtex parsing, introduces the notion of bibte

Re: LyX functions for bibliography managers

2012-10-26 Thread Benjamin Piwowarski
Hi, here is the file containing the five patches bibtex-insert-000.patch Description: Binary data best, Benjamin On Oct 26, 2012, at 15:26 , Richard Heck wrote: > On 10/25/2012 03:30 PM, Richard Heck wrote: >> On 10/25/2012 02:43 PM, Benjamin Piwowarski wrote: >>> Hi, >>> >>> could I have

Re: LyX functions for bibliography managers

2012-10-26 Thread Richard Heck
On 10/25/2012 03:30 PM, Richard Heck wrote: On 10/25/2012 02:43 PM, Benjamin Piwowarski wrote: Hi, could I have at least some feedback on the patch - I know it is not finished yet (at least for part 5), so it would be good to validate (and maybe commit) parts 1-4. I'll try to have a look t

Re: LyX functions for bibliography managers

2012-10-25 Thread Richard Heck
On 10/25/2012 02:43 PM, Benjamin Piwowarski wrote: Hi, could I have at least some feedback on the patch - I know it is not finished yet (at least for part 5), so it would be good to validate (and maybe commit) parts 1-4. I'll try to have a look this weekend. Just very busy. rh Many thanks

Re: LyX functions for bibliography managers

2012-10-25 Thread Benjamin Piwowarski
Hi, could I have at least some feedback on the patch - I know it is not finished yet (at least for part 5), so it would be good to validate (and maybe commit) parts 1-4. Many thanks Benjamin On 11 Oct 2012, at 16:51, Benjamin Piwowarski wrote: > Hi, > > I decomposed the patch in 5 steps: >

Re: LyX functions for bibliography managers

2012-10-11 Thread Richard Heck
On 10/11/2012 10:51 AM, Benjamin Piwowarski wrote: Hi, I decomposed the patch in 5 steps: 1) Refactored BibTeX parsing (InsetBibtex) 2) Add a method to update a BibTeX file (InsetBibtex and BiblioInfo) 3) Detection and status cache of BibTeX managed files (InsetBibtex, Buffer) 4) Method to add

Re: LyX functions for bibliography managers

2012-10-11 Thread Benjamin Piwowarski
Hi, I decomposed the patch in 5 steps: 1) Refactored BibTeX parsing (InsetBibtex) 2) Add a method to update a BibTeX file (InsetBibtex and BiblioInfo) 3) Detection and status cache of BibTeX managed files (InsetBibtex, Buffer) 4) Method to add a set of keys to InsetCitation (InsetCitation) 5) Add

Re: LyX functions for bibliography managers

2012-10-10 Thread Richard Heck
On 10/10/2012 09:41 AM, Benjamin Piwowarski wrote: Hi, I created a patch implementing the "bibtex-insert" function, please see http://www.lyx.org/trac/ticket/8368 [snip] The patch basically refactored the code that was used to parse a BibTeX file (in InsetBibtex.cpp), so it can be used to pa

Re: LyX functions for bibliography managers

2012-10-10 Thread Benjamin Piwowarski
Hi, I created a patch implementing the "bibtex-insert" function, please see http://www.lyx.org/trac/ticket/8368 This is an attempt to enhance the workflow with external bibliography managers, by providing a new LFUN command "bibtex-insert" that takes one argument, a BibTeX fragment (i.e. one

Re: LyX functions for bibliography managers

2012-06-15 Thread Benjamin Piwowarski
On Jun 13, 2012, at 12:22 , Pavel Sanda wrote: > The patch looks fine on the first sight (please, next time attach patch > directly to email). I thought that Trac would be better because it allows to see within the browser the changes brought by the patch. Benjamin

Re: LyX functions for bibliography managers

2012-06-15 Thread Benjamin Piwowarski
On Jun 14, 2012, at 16:10 , Richard Heck wrote: > On 06/13/2012 07:54 AM, Rainer M Krug wrote: >> 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)

Re: LyX functions for bibliography managers

2012-06-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/06/12 16:46, Richard Heck wrote: > On 06/14/2012 10:25 AM, Rainer M Krug wrote: 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

Re: LyX functions for bibliography managers

2012-06-14 Thread Richard Heck
On 06/14/2012 10:25 AM, Rainer M Krug wrote: 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

Re: LyX functions for bibliography managers

2012-06-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/06/12 16:10, Richard Heck wrote: > On 06/13/2012 07:54 AM, Rainer M Krug wrote: >> 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

Re: LyX functions for bibliography managers

2012-06-14 Thread Richard Heck
On 06/13/2012 07:54 AM, Rainer M Krug wrote: 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-op

Re: LyX functions for bibliography managers

2012-06-14 Thread Guenter Milde
On 2012-06-13, Rainer M Krug wrote: > On 13/06/12 13:24, Jürgen Spitzmüller wrote: >> 2012/6/13 Benjamin Piwowarski : >>> 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 wi

Re: LyX functions for bibliography managers

2012-06-13 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/06/12 13:24, Jürgen Spitzmüller wrote: > 2012/6/13 Benjamin Piwowarski : >> 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 direct

Re: LyX functions for bibliography managers

2012-06-13 Thread Jürgen Spitzmüller
2012/6/13 Benjamin Piwowarski : > 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,

Re: LyX functions for bibliography managers

2012-06-13 Thread Benjamin Piwowarski
On Jun 13, 2012, at 12:22 , Pavel Sanda wrote: >>> Another possibility (and better) would be to have a functions to manage >>> directly BibTeX entries (i.e. store or retrieve), but for this I would >>> need some help. > > It does not strikes me as a good idea. We should let citation managemen

Re: LyX functions for bibliography managers

2012-06-13 Thread Pavel Sanda
strikes me as a good idea. We should let citation management on citation managers. The patch looks fine on the first sight (please, next time attach patch directly to email). We need your GPL statement like this one: http://permalink.gmane.org/gmane.editors.lyx.devel/140800 > > I have subm

Re: LyX functions for bibliography managers

2012-06-13 Thread Benjamin Piwowarski
a LyX file format change. Benjamin On Jun 13, 2012, at 10:31 , Benjamin Piwowarski wrote: > Hi, > > I have submitted a patch to improve LyX functions for bibliography managers: > > http://www.lyx.org/trac/ticket/8193 > > Basically, this patch: > - modifies citation

LyX functions for bibliography managers

2012-06-13 Thread Benjamin Piwowarski
Hi, I have submitted a patch to improve LyX functions for bibliography managers: http://www.lyx.org/trac/ticket/8193 Basically, this patch: - modifies citation-insert so that it returns a comma separated list of undefined BibTeX entries - adds a function (database-bibtex-list) that returns the