From: Enrico Forestieri Date: Mon, 19 Jun 2023 16:30:23 +0000 (+0200) Subject: Amend b135c965 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c5c03f9be392b0447ceb4d5c3272d07790578380;p=features.git Amend b135c965 A macro with @ in its name must be used after \makeatletter --- diff --git a/lib/scripts/legacy_lyxpreview2ppm.py b/lib/scripts/legacy_lyxpreview2ppm.py index fce5e91e92..77a621b39a 100644 --- a/lib/scripts/legacy_lyxpreview2ppm.py +++ b/lib/scripts/legacy_lyxpreview2ppm.py @@ -253,9 +253,9 @@ def legacy_latex_file(latex_file, fg_color, bg_color): \\pagecolor{lyxbg} \\usepackage[%s,tightpage]{preview} \\usepackage{ifthen} -\\ifthenelse{\equal{\f@family}{cmr}}{ -\\IfFileExists{lmodern.sty}{\\usepackage{lmodern}}{\\usepackage{ae,aecompl}}}{} \\makeatletter +\\ifthenelse{\\equal{\\f@family}{cmr}}{ +\\IfFileExists{lmodern.sty}{\\usepackage{lmodern}}{\\usepackage{ae,aecompl}}}{} \\g@addto@macro\\preview{\\begingroup\\color{lyxbg}\\special{ps::clippath fill}\\color{lyxfg}} \\g@addto@macro\\endpreview{\\endgroup} \\makeatother