From 8721072d05cf018f26c80abaa8025d0d61928842 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 0851a6d397..82da1fbd27 100644 --- a/src/texstudio.cpp +++ b/src/texstudio.cpp @@ -8856,7 +8856,7 @@ QStringList Texstudio::makePreviewHeader(const LatexDocument *rootDoc) } } if ((buildManager.dvi2pngMode == BuildManager::DPM_EMBEDDED_PDF || buildManager.dvi2pngMode == BuildManager::DPM_LUA_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}}"