mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Use \ifthenelse instead of relying on TeX primitives
This fixes the issue reported here: https://www.mail-archive.com/lyx-users@lists.lyx.org/msg115156.html
This commit is contained in:
parent
f88986eff5
commit
b135c965f6
@ -252,11 +252,10 @@ def legacy_latex_file(latex_file, fg_color, bg_color):
|
|||||||
\\definecolor{lyxbg}{rgb}{%s}
|
\\definecolor{lyxbg}{rgb}{%s}
|
||||||
\\pagecolor{lyxbg}
|
\\pagecolor{lyxbg}
|
||||||
\\usepackage[%s,tightpage]{preview}
|
\\usepackage[%s,tightpage]{preview}
|
||||||
|
\\usepackage{ifthen}
|
||||||
|
\\ifthenelse{\equal{\f@family}{cmr}}{
|
||||||
|
\\IfFileExists{lmodern.sty}{\\usepackage{lmodern}}{\\usepackage{ae,aecompl}}}{}
|
||||||
\\makeatletter
|
\\makeatletter
|
||||||
\\def\\t@a{cmr}
|
|
||||||
\\if\\f@family\\t@a
|
|
||||||
\\IfFileExists{lmodern.sty}{\\usepackage{lmodern}}{\\usepackage{ae,aecompl}}
|
|
||||||
\\fi
|
|
||||||
\\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
|
||||||
|
Loading…
Reference in New Issue
Block a user