OSDN Git Service

typo
[luatex-ja/luatexja.git] / src / ltj-latex.sty
index 092b7e1..0176d44 100644 (file)
 \def\luatexjalatexLoaded{\endinput}
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ltj-latex}[2016/08/21 LaTeX support of LuaTeX-ja]
+\ProvidesPackage{ltj-latex}[2017/06/18 LaTeX support of LuaTeX-ja]
+
+% LaTeX2e 2017/05/01 で行われる対策
+% 本 sty からは 2018/05/01 削除予定
+\ifx\document@default@language \@undefined
+  \let\document@default@language\m@ne
+\fi
+\ifx\l@nohyphenation \@undefined
+  \newlanguage\l@nohyphenation
+\fi
 
 % cleanup at end of the document
 %\let\ltj@@orig@end=\@@end
@@ -62,7 +71,6 @@
 \ltj@pkgpatch{unicode-math}
 \ltj@pkgpatch{xunicode}
 \ltj@pkgpatch{fontspec}
-\ltj@pkgpatch{stfloats}
 \ltj@pkgpatch{footmisc}
 \ltj@pkgpatch{tascmac}
 \ltj@AtBeginDocument{\@ifpackageloaded{ascmac}{%
   \makeatletter\input{lltjp-tascmac.sty}%
   \ltj@asc@temp\let\ltj@asc@temp=\relax
 }{}}% ascmac
+\ltj@pkgpatch{stfloats}
+\ltj@pkgpatch{preview}
+\ltj@pkgpatch{array}
 
 \RequirePackage{lltjp-geometry}
+\RequirePackage{filehook}
+\AtEndOfPackageFile*{fontspec}{%
+  \input{lltjp-fontspec-immediate.sty}
+  % \RequirePackage だと fontspec にオプション指定したときにエラー出る
+}
 
 
 %%------------------ all done