]> git.lyx.org Git - lyx.git/commitdiff
tex2lyx: normalize bib and bst paths
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 9 Feb 2018 12:23:50 +0000 (13:23 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 10 Feb 2018 06:53:41 +0000 (07:53 +0100)
Fixes: #7637
(cherry picked from commit 3cc98a9bf6ed506d04b502863d6424d36cb778b5)

src/tex2lyx/text.cpp
status.22x

index ce330a2b9ffe97a21a1c0da1ac0093632469fdd6..3844fce398bff7480935b6bd00aed0bf6368992a 100644 (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();
index 6ac16cb5ecc58c66d08037764c7c69e5d73d67f5..197eee02b45e588aaae40b31bdb300f02c596e03 100644 (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