diff options
author | Karl Berry <karl@freefriends.org> | 2023-03-02 21:00:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-03-02 21:00:38 +0000 |
commit | 63ea17206439b13c00451d815085d8f8de4275ea (patch) | |
tree | 140c3898c6a22b9638f97545e7eb41816e816626 /Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/ob-mathleading.sty | |
parent | b09c3ab6043fcc43e6e40e028102cbdfd1f7dad2 (diff) |
kotex-oblivoir (2mar23)
git-svn-id: svn://tug.org/texlive/trunk@66297 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/ob-mathleading.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/ob-mathleading.sty | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/ob-mathleading.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/ob-mathleading.sty index 2bad8f4a7f8..d623bc6f77e 100644 --- a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/ob-mathleading.sty +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/ob-mathleading.sty @@ -12,12 +12,13 @@ %% v. 0.0.1-pr2 : 2018/12/24 %% v. 0.0.1 : 2018/12/25 %% v. 0.1 : 2022/04/01 : <split> fixed. +%% v. 0.2 : 2023/02/26, maintenance %% \RequirePackage{expl3} \ProvidesExplPackage {ob-mathleading} - {2022/04/01} - {v0.1} + {2023/02/26} + {v0.2} {adjust math leadings for oblivoir} \@ifpackageloaded{amsmath}{}{\RequirePackage{amsmath}} @@ -30,7 +31,8 @@ default .bool_set:N = \l_defaultopt_bool, mathleading .fp_set:N = \l_opt_mathleading_fp, exception .clist_set:N = \g_opt_mlexception_clist, - noallowdisplaybreaks .bool_set:N = \g_noallowdispbreak_bool + noallowdisplaybreaks .bool_set:N = \g_noallowdispbreak_bool, + badm .bool_set:N = \opt_badm_bool } \keys_set:nn { obmathleading } @@ -38,7 +40,8 @@ default = true, mathleading = 1.0, exception = {}, - noallowdisplaybreaks = false + noallowdisplaybreaks = false, + badm = false } \ProcessKeysOptions { obmathleading } @@ -143,4 +146,30 @@ \AtBeginDocument { \allowdisplaybreaks } } +%%% badm +\dim_new:N \l_beforedm_dim +\dim_new:N \l_afterdm_dim +\dim_new:N \l_defaultonebasedistance_dim + +%%% for compatibility +%\cs_if_exist:NF \onelineskip { \let\onelineskip\baselineskip } +%\dim_set:Nn \l_defaultonebasedistance_dim { \baselineskip - \onelineskip } +% +%\NewDocumentCommand \setmlbeforeafterdm { mm } +%{ +% \dim_set:Nn \l_beforedm_dim { #1 } +% \dim_set:Nn \l_afterdm_dim { #2 } +%} +% +%\bool_if:NT \opt_badm_bool +%{ +% \clist_set:Nn \l_tmpa_clist { align, equation, gather, multline, align*, equation*, gather*, alignat, alignat*, multline* } +% \clist_map_inline:Nn \l_tmpa_clist +% { +% \AddToHook { env/##1/before } { \vspace { \dimexpr-\l_defaultonebasedistance_dim - \l_beforedm_dim \relax } } +% \AddToHook { env/##1/after } { \vspace { \dimexpr-\l_defaultonebasedistance_dim - \l_afterdm_dim \relax } } +% } +%} + + %% end of file |