tex2lyx: normalize bib and bst paths

Fixes: #7637
(cherry picked from commit 3cc98a9bf6)
This commit is contained in:
Juergen Spitzmueller 2018-02-09 13:23:50 +01:00
parent 0c95259589
commit a049bfef7a
2 changed files with 5 additions and 3 deletions

View File

@ -4192,7 +4192,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
// \nocite{*} option
btprint.clear();
}
os << "bibfiles " << '"' << p.verbatim_item() << '"' << "\n";
os << "bibfiles " << '"' << normalize_filename(p.verbatim_item()) << '"' << "\n";
// Do we have addcontentsline?
if (contentslineContent == "\\refname") {
BibOpts = "bibtotoc";
@ -4202,9 +4202,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
// Do we have a bibliographystyle set?
if (!bibliographystyle.empty()) {
if (BibOpts.empty())
BibOpts = bibliographystyle;
BibOpts = normalize_filename(bibliographystyle);
else
BibOpts = BibOpts + ',' + bibliographystyle;
BibOpts = BibOpts + ',' + normalize_filename(bibliographystyle);
// clear it because each bibtex entry has its style
// and we need an empty string to handle \phantomsection
bibliographystyle.clear();

View File

@ -173,6 +173,8 @@ What's new
- Fix import of \newtheorem* declarations (bug 10622).
- Fix import of (specific) BibTeX paths (bug 7637).
* ADVANCED FIND AND REPLACE