OSDN Git Service

patch for siunitx
[luatex-ja/luatexja.git] / src / ltj-latex.sty
index 0176d44..981a95a 100644 (file)
   % \RequirePackage だと fontspec にオプション指定したときにエラー出る
 }
 
+\@ifpackageloaded{siunitx}{%
+  \chardef\ltj@patch@siunitx@execute\z@\input{lltjp-siunitx.sty}%
+}{%
+  \AtBeginOfPackageFile*{siunitx}{\input{lltjp-siunitx.sty}}%
+}
+\AtEndOfPackageFile*{siunitx}{\csname __ltj_siunitx_patch:\endcsname}
 
 %%------------------ all done
 \ltj@latex@AtEnd