Re: Feature proposal: inline bibtex formatted refs [Patch]

2010-03-02 Thread Pavel Sanda
Vincent van Ravesteijn - TNW wrote: > >+# author user SchAirport on trac > > I'm not sure what to do with this. for future we could at least add note in trac that posting any source code into trac author agrees with gpl-2 reusage unless stated otherwise? pavel

Re: Feature proposal: inline bibtex formatted refs [Patch-1]

2010-03-02 Thread Manoj Rajagopalan
I forgot to mention, this patch also includes an update to UserGuide.lyx - the appendix section which explains file formats, I have made entries there. The patch was created from within lib/ -- Manoj On Tuesday 02 March 2010 11:48:09 am Manoj Rajagopalan wrote: > Attaching patch with suggeste

Re: Feature proposal: inline bibtex formatted refs [Patch-1]

2010-03-02 Thread Manoj Rajagopalan
Attaching patch with suggested modifications. The file include_bib.py is a modified version of IncludeBib.py first created by Manolo Martínez (user SchAirport) and posted on trac as part of ticket #4624 (http://www.lyx.org/trac/ticket/4624) and this has been approved by the author for modificat

Re: Feature proposal: inline bibtex formatted refs [Patch]

2010-03-02 Thread Jürgen Spitzmüller
Vincent van Ravesteijn - TNW wrote: > I just tried with LyX 1.6.5 and it runs bibtex even with only the needaux > flag. I see. The better. Jürgen

RE: Feature proposal: inline bibtex formatted refs [Patch]

2010-03-02 Thread Vincent van Ravesteijn - TNW
>> This is not necessary (and wrong). The bbl file is generated anyway, >> and we might have specified a custom bibtex command. > >We need a needbbl flag (as you already wrote IIRC) and let LyX handle >the bbl file generation. After all, LyX 2.0 also supports biber and some >Japanese bibtex deri

Re: Feature proposal: inline bibtex formatted refs [Patch]

2010-03-02 Thread Jürgen Spitzmüller
Vincent van Ravesteijn - TNW wrote: > >+def make_bbl(name): #Creates .bbl from .tex > >+arg = "bibtex " + name[:-4]#name[:-4] is the name of the file > > without extension > > >+os.system(arg) > >+ > > This is not necessary (and wrong). The bbl file is generated anyway, and > we mi

RE: Feature proposal: inline bibtex formatted refs [Patch]

2010-03-02 Thread Vincent van Ravesteijn - TNW
>+ >+# author user SchAirport on trac I'm not sure what to do with this. >+def make_bbl(name): #Creates .bbl from .tex >+arg = "bibtex " + name[:-4]#name[:-4] is the name of the file without extension >+os.system(arg) >+ This is not necessary (and wrong). The bbl file is generated

Re: Feature proposal: inline bibtex formatted refs [Patch]

2010-03-02 Thread Jürgen Spitzmüller
Manoj Rajagopalan wrote: > +# file inline_bib.py > +# This file is part of LyX, the document processor. > +# Licence details can be found in the file COPYING. > + > +# author user SchAirport on trac His name is Manolo Martínez. I asked him to post a blanket permission here. Jürgen

Re: Feature proposal: inline bibtex formatted refs [Patch]

2010-03-02 Thread rgheck
On 03/02/2010 10:43 AM, Manoj Rajagopalan wrote: I am releasing this patch for use with LyX under whatever license LyX is distributed under. We'll need a GPL statement, of roughly the form, "I hereby grant permission to license my contributions to LyX under the Gnu General Public Licen

Re: Feature proposal: inline bibtex formatted refs [Patch]

2010-03-02 Thread Manoj Rajagopalan
Hi Richard and lyx-devel, Attaching patch for embedding \bibitem refs into the exported latex document for latex:LaTeX (plain) and pdflatex:LaTeX (pdflatex) file formats. Patch was created from within lib/ Modified files are configure.py. New file lib/scripts/inline_bib.py added using

Re: Feature proposal: inline bibtex formatted refs [discovered bug?]

2010-03-01 Thread rgheck
On 03/01/2010 09:25 AM, Manoj Rajagopalan wrote: To submit the patch, what should I do? I remember Richard mentioning that this script could reside in lib/scripts/ and that configure.py needed to be modified. Looking at the file it seems I need add only one line in the last line of the function c

