]> git.lyx.org Git - features.git/blobdiff - src/graphics/PreviewLoader.cpp
lyxpreview: Handle bibtex-generated references and bibliography.
[features.git] / src / graphics / PreviewLoader.cpp
index eadcd93f23773fbc9affde294f791d5d5cb4adfe..a71fcd84d3c8570b0303a74fc8bd97485fb053b7 100644 (file)
@@ -602,6 +602,12 @@ void PreviewLoader::Impl::startLoading(bool wait)
                cs << " --latex=xelatex";
        if (buffer_.params().encoding().package() == Encoding::japanese)
                cs << " --latex=platex";
+       if (buffer_.params().bibtex_command != "default")
+               cs << " --bibtex=" << quoteName(buffer_.params().bibtex_command);
+       else if (buffer_.params().encoding().package() == Encoding::japanese)
+               cs << " --bibtex=" << quoteName(lyxrc.jbibtex_command);
+       else
+               cs << " --bibtex=" << quoteName(lyxrc.bibtex_command);
        if (buffer_.params().bufferFormat() == "lilypond-book")
                cs << " --lilypond";