Wolfgang Engelmann writes:

> Here are the two archives. AA-PBR contains the spbasic.bst, after
> having archived the AA-PBR.lyx file, AA-SP.tar.gz does not, after
> having archived the AA-SP.lyx file.
>  
> I have tried to adjust the document- and tool settings in both lyx
> files.

The different behavior is triggered by the "Add bibliography to TOC"
checkbox (it is checked in AA-SP.lyx but not in AA-PBR.lyx).

> exporting both files to .tex gives these differences:

You should rather look at the differences in the .lyx files.
This is the relevant hunk:

diff -u AA-PBR.lyx AA-SP.lyx
[...]
@@ -100,7 +99,7 @@
 \begin_inset CommandInset bibtex
 LatexCommand bibtex
 bibfiles "A-Test"
-options "spbasic"
+options "bibtotoc,spbasic"

As you can see, checking "Add bibliography to TOC" changes the
options field. However, lyxpak.py is not expecting more than one
bst file and thus does not try to split the options field at commas.
It simply checks whether the file "bibtotoc,spbasic.bst" exists.
As that file does not exist, it is not added to the archive.

The fix is trivial and simply consists in replicating what is
already done for bib files (which are expected to be a comma
separated list).

Please, file a bug about this issue.

-- 
Enrico

Reply via email to