Patch from Enrico fixing a problem with the lyxpak.py script when

"Add Bibliography to TOC" is used. Fixes #9044.
(cherry picked from commit 1fe2910774b5f1d673e3f85349c8d360023214db)
This commit is contained in:
Richard Heck 2014-03-22 20:19:17 -04:00
parent bfb6d68447
commit e60af4e98a
2 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,8 @@ def gather_files(curfile, incfiles, lyx2lyx):
match = re_options.match(lines[i]) match = re_options.match(lines[i])
if match: if match:
file = match.group(3).strip('"') file = match.group(3).strip('"')
if file.startswith("bibtotoc,"):
file = file[9:]
if not os.path.isabs(file): if not os.path.isabs(file):
file = os.path.join(curdir, file + '.bst') file = os.path.join(curdir, file + '.bst')
if os.path.exists(file): if os.path.exists(file):

View File

@ -68,6 +68,8 @@ What's new
- Fix clash between \protect and \ensuremath (bug 8889). - Fix clash between \protect and \ensuremath (bug 8889).
- Fix problem with export of LyX archive when bibtotoc is used (bug 9044).
* USER INTERFACE * USER INTERFACE