mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
tex2lyx: normalize bib and bst paths
Fixes: #7637
(cherry picked from commit 3cc98a9bf6
)
This commit is contained in:
parent
af91405786
commit
04e995e807
@ -4410,7 +4410,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";
|
||||
@ -4420,9 +4420,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();
|
||||
|
Loading…
Reference in New Issue
Block a user