Re: Feature proposal: inline bibtex formatted refs [discovered bug?]

2010-03-01 Thread Manoj Rajagopalan
On Saturday 27 February 2010 01:55:07 pm Vincent van Ravesteijn - TNW wrote: > >In any case, would any of you have any idea about the error I am seeing > >(happens after the inlined-ref .tex is created, possibly when it is > > being > > >copied): > > > >../../../src/support/FileName.cpp(254): Co

RE: Feature proposal: inline bibtex formatted refs [discovered bug?]

2010-02-27 Thread Vincent van Ravesteijn - TNW
>In any case, would any of you have any idea about the error I am seeing >(happens after the inlined-ref .tex is created, possibly when it is being >copied): > >../../../src/support/FileName.cpp(254): Could not move file /tmp/ >lyx_tmpdir.T12182/lyx_tmpbuf0/tmpfile.out to /tmp/lyx_tmpdir.T12182 >/l

Re: Feature proposal: inline bibtex formatted refs [discovered bug?]

2010-02-27 Thread Manoj Rajagopalan
On Friday 26 February 2010 11:02:30 am rgheck wrote: > On 02/26/2010 10:55 AM, Vincent van Ravesteijn - TNW wrote: > >> I have attached InlineBib.py (which is a modified version of the > > > > earlier script). > > > > Some remarks about this script: > > > > def CreateBbl(n): #Creates .aux and

Re: Feature proposal: inline bibtex formatted refs [discovered bug?]

2010-02-26 Thread rgheck
On 02/26/2010 10:55 AM, Vincent van Ravesteijn - TNW wrote: I have attached InlineBib.py (which is a modified version of the earlier script). Some remarks about this script: def CreateBbl(n): #Creates .aux and .bbl from .tex #- argument = "latex " + n[:-4]#n[:-4] is the na

RE: Feature proposal: inline bibtex formatted refs [discovered bug?]

2010-02-26 Thread Vincent van Ravesteijn - TNW
> I have attached InlineBib.py (which is a modified version of the earlier script). Some remarks about this script: def CreateBbl(n): #Creates .aux and .bbl from .tex #- argument = "latex " + n[:-4]#n[:-4] is the name of the file without extension #- os.system(argument) argumen

Re: Feature proposal: inline bibtex formatted refs [discovered bug?]

2010-02-26 Thread Manoj Rajagopalan
On Wednesday 24 February 2010 10:21:35 pm rgheck wrote: > Come to think of it, there's an even easier way to do this: Just define > the ltx2 format, as before, but now use an appropriate modification of > IncludeBib.py as a LaTeX --> ltx2 *converter*. I think you can just > remove the LyxToTeX s

Re: Feature proposal: inline bibtex formatted refs

2010-02-24 Thread rgheck
On 02/24/2010 09:49 PM, Manoj Rajagopalan wrote: On Wednesday 24 February 2010 04:43:23 pm Vincent van Ravesteijn wrote: Manoj Rajagopalan schreef: 1. Is this change acceptable? I think so. 2. This feature requires the IncludeBib.py script submitted by another user/

Re: Feature proposal: inline bibtex formatted refs

2010-02-24 Thread Manoj Rajagopalan
On Wednesday 24 February 2010 04:43:23 pm Vincent van Ravesteijn wrote: > Manoj Rajagopalan schreef: > > 1. Is this change acceptable? > > I think so. > > > 2. This feature requires the IncludeBib.py script submitted by another > > user/developer in the issue-log on trac: > > http://www.lyx.org

Re: Feature proposal: inline bibtex formatted refs

2010-02-24 Thread Vincent van Ravesteijn
Manoj Rajagopalan schreef: 1. Is this change acceptable? I think so. 2. This feature requires the IncludeBib.py script submitted by another user/developer in the issue-log on trac: http://www.lyx.org/trac/ticket/4624 Can the IncludeBib.py script be bundled with the lyx distribution now? I

Feature proposal: inline bibtex formatted refs

2010-02-24 Thread Manoj Rajagopalan
Hi developers, I have worked out a way to get references inlined into exported .tex documents, based on suggestions from Richard Heck. It would be nice to build this feature into LyX and I am interested in contributing this change. Please help me with a few questions: 1. Is this change acce