#include "debug.h"
#include "funcrequest.h"
#include "gettext.h"
+#include "latexrunparams.h"
#include "support/filetools.h"
#include "support/path.h"
int InsetBibtex::latex(Buffer const * buffer, ostream & os,
- bool /*fragile*/, bool/*fs*/) const
+ LatexRunParams const & runparams) const
{
// changing the sequence of the commands
// 1. \bibliographystyle{style}
}
}
- if (!buffer->niceFile
+ if (!runparams.nice
&& IsFileReadable(MakeAbsPath(style, buffer->filePath()) + ".bst")) {
style = MakeAbsPath(style, buffer->filePath());
}
// have a comma-separated list of bibliographies
string db_out;
while (!adb.empty()) {
- if (!buffer->niceFile &&
+ if (!runparams.nice &&
IsFileReadable(MakeAbsPath(adb, buffer->filePath())+".bib"))
adb = os::external_path(MakeAbsPath(adb, buffer->filePath()));
db_out += adb;