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): Could not move file /tmp/
> >lyx_tmpdir.T12182/lyx_tmpbuf0/tmpfile.out to /tmp/lyx_tmpdir.T12182
> >/lyx_tmpbuf0/issues-with-single-band-eff-mass-TISE-approach.tex
> >Error: Cannot convert file
>
> Does tmpfile.out exist ?
>
> Why is this in your script:
>
> if len(sys.argv) > 3:
> outputfile = str(sys.argv[2])
>
> It seems that if you call InlineBib.py with only two parameters, the
> second parameter is ignored. That means that the script does not output
> to tmpfile.out and that this file does not exist.
>
> Vincent
Silly me! I meant >3 to be >2. It works now, thanks. Inlining refs works now.
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 checkConverterEntries() which performs addToRC()
for "Entries that do not need checkProg"
svn diff should catch configure.py modifications but won't catch the new .py
file because I don't have svn access. Shall I just attach that file
separately?
Also:
1. a new export menu entry needs to be added (modify stdmenus.inc?)
2. the latex plain -> latex (bibinc) converter def that calls this script
needs to be visible in Tools->Preferences->File handling->Converters. Does
the addToRC() in configure.py take care of this?
3. What about export to pdflatex - should this also have a
corresponding "inlined bib" version?
thanks,
Manoj