OSDN Git Service

lltjp-geometry.sty: fix 'Incomplete \ifdefined' error
[luatex-ja/luatexja.git] / src / patches / lltjp-geometry.sty
index ff5ca94..1ac1cc0 100644 (file)
@@ -20,7 +20,8 @@
 \RequirePackage{filehook}
 \newif\ifGm@ltj@layoutswitch
 \let\orig@PackageWarningNoLine=\PackageWarningNoLine
-\ifdefined\ifGm@swap@papersize\else\newif\ifGm@swap@papersize\fi
+% define ifGm@swap@papersize if it is undefined
+\expandafter\newif\csname ifGm@swap@papersize\endcsname
 
 \AtBeginOfPackageFile{geometry}{%
   \edef\Gm@ltj@topskip{\the\topskip}