]> git.lyx.org Git - features.git/commitdiff
Amend b135c965
authorEnrico Forestieri <forenr@lyx.org>
Mon, 19 Jun 2023 16:30:23 +0000 (18:30 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 19 Jun 2023 16:30:23 +0000 (18:30 +0200)
A macro with @ in its name must be used after \makeatletter

lib/scripts/legacy_lyxpreview2ppm.py

index fce5e91e92c0787ae5ef21ae834f0c6c41964727..77a621b39ac8105591a049df12ed5542572d8508 100644 (file)
@@ -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