From e0e548217eb7b3c8728a1af17aa42be496b91281 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 27 Jul 2022 12:37:13 +0200 Subject: [PATCH] Do not redefine \jobname for previews This reverts the fix for #9627, with the agreement of original reporter. Fixes preview of citation insets. --- src/graphics/PreviewLoader.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/graphics/PreviewLoader.cpp b/src/graphics/PreviewLoader.cpp index 5d767b2c0b..1c8d12ff0e 100644 --- a/src/graphics/PreviewLoader.cpp +++ b/src/graphics/PreviewLoader.cpp @@ -619,11 +619,6 @@ void PreviewLoader::Impl::startLoading(bool wait) } of << "\\batchmode\n"; - // Set \jobname of previews to the document name (see bug 9627) - of << "\\def\\jobname{" - << from_utf8(changeExtension(buffer_.latexName(), "")) - << "}\n"; - LYXERR(Debug::OUTFILE, "Format = " << buffer_.params().getDefaultOutputFormat()); string latexparam = ""; bool docformat = !buffer_.params().default_output_format.empty() -- 2.39.5