I have this code in my 12 year old Tex files that I currently like to upgrade such that they work with lualatex. I load this code in order to fix a problem with marginnote and framed. Unfortunately I did not document which problem and how to show it.
% !TeX program = lualatex
\documentclass{minimal}
\usepackage{ifpdf}
\usepackage{framed}
\usepackage{marginnote}
\ifpdftex{%
\ifpdfoutput{}{%
\begingroup
\makeatletter
\g@addto@macro\framed{%
\let\marginnoteleftadjust\FrameSep
\let\marginnoterightadjust\FrameSep
}
\makeatother
\endgroup
}% ifpdfoutput
}{}% ifpdftex
\begin{document}
\end{document}
My first question is: Do I still need this?
Second question: How can I work around the problem with lualatex:
! Incomplete \iffalse; all text was ignored after line 14.
The error happens somewhere in the code. It worked with pdflatex.