A macro with @ in its name must be used after \makeatletter
This commit is contained in:
Enrico Forestieri 2023-06-19 18:30:23 +02:00
parent b135c965f6
commit c5c03f9be3

View File

@ -253,9 +253,9 @@ def legacy_latex_file(latex_file, fg_color, bg_color):
\\pagecolor{lyxbg} \\pagecolor{lyxbg}
\\usepackage[%s,tightpage]{preview} \\usepackage[%s,tightpage]{preview}
\\usepackage{ifthen} \\usepackage{ifthen}
\\ifthenelse{\equal{\f@family}{cmr}}{
\\IfFileExists{lmodern.sty}{\\usepackage{lmodern}}{\\usepackage{ae,aecompl}}}{}
\\makeatletter \\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\\preview{\\begingroup\\color{lyxbg}\\special{ps::clippath fill}\\color{lyxfg}}
\\g@addto@macro\\endpreview{\\endgroup} \\g@addto@macro\\endpreview{\\endgroup}
\\makeatother \\makeatother