Skip to content

Commit

Permalink
don't change preamble when preview panel
Browse files Browse the repository at this point in the history
simple version
  • Loading branch information
octaeder committed Feb 24, 2024
1 parent f2f49af commit f805aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/texstudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8853,7 +8853,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}}"
Expand Down

0 comments on commit f805aef

Please sign in to comment.