Also do not use the bb trick when exporting "nice".
This commit is contained in:
Juergen Spitzmueller 2022-02-27 10:02:52 +01:00
parent 030db93ab2
commit b04a930a27

View File

@ -824,7 +824,8 @@ void InsetGraphics::latex(otexstream & os,
string message;
// PDFLaTeX and Xe/LuaTeX fall back to draft themselves
// and error about it. For DVI/PS, we do something similar here.
if (!file_exists && runparams.flavor == Flavor::LaTeX) {
// We also don't do such tricks when simply exporting a LaTeX file.
if (!file_exists && !runparams.nice && runparams.flavor == Flavor::LaTeX) {
TeXErrors terr;
ErrorList & errorList = buffer().errorList("Export");
docstring const s = params().filename.empty() ?