summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-03-30 20:05:52 +0000
committerKarl Berry <karl@freefriends.org>2023-03-30 20:05:52 +0000
commit95653d6c3cba56de4241bc1b27f9d2c8f2695e40 (patch)
treebc73caa6b393bf70e21f71cb846731a4e846f1ec /Master/texmf-dist/doc
parent3768cf87942daac44d14a6bd2cb2d2ede497b8d0 (diff)
physics2 (30mar23)
git-svn-id: svn://tug.org/texlive/trunk@66711 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r--Master/texmf-dist/doc/latex/physics2/phy2docdef.tex2
-rw-r--r--Master/texmf-dist/doc/latex/physics2/physics2-legacy.pdfbin97692 -> 82826 bytes
-rw-r--r--Master/texmf-dist/doc/latex/physics2/physics2-legacy.tex31
-rw-r--r--Master/texmf-dist/doc/latex/physics2/physics2.pdfbin87049 -> 87997 bytes
-rw-r--r--Master/texmf-dist/doc/latex/physics2/physics2.tex28
5 files changed, 32 insertions, 29 deletions
diff --git a/Master/texmf-dist/doc/latex/physics2/phy2docdef.tex b/Master/texmf-dist/doc/latex/physics2/phy2docdef.tex
index d5d0699a764..f6d5c5da9f6 100644
--- a/Master/texmf-dist/doc/latex/physics2/phy2docdef.tex
+++ b/Master/texmf-dist/doc/latex/physics2/phy2docdef.tex
@@ -64,7 +64,7 @@
\newenvironment{example}
{\stepcounter{example}\example@start}{\example@end}
\author{Zhang Tingxuan}
-\date{2023/02/07\quad Version 0.1.1\thanks{%
+\date{2023/03/30\quad Version 0.2.0\thanks{%
\url{https://www.github.com/AlphaZTX/physics2}}}
\makeatother
\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/physics2/physics2-legacy.pdf b/Master/texmf-dist/doc/latex/physics2/physics2-legacy.pdf
index 796463ab07e..682d20a08b7 100644
--- a/Master/texmf-dist/doc/latex/physics2/physics2-legacy.pdf
+++ b/Master/texmf-dist/doc/latex/physics2/physics2-legacy.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/physics2/physics2-legacy.tex b/Master/texmf-dist/doc/latex/physics2/physics2-legacy.tex
index fea5894ad01..d1b64a43740 100644
--- a/Master/texmf-dist/doc/latex/physics2/physics2-legacy.tex
+++ b/Master/texmf-dist/doc/latex/physics2/physics2-legacy.tex
@@ -8,10 +8,10 @@
\documentclass[11pt,letterpaper]{article}
\usepackage{amsmath}
\usepackage{unicode-math}
-\setmainfont{Latin Modern Roman}
-\setsansfont{Latin Modern Sans}
-\setmonofont{Latin Modern Mono}
-\setmathfont{Latin Modern Math}
+\setmainfont{Libertinus Serif}
+\setsansfont{Libertinus Sans}
+\setmonofont{Noto Sans Mono}[Scale=MatchLowercase]
+\setmathfont{Libertinus Math}
\usepackage{physics2}
\usephysicsmodule{ab}
\usephysicsmodule{ab.legacy,nabla.legacy}
@@ -177,11 +177,11 @@ the \modu{ab} module of \pkg{physics2}, these commands have changed to
\[ \aab{\0} \quad \vab{\0}
\quad \Vab{\0} \]
\end{example}
-Also, after \texttt{\textbackslash}$X$\texttt{ab} can be a ``biggg'' command
-or a star. For example,
+\texttt{\textbackslash$X$ab} can take an optional star and an optional \oarg{biggg}
+argument. For example,
\begin{example}
\def\0{\frac12}
-\[ \pab\Big{\0} \quad \bab*{\0} \]
+\[ \pab[Big]{\0} \quad \bab*{\0} \]
\end{example}
\pkg{physics} also provides the following commands:
@@ -197,18 +197,19 @@ the first four commands can be used through the \modu{ab.legacy} module of
For example,
\begin{example}
\def\0{\frac12}
-\[ \abs{\0} \quad \abs\Big{\0}
+\[ \abs{\0} \quad \abs[big]{\0}
\quad \abs*{\0} \]
\end{example}
Users of the legacy \pkg{physics} package should notice that the syntax of
-\cs{eval} has been changed to \cs{eval}\oarg{left delimiter}\marg{subformula}.
-The \modu{ab.legacy} module abandoned the \verb"\eval(foo|"-like syntax. The
-\meta{left delimiter} argument is optional. For example,
+\cs{eval} has been changed. The \modu{ab.legacy} module abandoned the
+\verb"\eval(foo|"-like syntax. The new \cs{eval}'s syntax is just like other
+commands in this module. There are also two variants of \cs{eval} --- \cs{peval}
+and \cs{beval}. For example,
\begin{example}
-\def\0{\frac12x}
-\[ \eval{\0}_a^b \quad
- \eval[(]{\0}_a^b \quad
- \eval[[]\big{\0}_a^b \]
+\def\0{1+\frac12x}
+\[ \eval{\0}_a^b \quad
+ \peval*{\0}_a^b \quad
+ \beval[big]{\0}_a^b \]
\end{example}
The \cs{comm}, \cs{acomm} and \cs{pb} (Poisson bracket) are not supported.
But you can write like \verb|\ab[foo,baz]| or \verb|\bab{foo,baz}| instead.
diff --git a/Master/texmf-dist/doc/latex/physics2/physics2.pdf b/Master/texmf-dist/doc/latex/physics2/physics2.pdf
index a5721ef9916..47645e84d84 100644
--- a/Master/texmf-dist/doc/latex/physics2/physics2.pdf
+++ b/Master/texmf-dist/doc/latex/physics2/physics2.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/physics2/physics2.tex b/Master/texmf-dist/doc/latex/physics2/physics2.tex
index 043e262853b..f567d5219c0 100644
--- a/Master/texmf-dist/doc/latex/physics2/physics2.tex
+++ b/Master/texmf-dist/doc/latex/physics2/physics2.tex
@@ -172,11 +172,12 @@ with paired delimiters. For example,
\[ \pab{\0} \bab{\0} \Bab{\0} \]
\[ \aab{\0} \vab{\0} \Vab{\0} \]
\end{example}
-After \texttt{\textbackslash}$X$\texttt{ab} can be a ``biggg'' command or a
-star. For example,
+These \texttt{\textbackslash$X$ab} commands can take an optional star and
+an optional \oarg{biggg} argument. Star stands for using the default sizes.
+For example,
\begin{example}
-\def\0{\frac12}
-\[ \pab\Big{\0} \quad \bab*{\0} \]
+\def\0{n+\frac12}
+\[ \pab[Big]{\0} \quad \bab*{\0} \]
\end{example}
\paragraph{The options of \modu{ab} module}
@@ -471,21 +472,22 @@ legacy \pkg{physics} package. It's not suggest to use them in a new document.
\subsection{The \modu{ab.legacy} module}
This module provides the following commands:
\begin{Verbatim}[fontsize=\small]
-\abs \norm \eval \order
+\abs \norm \eval (\peval \beval) \order
\end{Verbatim}
-They can take a normal argument. Between these commands and their argument
-can be a ``biggg'' command or a star. For example,
+They shares the same syntax as \meta{cmd}\opt{*}\oarg{biggg}\marg{subformula}.
+Star and \meta{biggg} are optional. Star stands for ``use the default size''.
+For example,
\begin{example}
-\def\0{\frac12}
+\def\0{1+\frac12}
\[ \abs{\0} \quad
- \norm\Big{\0} \quad
+ \norm[Big]{\0} \quad
\order*{\0} \]
\end{example}
\begin{example}
-\def\0{\frac12x}
-\[ \eval{\0}_a^b \quad
- \eval[(]{\0}_a^b \quad
- \eval[[]\big{\0}_a^b \]
+\def\0{1+\frac12x}
+\[ \eval{\0}_a^b \quad
+ \peval*{\0}_a^b \quad
+ \beval[big]{\0}_a^b \]
\end{example}
You can set the ``order'' symbol in this module through
the \opt{order} option like this: