summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgf/version-for-luatex/pgfmanual-luatex.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/version-for-luatex/pgfmanual-luatex.cfg')
-rw-r--r--Master/texmf-dist/doc/generic/pgf/version-for-luatex/pgfmanual-luatex.cfg7
1 files changed, 6 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/version-for-luatex/pgfmanual-luatex.cfg b/Master/texmf-dist/doc/generic/pgf/version-for-luatex/pgfmanual-luatex.cfg
index 7b57d3ed418..1523589539d 100644
--- a/Master/texmf-dist/doc/generic/pgf/version-for-luatex/pgfmanual-luatex.cfg
+++ b/Master/texmf-dist/doc/generic/pgf/version-for-luatex/pgfmanual-luatex.cfg
@@ -11,7 +11,12 @@
\usepackage[hyphens]{url}
\usepackage[pdfborder={0 0 0}]{hyperref}
\makeatletter
-\expandafter\g@addto@macro\csname ttfamily \endcsname{\ignoreligaturesinfont\font\relax}
+\g@addto@macro\selectfont{%
+ \long\edef\longf@family{\f@family}%
+ \ifx\longf@family\ttdefault
+ \ignoreligaturesinfont\font\relax
+ \fi
+}
\makeatother
% Just make sure to compile this using lualatex.