From 0c655d6ea7805d90c95f0941d23da82f75a63c4d Mon Sep 17 00:00:00 2001 From: octaeder <102688820+octaeder@users.noreply.github.com> Date: Thu, 22 Jun 2023 01:57:32 +0200 Subject: [PATCH] don't change preamble when preview panel simple version --- src/texstudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/texstudio.cpp b/src/texstudio.cpp index f1fcbacf6..b88c3dbdf 100644 --- a/src/texstudio.cpp +++ b/src/texstudio.cpp @@ -8984,7 +8984,7 @@ QStringList Texstudio::makePreviewHeader(const LatexDocument *rootDoc) } } if ((buildManager.dvi2pngMode == BuildManager::DPM_EMBEDDED_PDF || buildManager.dvi2pngMode == BuildManager::DPM_LUA_EMBEDDED_PDF || buildManager.dvi2pngMode == BuildManager::DPM_XE_EMBEDDED_PDF) - && configManager.previewMode != ConfigManager::PM_EMBEDDED) { + && configManager.previewMode != ConfigManager::PM_EMBEDDED && configManager.previewMode != ConfigManager::PM_PANEL) { header << "\\usepackage[active,tightpage]{preview}" << "\\usepackage{varwidth}" << "\\AtBeginDocument{\\begin{preview}\\begin{varwidth}{\\linewidth}}"