From 2c99686f446d799e89e5eb76351aa847ab251303 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 e6f39efb5..b88c1573b 100644 --- a/src/texstudio.cpp +++ b/src/texstudio.cpp @@ -9053,7 +9053,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}}"