OSDN Git Service

lltjp-microtype (minimal)
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Thu, 28 Mar 2019 01:28:11 +0000 (10:28 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Thu, 28 Mar 2019 01:28:11 +0000 (10:28 +0900)
src/ltj-latex.sty
src/patches/lltjp-microtype.sty [new file with mode: 0644]

index 6b8fa81..446707b 100644 (file)
@@ -81,6 +81,7 @@
 \ltj@pkgpatch{array}    %% at \begin{document}
 \ltj@pkgpatch@im{unicode-math}
 \ltj@pkgpatch@im{siunitx}
+\ltj@pkgpatch@im{microtype}
 
 \RequirePackage{lltjp-geometry}
 
diff --git a/src/patches/lltjp-microtype.sty b/src/patches/lltjp-microtype.sty
new file mode 100644 (file)
index 0000000..aacde2f
--- /dev/null
@@ -0,0 +1,19 @@
+%
+% lltjp-microtype.sty 2019-03-28
+%
+% (Work in Progress)
+% 
+\NeedsTeXFormat{LaTeX2e}
+
+\RequirePackage{etoolbox}
+\RequirePackage{luatexja}
+\makeatletter
+
+\def\MT@register@font{%
+  \xdef\MT@font@list{\expandonce{\MT@font@list}\MT@font,}%
+}
+\def\MT@register@subst@font{\MT@exp@one@n\MT@in@clist\font@name\MT@font@list
+  \ifMT@inlist@\else
+       \xdef\MT@font@list{\expandonce{\MT@font@list}\font@name,}%
+  \fi}
+\endinput