\ProvidesPackage{di/landscape} \RequirePackage{pdflscape} \ExplSyntaxOn \NewDocumentEnvironment{dilandscape}{} { \begin{landscape} \nolinenumbers % disable line numbers since they will be placed over the footer. } { \end{landscape} % re-enable line numbers \linenumbers } \ExplSyntaxOff