diff options
author | Norbert Preining <norbert@preining.info> | 2022-07-11 03:04:01 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-07-11 03:04:01 +0000 |
commit | f38fd211142e080f2d76c320225eb1c75889aae6 (patch) | |
tree | ef23c372199389c8eeb8804287114823bbbf5ee5 /macros/latex/contrib/jpnedumathsymbols/jpnedumathsymbols.sty | |
parent | 20ce5b015c76436ed3c8022b778a877bcf4852dd (diff) |
CTAN sync 202207110303
Diffstat (limited to 'macros/latex/contrib/jpnedumathsymbols/jpnedumathsymbols.sty')
-rw-r--r-- | macros/latex/contrib/jpnedumathsymbols/jpnedumathsymbols.sty | 70 |
1 files changed, 48 insertions, 22 deletions
diff --git a/macros/latex/contrib/jpnedumathsymbols/jpnedumathsymbols.sty b/macros/latex/contrib/jpnedumathsymbols/jpnedumathsymbols.sty index f22aa76b81..e120232a92 100644 --- a/macros/latex/contrib/jpnedumathsymbols/jpnedumathsymbols.sty +++ b/macros/latex/contrib/jpnedumathsymbols/jpnedumathsymbols.sty @@ -6,12 +6,12 @@ %% https://www.metaphysica.info/ %% https://twitter.com/metaphysicainfo %% -%% This file released under -%% [GNU GPL v3 or newer](http://www.gnu.org/licenses/gpl-3.0.html). +%% This package released under +%% [the MIT license](https://ctan.org/license/mit). %% % \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{jpnedumathsymbols}[2022/06/29 v1.0] +\ProvidesPackage{jpnedumathsymbols}[2022/07/10 v1.1] % %% [nofrac] \newif\if@jpnedu@symbol@nofrac @@ -38,10 +38,11 @@ \@jpnedu@symbol@nopointromanfalse \DeclareOption{nopointroman}{\@jpnedu@symbol@nopointromantrue}% % -%% [nocurriculum] +%% [curriculum][nocurriculum] \newif\if@jpnedu@symbol@nocurriculum -\@jpnedu@symbol@nocurriculumfalse +\@jpnedu@symbol@nocurriculumtrue \DeclareOption{nocurriculum}{\@jpnedu@symbol@nocurriculumtrue}% +\DeclareOption{curriculum}{\@jpnedu@symbol@nocurriculumfalse}% % %% [mathbb] \newif\if@jpnedu@symbol@mathbb @@ -68,6 +69,11 @@ \@jpnedu@symbol@innerproductbracketfalse \DeclareOption{innerproductbracket}{\@jpnedu@symbol@innerproductbrackettrue} % +%% [lua] +\newif\if@jpnedu@symbol@lua +\@jpnedu@symbol@luafalse +\DeclareOption{lua}{\@jpnedu@symbol@luatrue}% +% \ExecuteOptions{} \ProcessOptions\relax % @@ -204,7 +210,11 @@ \else % % for \ajroman +\if@jpnedu@symbol@lua +\RequirePackage{luatexja-otf} +\else \RequirePackage{otf} +\fi % %% \mathI \mathA \mathIA etc. \DeclareRobustCommand{\currI}{\ajRoman{1}} @@ -367,9 +377,9 @@ %% \set{}{} %% ([setcolon]) \if@jpnedu@symbol@setcolon -\DeclareRobustCommand{\set}[2]{\left\{\,#1\,;\,#2\,\right\}} +\DeclareRobustCommand{\set}[2]{\left\{\,#1\;;\;#2\,\right\}} \else -\DeclareRobustCommand{\set}[2]{\left\{\,#1\,\middle|\,#2\,\right\}} +\DeclareRobustCommand{\set}[2]{\left\{\,#1\;\middle|\;#2\,\right\}} \fi % %% \N \NZ \NP \Z \Q \R \C @@ -421,19 +431,35 @@ %% \seconcave %% \seconvex %% \neconvex -% http://www.math.kobe-u.ac.jp/HOME/kodama/tips-latex-bend-arrow.html -% (GNU/GPL) -\DeclareRobustCommand{\seconvex}{{\begin{picture}(10,10)% -\put(10,10){\oval(20,20)[lb]}\put(10,0){\vector(1,0){2}}\end{picture}}} -\DeclareRobustCommand{\neconcave}{{\begin{picture}(10,10)% -\put(10,0){\oval(20,20)[lt]}\put(10,10){\vector(1,0){2}}\end{picture}}} -\DeclareRobustCommand{\neconvex}{{\begin{picture}(10,10)% -\put(0,10){\oval(20,20)[rb]}\put(10,10){\vector(0,1){2}}\end{picture}}} -\DeclareRobustCommand{\seconcave}{{\begin{picture}(10,10)% -\put(0,0){\oval(20,20)[rt]}\put(10,0){\vector(0,-1){2}}\end{picture}}} +\DeclareRobustCommand{\neconcave} +{\@ifstar{\@jpnedu@symbol@neconcave@star}{\@jpnedu@symbol@neconcave@nostar}} +\DeclareRobustCommand{\seconcave} +{\@ifstar{\@jpnedu@symbol@seconcave@star}{\@jpnedu@symbol@seconcave@nostar}} +\DeclareRobustCommand{\seconvex} +{\@ifstar{\@jpnedu@symbol@seconvex@star}{\@jpnedu@symbol@seconvex@nostar}} +\DeclareRobustCommand{\neconvex} +{\@ifstar{\@jpnedu@symbol@neconvex@star}{\@jpnedu@symbol@neconvex@nostar}} +% +\DeclareRobustCommand{\@jpnedu@symbol@seconvex@star}{{\begin{picture}(10,10)% +\put(10,10){\oval(20,20)[lb]}\put(11,-0.25){\vector(4,-1){0}}\end{picture}}} +\DeclareRobustCommand{\@jpnedu@symbol@neconcave@star}{{\begin{picture}(10,10)% +\put(10,0){\oval(20,20)[lt]}\put(11,10.25){\vector(4,1){0}}\end{picture}}} +\DeclareRobustCommand{\@jpnedu@symbol@neconvex@star}{{\begin{picture}(10,10)% +\put(0,10){\oval(20,20)[rb]}\put(10.25,11){\vector(1,4){0}}\end{picture}}} +\DeclareRobustCommand{\@jpnedu@symbol@seconcave@star}{{\begin{picture}(10,10)% +\put(0,0){\oval(20,20)[rt]}\put(10.25,-1){\vector(1,-4){0}}\end{picture}}} +% +\DeclareRobustCommand{\@jpnedu@symbol@seconvex@nostar}{\raisebox{-0.25em}{\begin{picture}(10,10)% +\put(10,10){\oval(20,20)[lb]}\put(11,-0.25){\vector(4,-1){0}}\end{picture}}} +\DeclareRobustCommand{\@jpnedu@symbol@neconcave@nostar}{\raisebox{-0.25em}{\begin{picture}(10,10)% +\put(10,0){\oval(20,20)[lt]}\put(11,10.25){\vector(4,1){0}}\end{picture}}} +\DeclareRobustCommand{\@jpnedu@symbol@neconvex@nostar}{\raisebox{-0.25em}{\begin{picture}(10,10)% +\put(0,10){\oval(20,20)[rb]}\put(10.25,11){\vector(1,4){0}}\end{picture}}} +\DeclareRobustCommand{\@jpnedu@symbol@seconcave@nostar}{\raisebox{-0.25em}{\begin{picture}(10,10)% +\put(0,0){\oval(20,20)[rt]}\put(10.25,-1){\vector(1,-4){0}}\end{picture}}} % %% \dint -\DeclareRobustCommand{\dint}{{\displaystyle\int}} +\DeclareRobustCommand{\dint}{\displaystyle\int} % %% \dr \ds \dt \du \dx \dy \dz \dtheta \DeclareRobustCommand{\dr}{\,dr} @@ -541,11 +567,11 @@ $#4$&$#5$&$\to$&$#6$ \DeclareRobustCommand{\notparallel} {\mathrel{\raise.3ex\hbox{\scalebox{.7}{% \ooalign{\rotatebox[origin=c]{-7}{/}\kern-.35em\rotatebox[origin=c]{-7}{/}\crcr% -\hfil\raisebox{.2ex}{$\backslash$}\hfil}}}}}% +\hfil\raisebox{.0ex}{$\backslash$}\hfil}}}}}% % %% \similar \let\originalsimilar\similar -\DeclareRobustCommand{\similar}{\mathrel{\lower.2ex\hbox{\scalebox{1.3}{∽}}}} +\DeclareRobustCommand{\similar}[1][1.3]{\mathrel{\lower.2ex\hbox{\scalebox{#1}{∽}}}} % %% \permutation{}{} %% \combination{}{} @@ -616,8 +642,8 @@ $#4$&$#5$&$\to$&$#6$ % %% \texttherefore %% \textbecause -\DeclareRobustCommand{\texttherefore}{\ensuremath{\raisebox{1.5pt}{$\therefore$}}} -\DeclareRobustCommand{\textbecause}{\ensuremath{\raisebox{1.5pt}{$\because$}}} +\DeclareRobustCommand{\texttherefore}{\raisebox{1.5pt}{$\therefore$}} +\DeclareRobustCommand{\textbecause}{\raisebox{1.5pt}{$\because$}} % %% \QED \DeclareRobustCommand{\QED}{■} |