LaTeX::LaTeX(string const & latex, OutputParams const & rp,
FileName const & f, string const & p)
- : cmd(latex), file(f), path(p), runparams(rp)
+ : cmd(latex), file(f), path(p), runparams(rp), biber(false)
{
num_errors = 0;
if (prefixIs(cmd, "pdf")) { // Do we use pdflatex ?
bool had_depfile = depfile.exists();
bool run_bibtex = false;
- FileName const aux_file(changeExtension(file.absFileName(), "aux"));
+ FileName const aux_file(changeExtension(file.absFileName(), ".aux"));
if (had_depfile) {
LYXERR(Debug::DEPEND, "Dependency file exists");
&& contains(token, "on page")
&& contains(token, "undefined")) {
retval |= UNDEF_CIT;
+ } else if (contains(token, "Citation")
+ && contains(token, "on input line")
+ && contains(token, "undefined")) {
+ retval |= UNDEF_CIT;
}
} else if (prefixIs(token, "Package")) {
// Package warnings
}
-int iterateLine(string const token, regex const reg, string const closing,
+int iterateLine(string const token, regex const reg, string const & closing,
int fragment_pos, DepTable & head)
{
smatch what;
// result = -1 means we did not find a fragment!
int result = -1;
int last_match_pos = -1;
- if (token.find(last_match) != string::npos)
+ if (!last_match.empty() && token.find(last_match) != string::npos)
last_match_pos = int(token.find(last_match));
if (fragment) {
if (last_match_pos > fragment_pos)
} else
if (last_match_pos < fragment_pos)
result = fragment_pos;
+
return result;
}