summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/jpnedumathsymbols/jpnedumathsymbols.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-07-10 19:57:19 +0000
committerKarl Berry <karl@freefriends.org>2022-07-10 19:57:19 +0000
commit1d1b57937fa608ddcd6ce0e9e1cc617aa115645f (patch)
treec933edc1fa77efbff7da38d2d5e205451b7372ca /Master/texmf-dist/tex/latex/jpnedumathsymbols/jpnedumathsymbols.sty
parenta31dc532904cd2de5848b0461eaabee03cd7b936 (diff)
jpnedumathsymbols (10jul22)
git-svn-id: svn://tug.org/texlive/trunk@63864 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/jpnedumathsymbols/jpnedumathsymbols.sty')
-rw-r--r--Master/texmf-dist/tex/latex/jpnedumathsymbols/jpnedumathsymbols.sty70
1 files changed, 48 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/jpnedumathsymbols/jpnedumathsymbols.sty b/Master/texmf-dist/tex/latex/jpnedumathsymbols/jpnedumathsymbols.sty
index f22aa76b812..e120232a92a 100644
--- a/Master/texmf-dist/tex/latex/jpnedumathsymbols/jpnedumathsymbols.sty
+++ b/Master/texmf-dist/tex/latex/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}{■}