texlive[72934] Master/texmf-dist: jpnedumathsymbols (22nov24)
commits+karl at tug.org
commits+karl at tug.org
Fri Nov 22 22:52:18 CET 2024
Revision: 72934
https://tug.org/svn/texlive?view=revision&revision=72934
Author: karl
Date: 2024-11-22 22:52:18 +0100 (Fri, 22 Nov 2024)
Log Message:
-----------
jpnedumathsymbols (22nov24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/jpnedumathsymbols/README.md
trunk/Master/texmf-dist/doc/latex/jpnedumathsymbols/jpnedumathsymbols.pdf
trunk/Master/texmf-dist/doc/latex/jpnedumathsymbols/jpnedumathsymbols.tex
trunk/Master/texmf-dist/tex/latex/jpnedumathsymbols/jpnedumathsymbols.sty
Modified: trunk/Master/texmf-dist/doc/latex/jpnedumathsymbols/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/jpnedumathsymbols/README.md 2024-11-22 21:52:07 UTC (rev 72933)
+++ trunk/Master/texmf-dist/doc/latex/jpnedumathsymbols/README.md 2024-11-22 21:52:18 UTC (rev 72934)
@@ -21,22 +21,25 @@
This package released under [the MIT license](https://ctan.org/license/mit).
-(C) 2022 Yukoh KUSAKABE
+(C) 2022--2024 Yukoh KUSAKABE
## Revision History
-+ Version 1.1 2022-07-10
- + Rewrite README.
- + License changed from GNU/GPL to MIT (stopped using codes under GNU/GPL).
- + Add the document (jpnedumathsymbols.pdf).
- + Add the [curriculum] option, and the default is changed to [nocurriculum].
- + Adjusted the position of \neconcave, \seconcave, \seconvex and \neconvex.
- + Bug fix (\dint, \texttherefore and \textbecause).
-+ Version 1.0 2022-06-28
- + The first public version.
+- Version 1.2 2024-11-22
+ - Adjusted the position of \sqrt, \notparallel and \similar.
+ - Add \eand*, \eor*, \simul*, \vvec, \vvec*, \vinp, \tsum, \expectation, \variance, \deviation, \nomination*, equation**, align** and gather**.
+- Version 1.1 2022-07-10
+ - Rewrite README.
+ - License changed from GNU/GPL to MIT (stopped using codes under GNU/GPL).
+ - Added the document (jpnedumathsymbols.pdf).
+ - Added the [curriculum] option, and the default is changed to [nocurriculum].
+ - Adjusted the position of \neconcave, \seconcave, \seconvex and \neconvex.
+ - Bug fix (\dint, \texttherefore and \textbecause).
+- Version 1.0 2022-06-28
+ - The first public version.
---
-[Yukoh KUSAKABE](https://twitter.com/metaphysicainfo) (screen-name) at [metaphysica.info](https://www.metaphysica.info/)
\ No newline at end of file
+[Yukoh KUSAKABE](https://x.com/metaphysicainfo) (screen-name) at [metaphysica.info](https://www.metaphysica.info/)
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/latex/jpnedumathsymbols/jpnedumathsymbols.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/jpnedumathsymbols/jpnedumathsymbols.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/jpnedumathsymbols/jpnedumathsymbols.tex 2024-11-22 21:52:07 UTC (rev 72933)
+++ trunk/Master/texmf-dist/doc/latex/jpnedumathsymbols/jpnedumathsymbols.tex 2024-11-22 21:52:18 UTC (rev 72934)
@@ -157,10 +157,15 @@
\begin{translateing}
Mathematical equation representation in Japanese education differs somewhat from the standard LaTeX writing style. This package introduces mathematical equation representation in Japanese education.
+Examples of this are available at:
-日本の教育における数式表現には,LaTeX の標準である書きかたとはやや異なる部分があります。このパッケージでは,日本の教育における数式表現を導入します。
+日本の教育における数式表現には,LaTeX の標準である書きかたとはやや異なる部分があります。このパッケージでは,日本の教育における数式表現を導入します。その例は、次の場所で公開しています。
\end{translateing}
+\noindent\hspace*{\fill}{\url{https://www.metaphysica.info/2024/japanese-mathematical-notation/}}\hspace*{\fill}\linespace
+
+\vspace{\baselineskip}
+
\psuedocontents{Requirements}{System Requirements}{前提条件}
\psuedocontents{Installation}{Installation}{インストール}
@@ -171,6 +176,8 @@
\psuedocontents{moreinfo}{For More Information}{問い合わせ・詳しくは}
+\newpage
+
\psuedosection{Requirements}{System Requirements}{前提条件}
\begin{translateing}
@@ -192,7 +199,6 @@
\textbullet\ \LuaTeX と\code{luatexja-otf} パッケージ\\\hfill\scalebox{0.95}[1]{(\code{[lua]}かつ\code{[curriculum]}使用時)}
\end{translateing}
-\newpage
\psuedosection{Installation}{Installation}{インストール}
\begin{translateing}
@@ -209,7 +215,7 @@
このパッケージを使用するには,プリアンブルに\commandtojskip|\usepackage{jpnedumathsymbols}| と書いてください。
-Several options are available and will be presented in the usage guide.
+Several options are available and will be presented in the usage guide.
The reason is that they generally just switch the output of the same instruction.
One exception is the |[lua]| option.
This should be specified if you are using \LuaLaTeX\ when using the |[curriculum]| option.
@@ -236,7 +242,6 @@
もとの記号は|original|をつけた名前で保存されています(|\originalfrac| |\originalsqrt| |\originallim| |\originalvec|)。
\end{translateing}
-\newpage
\begin{lstlisting}
$\frac{1}{2}+2^{\frac{1}{2}}+\lim_{x\to0}x$
\begin{gather*}
@@ -289,7 +294,6 @@
不要なときはオプション|[nopointroman]|を指定してください。
\end{translateing}
-\newpage
\begin{lstlisting}
\begin{gather*}
ABC\\
@@ -304,6 +308,8 @@
\end{gather*}
\end{macroexample}
+\newpage
+
\macroexplanation{Letters for Curriculum}
\begin{translateing}
@@ -418,7 +424,7 @@
\newpage
\hspace*{0.14\textwidth}|\intersection| is a synonym for |\cap|.\\
-\indent\hspace*{0.14\textwidth}|\union| is a synonym for |\cup|.
+\indent\hspace*{0.14\textwidth}|\union| is a synonym for |\cup|.
\begin{lstlisting}
\[A\intersection B\qquad A\union B\]
\end{lstlisting}
@@ -440,12 +446,12 @@
\hspace*{0.14\textwidth}They are named after text-and/or, english-and/or.
\begin{lstlisting}
-\[(A\tand B)\tor C\qquad (A\eand B)\eor C\]
+\[(A\tand B)\tor C\qquad (A\eand B)\eor C\eand*D\eor*E\]
\end{lstlisting}
\begin{macroexample}
\linesmash\linesmash
-\[(A\tand B)\tor C\qquad (A\eand B)\eor C\]
+\[(A\tand B)\tor C\qquad (A\eand B)\eor C\eand*D\eor*E\]
\end{macroexample}
\hspace*{0.14\textwidth}|\lto| and |\lfrom| are named after |\land| and |\lor|.
@@ -566,29 +572,39 @@
\end{ecases}
\end{macroexample}
-\indent\hspace*{0.14\textwidth}The default of optional argument is |gather*|:
+\indent\hspace*{0.14\textwidth}The default of optional argument is |gather*|:\\
+\indent\hspace*{0.14\textwidth}(|\begin{simul}[align] ... | etc.)
\begin{lstlisting}
\begin{simul}
2x+2y=0\\
x-y=0
\end{simul}
-\begin{simul}[align]
-2x+2y&=0\\
-x-y&=0
-\end{simul}
\end{lstlisting}
+% \begin{simul}[align]
+% 2x+2y&=0\\
+% x-y&=0
+% \end{simul}
\begin{macroexample}
\begin{simul}
2x+2y=0\\
x-y=0
-\end{simul}\linesmash
-\begin{simul}[align]
-2x+2y&=0\\
-x-y&=0
\end{simul}
\end{macroexample}
+\indent\hspace*{0.14\textwidth}The default of optional argument is |0.8|:
+\begin{lstlisting}
+A$\begin{simul*}2x+2y=0\\x-y=0\end{simul*}$B$\begin{simul*}[1.2]x=\frac{1}{2}\\y=\frac{1}{2}\end{simul*}$C
+\end{lstlisting}
+
+\begin{macroexample}
+A%
+$\begin{simul*}2x+2y=0\\x-y=0\end{simul*}$%
+B%
+$\begin{simul*}[1.2]x=\frac{1}{2}\\y=\frac{1}{2}\end{simul*}$%
+C
+\end{macroexample}
+
\newpage
\hspace*{0.14\textwidth}The internal environment is an |array| environment:
\begin{lstlisting}
@@ -681,32 +697,63 @@
$\left[1,\,2\right]$, $\left[1,\,2,\,3\right]$
\end{macroexample}
+\indent\hspace*{0.14\textwidth}The default of optional argument of |vvec| and |vvec*| is |0.65|:
\begin{lstlisting}
-$\cvec{1}{2}$, $\cvec*{1}{2}{3}$
+$\cvec{1}{2}$, $\cvec*{1}{2}{3}$, \\
+$\vvec{1}{2}$, $\vvec*{1}{2}{3}$, $\vvec[0.8]{1}{2}$
\end{lstlisting}
\begin{macroexample}
-$\cvec{1}{2}$, $\cvec*{1}{2}{3}$
+$\cvec{1}{2}$, $\cvec*{1}{2}{3}$, $\vvec{1}{2}$, $\vvec*{1}{2}{3}$, $\vvec[0.8]{1}{2}$
\end{macroexample}
\linesmash\linesmash
-\indent\hspace*{0.14\textwidth}When |[cvecbracket]| is loaded:\\
+\indent\hspace*{0.14\textwidth}When |[cvecbracket]| / |[vvecbracket]| is loaded:\\
\begin{macroexample}
-$\begin{bmatrix}\,1\,\\\,2\,\end{bmatrix}$, $\begin{bmatrix}\,1\,\\\,2\,\\\,3\,\end{bmatrix}$
+$\begin{bmatrix}\,1\,\\\,2\,\end{bmatrix}$,
+$\begin{bmatrix}\,1\,\\\,2\,\\\,3\,\end{bmatrix}$,
+${\left[\!\!
+\renewcommand{\arraystretch}{0.65}
+\begin{array}{c}
+1\\
+2
+\end{array}
+\renewcommand{\arraystretch}{1}
+\!\!\right]}$,
+${\left[\!\!
+\renewcommand{\arraystretch}{0.65}
+\begin{array}{c}
+1\\
+2\\
+3
+\end{array}
+\renewcommand{\arraystretch}{1}
+\!\!\right]}$,
+${\left[\!\!
+\renewcommand{\arraystretch}{0.8}
+\begin{array}{c}
+1\\
+2
+\end{array}
+\renewcommand{\arraystretch}{1}
+\!\!\right]}$
\end{macroexample}
\newpage
-\hspace*{0.14\textwidth}|\inp| is a synonym for |\innerproduct|.
+\hspace*{0.14\textwidth}|\inp| is a synonym for |\innerproduct|.\\
+\indent\hspace*{0.14\textwidth}Note the length of the arrow above b on |vinp|.
\begin{lstlisting}
$\innerproduct{\vec{a}}{\frac{\vec{b}}{2}}
=\inp{\vec{a}}{\frac{\vec{b}}{2}}$,
-$\innerproduct*{\vec{a}}{\frac{\vec{b}}{2}}$
+$\innerproduct*{\vec{a}}{\frac{\vec{b}}{2}}$,
+$\vinp{a}{\frac{b}{2}}$
\end{lstlisting}
\begin{macroexample}
$\innerproduct{\vec{a}}{\frac{\vec{b}}{2}}
=\inp{\vec{a}}{\frac{\vec{b}}{2}}$,
-$\innerproduct*{\vec{a}}{\frac{\vec{b}}{2}}$
+$\innerproduct*{\vec{a}}{\frac{\vec{b}}{2}}$,
+$\vinp{a}{\frac{b}{2}}$
\end{macroexample}
\linesmash\linesmash
@@ -715,6 +762,7 @@
$\left\langle \vec{a}\relax,\frac{\vec{b}}{2}\right\rangle
=\left\langle \vec{a}\relax,\frac{\vec{b}}{2}\right\rangle$,
$\langle \vec{a}\relax,\frac{\vec{b}}{2}\rangle$
+$\left\langle \vec{a}\relax,\vec{\frac{b}{2}}\right\rangle$
\end{macroexample}
\hspace*{0.14\textwidth}|\seq| is a synonym for |\sequence|.
@@ -727,12 +775,12 @@
\end{macroexample}
\begin{lstlisting}
-\[\sum*_{k=1}^{n}\]
+\[\sum*_{k=1}^{n}k=\tsum_{k=0}^{n-1}(k+1)\]
\end{lstlisting}
\begin{macroexample}
\linesmash\linesmash
-\[\sum*_{k=1}^{n}\]
+\[\sum*_{k=1}^{n}k=\tsum_{k=0}^{n-1}(k+1)\]
\end{macroexample}
\begin{lstlisting}
@@ -773,12 +821,12 @@
\indent\hspace*{0.14\textwidth}The default of optional argument is |1.3|:
\begin{lstlisting}
$\triangle\AA\BB\CC\similar\triangle\AA\BB\CC$,
-$\triangle\AA\BB\CC[1.1]\similar\triangle\AA\BB\CC$
+$\triangle\AA\BB\CC[1.3]\similar\triangle\AA\BB\CC$
\end{lstlisting}
\begin{macroexample}
$\triangle\AA\BB\CC\similar\triangle\AA\BB\CC$,
-$\triangle\AA\BB\CC\similar[1.1]\triangle\AA\BB\CC$
+$\triangle\AA\BB\CC\similar[1.3]\triangle\AA\BB\CC$
\end{macroexample}
\hspace*{0.14\textwidth}|\homogeneous| is a synonym for |\repeatedcombination|.
@@ -798,18 +846,23 @@
$\homogeneous{n}{r}$
\end{macroexample}
+\hspace*{0.14\textwidth}|expectedvalue*| etc. are only E / V.
\begin{lstlisting}
-$\expectedvalue{P}$
+$\expectedvalue{P}$, $\expectation{P}$,
+$\variance{P}$, $\deviation{P}$
\end{lstlisting}
\begin{macroexample}
-$\expectedvalue{P}$
+$\expectedvalue{P}$, $\expectation{P}$, $\variance{P}$, $\deviation{P}$
\end{macroexample}
\linesmash\linesmash
\indent\hspace*{0.14\textwidth}When |[mathbb]| is loaded:\\
\begin{macroexample}
-$\mathbb{E}\left(P\right)$
+$\mathbb{E}\left(P\right)$,
+$\mathbb{E}\left(P\right)$,
+$\mathbb{V}\left(P\right)$,
+$\deviation{P}$
\end{macroexample}
\begin{lstlisting}
@@ -870,11 +923,11 @@
\end{macroexample}
\begin{lstlisting}
-$a=\nomination{a}$
+$a=\nomination{a}=\nomination*{a}$
\end{lstlisting}
\begin{macroexample}
-$a=\nomination{a}$
+$a=\nomination{a}=\nomination*{a}$
\end{macroexample}
\newpage
@@ -968,6 +1021,36 @@
It follows that the number of primes is infinite.\QED
\end{macroexample}
+\begin{lstlisting}
+\begin{equation**}{label1}
+A=B
+\end{equation**}
+\begin{align**}{label2}
+A&=B\\
+C+D&=E
+\end{align**}
+\begin{gather**}{label3}
+A=B\\
+C+D=E
+\end{gather**}
+\ref{label1}, \ref{label2}, \ref{label3}
+\end{lstlisting}
+
+\begin{macroexample}
+\begin{equation**}{label1}
+A=B
+\end{equation**}
+\begin{align**}{label2}
+A&=B\\
+C+D&=E
+\end{align**}
+\begin{gather**}{label3}
+A=B\\
+C+D=E
+\end{gather**}
+\ref{label1}, \ref{label2}, \ref{label3}
+\end{macroexample}
+
\begin{translateing}
|\arc| is by \href{http://www.artsci.kyushu-u.ac.jp/~ssaito/jpn/tex/tips/misc.html#arc}{Prof. Shingo SAITO}.
I would like to thank him.
@@ -985,14 +1068,12 @@
このパッケージは,\href{http://emath.s40.xrea.com/}{大熊一弘(tDB)氏によるemath}の影響を受けています。お礼申しあげます。
\end{translateing}
-\psuedosection{moreinfo}{For More Information}{問い合わせ・詳しくは}
+\psuedosection{contact}{Contact}{問い合わせ}
+
\noindent\hspace*{\fill}\begin{tabular}{rl}
-\multicolumn{2}{l}{The jpnedumathsymbols package:}%&
-\\%
-\multicolumn{2}{r}{\hspace{8\zw}\url{https://www.metaphysica.info/technote/package_jpnedumathsymbols/}}\\
Yukoh KUSAKABE:&\url{https://www.metaphysica.info/}\\
-&\url{https://twitter.com/metaphysicainfo}\\
+&\url{https://x.com/metaphysicainfo}\\
&(screen-name, 日下部幽考 in Japanese)
\end{tabular}\hspace*{\fill}
\end{document}
\ No newline at end of file
Modified: trunk/Master/texmf-dist/tex/latex/jpnedumathsymbols/jpnedumathsymbols.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/jpnedumathsymbols/jpnedumathsymbols.sty 2024-11-22 21:52:07 UTC (rev 72933)
+++ trunk/Master/texmf-dist/tex/latex/jpnedumathsymbols/jpnedumathsymbols.sty 2024-11-22 21:52:18 UTC (rev 72934)
@@ -2,9 +2,9 @@
%% jpnedumathsymbols.sty
%% for making handouts in Japanese Education
%%
-%% Copyright (C) 2022 Yukoh KUSAKABE (screen-name)
+%% Copyright (C) 2022--2024 Yukoh KUSAKABE (screen-name)
%% https://www.metaphysica.info/
-%% https://twitter.com/metaphysicainfo
+%% https://x.com/metaphysicainfo
%%
%% This package released under
%% [the MIT license](https://ctan.org/license/mit).
@@ -11,7 +11,7 @@
%%
%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{jpnedumathsymbols}[2022/07/10 v1.1]
+\ProvidesPackage{jpnedumathsymbols}[2024/11/22 v1.2]
%
%% [nofrac]
\newif\if at jpnedu@symbol at nofrac
@@ -64,6 +64,11 @@
\@jpnedu at symbol@cvecbracketfalse
\DeclareOption{cvecbracket}{\@jpnedu at symbol@cvecbrackettrue}
+%% [vvecbracket]
+\newif\if at jpnedu@symbol at vvecbracket%
+\@jpnedu at symbol@vvecbracketfalse
+\DeclareOption{vvecbracket}{\@jpnedu at symbol@vvecbrackettrue}
+
%% [innerproductbracket]
\newif\if at jpnedu@symbol at innerproductbracket%
\@jpnedu at symbol@innerproductbracketfalse
@@ -119,11 +124,19 @@
\let\originalsqrt\sqrt
%
%% \sqrt
-\renewcommand{\sqrt}[2][\phantom{1}]{\mathchoice%
-{\!\originalsqrt[\leftroot{-1}\uproot{0}#1]{\vphantom{(}#2\hspace{1pt}}}%
-{\!\originalsqrt[\leftroot{-1}\uproot{0}#1]{\vphantom{(}#2\hspace{1pt}}}%
+\renewcommand{\sqrt}{\@ifstar{\@jpnedu at symbol@sqrt at star}{\@jpnedu at symbol@sqrt at nostar}}
+\DeclareRobustCommand{\@jpnedu at symbol@sqrt at nostar}
+[2][\phantom{1}]{\mathchoice%
+{\hspace{-0.08em}\originalsqrt[\leftroot{0}\uproot{0}#1]{\vphantom{b}\vphantom{M}#2\hspace{0.08em}}}%
+{\hspace{-0.08em}\originalsqrt[\leftroot{0}\uproot{0}#1]{\vphantom{b}\vphantom{M}#2\hspace{0.08em}}}%
{\originalsqrt[#1]{#2}}%
{\originalsqrt[#1]{#2}}}
+\DeclareRobustCommand{\@jpnedu at symbol@sqrt at star}
+[2][\phantom{1}]{\mathchoice%
+{\hspace{-0.08em}\originalsqrt[\leftroot{0}\uproot{0}#1]{\vphantom{b}\vphantom{M}\smash{#2}\hspace{0.08em}}}%
+{\hspace{-0.08em}\originalsqrt[\leftroot{0}\uproot{0}#1]{\vphantom{b}\vphantom{M}\smash{#2}\hspace{0.08em}}}%
+{\originalsqrt[#1]{#2}}%
+{\originalsqrt[#1]{#2}}}
%
\fi
%
@@ -154,7 +167,8 @@
%
%% \vec
\DeclareRobustCommand{\vec}[1]%
-{\hspace{-1pt}\overrightarrow{\hspace{1pt}\vphantom{T}#1\hspace{1pt}}\hspace{-1pt}}
+{\overrightarrow{\hspace{0.08em}\vphantom{b}\vphantom{M}#1\hspace{0.08em}}}
+%{\overrightarrow{\hspace{0.08em}\vphantom{b}\vphantom{M}#1\hspace{0.16em}}}
%{\overrightarrow{\hspace{1pt}\vphantom{T}#1\hspace{1pt}}}
%
\fi
@@ -316,7 +330,7 @@
%% \comma
\DeclareRobustCommand{\comma}{\@ifstar{\@jpnedu at symbol@comma at star}{\@jpnedu at symbol@comma at nostar}}
\DeclareRobustCommand{\@jpnedu at symbol@comma at nostar}{,\,}
-\DeclareRobustCommand{\@jpnedu at symbol@comma at star}{\,,\,}
+\DeclareRobustCommand{\@jpnedu at symbol@comma at star}{,\ }
%% \period
\DeclareRobustCommand{\period}{\@ifstar{\@jpnedu at symbol@period at star}{\@jpnedu at symbol@period at nostar}}
\DeclareRobustCommand{\@jpnedu at symbol@period at nostar}{\text{。}\quad}
@@ -354,8 +368,15 @@
\DeclareRobustCommand{\tor}{\ensuremath{\mathbin{\text{または}}}}
%% \eand
%% \eor
-\DeclareRobustCommand{\eand}{\ensuremath{\mathbin{\text{and}}}}
-\DeclareRobustCommand{\eor}{\ensuremath{\mathbin{\text{or}}}}
+%\DeclareRobustCommand{\eand}{\ensuremath{\mathbin{\text{and}}}}
+%\DeclareRobustCommand{\eor}{\ensuremath{\mathbin{\text{or}}}}
+\DeclareRobustCommand{\eand}
+{\@ifstar{\@jpnedu at symbol@eand at star}{\@jpnedu at symbol@eand at nostar}}
+\DeclareRobustCommand{\@jpnedu at symbol@eand at nostar}{\ensuremath{\mathbin{\mathrm{and}}}}
+\DeclareRobustCommand{\@jpnedu at symbol@eand at star}{\ensuremath{\mathbin{\ \mathrm{and}\ }}}
+\DeclareRobustCommand{\eor}{\@ifstar{\@jpnedu at symbol@eor at star}{\@jpnedu at symbol@eor at nostar}}
+\DeclareRobustCommand{\@jpnedu at symbol@eor at nostar}{\ensuremath{\mathbin{\mathrm{or}}}}
+\DeclareRobustCommand{\@jpnedu at symbol@eor at star}{\ensuremath{\mathbin{\ \mathrm{or}\ }}}
%
%% \lto
%% \lfrom
@@ -422,6 +443,12 @@
{\vspace{0.25\baselineskip}\begin{empheq}[left=\empheqlbrace\,]{#1}{#2}\end{empheq}}%
{\par\vspace{0.25\baselineskip}\noindent}
%
+\newenvironment{simul*}[1][0.8]%
+{\renewcommand{\arraystretch}{#1}\left\{\hspace{-0.375em}\begin{array}{l}}
+{\end{array}\right.\renewcommand{\arraystretch}{1}}
+%{\left\{\begin{gathered}}%
+%{\end{gathered}\right.}
+%
%% \begin{signchart}{<columns>}
\newenvironment{signchart}[1]%
{\vspace{0.25\baselineskip}\begin{equation*}\begin{array}{c|*#1{c}}\hline}%
@@ -513,6 +540,50 @@
\DeclareRobustCommand{\@jpnedu at symbol@cvec at nostar}[2]{\begin{pmatrix}\,#1\,\\\,#2\,\end{pmatrix}}
\fi%
%
+%% \vvec{}{}
+%% \vvec{}{}{}
+\if at jpnedu@symbol at vvecbracket%
+\DeclareRobustCommand{\vvec}
+{\@ifstar{\@jpnedu at symbol@vvec at star}{\@jpnedu at symbol@vvec at nostar}}
+\DeclareRobustCommand{\@jpnedu at symbol@vvec at star}[4][0.65]{\left[\!\!
+\renewcommand{\arraystretch}{#1}
+\begin{array}{c}
+#2\\
+#3\\
+#4
+\end{array}
+\renewcommand{\arraystretch}{1}
+\!\!\right]}
+\DeclareRobustCommand{\@jpnedu at symbol@vvec at nostar}[3][0.65]{\left[\!\!
+\renewcommand{\arraystretch}{#1}
+\begin{array}{c}
+#2\\
+#3
+\end{array}
+\renewcommand{\arraystretch}{1}
+\!\!\right]}
+\else%
+\DeclareRobustCommand{\vvec}
+{\@ifstar{\@jpnedu at symbol@vvec at star}{\@jpnedu at symbol@vvec at nostar}}
+\DeclareRobustCommand{\@jpnedu at symbol@vvec at star}[4][0.65]{\left(\!\!
+\renewcommand{\arraystretch}{#1}
+\begin{array}{c}
+#2\\
+#3\\
+#4
+\end{array}
+\renewcommand{\arraystretch}{1}
+\!\!\right)}
+\DeclareRobustCommand{\@jpnedu at symbol@vvec at nostar}[3][0.65]{\left(\!\!
+\renewcommand{\arraystretch}{#1}
+\begin{array}{c}
+#2\\
+#3
+\end{array}
+\renewcommand{\arraystretch}{1}
+\!\!\right)}
+\fi%
+%
%% \innerproduct{}{} \inp{}{}
\let\originalinp\inp
\if at jpnedu@symbol at innerproductbracket
@@ -527,6 +598,8 @@
\DeclareRobustCommand{\@jpnedu at symbol@innerproduct at nostar}[2]{#1\cdot #2\relax}
\fi%
\let\inp\innerproduct
+%% \vinp{}{}
+\DeclareRobustCommand{\vinp}[2]{\inp{\vec{#1}}{\vec{#2}}}
%
%% \sequence{} \seq{}
\let\originalseq\seq
@@ -539,6 +612,7 @@
{\@ifstar{\@jpnedu at symbol@sum at star}{\@jpnedu at symbol@sum at nostar}}
\DeclareRobustCommand{\@jpnedu at symbol@sum at star}{\textstyle\sum}
\DeclareRobustCommand{\@jpnedu at symbol@sum at nostar}{\originalsum}
+\DeclareRobustCommand{\tsum}{\textstyle\sum}
%
%% \GCD
%% \LCM
@@ -558,20 +632,30 @@
\overset{\rotatebox{-90}{\ensuremath{\left(\rule{0pt}{\dimen0}\right.\!}}}{#1}%
}
%
-%% \parallel
+%% \jparallel
% https://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/8814.html
\let\originalparallel\parallel
+%\DeclareRobustCommand{\jparallel}{%
+%\mathrel{\raise.3ex\hbox{\scalebox{.7}{%
+%\rotatebox[origin=c]{-7}{/}\kern-.35em\rotatebox[origin=c]{-7}{/}}}}}%
+%\DeclareRobustCommand{\jnotparallel}
+%{\mathrel{\raise.3ex\hbox{\scalebox{.7}{%
+%\ooalign{\rotatebox[origin=c]{-7}{/}\kern-.35em\rotatebox[origin=c]{-7}{/}\crcr%
+%\hfil\raisebox{.0ex}{$\backslash$}\hfil}}}}}%
+%
+% fix
\DeclareRobustCommand{\parallel}{%
-\mathrel{\raise.3ex\hbox{\scalebox{.7}{%
-\rotatebox[origin=c]{-7}{/}\kern-.35em\rotatebox[origin=c]{-7}{/}}}}}%
+\mathrel{\kern-.075em\raise.1ex\hbox{\scalebox{.9}{%
+\rotatebox[origin=c]{-7}{/}\kern-.35em\rotatebox[origin=c]{-7}{/}}}}\kern-.075em}%
\DeclareRobustCommand{\notparallel}
-{\mathrel{\raise.3ex\hbox{\scalebox{.7}{%
+{\mathrel{\kern-.075em\raise.1ex\hbox{\scalebox{.9}{%
\ooalign{\rotatebox[origin=c]{-7}{/}\kern-.35em\rotatebox[origin=c]{-7}{/}\crcr%
-\hfil\raisebox{.0ex}{$\backslash$}\hfil}}}}}%
+\hfil\raisebox{.15ex}{\kern.075em\scalebox{.8}{$\backslash$}}\hfil}}}\kern-.075em}}%
%
+%
%% \similar
\let\originalsimilar\similar
-\DeclareRobustCommand{\similar}[1][1.3]{\mathrel{\lower.2ex\hbox{\scalebox{#1}{∽}}}}
+\DeclareRobustCommand{\similar}[1][1.1]{\mathrel{\lower.2ex\hbox{\scalebox{#1}{∽}}}}
%
%% \permutation{}{}
%% \combination{}{}
@@ -584,12 +668,30 @@
\let\repeatedcombination\homogeneous
%
%% \expectedvalue{}
+%% \expectation{}
+%% \variance{}
+%% \deviation{}
%% ([mathbb])
\if at jpnedu@symbol at mathbb
-\DeclareRobustCommand{\expectedvalue}[1]{\mathbb{E}\left(#1\right)}
+\DeclareRobustCommand{\expectedvalue}{\@ifstar{\@jpnedu at symbol@expectedvalue at star}{\@jpnedu at symbol@expectedvalue at nostar}}
+\DeclareRobustCommand{\@jpnedu at symbol@expectedvalue at star}{\mathbb{E}}
+\DeclareRobustCommand{\@jpnedu at symbol@expectedvalue at nostar}[1]{\mathbb{E}\left(#1\right)}
+\let\expectation\expectedvalue
+\DeclareRobustCommand{\variance}{\@ifstar{\@jpnedu at symbol@variance at star}{\@jpnedu at symbol@variance at nostar}}
+\DeclareRobustCommand{\@jpnedu at symbol@variance at star}{\mathbb{V}}
+\DeclareRobustCommand{\@jpnedu at symbol@variance at nostar}[1]{\mathbb{V}\left(#1\right)}
\else
-\DeclareRobustCommand{\expectedvalue}[1]{\mathbf{E}\left(#1\right)}
+\DeclareRobustCommand{\expectedvalue}{\@ifstar{\@jpnedu at symbol@expectedvalue at star}{\@jpnedu at symbol@expectedvalue at nostar}}
+\DeclareRobustCommand{\@jpnedu at symbol@expectedvalue at star}{\mathbf{E}}
+\DeclareRobustCommand{\@jpnedu at symbol@expectedvalue at nostar}[1]{\mathbf{E}\left(#1\right)}
+\let\expectation\expectedvalue
+\DeclareRobustCommand{\variance}{\@ifstar{\@jpnedu at symbol@variance at star}{\@jpnedu at symbol@variance at nostar}}
+\DeclareRobustCommand{\@jpnedu at symbol@variance at star}{\mathbf{V}}
+\DeclareRobustCommand{\@jpnedu at symbol@variance at nostar}[1]{\mathbf{V}\left(#1\right)}
\fi
+\DeclareRobustCommand{\deviation}{\@ifstar{\@jpnedu at symbol@deviation at star}{\@jpnedu at symbol@deviation at nostar}}
+\DeclareRobustCommand{\@jpnedu at symbol@deviation at star}{\sigma}
+\DeclareRobustCommand{\@jpnedu at symbol@deviation at nostar}[1]{\sigma\left(#1\right)}
%
%% \Re
%% \Im
@@ -622,7 +724,9 @@
\DeclareRobustCommand{\lltextend}{\text{』}}
%
%% \nomination{}
-\DeclareRobustCommand{\nomination}{\parentext}
+\DeclareRobustCommand{\nomination}{\@ifstar{\@jpnedu at symbol@nomination at star}{\@jpnedu at symbol@nomination at nostar}}
+\DeclareRobustCommand{\@jpnedu at symbol@nomination at nostar}{\parentext}
+\DeclareRobustCommand{\@jpnedu at symbol@nomination at star}[1]{(\text{#1})}
%
%% \condition
\DeclareRobustCommand{\condition}{\@ifstar{\@jpnedu at symbol@condition at star}{\@jpnedu at symbol@condition at nostar}}
@@ -647,5 +751,36 @@
%
%% \QED
\DeclareRobustCommand{\QED}{■}
+\DeclareRobustCommand{\qedsym}{■}
%
+% for \NewDocumentEnvironment
+\RequirePackage{xparse}
+%
+\NewDocumentEnvironment{equation**}{m +b}
+{\begin{equation}#2\label{#1}\end{equation}}{}
+%
+%% \begin{align**}{<label>}
+\NewDocumentEnvironment{align**}{m +b}
+{\begin{equation}\begin{aligned}[b]#2\end{aligned}\label{#1}\end{equation}}{}
+%
+%% \begin{gather**}{<label>}
+\NewDocumentEnvironment{gather**}{m +b}
+{\begin{equation}\begin{gathered}[b]#2\end{gathered}\label{#1}\end{equation}}{}
+% https://tex.stackexchange.com/questions/272930/conflicts-between-fleqn-and-gathered
+\renewenvironment{gathered}[1][c]{%
+\RIfM@\else
+\nonmatherr@{\begin{gathered}}%
+\fi
+\null\,%
+\if #1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi \bgroup
+\Let@ \chardef\dspbrk at context\@ne \restore at math@cr
+\spread at equation
+\ialign\bgroup
+%%% In the original there is just \hfil
+\if at fleqn\else\hfil\fi\strut@$\m at th\displaystyle##$\hfil
+\crcr
+}{%
+\endaligned
+}
+%
%% EOF
\ No newline at end of file
More information about the tex-live-commits
mailing list.