In my package I need to use all of geometry
package options, I can define one option landscape
like this
\DeclareOption{landscape}{
\geometry{landscape}
}
\ProcessOptions\relax
My hope is to find a simple way to insert all of them as options in my package
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mypackage}[2018/02/14]
\RequirePackage{etoolbox}
\RequirePackage[margin=2cm]{geometry}
\RequirePackage{amsmath,amsfonts,amssymb}
\RequirePackage{tikz}
\RequirePackage[totpages,user]{zref}
\RequirePackage[explicit,compact]{titlesec}
\RequirePackage{fancyhdr}
\DeclareOption{landscape}{
\geometry{landscape}
}
\DeclareOption*{\PackageWarning{mypackage}{Unknown ‘\CurrentOption’ option}}
\ProcessOptions\relax
\def\foo{foo}
\endinput