• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: Commit

ソースコードの管理場所


Commit MetaInfo

Revisionc1179890ea973b4b07cccb74dcea1a9161a2cbfd (tree)
Time2018-08-24 16:22:05
AuthorHironori Kitagawa <h_kitagawa2001@yaho...>
CommiterHironori Kitagawa

Log Message

ltj-latex.sty: patching

Change Summary

Incremental Difference

--- a/src/ltj-latex.sty
+++ b/src/ltj-latex.sty
@@ -19,17 +19,11 @@
1919 %\protected\def\@@end{%
2020 % \directlua{luatexja.ext_cleanup()}\ltj@@orig@end}
2121
22-% Globally add to the head of a macro (cf. LaTeX2e's \g@addto@macro)
23-\long\def\ltj@g@addto@macro#1#2{%
24- \begingroup
25- \def\ltj@tmpa{#2}
26- \toks@\expandafter\expandafter\expandafter{\expandafter\ltj@tmpa#1}
27- \xdef#1{\the\toks@}
28- \endgroup}
22+\def\ltj@AtBeginDocument{\gpreto\@begindocumenthook}
2923
30-\def\ltj@AtBeginDocument{\ltj@g@addto@macro\@begindocumenthook}
31-
32-\def\ltj@pkgpatch#1{\ltj@AtBeginDocument{\@ifpackageloaded{#1}{\usepackage{lltjp-#1}}{}}}
24+\def\ltj@pkgpatch#1{%
25+ \@ifnextchar[{\ltj@pkgpatch@@{#1}}{\ltj@pkgpatch@@{#1}[lltjp-#1]}}%]
26+\def\ltj@pkgpatch@@#1[#2]{\ltj@AtBeginDocument{\@ifpackageloaded{#1}{\RequirePackage{#2}}{}}}
3327
3428 \endlinechar=13
3529
@@ -41,7 +35,7 @@
4135 \RequirePackage{filehook}
4236 \def\ltj@pkgpatch@im#1{%
4337 \@ifnextchar[{\ltj@pkgpatch@im@{#1}}{\ltj@pkgpatch@im@{#1}[lltjp-#1]}}%]
44-\def\ltj@pkgpatch@im@#1[#2]{\AtEndOfPackageFile*{#1}{\input{#2.sty}}}
38+\def\ltj@pkgpatch@im@#1[#2]{\AtEndOfPackageFile*{#1}{\RequirePackage{#2}}}
4539
4640 %%% default parameters
4741 \directlua{
@@ -64,11 +58,7 @@
6458 \ltj@pkgpatch@im{fontspec}
6559 \ltj@pkgpatch{footmisc} %% at \begin{document}
6660 \ltj@pkgpatch{tascmac}
67-\ltj@AtBeginDocument{\@ifpackageloaded{ascmac}{%
68- \edef\ltj@asc@temp{\noexpand\catcode`\noexpand\@=\the\catcode`\@}%
69- \makeatletter\input{lltjp-tascmac.sty}%
70- \ltj@asc@temp\let\ltj@asc@temp=\relax
71-}{}}% ascmac
61+\ltj@pkgpatch{ascmac}[lltjp-tascmac]
7262 \ltj@pkgpatch@im{stfloats}
7363 \ltj@pkgpatch{preview} %% at \begin{document}
7464 % (preview package has delayed option)
Show on old repository browser