- please don't revert anything only because compiling with system fonts fails. This is not the scope of the manuals.
% the documentation team
% email: lyx-docs@lists.lyx.org
-\usepackage{ifpdf} % part of the hyperref bundle
-\ifpdf % if pdflatex is used
-
- % set fonts for nicer pdf view
- \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
-
-\fi % end if pdflatex is used
+% Work around a bug in Babel-Spanish with \lim if non-TeX fonts are used:
+\@ifpackageloaded{fontspec}{\unaccentedoperators}{}
% the pages of the TOC is numbered roman
% and a pdf-bookmark for the TOC is added